Tickers
Get latest information of the symbol
important
Have snapshot
and delta
types. If a key does not exist in the field, it means the value is not changed.
Push frequency: real-time
Topic:
tickers.{symbol}
Response Parameters
- Linear
Parameter | Type | Comments |
---|---|---|
topic | string | Topic name |
type | string | Data type. snapshot ,delta |
cs | integer | Cross sequence |
ts | number | The timestamp (ms) that the system generates the data |
data | array | Object |
> symbol | string | Symbol name |
> tickDirection | string | Tick direction |
> price24hPcnt | string | Percentage change of market price in the last 24 hours |
> lastPrice | string | Last price |
> prevPrice24h | string | Market price 24 hours ago |
> highPrice24h | string | The highest price in the last 24 hours |
> lowPrice24h | string | The lowest price in the last 24 hours |
> prevPrice1h | string | Market price an hour ago |
> markPrice | string | Mark price |
> indexPrice | string | Index price |
> openInterest | string | Open interest size |
> openInterestValue | string | Open interest value |
> turnover24h | string | Turnover for 24h |
> volume24h | string | Volume for 24h |
> nextFundingTime | string | Next funding timestamp (ms) |
> fundingRate | string | Funding rate |
> bid1Price | string | Best bid price |
> bid1Size | string | Best bid size |
> ask1Price | string | Best ask price |
> ask1Size | string | Best ask size |
Subscription Example
{
"op": "subscribe",
"args": [
"tickers.BTCUSDT"
],
"req_id": "test" // optional
}
Stream Example
- Linear
{
"topic": "tickers.BTCUSDT",
"type": "snapshot",
"data": {
"symbol": "BTCUSDT",
"tickDirection": "MinusTick",
"price24hPcnt": "0.017367",
"lastPrice": "17222.00",
"prevPrice24h": "16928.00",
"highPrice24h": "17281.50",
"lowPrice24h": "16915.00",
"prevPrice1h": "17238.00",
"markPrice": "17224.40",
"indexPrice": "17234.84",
"openInterest": "68795.534",
"openInterestValue": "1184961795.83",
"turnover24h": "1572429119.324499",
"volume24h": "91823.449",
"nextFundingTime": "1673280000000",
"fundingRate": "-0.000211",
"bid1Price": "17222.00",
"bid1Size": "220.358",
"ask1Price": "17222.50",
"ask1Size": "3.902"
},
"cs": 24988405605,
"ts": 1673273043686
}