X

【API】市场行情数据API调用

发表于: 2017-08-07 17:30



获取BTC100最新行情:

 

接口:https://www.btc100.cn/api/ticker?symbol=bts

 

示例:

    # Request 

GET https://www.btc100.cn/api/ticker?symbol=bts

# Response

{"ticker":

{"vol":"11125.0740",

"high":"1.2490",

"last":"1.0000",

"low":"0.9800",

"nowprice":"1.0000",

"buy":"0.9300",

"sell":"1.0000"}

}

 

返回值说明

buy: 买一价

high: 最高价

last: 最新成交价

low: 最低价

sell: 卖一价

vol: 成交量(最近的24小时)

nowprice:现价

 

请求参数

参数名

参数类型

必填

描述

symbol

String

 

btc:比特币    ltc :莱特币    bts:比特股(等) 

 

 

获取BTC100市场深度:

 

接口:https://www.btc100.cn/api/depth?symbol=bts

 

示例:

 

  # Request 

GET https://www.btc100.cn/api/depth?symbol=bts

# Response

{"asks":[

[50,5986.97],

[5,10],

[4,504],

[2.2,5000],

[2.1,10],

[2,73.4],

[1.9,1000],

[1.8,1000],

[1.7,1000],

[1.6,1100],

[1.5,3832.15],

[1.4,3300],

[1.35,3093],

[1.2799,221.75],

[1.2798,230.68],

[1.249,122.86],

[1.2489,2044.95],

[1.245,3.99],

[1.21,744.18],

[1.14,614.83],

[1.09,4995],

[1.08,1805.61],

[1,1481.75]

],

"bids":[

[0.93,2100],

[0.92,1620],

[0.9002,35],

[0.9,1200],

[0.85,1500],

[0.81,2000],

[0.8001,120],

[0.7,10],

[0.6,20],

[0.5,20],

[0.4,15],

[0.1,1000]

]

}

返回值说明

asks :卖方深度

bids :买方深度

 

请求参数

参数名

参数类型

必填

描述

symbol

String

 

btc:比特币    ltc :莱特币    bts:比特股(等)