Skip to main content
POST
/
trading
/
rates
TypeScript
const response: Promise<FireblocksResponse<RatesResponse>> = fireblocks.tradingBeta.fetchRates(tradingBetaApiFetchRatesRequest);
{
  "rates": [
    {
      "via": {
        "type": "PROVIDER_ACCOUNT",
        "providerId": "bridge-provider-001",
        "accountId": "acc_9f4e2d8b1c6a5e73"
      },
      "baseAssetId": "<string>",
      "quoteAssetId": "<string>",
      "rate": "1.2345",
      "baseAssetRail": "BLOCKCHAIN",
      "quoteAssetRail": "BLOCKCHAIN"
    }
  ],
  "errors": [
    {
      "providerId": "BRIDGE",
      "error": {
        "code": 900,
        "message": "Invalid base amount: must be greater than 0"
      },
      "accountId": "acc_9f4e2d8b1c6a5e73"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developers.fireblocks.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

Idempotency-Key
string

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Body

application/json
scope
object[]
required

One or more providers/accounts to request rates from. At least one scope item is required.

Minimum array length: 1
baseAssetId
string
required

The source asset identifier.

Example:

"BTC"

quoteAssetId
string
required

The target asset identifier.

Example:

"USD"

Response

Rate response

rates
object[]
required

List of indicative rates returned for the requested asset pair.

errors
object[]
required

Partial failures encountered while requesting rates. Empty when all rate requests succeed.