ticker - 获取币种代码表
使用ticker
调用获取币种代码表。
API调用
GET ticker
API返回值
返回值为币种代码表对象,键为币种代码,值为币种描述信息。
币种描述信息的主要字段为:
- 15m:滞后15分钟的市场价格
- last:最新的市场价格
- buy:买入价格
- sell:卖出价格
- symbol:币种符号
示例代码
使用curl调用ticker
的示例代码如下:
curl https://blockchain.info/ticker
返回值:
{
"USD" : {"15m" : 7462.4, "last" : 7462.4, "buy" : 7462.4, "sell" : 7462.4, "symbol" : "$"},
"AUD" : {"15m" : 10659.29, "last" : 10659.29, "buy" : 10659.29, "sell" : 10659.29, "symbol" : "$"},
"BRL" : {"15m" : 29538.03, "last" : 29538.03, "buy" : 29538.03, "sell" : 29538.03, "symbol" : "R$"},
"CAD" : {"15m" : 10008.98, "last" : 10008.98, "buy" : 10008.98, "sell" : 10008.98, "symbol" : "$"},
"CHF" : {"15m" : 7548.75, "last" : 7548.75, "buy" : 7548.75, "sell" : 7548.75, "symbol" : "CHF"},
"CLP" : {"15m" : 5119250.09, "last" : 5119250.09, "buy" : 5119250.09, "sell" : 5119250.09, "symbol" : "$"},
"CNY" : {"15m" : 50923.77, "last" : 50923.77, "buy" : 50923.77, "sell" : 50923.77, "symbol" : "¥"},
"DKK" : {"15m" : 49594.34, "last" : 49594.34, "buy" : 49594.34, "sell" : 49594.34, "symbol" : "kr"},
"EUR" : {"15m" : 6644.26, "last" : 6644.26, "buy" : 6644.26, "sell" : 6644.26, "symbol" : "€"},
"GBP" : {"15m" : 5740.82, "last" : 5740.82, "buy" : 5740.82, "sell" : 5740.82, "symbol" : "£"},
"HKD" : {"15m" : 58569.0, "last" : 58569.0, "buy" : 58569.0, "sell" : 58569.0, "symbol" : "$"},
"INR" : {"15m" : 521864.08, "last" : 521864.08, "buy" : 521864.08, "sell" : 521864.08, "symbol" : "₹"},
"ISK" : {"15m" : 908620.23, "last" : 908620.23, "buy" : 908620.23, "sell" : 908620.23, "symbol" : "kr"},
"JPY" : {"15m" : 821698.56, "last" : 821698.56, "buy" : 821698.56, "sell" : 821698.56, "symbol" : "¥"},
"KRW" : {"15m" : 8769808.94, "last" : 8769808.94, "buy" : 8769808.94, "sell" : 8769808.94, "symbol" : "₩"},
"NZD" : {"15m" : 11313.52, "last" : 11313.52, "buy" : 11313.52, "sell" : 11313.52, "symbol" : "$"},
"PLN" : {"15m" : 28539.19, "last" : 28539.19, "buy" : 28539.19, "sell" : 28539.19, "symbol" : "zł"},
"RUB" : {"15m" : 485934.13, "last" : 485934.13, "buy" : 485934.13, "sell" : 485934.13, "symbol" : "RUB"},
"SEK" : {"15m" : 71726.25, "last" : 71726.25, "buy" : 71726.25, "sell" : 71726.25, "symbol" : "kr"},
"SGD" : {"15m" : 10169.01, "last" : 10169.01, "buy" : 10169.01, "sell" : 10169.01, "symbol" : "$"},
"THB" : {"15m" : 235472.21, "last" : 235472.21, "buy" : 235472.21, "sell" : 235472.21, "symbol" : "฿"},
"TWD" : {"15m" : 230983.57, "last" : 230983.57, "buy" : 230983.57, "sell" : 230983.57, "symbol" : "NT$"}
}