GET/v1/api/trades
URL:
https://api.crossexchange.io/GET/v1/api/trades?pair=ETH_USDT&count=10
Request filed:
pair | The name of a transactions pair to request. eg.ETH_USDT | String |
count | The amount of item list to request. | Integer |
Response:
{
"code": 0,
"data": [
[
"-464842139671119872",
"0.010000",
"62.0000",
"1530868602446",
"false"
],
[
"464842139671119872",
"0.010000",
"62.0000",
"1530868602446",
"false"
],
],
"channel": "trades",
"pair": "ETH_USDT"
}
code |
Response status, 0 is success, other is fail. |
data |
Trade ID Price Volume Time The side of buy or sell. true - buy / false - sell |
channel |
ticker | depth | Kline | trades |
pair |
Pair name |
Error:
{"code":-1,"msg":"fail"}
code |
response status, 0 is success, other is fail. |
msg |
error massage |