Users Nft trade list
Rate limit: 5 every second
API Overview
HTTP method
GET
Path
/api/v3/user/nft/trades
Summary
Users NFT trade list
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 |
---|---|---|---|---|
accountId | integer | Y | users accountId. | 10001 |
nftData | string | N | the nftData of the NFT token | "0xf7c9323511 86c3a9053f31 3eefa16209c0 18f7f1dba8aa 8ca7100400f7 c31085" |
orderHash | string | N | request.getNftTrades.orderHash | "0xf7c9323511 86c3a9053f31 3eefa16209c0 18f7f1dba8aa 8ca7100400f7 c31085" |
start | integer | N | Start time in milliseconds | 1567053142 |
end | integer | N | End time in milliseconds | 1567053142 |
startId | integer | N | The begin id of the query. | 1234 |
limit | integer | N | Number of records to return | 50 |
Request example
HTTP
CURL
GET https://api3.loopring.io/api/v3/user/nft/trades?accountId=10001&nftData=0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085&orderHash=0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085&start=1567053142&end=1567053142&startId=1234&limit=50 HTTP/1.1
Host: api3.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://api3.loopring.io/api/v3/user/nft/trades\?accountId\=10001\&nftData\=0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085\&orderHash\=0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085\&start\=1567053142\&end\=1567053142\&startId\=1234\&limit\=50
Response fields
Field | Type | Required | Description | Example |
---|---|---|---|---|
totalNum | integer | Y | field.totalNum.description | 100 |
trades | List[List[string]] | Y | Trade info | "[["0","0","B UY","0","0", "LRC-USDT"," 0","0"]]" |
Response example
{
"totalNum" : 100,
"trades" : [["0","0","BUY","0","0","LRC-USDT","0","0"]]
}
Status code
Value | Description |
---|---|
100000 | Unknown error |
104001 | Empty ApiKey |
104002 | Invalid ApiKey |
104003 | Invalid Account ID |