跳到主要内容

闪兑

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

描述

闪兑

HTTP请求

  • POST /api/v2/convert/trade
请求示例
curl -X POST "https://api.bitget.com/api/v2/convert/trade" \
-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","cnvtPx":"0.0005226794534969","toCoinSize":"0.23206967","traceId":"1060321041546502144"}'

请求参数

参数名参数类型是否必须描述
fromCoinString询价币种
fromCoinSizeString询价币种数量
cnvtPriceString询价获取的结果
toCoinString目标币种
toCoinSizeString目标币种兑换数量
traceIdString询价单id,有效期8秒
返回示例
{
"code": "00000",
"data": {
"ts": "1688527221603",
"cnvtPrice": "0.00052268",
"toCoinSize": "0.23206967",
"toCoin": "ETH"
},
"msg": "success",
"requestTime": 1627293612502
}

返回参数

返回字段参数类型字段说明
toCoinString兑换币种
toCoinSizeString得到兑换币种数量
cnvtPriceString兑换价格
tsString兑换时间,Unix毫秒时间戳