Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

获取所有报价

简要描述
获取所有可用的报价信息


请求URL
${baseUrl}/tf/v4/quotes/all


请求方式

  • 方法:POST
  • Content-Type: application/json

请求参数

参数名必选类型说明
currencystring资金来源币种,如 USD。可通过余额查询获知持有的货币类型。

返回示例

{
    "rates": [
        {
            "input": "USD",
            "output": "EUR",
            "rate": 0.840138
        },
        {
            "input": "USD",
            "output": "AUD",
            "rate": 1.521811
        },
        {
            "input": "USD",
            "output": "BDT",
            "rate": 122.5773
        }
    ],
    "lastUpdateTime": 1753683680263
}

返回参数说明

参数名称示例说明类型
data响应数据json
msg操作成功响应消息string
status200响应码int
successtrue是否成功bool

data 信息说明

参数名称示例说明
inputUSD输入币种
outputCNY输出币种
rate6.402552报价率