Contract Market
K-Line
Title: PUBLIC@CONTRACT_KLINE?SYMBOL&PERIOD
Module | Type | Resource Isolation Type |
Contract Market(CONTRACT_MARKET) | Query(QUERY) | Trading Pair(SYMBOL) |
Subscription Parameters
Name | Description | Example Value |
SYMBOL | Trading Pair | BTC/USDT, etc. Please use the RestAPI contract trading pair configuration interface to retrieve all supported trading pairs |
PERIOD | Candlestick Interval | 1MIN:1-minute candlestick, 5MIN:5-minute candlestick, 15MIN:15-minute candlestick, 30MIN:30-minute candlestick, 60MIN:1-hour candlestick,4HOUR:4-hour candlestick,1DAY:daily candlestick,1MON:monthly candlestick |
Message Parameters
Name | Type | Description |
id | Long | id,same as time |
t | Long | Candlestick ID |
a | BigDecimal | Trading volume in base currency |
ct | Long | Number of trades |
o | BigDecimal | Opening price in this period |
c | BigDecimal | Closing price in this period |
l | BigDecimal | Lowest price in this period |
h | BigDecimal | Highest price in this period |
v | BigDecimal | Trading volume in quote currency |
s | BigDecimal | Trading Pair |
p | String | Candlestick interval |
Subscription Example
Message Notification Example
Trade Records
Title: PUBLIC@CONTRACT_TRADE?SYMBOL
Module | Type | Resource Isolation Type |
Contract Market(CONTRACT_MARKET) | Query(QUERY) | Trading Pair(SYMBOL) |
Subscription Parameters
Name | Description | Example Value |
SYMBOL | Trading Pair | BTC/USDT, etc. Please use the RestAPI contract trading pair configuration interface to retrieve all supported trading pairs |
Message Parameters
Name | Type | Description |
s | String | Trading Pair |
t | Long | Timestamp |
a | BigDecimal | Trade Quantity |
p | BigDecimal | Trade Price |
d | String | Trading direction:BUY,SELL |
Subscription Example
Message Notification Example
Depth
Title: PUBLIC@CONTRACT_DEPTH?SYMBOL&DEPTH
Module | Type | Resource Isolation Type |
Contract Market(CONTRACT_MARKET) | Query(QUERY) | Trading Pair(SYMBOL) |
Subscription Parameters
Name | Description | Example Value |
SYMBOL | Trading Pair | BTC/USDT, etc. Please use the RestAPI contract 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 | Trading Pair |
t | Long | Generation Time |
bids | Array | Buy Orders |
|a | BigDecimal | Quantity |
|p | BigDecimal | Price |
asks | Array | Sell Orders |
|a | BigDecimal | Quantity |
|p | BigDecimal | Price |
Subscription Example
Message Notification Example