Get user trade history

流量控制: 5 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v3/user/trades

功能

Get user trade history.

API 描述


HTTP头

字段 类型 必须 说明 举例
X-API-KEY string ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

请求参数

字段 类型 必须 说明 举例
accountId integer Account ID, some hash query APIs doesnt need it if in hash query mode, check require flag of each API to see if its a must. 1
market string Trading pair "LRC-ETH"
orderHash string Order hash "0x9d114267e8
b261457d5670
93c13cf3deea
5f14c9235be2
6c6fa833dba1
2a9632"
offset integer Number of records to skip 1
limit integer Number of records to return 50
fromId integer The begin id of the query 1
fillTypes string request.getUserTxs.fillTypes
取值范围 : ['dex', 'amm']
"dex"

请求示例

HTTP
CURL
GET https://api3.loopring.io/api/v3/user/trades?accountId=1&market=LRC-ETH&orderHash=0x9d114267e8b261457d567093c13cf3deea5f14c9235be26c6fa833dba12a9632&offset=1&limit=50&fromId=1&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
X-API-KEY: sra1aavfa
curl -H "X-API-KEY:sra1aavfa" https://api3.loopring.io/api/v3/user/trades\?accountId\=1\&market\=LRC-ETH\&orderHash\=0x9d114267e8b261457d567093c13cf3deea5f14c9235be26c6fa833dba12a9632\&offset\=1\&limit\=50\&fromId\=1\&fillTypes\=dex

响应字段

字段 类型 必须 说明 举例
totalNum integer Total number of tradings 100
trades List[List[string]] field.marketTrades.trades "[["0","0","B
UY","0","0",
"LRC-USDT","
0","accountI
d","tokenId"
, "storageId"]
]"

响应示例

{
  "totalNum" : 100,
  "trades" : [["0","0","BUY","0","0","LRC-USDT","0","accountId","tokenId", "storageId"]]
}

状态码

状态码 描述
100000 Unknown error
104001 Empty ApiKey
104002 Invalid ApiKey
104003 Invalid Account ID

results matching ""

    No results matching ""