价格信息
所有价格
获取所有交易对的价格信息(指数价格、标记价格、最新价、资金费率)。
接口信息
- 方法:
GET - 路径:
/fapi/v1/prices
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
| code | integer | 状态码 |
| message | string | 返回消息 |
| data | array | 价格列表 |
| data[].symbol | string | 交易对 |
| data[].index_price | string | 指数价格(多交易所加权平均) |
| data[].mark_price | string | 标记价格(用于未实现盈亏与强平计算) |
| data[].last_price | string | 最新成交价 |
| data[].funding_rate | string | 当前资金费率(6 位小数,正数多方付空方) |
| data[].next_funding_time | integer | 下次资金费率结算时间(毫秒,每 8 小时) |
| data[].price_precision | integer | 价格精度 |
| data[].qty_precision | integer | 数量精度 |
| data[].timestamp | integer | 价格数据时间戳(毫秒) |
响应示例
{
"code": 0,
"message": "success",
"data": [
{
"symbol": "BTC_USDT",
"index_price": "68500.00",
"mark_price": "68510.00",
"last_price": "68520.00",
"funding_rate": "0.000100",
"next_funding_time": 1712534400000,
"price_precision": 1,
"qty_precision": 3,
"timestamp": 1711929600000
}
]
}
完整价格信息
一次性获取指定交易对的指数价格、标记价格、最新成交价和资金费率。
接口信息
- 方法:
GET - 路径:
/fapi/v1/complete_price
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
| code | integer | 状态码(7000=参数错误,7001=交易对不存在,7002=内部错误) |
| message | string | 返回消息 |
| data.symbol | string | 交易对 |
| data.index_price | string | 指数价格 |
| data.mark_price | string | 标记价格 |
| data.last_price | string | 最新成交价 |
| data.funding_rate | string | 当前资金费率 |
| data.next_funding_time | integer | 下次资金费率结算时间(毫秒) |
| data.price_precision | integer | 价格精度 |
| data.qty_precision | integer | 数量精度 |
| data.timestamp | integer | 响应生成时间戳(毫秒) |
响应示例
{
"code": 0,
"message": "success",
"data": {
"symbol": "BTC_USDT",
"index_price": "68500.00",
"mark_price": "68510.00",
"last_price": "68520.00",
"funding_rate": "0.000100",
"next_funding_time": 1712534400000,
"price_precision": 1,
"qty_precision": 3,
"timestamp": 1711929600000
}
}