Get market recent trades
流量控制: 5 每 秒
摘要
HTTP 方法
GET
访问路径
/api/v3/trade
功能
Query trades with specified market
API 描述
HTTP头
无
请求参数
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
market | string | 是 | Single market to query | "LRC-USDT" |
limit | integer | 否 | Number of queries | 20 |
fillTypes | string | 否 | request.getUserTxs.fillTypes 取值范围 : ['dex', 'amm'] |
"dex" |
请求示例
HTTP
CURL
GET https://api3.loopring.io/api/v3/trade?market=LRC-USDT&limit=20&fillTypes=dex HTTP/1.1
Host: api3.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
curl https://api3.loopring.io/api/v3/trade\?market\=LRC-USDT\&limit\=20\&fillTypes\=dex
响应字段
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
totalNum | integer | 是 | The total number of trades in query result | 0 |
trades | List[List[string]] | 是 | List of trades records, each trade record in the order of the array is the trade time, record id, buying and selling direction, volume, price, market, fees, blockId and indexInBlock | "[["0","0","B UY","0","0", "LRC-USDT"," 0"]]" |
响应示例
{
"totalNum" : 0,
"trades" : [["0","0","BUY","0","0","LRC-USDT","0"]]
}
状态码
状态码 | 描述 |
---|---|
100000 | Unknown error |