跳至主要内容

獲取報價

HTTP 請求

GET /v5/fiat/reference-price

請求參數

參數是否必需類型說明
symboltrueinteger幣種交易對,例如 EUR-USDT

響應參數

參數類型說明
resultarray報價列表
> symbolstring幣種交易對
> fiatstring交易對中的法幣(例如:"EUR")
> cryptostring交易對中的加密貨幣(例如:"USDT")
> timestampstringUnix 時間戳
> buysarray買入報價列表
>> unitPricestring單價:1 crypto = x fiat
>> paymentMethodstring支付方式,fiatcrypto
> sellsayyar賣出報價列表
>> unitPricestring單價:1 crypto = x fiat
>> paymentMethodstring支付方式,fiatcrypto

請求示例

GET /v5/fiat/reference-price HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1720074159814
X-BAPI-RECV-WINDOW: 5000

響應示例

{
"retCode": 0,
"retMsg": "",
"result": {
"symbol": "EUR-USDT",
"fiat": "EUR",
"crypto": "USDT",
"timestamp": "1765181161",
"buys": [
{
"unitPrice": "0.8581",
"paymentMethod": "Cash Balance"
},
{
"unitPrice": "0.9297487",
"paymentMethod": "Credit Card"
},
{
"unitPrice": "0.9807915",
"paymentMethod": "Apple Pay"
},
{
"unitPrice": "0.8631747",
"paymentMethod": "Google Pay"
}
],
"sells": [
{
"unitPrice": "0.8581",
"paymentMethod": "Cash Balance"
},
{
"unitPrice": "0.9297487",
"paymentMethod": "Credit Card"
},
{
"unitPrice": "0.9807915",
"paymentMethod": "Apple Pay"
},
{
"unitPrice": "0.8631747",
"paymentMethod": "Google Pay"
},
{
"unitPrice": "0.8584759",
"paymentMethod": "SEPA"
}
]
}
}