Get NFT trade history
get nft trade history

EndPoint

/api/v3/user/nft/trades

Header

​
Field
Description
Example
X-API-KEY
ApiKey
"HlkcGxbqBeaF76j4rvPaOayfPwnkQ6B6DQ6THZWbvrGxzEdulXQvOKLrRWZLnN"

Request

​
Field
Description
Example
accountId
users accountId.
10001
nftData
(Optional) the nftData of the NFT token
"0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085"
orderHash
(Optional) NFT order hash
"0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085"
tradeHash
(Optional) NFT trade hash
"0xf7c932351186c3a9053f313eefa16209c018f7f1dba8aa8ca7100400f7c31085"
start
(Optional) Start time in milliseconds
1567053142000
end
(Optional) End time in milliseconds
1567053142000
startId
(Optional) The begin id of the query.
12
limit
(Optional) Number of records to return
20

Response

​
Field
Description
Example
totalNum
total number
100
trades
List[TradeInfo], Trade info
​
​

Model

TradeInfo

id, hash, sellOrderHash, buyOrderHash, price, nftData, amount, tokenid, feeTokenId, sellFeeAmount, buyFeeAmount, blockId, indexInBlock, sellAccountId, buyAccountId, sellStorageId, buyStorageId, createdAt, submitter_accountId

Example

Header

X-API-KEY = oiZ57EvM34rsHMRTjPElpZaFAt2fuKZNh6hOSELC5vRLnIvXuarRM8RuNr0apM2q

Request

GET api/v3/user/nft/trades
https://uat2.loopring.io/api/v3/user/nft/trades?accountId=12454

Response

{
"totalNum": 42,
"trades": [
[
"815",
"0x2d4dcc071cb511cca912574aecb0076ba57e057b0716efb849b62da50926aa57",
"0x199af4d4dcfbb7acae35d3b55a0ad99a0759f37dcef3388497e07008ec91a7d1",
"0x28b8415bd05dd7c68385e37870b6d9177cf7f8c2ba2e8ab151661114d546e799",
"1.00000000",
"0x1a2001aac7a1fd00cef07889cdb67b1355f86e5bc9df71cfa44fa1c7b49f598f",
"1",
"32768",
"1",
"100000000000000000",
"10000000000000000",
"0",
"0",
"12454",
"10488",
"54",
"64",
"1653635906103",
"86552"
]
]
}
​
Copy link
On this page
EndPoint
Header
Request
Response
Model
TradeInfo
Example
Header
Request
Response