Get market recent trades

Rate limit: 3 every second

API Overview


HTTP method

GET

Path

/api/v2/trade

Summary

Query trades with specified market

API description


HTTP Header

Field Type Required Description Example
X-API-KEY string Y ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

Request parameters

Field Type Required Description Example
market string Y Single market to query "LRC-USDT"
limit integer N Number of queries 20

Request example

HTTP
CURL
GET https://api.loopring.io/api/v2/trade?market=LRC-USDT&limit=20 HTTP/1.1
Host: api.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
X-API-KEY: sra1aavfa
curl -H "X-API-KEY:sra1aavfa" https://api.loopring.io/api/v2/trade\?market\=LRC-USDT\&limit\=20

Response fields

Field Type Required Description Example
resultInfo ResultInfo Y Information returned by the API /
data MarketTrades N Market trades list /

Response example

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : {
        "totalNum" : 0,
        "trades" : [["0","0","BUY","0","0","LRC-USDT","0"]]
    }
}

Status code

Value Description
100000 Unknown error

Model


MarketTrades

Market trades list

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 and fees "[["0","0","BUY","0",
"0","LRC-USDT","0"]]"

results matching ""

    No results matching ""