Quote API
QuotePublicApi
GET Get Quote Summary
GET /api/v1/public/quote/getTicketSummary
Request Parameters
period
query
string
No
Summary period
Response Example
200 Response
Response
GET Query 24-Hour Quotes
GET /api/v1/public/quote/getTicker
Request Parameters
contractId
query
string
No
Contract ID
Response Example
200 Response
Response
GET Query Multi-Contract Quantitative K-Line
GET /api/v1/public/quote/getMultiContractKline
Request Parameters
contractIdList
query
string
No
Collection of Contract IDs
priceType
query
string
No
Price type
klineType
query
string
No
K-line type
size
query
string
No
Number to retrieve. Must be greater than 0 and less than or equal to 200
filterBeginKlineTimeInclusive
query
string
No
Query start time (if 0, means from current time). Returns in descending order by time
filterEndKlineTimeExclusive
query
string
No
Query end time
Request Example
Response Example
200 Response
Response
Response Data Structure
GET Query K-Line
GET /api/v1/public/quote/getKline
Request Parameters
contractId
query
string
No
Contract ID
priceType
query
string
No
Price type
klineType
query
string
No
K-line type
size
query
string
No
Number to retrieve. Must be greater than 0 and less than or equal to 1000
offsetData
query
string
No
Pagination offset. If empty, get the first page
filterBeginKlineTimeInclusive
query
string
No
Query start time (if 0, means from current time). Returns in descending order by time
filterEndKlineTimeExclusive
query
string
No
Query end time
Request Example
Response Example
200 Response
Response
GET Get Exchange Long Short Ratio
GET /api/v1/public/quote/getExchangeLongShortRatio
Request Parameters
range
query
string
No
If empty, return data with the smallest range
filterContractIdList
query
string
No
If empty, return data for all contracts
filterExchangeList
query
string
No
If empty, return data for all exchanges
Response Example
200 Response
Response
GET Query Order Book Depth
GET /api/v1/public/quote/getDepth
Request Parameters
contractId
query
string
No
Contract ID
level
query
string
No
Depth level. Currently 15 and 200 levels available
Response Example
200 Response
Response
Response Data Structure
Data Models
Depth List Response
code
string
false
none
Status code. "SUCCESS" for success, others for failures
errorParam
object
false
none
Parameter information in error messages
requestTime
string(timestamp)
false
none
Server request reception time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
Depth
startVersion
string(int64)
false
none
Start order book version number
endVersion
string(int64)
false
none
End order book version number
level
integer(int32)
false
none
Depth level
contractId
string(int64)
false
none
Contract ID
contractName
string
false
none
Contract name
depthType
string
false
none
Depth type
Enum Values
depthType
UNKNOWN_DEPTH_TYPE
depthType
SNAPSHOT
depthType
CHANGED
depthType
UNRECOGNIZED
Order Book Information
price
string(decimal)
false
none
Price
size
string(decimal)
false
none
Quantity
Kline Page Data Response
code
string
false
none
Status code. "SUCCESS" for success, others for failures
errorParam
object
false
none
Parameter information in error messages
requestTime
string(timestamp)
false
none
Server request reception time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
Kline List
nextPageOffsetData
string
false
none
Offset for the next page. If there is no next page, it's an empty string
K-Line
klineId
string(int64)
false
none
K-Line ID
contractId
string(int64)
false
none
Perpetual contract ID
contractName
string
false
none
Perpetual contract name
klineType
string
false
none
K-Line type
klineTime
string(int64)
false
none
K-Line time
priceType
string
false
none
Price type of the K-line
trades
string(int64)
false
none
Number of trades
size
string(decimal)
false
none
Volume
value
string(decimal)
false
none
Value
high
string(decimal)
false
none
High price
low
string(decimal)
false
none
Low price
open
string(decimal)
false
none
Opening price
close
string(decimal)
false
none
Closing price
makerBuySize
string(decimal)
false
none
Maker buy volume
makerBuyValue
string(decimal)
false
none
Maker buy value
Enum Values
klineType
UNKNOWN_KLINE_TYPE
klineType
MINUTE_1
klineType
MINUTE_5
klineType
MINUTE_15
klineType
MINUTE_30
klineType
HOUR_1
klineType
HOUR_2
klineType
HOUR_4
klineType
HOUR_6
klineType
HOUR_8
klineType
HOUR_12
klineType
DAY_1
klineType
WEEK_1
klineType
MONTH_1
klineType
UNRECOGNIZED
priceType
UNKNOWN_PRICE_TYPE
priceType
ORACLE_PRICE
priceType
INDEX_PRICE
priceType
LAST_PRICE
priceType
ASK1_PRICE
priceType
BID1_PRICE
priceType
OPEN_INTEREST
priceType
UNRECOGNIZED
Contract Kline Response
code
string
false
none
Status code. "SUCCESS" for success, others for failures
errorParam
object
false
none
Parameter information in error messages
requestTime
string(timestamp)
false
none
Server request reception time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
Multiple K-Lines for a Contract
contractId
string(int64)
false
none
Perpetual contract ID
Ticker List Response
code
string
false
none
Status code. "SUCCESS" for success, others for failures
errorParam
object
false
none
Parameter information in error messages
requestTime
string(timestamp)
false
none
Server request reception time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
24-Hour Quotes
contractId
string(int64)
false
none
Contract ID
contractName
string
false
none
Contract Name
priceChange
string(decimal)
false
none
Price change
priceChangePercent
string(decimal)
false
none
Price change percentage
trades
string(int64)
false
none
24-hour number of trades
size
string(decimal)
false
none
24-hour trading volume
value
string(decimal)
false
none
24-hour trading value
high
string(decimal)
false
none
24-hour high price
low
string(decimal)
false
none
24-hour low price
open
string(decimal)
false
none
24-hour opening price
close
string(decimal)
false
none
24-hour closing price
highTime
string(int64)
false
none
24-hour high price time
lowTime
string(int64)
false
none
24-hour low price time
startTime
string(int64)
false
none
24-hour quote start time
endTime
string(int64)
false
none
24-hour quote end time
lastPrice
string(decimal)
false
none
Latest trade price
indexPrice
string(decimal)
false
none
Current index price
oraclePrice
string(decimal)
false
none
Current oracle price
openInterest
string(decimal)
false
none
Open Interest
fundingRate
string
false
none
Current already settled funding rate
fundingTime
string(int64)
false
none
Funding rate settlement time
nextFundingTime
string(int64)
false
none
Next funding rate settlement time
Get Ticker Summary Response
code
string
false
none
Status code. "SUCCESS" for success, others for failures
errorParam
object
false
none
Parameter information in error messages
requestTime
string(timestamp)
false
none
Server request reception time
responseTime
string(timestamp)
false
none
Server response return time
traceId
string
false
none
Call trace ID
Ticker Summary List
Ticker Summary
period
string
false
none
Summary period
trades
string
false
none
Total exchange number of trades
value
string
false
none
Total traded value
openInterest
string
false
none
Current total open interest
Enum Values
period
UNKNOWN_PERIOD
period
LAST_DAY_1
period
LAST_DAY_7
period
LAST_DAY_30
period
UNRECOGNIZED
Last updated