行情API

首页 > 行情API

ticker:(行情)

接口地址

http://www.bitgo.net/real/ticker.html?symbol=1&random=70

symbol:比特币1,莱特币2

返回值:

{"LastDealPrize-LTC":"0.0010","LastDealPrize-BTC":"0.0010","last":"0.0010","buy":"0.0010","sell":"0.0010","high":"0.0","low":"0.0","vol":"0.0"}

其中high 是最高价,low是最低价,, buy 是买一, sell 是卖一, last 最近一次成交价, vol 是成交量(最近的24小时)


depth(市场深度):

接口地址

http://www.bitgo.net/marketRefresh.html?symbol=2&random=40

symbol:比特币1,莱特币2

返回值:

{"result":"success","return":{"asks":[[0.001,3]],"bids":[]},"now":1394356535171}

其中, asks 是委卖单, bids 是委买单格式是: [价格委单量] . 另外注意按照价格从高到低排序


trades的格式:

接口地址http://www.bitgo.net/kline/trades.html?since=0&sid=0c8aa717&symbol=1&nonce=1394355947796

symbol:比特币1,莱特币2

返回值:

[{"amount":0.003000000026077032,"date":1394356750963,"price":0.001,"tid":5,"tradeType":"bid"},{"amount":0.003000000026077032,"date":1394356750963,"price":0.001,"tid":7,"tradeType":"ask"}]
其中, asks 是委卖单, bids 是委买单,