Spot Market Trends
Spot K-Line
Title: PUBLIC@SPOT_KLINE?<SYMBOL>&<PERIOD>
| Module | Type | Resource Isolation Type |
| Spot market (SPOT_MARKET) | Query (QUERY) | Trading Pair (SYMBOL) |
Subscription Parameters
| Parameter Name | Description | Example Value |
| SYMBOL | Trading Pair Name | BTC/USDT, etc. Please use the RestAPI spot trading pair configuration interface to retrieve all supported trading pairs |
| PERIOD | Candlestick Interval | MIN1: 1-minute candlestick; MIN5: 5-minute candlestick; MIN15: 15-minute candlestick; MIN30: 30-minute candlestick; MIN60: 1-hour candlestick; HOUR4: 4-hour candlestick; DAY1: daily candlestick; MON1: monthly candlestick; |
消息参数
| Name | Type | Description |
| id | Long | id,same as time |
| t | Long | Candlestick ID |
| a | Decimal | Trading volume in base currency |
| ct | Long | Number of trades |
| o | Decimal | Opening price in this period |
| c | Decimal | Closing price in this period |
| l | Decimal | Lowest price in this period |
| h | Decimal | Highest price in this period |
| v | Decimal | Trading volume in quote currency |
| s | String | Trading pair |
| p | KlinePeriodEnum | Candlestick interval |
Subscription Example
Message Notification Example
Spot Trade Records
Title: PUBLIC@SPOT_TRADE?<SYMBOL>
| Module | Type | Resource Isolation Type |
| SPOT_MARKET | Query (QUERY) | Trading pair (SYMBOL) |
Subscription Parameters
| Parameter Name | Description | Example Value |
| SYMBOL | Trading Pair Name | BTC/USDT, etc. Please use the RestAPI spot trading pair configuration interface to retrieve all supported trading pairs |
Message Parameters
| Name | Type | Description |
| s | String | Trading pair |
| t | Long | Timestamp |
| a | Decimal | Trade Quantity |
| p | Decimal | Trade Price |
| d | String | buy (buying), sell (selling) |
订阅示例
Subscription Example
Message Notification Example
Title: PUBLIC@SPOT_TICKER?<SYMBOL>
| Module | Type | Resource Isolation Type |
| SPOT_MARKET | Query(QUERY) | Trading pair(SYMBOL) |
Subscription Parameters
| Parameter Name | Description | Example Value |
| SYMBOL | Trading Pair Name | BTC/USDT, etc. Please use the RestAPI spot trading pair configuration interface to retrieve all supported trading pairs |
Message Parameters
| Name | Type | Description |
| s | String | Trading pair |
| id | Long | id,same as time |
| o | Decimal | Opening price in this period |
| c | Decimal | Closing price in this period |
| l | Decimal | Lowest price in this period |
| h | Decimal | Highest price in this period |
| ct | Long | Trade quantity |
| v | Decimal | Trade volume |
| a | Decimal | Trade amount |
| ver | Long | Version number |
| bid | | Buy One |
| ask | | Sell One |
Subscription Example
Message Notification Example
Depth Update Notification
Title: PUBLIC@SPOT_DEPTH?<SYMBOL>&<DEPTH>
| Module | Type | Resource Isolation Type |
| SPOT_MARKET | Query(QUERY) | Trading pair(SYMBOL) |
Subscription Parameters
| Parameter Name | Description | Example Value |
| SYMBOL | Trading Pair Name | BTC/USDT, etc. Please use the RestAPI spot trading pair configuration interface to retrieve all supported trading pairs |
| DEPTH | Depth Level | DEPTH_5: 5 levels of depth; DEPTH_10: 10 levels of depth; DEPTH_20: 20 levels of depth; DEPTH_50: 50 levels of depth |
Message Parameters
| Name | Type | Description |
| s | String | Currency Pair |
| t | Long | Generation Time |
| bids | Array | Buy Orders |
| | a | Decimal | Quantity |
| | p | Decimal | Price |
| asks | Array | Sell Orders |
| | a | Decimal | Quantity |
| | p | Decimal | Price |
Subscription Example
Message Notification Example
Bid and Ask Update Notification
Title: PUBLIC@SPOT_DEPTH_FIRST?<SYMBOL>
| Module | Type | Resource Isolation Type |
| SPOT_MARKET | Query(QUERY) | Trading pair(SYMBOL) |
Subscription Parameters
| Parameter Name | Description | Example Value |
| SYMBOL | Trading Pair Name | BTC/USDT, etc. Please use the RestAPI spot trading pair configuration interface to retrieve all supported trading pairs |
Message Parameters
| Name | Type | Description |
| s | String | Currency Pair |
| t | Long | Generation Time |
| bids | Arryy | Buy Orders |
| | a | Decimal | Quantity |
| | p | Decimal | Price |
| asks | Array | Sell Orders |
| | a | Decimal | Quantity |
| | p | Decimal | Price |
Subscription Example
Message Notification Example
Spot Market Summary Update Notification
Title : PUBLIC@SPOT_MARKET_DETAIL?<SYMBOL>
| Module | Type | Resource Isolation Type |
| SPOT_MARKET | Query(QUERY) | Trading pair(SYMBOL) |
Subscription Parameters
| Parameter Name | Description | Example Value |
| SYMBOL | Trading Pair Name | BTC/USDT, etc. Please use the RestAPI spot trading pair configuration interface to retrieve all supported trading pairs |
Message Parameters
| Name | Type | Description |
| s | String Currency | Pair |
| id | Long | ID |
| o | Decimal | Opening Price |
| c | Decimal | Closing Price |
| l | Decimal | Lowest Price |
| h | Decimal | Highest Price |
| ct | Long | Trade Quantity |
| v | Decimal | Trade Volume |
| a | Decimal | Trade Amount |
| ver | Long | Version Number |
| bid | Array | Buy Orders |
| a | Decimal | Quantity |
| p | Decimal | Price |
| ask | Array | Sell Orders |
| a | Decimal | Quantity |
| p | Decimal | Price |
Subscription Example
Message Notification Example