跳到主要内容

获取询价

限速规则 10次/1s (UID)

描述

获取询价

HTTP请求

  • POST /api/v2/convert/quoted-price
请求示例
curl -X POST "https://api.bitget.com/api/v2/convert/quoted-price" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \ -d \'{"fromCoin": "USDT","fromCoinSize":"444","toCoin":"ETH"}'

请求参数

参数名参数类型是否必须描述
fromCoinString询价币种
fromCoinSizeString询价币种数量 fromCoinSize 和 toCoinSize 只允许同时传入一个
toCoinString目标币种
toCoinSizeString目标币种数量 fromCoinSize 和 toCoinSize 只允许同时传入一个
返回示例
{
"code": "00000",
"data": {
"fee": "0",
"fromCoinSize": "444",
"fromCoin": "USDT",
"cnvtPrice": "0.0005226794534969",
"toCoinSize": "0.23206967",
"toCoin": "ETH",
"traceId": "1060321041546502144"
},
"msg": "success",
"requestTime": 1627293612502
}

返回参数

返回字段参数类型字段说明
fromCoinString询价币种
fromCoinSizeString询价币种数量
cnvtPriceString闪兑价格
闪兑价格 = 询价币种价格 / 目标币种价格
toCoinString目标币种
toCoinSizeString目标币种数量
traceIdString询价单id
feeString手续费