Partner Support
User Flows
General API
- Builder Info
- System Info
- USDC Faucet
User API
- Registration
- Key Management
- Account/User Info
- Account Notifications
- Account Config
- Delegate Signer
- Sub-account
Trading API
- Order Management
- Liquidations
- Assets/Withdraw/Settle PnL
- Positions
- Funding
Rewards API
- Trading Rewards
- Market Making Rewards
Staking & Valor API
- Staking
- Valor
Builder API
- User Data
- Trading Campaigns
- Fee Setting
- Referral Program
Market Data API
- TradingView
- Funding Rates
- Market Info
Websocket API
- Introduction
- PING/PONG
- Authentication
- Error Response
- Public Market Data
- Request orderbook
- Orderbook
- Order book update
- Trade
- 24h ticker
- 24h tickers
- 24h ticker by builder
- 24h tickers by builder
- bbo
- bbos
- k-line
- Market Price Changes Info
- Traders Open Interest
- Price for Small Charts
- Index price
- Index prices
- Mark price
- Mark prices
- Open interest
- Estimated funding rate
- Liquidation push
- System maintenance status
- Announcement
- Private User Data
Public Market Data
k-line
Copy
Ask AI
{
"id": "clientID6",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
Copy
Ask AI
{
"topic":"PERP_NEAR_USDC@kline_1m",
"ts":1618822432146,
"data":{
"symbol":"PERP_NEAR_USDC",
"type":"1m",
"open":15.97,
"close":14.76,
"high":16.97,
"low":14.06,
"volume":44.00947568,
"amount":2504584.9,
"startTime":1618822380000,
"endTime":1618822440000
}
}
Get the latest klines (OHLC) updates of the subscribed symbol.
Please note that for symbols with low trading activity, the kline might be generated through the mid price of the orderbook in addition to any executed trades on the platform.
{time}
: 1m
/5m
/15m
/30m
/1h
/1d
/1w
/1M
Push interval: 1s
Copy
Ask AI
{
"id": "clientID6",
"topic": "PERP_NEAR_USDC@kline_1m",
"event": "subscribe"
}
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | string | Y | id generate by client |
event | string | Y | subscribe /unsubscribe |
topic | string | N | {symbol}@kline_{time} |
Copy
Ask AI
{
"id": "clientID6",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
Copy
Ask AI
{
"topic":"PERP_NEAR_USDC@kline_1m",
"ts":1618822432146,
"data":{
"symbol":"PERP_NEAR_USDC",
"type":"1m",
"open":15.97,
"close":14.76,
"high":16.97,
"low":14.06,
"volume":44.00947568,
"amount":2504584.9,
"startTime":1618822380000,
"endTime":1618822440000
}
}
Copy
Ask AI
{
"id": "clientID6",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
Copy
Ask AI
{
"topic":"PERP_NEAR_USDC@kline_1m",
"ts":1618822432146,
"data":{
"symbol":"PERP_NEAR_USDC",
"type":"1m",
"open":15.97,
"close":14.76,
"high":16.97,
"low":14.06,
"volume":44.00947568,
"amount":2504584.9,
"startTime":1618822380000,
"endTime":1618822440000
}
}
Assistant
Responses are generated using AI and may contain mistakes.