成交历史
请求
类别
说明
方法
GET
地址
/api/v1/trades?symbol=:symbol&size=:size
鉴权
无需鉴权
限流
每秒10次
参数名
参数类型
说明
symbol
string
交易对
size
int
返回最新成交记录条数,默认100,最大1000
curl https://openapi.moorbit.com/api/v1/trades?symbol=ethbtc&size=100响应
字段名
字段类型
说明
time
long
成交时间(UTC)
price
decimal
成交价格
qty
decimal
成交数量
direction
string
成交方向,buy or sell
{
"data": [
{
"time": "1571817247135",
"price": "0.0034500000",
"qty": "5.0000000000",
"direction": "sell"
},{
"time": "1571716522225",
"price": "0.0034500000",
"qty": "3.2124000000",
"direction": "buy"
}
],
"code": 0,
"message": "Success"
}Last updated