Skip to content

Crypto To Quote ​

Returns live exchange rates from all supported cryptocurrencies to a specified quote currency. The quote can be either a cryptocurrency (e.g. BTC) or a fiat currency (e.g. USD). The inverse of Crypto From Base.

Use this to:

  • Value your entire crypto portfolio in a single base currency
  • Build a "how much BTC is each coin worth?" comparison table
  • Pre-compute inverse rates without an extra API call
  • Normalize thousands of tokens to a common quote for sorting or ranking

Base URL ​

https://fast-price-exchange-rates.p.rapidapi.com

Get crypto rates to quote ​

GET/api/v1/convert-rates/crypto/to

Returns an object with the quote currency and a map of all source cryptocurrencies to their rates.

Authentication ​

HeaderValue
X-RapidAPI-KeyYour RapidAPI secret key
X-RapidAPI-Hostfast-price-exchange-rates.p.rapidapi.com

Query parameters ​

ParameterTypeRequiredDescription
currencystringYes Quote currency code. Accepts both fiat and crypto symbols.

Examples: BTC, ETH, USD, EUR
Use Crypto Symbols for supported crypto codes or Fiat Symbols for fiat codes.
detailedbooleanNo When false (default): keys in the from object are plain ticker symbols ("ADA", "ETH").
When true: keys include the full name and asset type ("ADA:CARDANO:CRYPTO").

Example requests ​

bash
curl "https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/crypto/to?currency=BTC&detailed=false" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: fast-price-exchange-rates.p.rapidapi.com"
bash
curl "https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/crypto/to?currency=BTC&detailed=true" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: fast-price-exchange-rates.p.rapidapi.com"
javascript
const response = await fetch(
  'https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/crypto/to?currency=BTC&detailed=false',
  {
    headers: {
      'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
      'X-RapidAPI-Host': 'fast-price-exchange-rates.p.rapidapi.com',
    },
  }
)

const data = await response.json()

// Value a portfolio in BTC
const portfolio = { ETH: 5, ADA: 10000, SOL: 50, LINK: 200 }

let totalBtc = 0
for (const [symbol, amount] of Object.entries(portfolio)) {
  const rate = data.from[symbol]
  if (rate) {
    const btcValue = amount * rate
    totalBtc += btcValue
    console.log(`${amount} ${symbol} = ${btcValue.toFixed(6)} BTC`)
  }
}
console.log(`\nTotal portfolio: ${totalBtc.toFixed(6)} BTC`)
javascript
const response = await fetch(
  'https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/crypto/to?currency=BTC&detailed=true',
  {
    headers: {
      'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
      'X-RapidAPI-Host': 'fast-price-exchange-rates.p.rapidapi.com',
    },
  }
)

const data = await response.json()

// Parse "SYMBOL:NAME:CRYPTO" keys
const coins = Object.entries(data.from).map(([key, rate]) => {
  const [symbol, name] = key.split(':')
  return { symbol, name, rate }
})

// Sort by BTC value descending (highest-value coins first)
const sorted = coins.sort((a, b) => b.rate - a.rate).slice(0, 10)

console.log('Top 10 most valuable coins in BTC terms:')
for (const { symbol, name, rate } of sorted) {
  console.log(`  ${symbol.padEnd(8)} (${name}): ${rate.toFixed(8)} BTC`)
}
python
import os
import requests

response = requests.get(
    "https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/crypto/to",
    params={"currency": "BTC", "detailed": "false"},
    headers={
        "X-RapidAPI-Key": os.environ["RAPIDAPI_KEY"],
        "X-RapidAPI-Host": "fast-price-exchange-rates.p.rapidapi.com",
    },
)

response.raise_for_status()
data = response.json()

# Value a portfolio in BTC
portfolio = {"ETH": 5, "ADA": 10000, "SOL": 50, "LINK": 200}

print(f"Portfolio valuation in {data['to']}:\n")
total = 0
for symbol, amount in portfolio.items():
    rate = data["from"].get(symbol)
    if rate:
        btc_value = amount * rate
        total += btc_value
        print(f"  {amount:>8} {symbol:<6} = {btc_value:.8f} BTC")

print(f"\n  Total: {total:.8f} BTC")
python
import os
import requests

response = requests.get(
    "https://fast-price-exchange-rates.p.rapidapi.com/api/v1/convert-rates/crypto/to",
    params={"currency": "BTC", "detailed": "true"},
    headers={
        "X-RapidAPI-Key": os.environ["RAPIDAPI_KEY"],
        "X-RapidAPI-Host": "fast-price-exchange-rates.p.rapidapi.com",
    },
)

response.raise_for_status()
data = response.json()

# Parse "SYMBOL:NAME:CRYPTO" keys
coins = []
for key, rate in data["from"].items():
    symbol, name, _ = key.split(":")
    coins.append((symbol, name, rate))

print(f"Total crypto sources: {len(coins)}")
print()

# Top 10 by BTC value
top = sorted(coins, key=lambda x: x[2], reverse=True)[:10]
print(f"{'Symbol':<10} {'Name':<30} Rate (BTC per coin)")
print("-" * 65)
for symbol, name, rate in top:
    print(f"{symbol:<10} {name:<30} {rate:.8f}")

Response — detailed=false ​

json
{
  "to": "BTC",
  "from": {
    "00": 6.375376127569076e-8,
    "1INCH": 0.0000012871187858475674,
    "A8": 1.3513143820792946e-7,
    "AAVE": 0.001258296689471997,
    "ADA": 0.0000035067331472400965,
    "ETH": 0.03516,
    "SOL": 0.001482,
    "...": "... thousands of crypto tokens total"
  }
}

Response — detailed=true ​

json
{
  "to": "BTC",
  "from": {
    "00:00 TOKEN:CRYPTO": 6.375892122482664e-8,
    "1INCH:1INCH TOKEN:CRYPTO": 0.0000012856305687509122,
    "A8:ANCIENT8:CRYPTO": 1.3514237515241491e-7,
    "AAVE:AAVE:CRYPTO": 0.0012572795768907516,
    "ADA:CARDANO:CRYPTO": 0.000003497363869206008,
    "ETH:ETHEREUM:CRYPTO": 0.03514,
    "SOL:SOLANA:CRYPTO": 0.001481,
    "...": "... thousands of crypto tokens total"
  }
}

Response fields ​

FieldTypeDescription
tostringThe quote currency code (mirrors the currency query parameter).
fromobject Map of source crypto symbols to their rates. Each value represents how many units of the quote currency equal 1 unit of the source crypto — i.e. rate = sourceToQuote.

Key format depends on the detailed parameter:
• false: plain ticker — "ADA"
• true: "SYMBOL:FULL NAME:CRYPTO" — "ADA:CARDANO:CRYPTO"

Key format (detailed=true) ​

SYMBOL:FULL NAME:CRYPTO
  │        │        └─ asset type, always "CRYPTO" for this endpoint
  │        └─ full coin name in uppercase
  └─ ticker symbol

Conversion formula

Each rate is source → quote. To convert an amount from source to quote:

quoteAmount = sourceAmount × rate

To convert in the other direction (quote → source):

sourceAmount = quoteAmount / rate

Example: "ADA": 0.0000035 means 1 ADA = 0.0000035 BTC.

  • 10,000 ADA → BTC: 10,000 × 0.0000035 = 0.035 BTC
  • 0.1 BTC → ADA: 0.1 / 0.0000035 ≈ 28,571 ADA

Relationship to Crypto From Base

This endpoint is the mirror of Crypto From Base:

  • crypto/from?currency=BTC → to.ADA = 285,527 (1 BTC = 285,527 ADA)
  • crypto/to?currency=BTC → from.ADA = 0.0000035 (1 ADA = 0.0000035 BTC)

The two rates are reciprocals: 285,527 × 0.0000035 ≈ 1.0


Error responses ​

StatusCodeDescription
400bad_requestcurrency parameter is missing or not a recognized fiat/crypto code
401unauthorizedX-RapidAPI-Key is missing or invalid
403forbiddenYour RapidAPI plan does not include access to this endpoint
429too_many_requestsRapidAPI rate limit exceeded
500internal_errorServer error — safe to retry after a short delay

EndpointDescription
Crypto From BaseRates from a single base to all crypto
Coins Price ListPaginated live prices ranked by market cap
Fiat SymbolsSupported fiat currency codes

Released under the MIT License.