Post
Topic
Board Announcements (Altcoins)
Re: [ANN][Exchange] Latest Cryptsy Additions, News and announcements.
by
anw
on 13/01/2014, 00:52:59 UTC
hi,
anyone using orderbook API?
Did I miss something or is it bugged? Did it work someday?

In example, orderbook of MEC/BTC from API is crazy:

From the API orderbook is {buy=0.00849000 sell=0.00001564} (!!!)
http://pubapi.cryptsy.com/api.php?method=singleorderdata&marketid=45
Code:
{"success":1,"return":{"MEC":{"marketid":"45","label":"MEC\/BTC","primaryname":"MegaCoin","primarycode":"MEC","secondaryname":"BitCoin","secondarycode":"BTC",
"sellorders":[{"price":"0.00001564","quantity":"0.00000000","total":"0.00009123"},{"price":"0.00020000","quantity":"0.00000000","total":"0.03000000"}[...]
,"buyorders":[{"price":"0.00849000","quantity":"0.00000000","total":"0.22883971"},{"price":"0.00098517","quantity":"0.00000000","total":"0.03155533"}[...]

From the website, orderbook is {buy=0.00090118 sell=0.00090686}:
Code:
SELL
Price (BTC)           MEC                           Total (BTC)
0.00090686           157.04663585           0.14241931
0.00090688           0.99065585           0.00089841
0.00090725           27.96472681           0.02537100

BUY
Price (BTC)           MEC                           Total (BTC)
0.00090118           0.11000000           0.00009913
0.00090117           115.55396831           0.10413377
0.00090116           38.15284734           0.03438182