Get Swap Index Price Information

/sapi/v1/public/index

Request type: GET

Signature verification: No

Interface permission: Read

Rate Limit: For public interface used to get information of index, price limit, settlement, delivery, open positions and so on, the rate limit is 240 times every 3 second at most for each IP (this 240 times every 3 second public interface rate limit is shared by all the requests from that IP of non-marketing information, like above).

Interface description: The interface supports cross margin mode and isolated margin mode.

Request Address

Environment
Address

Online (preferred by aws customers)

Request Parameter

Parameter
Data Type
Required
Description
Value Range
Default Value

contract_code

string

false

Case-insenstive."BTC-USDT","ETH-USDT"...

Response Parameter

Parameter
Data Type
Required
Description
Value Range

status

string

true

Request Processing Result

"ok" , "error"

<data>

false

contract_code

string

true

contract code

"BTC-USDT","ETH-USDT"...

index_price

decimal

true

Index Price

index_ts

Long

true

Index time

trade_partition

stringtrue

true

Deprecated parameter

</data>

false

ts

long

true

Time of Respond Generation,Unit:Millisecond

Request Example

Response Example

Last updated