跳至主要内容

獲取指數價格組成

HTTP 請求

GET /v5/market/index-price-components

請求參數

參數是否必需類型說明
indexNametruestring指數名稱,例如 BTCUSDT

響應參數

參數類型說明
indexNamestring指數名稱(例如 BTCUSDT)
lastPricestring指數的最新價格
updateTimestring最近更新的時間戳,單位為毫秒
componentsarray構成指數價格的組成部分列表
> exchangestring交易所名稱
> spotPairstring交易所的現貨交易對(例如 BTCUSDT)
> equivalentPricestring等效價格
> multiplierstring用於計算價格的乘數
> pricestring實際價格
> weightstring指數計算中的權重

請求示例

GET /v5/market/index-price-components?indexName=1000BTTUSDT HTTP/1.1  
Host: api-testnet.bybit.com

響應示例

{  
"retCode": 0,
"retMsg": "",
"result": {
"indexName": "1000BTTUSDT",
"lastPrice": "0.0006496",
"updateTime": "1758182745072",
"components": [
{
"exchange": "GateIO",
"spotPair": "BTT_USDT",
"equivalentPrice": "0.0006485",
"multiplier": "1000",
"price": "0.0006485",
"weight": "0.1383220862762299"
},
{
"exchange": "Bybit",
"spotPair": "BTTUSDT",
"equivalentPrice": "0.0006502",
"multiplier": "1000",
"price": "0.0006502",
"weight": "0.0407528429737999"
},
{
"exchange": "Bitget",
"spotPair": "BTTUSDT",
"equivalentPrice": "0.000648",
"multiplier": "1000",
"price": "0.000648",
"weight": "0.1629044859431618"
},
{
"exchange": "BitMart",
"spotPair": "BTT_USDT",
"equivalentPrice": "0.000649",
"multiplier": "1000",
"price": "0.000649",
"weight": "0.0432327388538453"
},
{
"exchange": "Binance",
"spotPair": "BTTCUSDT",
"equivalentPrice": "0.00065",
"multiplier": "1000",
"price": "0.00065",
"weight": "0.5322401401714303"
},
{
"exchange": "Mexc",
"spotPair": "BTTUSDT",
"equivalentPrice": "0.0006517",
"multiplier": "1000",
"price": "0.0006517",
"weight": "0.0825477057815328"
}
]
},
"retExtInfo": {},
"time": 1758182745621
}