Skip to content

Query Index Price

Endpoint: /v1/futures/index_price

Request Parameters

Required

Method: GET

Example

Bash
curl -X GET "https://oapi.websea.com/v1/futures/index_price?symbol=BTC-USDT"

Query Parameters

Parameter Required Type Example Description
symbol No string BTC-USDT Trading pair. If omitted, data for all trading pairs will be returned

Response Parameters

Parameter Required Type Example Description
errno Yes int 0 Status code
errmsg Yes string success Status message
result Yes array See example Result list

Result Fields

Parameter Required Type Example Description
symbol Yes string BTC-USDT Trading pair
price Yes string 7865.23 Index price
ts Yes long 1587925500000 Timestamp

Response Example

JSON
{
    "errno": 0,
    "errmsg": "success",
    "result": [
        {
            "symbol": "BTC-USDT",
            "price": "7865.23",
            "ts": 1587925500000
        }
    ]
}