Skip to content

Query Index Price

Get the Mark Price

Address/openApi/contract/index

Parameters Received

required

Submission method: GET

Example

curl -d /openApi/contract/index

Submission Parameters

Parameter Name Required Type Example Description
symbol No string BTC-USDT Trading pair, if not passed, all are returned

Return Parameters

Parameter Name Required Type Example Description
errno Yes int 0 Status code
errmsg Yes success success Status Information
result Yes object see example list

result Parameters Explanation

Parameter Name Required Type Example Description
symbol Yes string BTC-USDT trading pair
price Yes string 7865.23 Marking Price
ts Yes long 1587925500000 time

Return Example

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