Overview
Convert amounts between two cryptocurrencies or between crypto and fiat currencies using real-time exchange rates from CoinPaprika.Usage
Arguments
The source currency ID (e.g.,
btc-bitcoin, eth-ethereum)The target currency ID (e.g.,
eth-ethereum, usd-us-dollars)Options
Amount to convert (must be non-negative)
Output format:
table or jsonOutput raw JSON without metadata wrapper (useful for scripting)
Examples
Convert 1 BTC to ETH
Convert 0.5 BTC to USD
Convert 1000 USDT to BTC
Convert ETH to multiple currencies (run separately)
Get conversion as JSON for scripting
Calculate portfolio value in USD
Response
The command returns the conversion result:Response Fields
CoinPaprika ID of the source currency
Display name of the source currency
ISO 8601 timestamp when the base currency price was last updated
CoinPaprika ID of the target currency
Display name of the target currency
ISO 8601 timestamp when the quote currency price was last updated
Amount being converted (same as input
--amount)Converted value in the target currency
Currency IDs
Common Cryptocurrency IDs
btc-bitcoin- Bitcoineth-ethereum- Ethereumusdt-tether- Tetherusdc-usd-coin- USD Coinbnb-binance-coin- BNBxrp-xrp- XRPada-cardano- Cardanosol-solana- Solanadot-polkadot- Polkadotmatic-polygon- Polygon
Common Fiat Currency IDs
usd-us-dollars- US Dollareur-euro- Eurogbp-pounds-sterling- British Poundjpy-japanese-yen- Japanese Yencny-yuan-renminbi- Chinese Yuan
Finding Currency IDs
Use the search command to find the correct ID:Notes
- Conversion uses real-time market prices
- Prices are updated frequently (check
price_last_updatedtimestamps) - The
--amountflag must be non-negative (≥ 0) - All values may be
nullif price data is unavailable - Available on free tier
- Ideal for portfolio calculations and price comparisons