Address
Receiving parameter
Submit
Example
curl -d /openApi/market/trade
Submit parameter
ParamName |
Y/N |
Type |
Example |
Description |
symbol |
Yes |
string |
BTC-USDT |
Trading Pair |
Return parameter
ParamName |
Y/N |
Type
|
Example |
Description |
errno |
Yes |
int |
0 |
Status code |
errmsg |
Yes |
success |
success |
Status information |
result |
Yes |
array |
see the example |
Return result |
RESULT instructions
ParamName |
Y/N |
Type |
Example |
Description |
ts |
Yes |
int |
1499184000 |
Data acquisition time |
symbol |
Yes |
string |
BTC-USDT |
Trading pair |
data |
Yes |
array |
See the example |
Transaction data |
DATA explanation
"data": [
{
"id": Deal id,
"price": Deal price,
"amount": Deal volume,
"direction": Direction,
"ts": Deal time
}
]
Return example
{
"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
}
]
}
}
{
"errno": 10010,
"errmsg": "Failed"
}
Comments
0 comments
Article is closed for comments.