Get Premium Index Kline Data
/sapi/v1/index/market/history/linear_swap_premium_index_kline
Request type: GET
Signature verification: No
Interface permission: Read
Rate Limit: For public interface to get market data such as Get Kline data, Get Market Data Overview, Get Contract Information,Get market in-depth data, Get premium index Kline, Get real-time forecast capital rate kline, Get basis data, Get the last Trade of a Contract and so on: (1)For restful interfaces, products, (future, coin margined swap, usdt margined Contracts)800 times/second for one IP at most
Interface description: The interface supports cross margin mode and isolated margin mode.
Request Address
Online
Online (preferred by aws customers)
Request Parameter
contract_code
string
true
contract code
Case-Insenstive.Both uppercase and lowercase are supported.e.g. "BTC-USDT","ETH-USDT".
period
string
true
kline period
1min,5min, 15min, 30min, 60min,4hour,1day,1week,1mon
size
int
true
kline size
[1,2000]
Response Parameter
ch
string
true
data channel
eg: market.period
<data>
false
object
id
long
true
index kline id,the same as kline timestamp, kline start timestamp
vol
string
true
Trade Volume(Cont.) The value is 0
count
string
true
Order Quantity The value is 0
open
string
true
Opening Price
close
string
true
Closing Price, the price in the last kline is the latest order price
low
string
true
Lowest Price
high
string
true
Highest Price
amount
string
true
Trade Amount(Coin), The value is 0. )
trade_turnover
string
true
Transaction amount, the value is 0.
</data>
false
status
string
true
process status
"ok" , "error"
ts
long
true
timestamp of the response of the server, unit:millionseconds
Request Example
Response Example
Last updated