Page 1 of 1

API: Howto fetch a/c balance and hashrate

Posted: Mon Dec 04, 2017 6:36 am
by a3miner
Hello

Is there an easy way to fetch the a/c balances and current hash rate from prohashing?
The API through WAMP is beyond me. Is there simply a call i can make with wget or curl to fetch the data?
Anyone can help me?

Here is the API section https://prohashing.com/help.html#api-main

Re: API: Howto fetch a/c balance and hashrate

Posted: Mon Dec 04, 2017 10:02 am
by Steve Sokolowski
Hi a3miner,

Unfortunately, there is not. We removed REST calls earlier in the year to transition to live data through WAMP. The great news is that you can receive that data live as it changes. If you just want to obtain it once, then you can call the corresponding function and not subscribe to the channels, as long as you don't call the function more often than once every five minutes.

Thanks,

-Steve Sokolowski

Re: API: Howto fetch a/c balance and hashrate

Posted: Mon Dec 04, 2017 11:06 am
by a3miner
Thanks Steve.
Just very complicated. What’s the easiest to just receive a snapshot of account balance and hashrate? Any example files would be great. Basically I just want to send me summaries of earnings daily.

Re: API: Howto fetch a/c balance and hashrate

Posted: Thu Dec 07, 2017 3:37 am
by nroe
any update?

Re: API: Howto fetch a/c balance and hashrate

Posted: Thu Dec 07, 2017 3:14 pm
by Steve Sokolowski
Unfortunately, we don't have the manpower to write an example right now, but perhaps that's something we can do in the future.

If you find any examples on the Internet, then please let me know so I can post them. Also, JoeTheMiner is experienced at writing bots and perhaps he can share some examples with you.

Re: API: Howto fetch a/c balance and hashrate

Posted: Sun Feb 04, 2018 3:36 pm
by MitchellMint
I think you have to get a client, then configure it, then convert it to an array and echo it... Right?