Skip to content

Query 24-hour Market Data

Address/openApi/market/detail

Receiving parameters

Submission method: GET

Example

curl -d /openApi/market/detail

Submission Parameters

Parameter Name Required Type Example Description
symbol Yes string BTC-USDT Trading pair

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 result

result description

JSON
{
    "id": Response ID,
    "amount": Transaction volume in base currency,
    "count": 24-hour transaction count,
    "open": 24-hour opening price,
    "close": 24-hour closing price,
    "low": 24-hour lowest price,
    "high": 24-hour highest price,
    "vol": The trading volume measured in settlement currency
  }

Response Example

JSON
{
    "errno":0,
    "errmsg":"success",
    "result":{
        "id":1499184000,
        "amount":37593.0266,
        "count":1234,
        "open":1935.2,
        "close":1879,
        "low":1856,
        "high":1940,
        "vol":71031537.978665
    }
}
JSON
{
    "errno":10010,
    "errmsg":"Failure"
}