Get Trading Pair Status Change Times
Description
- Queries the trading status of a specific trading pair and the next status switch time.
- Cached at startup and refreshed every minute. If cache switch time is greater than 0 and has expired, flip the status upon query, but the returned timestamp remains unchanged. When trading intervals are missing, return trading halt and 10 minutes after refresh check time, which is not necessarily the actual opening time. In HTTP JSON, lastDateTime is represented as a string. When originally set to empty, supportsLowLiquidity can be omitted.
HTTP Request
- POST
/api/v3/getTradingStatus - Supported Products:
linear - Rate Limit: 10 requests per second per IP
Request Parameters
| Parameter | Type | Description |
|---|---|---|
symbol | string | Trading pair. The value must match exactly. |
Response Parameters
| Response Field | Type | Description |
|---|---|---|
state | int32 | 1 for trading, 0 for closed. |
lastDateTime | string(int64) | Millisecond timestamp of the next status change. When state is 1, this is the closing time. When it is 0, this is the next opening time. Pairs without scheduled closures return "-1". |
supportsLowLiquidity | optional int32 | 1 if low liquidity is supported and 0 otherwise. Omitted when the underlying configuration is empty. |
Request Example
POST /api/v3/getTradingStatus HTTP/1.1
Host: openapi.lbank.com
Content-Type: application/json
{"symbol":"BTCUSDT"}
Response Example
{
"code": 200,
"message": "SUCCESS",
"data": {
"state": 1,
"lastDateTime": "-1",
"supportsLowLiquidity": 0
},
"extras": null
}