完整 ticker
GET: /v1/spot/public/ticker
Parameters
参数 | 数据类型 | 是否必须 | 默认值 | 描述 | 取值范围 |
---|---|---|---|---|---|
symbol | string | false | 交易对 eg:btc_usdt | ||
symbols | array | false | 交易对集合,优先级高于 symbol。 eg: btc_usdt,eth_usdt | ||
tags | array | false | 标签集合,逗号分割,当前仅支持 spot |
限流规则
-
单个交易对:10/s/ip
-
多个交易对:10/s/ip
Java
public String price(){
}
Response
{
"code": 200,
"msg": "SUCCESS",
"msgInfo": [],
"data": [
{
"s": "btc_usdt", //交易对(symbol)
"t": 1662444879425, //更新时间(time)
"cv": "0.00", //价格变动(change value)
"cr": "0.0000", //价格变动百分比(change rate)
"o": "200.00", //最早一笔(open)
"l": "200.00", //最低(low)
"h": "200.00", //最高(high)
"c": "200.00", //最后一笔(close)
"q": "0.002", //成交量(quantity)
"v": "0.40", //成交额(volume)
"ap": null, //asks price(卖一价)
"aq": null, //asks qty(卖一量)
"bp": null, //bids price(买一价)
"bq": null //bids qty(买一量)
}
]
}