Skip to content

Query Market Trades

Address/openApi/market/trade

Submission Method: GET

Example

curl -d /openApi/market/trade

Submission Parameters

Parameter Name Required Type Example Description
symbol Yes string BTC-USDT Trading Pair
size No int 150 Number of items to retrieve, range: [1,2000]

Return Parameters

Parameter Name Required Type Example Description
errno Yes int 0 Status code
errmsg Yes success success Status message
result Yes array See example Return results

Result Description

Parameter Name Required Type Example Description
ts Yes int 1499184000 Data Retrieval Time
symbol Yes string BTC-USDT Trading Pair
data Yes array See example Transaction data

Data Description

JSON
    "data": [
      {
        "id": transaction id,
        "price": Transaction price,
        "amount": Volume,
        "vol": Volume,
        "direction": Initiator transaction direction,
        "ts": Transaction Time
      }
    ]

Return Example

JSON
{
  "errno": 0,
  "errmsg": "success",
  "result": {
    "symbol": "EOS-USDT",
    "ts": "1499223904680",
    "data": [
      {
        "id": 17592256642623,
        "amount": 0.04,
        "price": 1997,
        "vol": 79.88,
        "direction": "buy",
        "ts": 1502448920106
      },
      {
        "id": 17592256642622,
        "amount": 0.04,
        "price": 1997,
        "vol": 79.88,
        "direction": "sell",
        "ts": 1502448920105
      }
    ]
  }
}
JSON
{
    "errno":10010,
    "errmsg":"Failed"
}