GET /crypto/convert
Umbreyttu hvaða ... sem er dulritunargjaldmiðil amount into hvaða ... sem er of the 30 supported hefðbundna gjaldmiðla using live CoinGecko prices and ECB gengi. Skilar conversion rate and calculated result. Tilvalið fyrir crypto portfolio forrit that need to show holdings in local currency, payment processors converting crypto to fiat, and trading verkfæri that need quick fiat-equivalent calculations.
coin
nauðsynlegt
Coin ID
to
nauðsynlegt
Target fiat currency
amount
valfrjálst
sjálfgefið: 1
Amount of crypto
| Nafn | Nauðsynlegt | Sjálfgefið | Lýsing |
|---|---|---|---|
coin |
Já | - | Coin ID |
to |
Já | - | Target fiat currency |
amount |
Nei | 1 | Amount of crypto |
curl "https://nordapi.ee/api/v1/crypto/convert?coin=bitcoin&to=NOK&amount=1"
curl "https://nordapi.ee/api/v1/crypto/convert?coin=bitcoin&to=NOK&amount=1"
curl "https://nordapi.ee/api/v1/crypto/convert?coin=ethereum&to=EUR&amount=10"
curl "https://nordapi.ee/api/v1/crypto/convert?coin=solana&to=USD&amount=1000"
{
"amount": 1.0,
"coin": "bitcoin",
"coin_name": "Bitcoin",
"rate": 658170.34065045,
"result": 658170.34065045,
"success": true,
"symbol": "BTC",
"target_currency": "NOK"
}
{"success":true,"coin":"bitcoin","symbol":"BTC","target_currency":"NOK","rate":673174.65,"result":673174.65}