Get market recent trades
Rate limit: 5 every second
API Overview
HTTP method
GET
Path
/api/v3/trade
Summary
Query trades with specified market
API description
HTTP Header
None
Request parameters
Field | Type | Required | Description | Example |
---|---|---|---|---|
market | string | Y | Single market to query | "LRC-USDT" |
limit | integer | N | Number of queries | 20 |
fillTypes | string | N | request.getUserTxs.fillTypes Allowable : ['dex', 'amm'] |
"dex" |
Request example
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
Response fields
Field | Type | Required | Description | Example |
---|---|---|---|---|
totalNum | integer | Y | The total number of trades in query result | 0 |
trades | List[List[string]] | Y | 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"]]" |
Response example
{
"totalNum" : 0,
"trades" : [["0","0","BUY","0","0","LRC-USDT","0"]]
}
Status code
Value | Description |
---|---|
100000 | Unknown error |