Query Market Transactions
Address/openApi/contract/trade
Receive parameters
Submission Method: GET
Example
curl -d /openApi/contract/trade
Submission Parameters
Parameter Name |
Required |
Type |
Example |
Description |
symbol |
Yes |
string |
BTC-USDT |
Trading Pair |
size |
No |
int |
150 |
Number of items to fetch, range: [1,2000] |
Return Parameters
Parameter Name |
Required |
Type |
Example |
Description |
errno |
Yes |
int |
0 |
Status code |
errmsg |
Yes |
success |
success |
Status Information |
result |
Yes |
array |
See example |
Return results |
result description
Parameter Name |
Required |
Type |
Example |
Description |
ts |
Yes |
long |
1499223904680 |
Data acquisition time |
symbol |
Yes |
string |
BTC-USDT |
Trading Pair |
data |
Yes |
array |
See example |
Transaction Data |
result -> data description
Parameter Name |
Required |
Type |
Example |
Description |
id |
Yes |
long |
17592256642623 |
Transaction ID |
price |
Yes |
string |
1997 |
Transaction Price |
amount |
Yes |
string |
0.04 |
Transaction volume |
direction |
Yes |
string |
buy |
Transaction direction (buy/sell) |
ts |
Yes |
long |
1502448920105 |
Transaction timestamp |
Return Example
JSON{
"errno": 0,
"errmsg": "success",
"result": {
"symbol": "EOS-USDT",
"ts": "1499223904680",
"data": [{
"id": 17592256642623,
"amount": "0.04",
"price": "1997",
"direction": "buy",
"ts": 1502448920106
},
{
"id": 17592256642622,
"amount": "0.04",
"price": "1997",
"direction": "sell",
"ts": 1502448920105
}
]
}
}