爱尚比特 自由交易 安全信赖

www.asbtc.com

1.1获得当前所有货币对CNY的单价

接口地址:

https://www.asbtc.com/api2/getCoinsCnyUnit.do

响应参数

coinType:货币名称

cny_price:cny价格

usdt_price:usdt价格

响应示例

[{"coinType":"BTC","usdt_price":42317.74,"cny_price":42317.74},{"coinType":"ETH","usdt_price":3194.75,"cny_price":3194.75},{"coinType":"LMC","usdt_price":0.19,"cny_price":0.19},{"coinType":"LTC","usdt_price":639.13,"cny_price":639.13},{"coinType":"EOS","usdt_price":65.66,"cny_price":65.66},{"coinType":"QTUM","usdt_price":72.36,"cny_price":72.36},{"coinType":"CFUN","usdt_price":0.05,"cny_price":0.05},{"coinType":"BCH","usdt_price":5604.92,"cny_price":5604.92},{"coinType":"MGD","usdt_price":1.67,"cny_price":1.67},{"coinType":"DCON","usdt_price":null,"cny_price":null},{"coinType":"RUFF","usdt_price":0.43,"cny_price":0.43},{"coinType":"IOST","usdt_price":0.16,"cny_price":0.16},{"coinType":"TRX","usdt_price":0.28,"cny_price":0.28},{"coinType":"BTM","usdt_price":3.21,"cny_price":3.21},{"coinType":"ZRX","usdt_price":5.72,"cny_price":5.72},{"coinType":"XWC","usdt_price":0.69,"cny_price":0.69},{"coinType":"USDT","usdt_price":"1","cny_price":6.45}]

1.2获得当天的交易对价格列表

接口地址:

https://www.asbtc.com/api2/getTodayTradeUnits.do

请求参数

symbol:交易对名称,如:usdt,即获得所有与usdt的交易对价格,不传则获得所有交易对价格

请求示例:

https://www.asbtc.com/api2/getTodayTradeUnits.do?symbol=usdt

响应参数

coinType:交易对的名称

symbol:交易对名称全称

coin_num:24小时交易数量

now_price:当前价格

start_price:24小时开盘价格

max_price:24小时最高价格

min_price:24小时最低价格

rise:涨跌比例

响应示例

[{"coinType":"BTC","str":"usdt_btc","coin_num":0.00200000,"now_unit":7335.26000000,"start_unit":7333.26000000,"max_unit":7339.43000000,"min_unit":7333.26000000,"rise":"+0.027%"},{"coinType":"ETH","str":"usdt_eth","coin_num":1.41000000,"now_unit":730.00000000,"start_unit":733.00000000,"max_unit":734.50000000,"min_unit":721.00000000,"rise":"--0.409%"},{"coinType":"HSR","str":"usdt_hsr","coin_num":2.33000000,"now_unit":0.38000000,"start_unit":0.39000000,"max_unit":0.42000000,"min_unit":0.36000000,"rise":"--2.564%"},{"coinType":"LMC","str":"usdt_lmc","coin_num":null,"now_unit":null,"start_unit":null,"max_unit":null,"min_unit":null,"rise":"0.00%"},{"coinType":"LTC","str":"usdt_ltc","coin_num":null,"now_unit":null,"start_unit":null,"max_unit":null,"min_unit":null,"rise":"0.00%"},{"coinType":"EOS","str":"usdt_eos","coin_num":null,"now_unit":null,"start_unit":null,"max_unit":null,"min_unit":null,"rise":"0.00%"},{"coinType":"QTUM","str":"usdt_qtum","coin_num":null,"now_unit":null,"start_unit":null,"max_unit":null,"min_unit":null,"rise":"0.00%"},{"coinType":"CFUN","str":"usdt_cfun","coin_num":null,"now_unit":null,"start_unit":null,"max_unit":null,"min_unit":null,"rise":"0.00%"},{"coinType":"BCH","str":"usdt_bch","coin_num":null,"now_unit":null,"start_unit":null,"max_unit":null,"min_unit":null,"rise":"0.00%"}]

1.3获得当天的指定交易对价格

接口地址:

https://www.asbtc.com/api2/getTodayTradeUnits.do

请求参数

symbol:交易对名称,如:usdt_btc

请求示例:

https://www.asbtc.com/api2/getTodayTradeUnits.do?symbol=usdt_btc

响应参数

coinType:交易对的名称

symbol:交易对名称全称

coin_num:24小时交易数量

now_price:当前价格

start_price:24小时开盘价格

max_price:24小时最高价格

min_price:24小时最低价格

rise:涨跌比例

响应示例

[{"coinType":"BTC","coin_num":147.002000,"rise":"-3.80%","symbol":"usdt_btc","now_price":7921.94000000,"start_price":8234.90000000,"max_price":8289.87000000,"min_price":7873.43000000}]

1.4获得K线图

接口地址:

https://www.asbtc.com/api2/kdata.do

请求参数

symbol:交易对名称,如:usdt_btc

resolution:周期 (分钟)

from:起始时间戳(精确至秒) to:结束时间戳(精确至秒)

请求示例:

https://www.asbtc.com/api2/kdata.do?symbol=usdt_btc&resolution=5&from=1495217111&to=1527617111

响应参数

s:"ok"请求成功,"no" 无数据

t:时间戳 ,数组类型

o:开盘价,数组类型

c:收盘价,数组类型

h:最高价,数组类型

l:最低价,数组类型

v:成交数,数组类型

响应示例

{"s":"ok","t":[1520326500,1520326800,1520327100,1520327400], "o":[11278.95,11279.0,11278.99,11279.0], "c":[11278.94,11278.97,11278.97,11278.99], "h":[11279.0,11279.0,11279.0,11279.0], "l":[11245.0,11245.0,11245.0,11278.99], "v":[0.546,0.277,0.371,0.41]}

1.5获得当前委托订单

接口地址:

https://www.asbtc.com/api2/getNowTradeOrder.do

请求参数

symbol:交易对名称(如usdt_btc)

rows:查询条数默认10

请求示例:

https://www.asbtc.com/api2/getNowTradeOrder.do?symbol=usdt_btc&rows=2

响应参数

bid:买入深度,数组类型[{price:"单价",num:"数量"}]

ask:卖出深度,数组类型[{price:"单价",num:"数量"}]

响应示例

{"bid":[{"price":7935.25,"num":"0.0024"},{"price":7934.13,"num":"0.38"}], "ask":[{"price":7938.15,"num":"0.036"},{"price":7938.43,"num":"0.0015"}]}

1.6获得当前已成交最新100条记录

接口地址:

https://www.asbtc.com/api2/getSuccessTrades.do

请求参数

symbol:交易对名称(如usdt_btc)

dex:单价小数点位数

请求示例:

https://www.asbtc.com/api2/getSuccessTrades.do?symbol=usdt_eth&dex=2

响应参数

coin_unit:价格

coin_num:数量

trade_type:交易类型 1买入 2卖出

create_date:成交时间

响应示例

[{"create_date":"2018-02-07 00:21:42","trade_type":2,"coin_num":0.01000000,"coin_unit":721.00,"trade":"卖出","time":"00:21:42"},{"create_date":"2018-02-07 00:20:37","trade_type":1,"coin_num":0.80000000,"coin_unit":734.50,"trade":"买入","time":"00:20:37"},{"create_date":"2018-02-07 00:20:20","trade_type":1,"coin_num":0.60000000,"coin_unit":733.00,"trade":"买入","time":"00:20:20"}]

1.7获得所有货币的充值提现费率

接口地址:

https://www.asbtc.com/api/getCoinCosts.do

响应参数

purse_code:货币名称

sxfb:提币手续费

tx_sxf_min:单笔提币手续费下限

tx_min:单笔提币最小数量

tx_max:单笔提币最大数量

tcz_min:最小充币数量

响应示例

[{"purse_code":"ASB","sxfb":0E-8,"tx_min":null,"tx_max":null,"tx_sxf_min":200.00000000,"cz_min":200.00000000},{"purse_code":"BTC","sxfb":0.00100000,"tx_min":0.01000000,"tx_max":10.00000000,"tx_sxf_min":0.00100000,"cz_min":0.00100000},{"purse_code":"ETH","sxfb":0.00100000,"tx_min":0.01000000,"tx_max":null,"tx_sxf_min":0.00001000,"cz_min":0.00100000},{"purse_code":"HSR","sxfb":0.00100000,"tx_min":2.00000000,"tx_max":null,"tx_sxf_min":0.30000000,"cz_min":2.00000000},{"purse_code":"USDT","sxfb":0.00100000,"tx_min":2.00000000,"tx_max":null,"tx_sxf_min":0.30000000,"cz_min":2.00000000},{"purse_code":"LMC","sxfb":0.00100000,"tx_min":2.00000000,"tx_max":null,"tx_sxf_min":0.30000000,"cz_min":2.00000000},{"purse_code":"LTC","sxfb":0.00100000,"tx_min":2.00000000,"tx_max":null,"tx_sxf_min":0.30000000,"cz_min":2.00000000},{"purse_code":"EOS","sxfb":0.00100000,"tx_min":2.00000000,"tx_max":null,"tx_sxf_min":0.30000000,"cz_min":0.01000000},{"purse_code":"QTUM","sxfb":0.00100000,"tx_min":2.00000000,"tx_max":null,"tx_sxf_min":0.30000000,"cz_min":2.00000000},{"purse_code":"CFUN","sxfb":0.00100000,"tx_min":2.00000000,"tx_max":null,"tx_sxf_min":0.30000000,"cz_min":2.00000000},{"purse_code":"BCH","sxfb":0.00100000,"tx_min":2.00000000,"tx_max":null,"tx_sxf_min":0.30000000,"cz_min":0.00100000}]