You are viewing a single comment's thread from:

RE: Bitshares - State of the Network - 25th Sept 2016

in #bitshares8 years ago

For USD markets you could try:
curl --data '{"jsonrpc": "2.0", "method": "get_24_volume", "params": ["USD", "BTS"], "id": 1}' https://bitshares.openledger.info/ws/
Because Cryptofresh api shows always 0.

I dont know how to check more markets with one call.

Sort:  

Thanks very much for the Tip :) This string i Gold, just thinking about what other params i could put in there to pull data from OL!

The Smartcoin trading volume is that part i dreaded the most about this because when i looked at cryptofresh, coinmarketcap, and the dex all the figures were different; and i was spending 30-45 minutes just trying to get accurate figures.

With mentioned earlier you can change only other market pairs. "id" is required but whatever i put there it works. For different data you'll need other method:
curl --data '{"jsonrpc": "2.0", "method": "get_order_book", "params": ["OPEN.STEEM","BTS", 10], "id": 3}' https://bitshares.openledger.info/ws/
But this is far from optimal, when comes to real time ticker.
I was thinking about something like this:

  1. take markets data from Poloniex
  2. Calculate BTC prices to BTS using highest Bid or last price
  3. Take markets data from DEX and compare with above - indicate arbitrage opportunity.

Why? Because those BTS prices talks nothing to newbies and they are maybe to lazy to calculate.

But Cryptofresh is updated hourly so not good for "real time" data.
It seems RPC calls is not best choice and also very limited.
With full node you can obtain any data you want, but this requires... full node.
We need server with better public API (just pure data), so people could build own stuff with minimum effort and skills.
*note: I'm noob

Coin Marketplace

STEEM 0.18
TRX 0.14
JST 0.029
BTC 58051.31
ETH 3136.86
USDT 1.00
SBD 2.44