获取币对价格
提供两个币种之间兑换的汇率,汇率更新频率为:4~6s
存币获取币对价格
POST /petty/getCoinRate
<Description of the endpoint>
请求头
名称
值
Content-Type
application/json
请求入参
{
"fromCoinContact": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"toCoinContact": "0x2170ed0880ac9a755fd29b2688956bd958",
"fromCoinNetwork": "ETH",
"toCoinNetwork": "BSC",
"depositCoinAmt": "0.1"
}请求入参说明
名称
类型
是否必须
说明
fromCoinContact
String
是
存币币种合约
toCoinContact
String
是
接收币种合约
fromCoinNetwork
String
是
存币币种链名
toCoinNetwork
String
是
接受币种链名
depositCoinAmt
String
是
存币数量
source
String
是
渠道
返回参数
返回参数说明
字段
数据类型
备注
instantRate
String
即时汇率
depositMin
String
最低存储额
精确到小数点后六位
depositMax
String
最高存储额
精确到小数点后六位
bridgeFee
String
跨链费用
chainFee
String
链上所需gas费用
arrivalTime
String
预计兑换时间(单位秒)
Last updated