Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

exchangeRates

Returns the USD value of USDC and USDT, and a list of display currencies quoted against 1 USD. Use it to show balances and PnL in USD or a local currency. There is no request body besides type.

POST/infotype exchangeRates

Convert USDC amounts to USD or a local fiat currency for display.

Request body
typestringrequired

Must be `exchangeRates`.

"exchangeRates"
Request example
curl -X POST https://rpc.txflow-testnet.xyz/info \
  -H "Content-Type: application/json" \
  -H "x-api-version: 2026-08-16" \
  -d '{
  "type": "exchangeRates"
}'
Try it
POST https://rpc.txflow-testnet.xyz/info
Response 200
codeinteger

`0` on success.

dataobject
fiatobject[]

Display currencies, each quoted against 1 USD.

usdcUsdstring

USD value of 1 USDC. Multiply a USDC amount by this to show it in USD.

usdtUsdstring

USD value of 1 USDT.

successboolean

`false` on error, with `code` set and the text in `message` instead of `data`.

Response example
{
  "success": true,
  "code": 0,
  "data": {
    "usdcUsd": "0.99973725",
    "usdtUsd": "0.9989355",
    "fiat": [
      {
        "name": "USD",
        "rate": "1",
        "symbol": "quot;,
        "fullName": "US Dollar",
        "precision": "0.01"
      }
    ]
  }
}

To display a USDC amount in a fiat currency, multiply by usdcUsd, then by that currency's rate, and round to its precision. The rates change slowly; refreshing every few minutes is enough.