资金接口/汇率查询

查询货币对的交易汇率

post

bizType=fund.app.FundExchangeRateQueryService.getTradeExchangeRate version: 0.0.1 查询货币对的交易汇率

Header parameters
versionstringRequiredExample: 0.0.1
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
companyIdstringOptional

公司ID

tracestringRequired

跟踪码

ipstringOptional

IP

langstringOptional

语言

sourceCurrencystringRequired

源货币编码

targetCurrencystringRequired

目标货币编码

Responses
200Success
application/json
post
/global/fund.app.FundExchangeRateQueryService.getTradeExchangeRate
POST /api/global/fund.app.FundExchangeRateQueryService.getTradeExchangeRate HTTP/1.1
Host: prewppc-3.cmfbl.com
version: text
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 109

{
  "companyId": "text",
  "trace": "text",
  "ip": "text",
  "lang": "text",
  "sourceCurrency": "text",
  "targetCurrency": "text"
}
200Success
{
  "code": "text",
  "msg": "text",
  "tm": "text",
  "trace": "text",
  "msgParams": "text",
  "data": {
    "rate": "text",
    "formulaSymbol": "text",
    "sourceDigits": 1,
    "targetDigits": 1,
    "sourceCurrency": "text",
    "targetCurrency": "text"
  },
  "ok": "text",
  "fail": "text"
}

批量查询货币对的存取款汇率

post

bizType=fund.app.FundExchangeRateQueryService.getExchangeRateList version: 0.0.1 批量查询货币对的存取款汇率 游客可访问

Header parameters
versionstringRequiredExample: 0.0.1
companyIdstringRequiredExample: {{company}}
tracestringRequiredExample: {{mock_trace}}
langstringRequiredExample: zh-CN
tokenstringOptionalExample: {{LoginResult.data.token}}
Body
companyIdinteger · int64Required

公司ID

tracestringOptional

跟踪码

ipstringOptional

操作ip

langstringOptional

请求语言

Responses
200Success
application/json
post
/global/fund.app.FundExchangeRateQueryService.getExchangeRateList
POST /api/global/fund.app.FundExchangeRateQueryService.getExchangeRateList HTTP/1.1
Host: prewppc-3.cmfbl.com
version: text
companyId: text
trace: text
lang: text
Content-Type: application/json
Accept: */*
Content-Length: 105

{
  "companyId": 1,
  "trace": "text",
  "ip": "text",
  "lang": "text",
  "currencies": [
    {
      "source": "text",
      "target": "text"
    }
  ]
}
200Success
{
  "bizCode": "text",
  "code": "text",
  "msg": "text",
  "tm": 1,
  "trace": "text",
  "msgParams": "text",
  "data": [
    {
      "rate": "text",
      "formulaSymbol": "text",
      "sourceDigits": 1,
      "targetDigits": 1,
      "sourceCurrency": "text",
      "targetCurrency": "text"
    }
  ],
  "ok": true,
  "fail": true
}

Last updated