指数行情
GET🌐 Public
获取一个或多个符号的指数价格与标记价格。仅合约符号会返回标记价格。
| 选项 | 示例 |
|---|---|
| 不带参数 | /ticker/indices |
| symbol | /ticker/indices?symbol=BTC-PERP-USDT |
| symbols | /ticker/indices?symbols=["BTC-PERP-USDT","ETH-PERP-USDT"] |
| types | /ticker/indices?types=["Spot","FuturesTimeBased"] |
请求参数
| 名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| symbol | String | 否 | 符号 |
| symbols | String | 否 | 多个符号 |
| types | String | 否 | 多个类型 |
响应内容
| 名称 | 类型 | 描述 |
|---|---|---|
| symbol | String | 符号名称 |
| indexPrice | String | 指数价格;不可用时为 0 |
| markPrice | String | 标记价格(仅合约);不可用时为 0 |
example
GET
https://api.btse.com/public-api/market/v1/ticker/indicesResponse
{
"success": true,
"code": 1,
"msg": "Success",
"time": 1624989977940,
"data": [
{
"symbol": "BTC-USD",
"indexPrice": "100000.7100000"
},
{
"symbol": "BTC-PERP-USDT",
"indexPrice": "29647.7100000",
"markPrice": "29649.9000000"
}
]
}