Skip to content

Query 24-Hour Ticker

Endpoint: /v1/spot/24kline

Request Method

GET

Description

Retrieve 24-hour market statistics for a specific spot trading pair.

Example

Bash
curl -X GET "https://oapi.websea.com/v1/spot/24kline?symbol=BTC-USDT"

Query Parameters

Retrieve 24-hour market statistics for a specific spot trading pair.

Query Parameters

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

Response Parameters

Parameter Required Type Example Description
errno Yes int 0 Status code
errmsg Yes string success Status message
result Yes object See example Result data

Result Fields Description

JSON
{
  "id": "Response ID",
  "amount": "Trading volume measured in base currency over the last 24 hours",
  "count": "Number of trades executed in the last 24 hours",
  "open": "Opening price over the last 24 hours",
  "close": "Closing price over the last 24 hours",
  "low": "Lowest price over the last 24 hours",
  "high": "Highest price over the last 24 hours",
  "vol": "Trading volume measured in quote currency over the last 24 hours"
}

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": "failed"
}