1. FX
Infinia API
  • Infinia E-commerce API
    • Introduction
    • API overview
    • Request and Response parameters
    • Encryption and Decryption
    • Account Binding
      • Account Binding
      • Account Binding Status Query
    • Trade Details
      • Trade details upload
      • Trade Details Upload Status Query
    • Query
      • Platform Account Balance Query
      • Seller's Available Revenue Share Query
      • Daily Revenue Sharing Download
    • Revenue Sharing
      • V2 FX Revenue Sharing
      • V2 FX Revenue Sharing Status Query
      • V1 Revenue Sharing
      • V1 Revenue Sharing Status Query
    • FX
      • Real-time rate
        POST
    • Webhook
      • Seller status notification
    • Appendix
      • System Code
      • Product types
      • CipherRsaUtil.java
      • Templates: Trade_details.csv
      • Templates: Trade_details_error_file.csv
      • Templates: Revenue _sharing_statement.csv
      • Log
    • Schemas
      • Schemas
        • ErrorBody
        • AccountBindingRequestData
        • AccountBindingResponseData
        • AccountBindingQueryRequestData
        • AccountBindingQueryResponseData
        • TradeDetailsUploadStatusRequestData
        • TradeDetailsUploadStatusResponseData
        • AccountBalanceQueryRequestData
        • AccountBalanceQueryResponseData
        • AvailableRevenueQueryRequestData
        • AvailableRevenueQueryResponseData
        • RevenueSharingRequestData
        • RevenueSharingResponseData
        • RevenueSharingStatusQueryRequestData
        • RevenueSharingStatusQueryResponseData
  • Infinia Payment API
    • Merchant
      • Merchant SignUp
      • Merchant Query
      • Merchant Webhook
    • Beneficiary
      • Beneficiary Create
      • Beneficiary Update
      • Beneficiary Query
      • Beneficiary Delete
      • Beneficiary Webhook
    • Payment
      • Payment Quote
      • Payment Fund
      • Payment Query
      • Payment Webhook
    • Account
      • Account Balance
  • Infinia 结汇付款 API
    • 客户实名认证
      • 客户实名认证
      • 客户实名认证状态查询
    • 结汇入账
      • 制单请求
    • 提现
      • 提现
    • 资金查询
      • 资金状态查询
    • 商户回调(示例路径)
      • 实名认证状态异步通知
      • 入账异步通知
      • 结汇成功/失败异步通知
      • 提现到账异步通知
    • Schemas
      • 统一加密请求公共字段
      • 统一加密响应公共字段
      • RSA 加密传输值
      • 实名认证申请请求报文
      • 实名认证申请响应报文
      • 实名认证状态查询请求报文
      • 实名认证状态查询响应报文
      • 制单请求报文
      • 制单响应报文
      • 提现请求报文
      • 提现响应报文
      • 资金状态查询请求报文
      • 资金状态查询响应报文
      • 实名认证状态回调请求报文
      • 入账状态回调请求报文
      • 结汇状态回调请求报文
      • 提现状态回调请求报文
      • 实名认证申请明文请求(中国大陆企业)
      • 日期或长期
      • 最终受益人
      • 实名认证申请明文响应
      • 实名认证状态查询明文请求
      • 实名认证状态查询明文响应
      • 实名认证状态回调明文请求
      • SFTP 交易明细 CSV 行
      • 制单明文请求
      • 制单明文响应
      • 入账状态回调明文请求
      • 结汇状态回调明文请求
      • 提现明文请求
      • 提现明文响应
      • 提现状态回调明文请求
      • 资金状态查询明文请求
      • 资金状态查询明文响应
  1. FX

Real-time rate

POST
v1/rate/queryRates
Description:
Retrieve the real-time foreign exchange rate from Infinia system.
The user can either specify a baseCurrency & quoteCurrency pair or leave them empty to return all supported currency pairs.
Version
1.0.0

Request

Body Params application/json

Example
The request must satisfy one of the following conditions: 
️1. Both baseCurrency and quoteCurrency are provided → return the specified currency pair
2. Both parameters are omitted → return all supported currency pairs

If only one parameter is provided, the request is invalid.


With specified currency pair:
{
    "requestNo": "7dea94e9-d3e4-11f0-bb0c-00163e0a0234",
    "baseCurrency": "USD",
    "quoteCurrency": "CNH"
}


Without specified currency pair:
{
    "requestNo": "7dea94e9-d3e4-11f0-bb0c-00163e0a0234"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'v1/rate/queryRates' \
--header 'Content-Type: application/json' \
--data 'The request must satisfy one of the following conditions: 
️1. Both baseCurrency and quoteCurrency are provided → return the specified currency pair
2. Both parameters are omitted → return all supported currency pairs

If only one parameter is provided, the request is invalid.


With specified currency pair:
{
    "requestNo": "7dea94e9-d3e4-11f0-bb0c-00163e0a0234",
    "baseCurrency": "USD",
    "quoteCurrency": "CNH"
}


Without specified currency pair:
{
    "requestNo": "7dea94e9-d3e4-11f0-bb0c-00163e0a0234"
}'

Responses

🟢200成功
application/json
Bodyapplication/json

Example
With specified currency pair:
{
    "rateList": [
        {
            "baseCurrency": "EUR",
            "quoteCurrency": "CNH",
            "rate": 0.086600
        }
    ],
    "requestNo": "7dea94e9-d3e4-11f0-bb0c-00163e0a0234"
}
Without specified currency pair:
{
    "rateList": [
        {
            "baseCurrency": "CNH",
            "quoteCurrency": "CNH",
            "rate": 1
        },
        {
            "baseCurrency": "GBP",
            "quoteCurrency": "CNH",
            "rate": 9.360300
        },
        {
            "baseCurrency": "HKD",
            "quoteCurrency": "CNH",
            "rate": 0.908600
        },
        {
            "baseCurrency": "USD",
            "quoteCurrency": "CNH",
            "rate": 7.068300
        },
        {
            "baseCurrency": "EUR",
            "quoteCurrency": "CNH",
            "rate": 8.188400
        }
    ],
    "requestNo": "7dea94e9-d3e4-11f0-bb0c-00163e0a0234"
}
Modified at 2026-04-21 11:16:33
Previous
V1 Revenue Sharing Status Query
Next
Seller status notification
Built with