Exchange Rates API
This part of the documentation shows how to retrieve current exchange rates. To use this API you will need to have your account set up at Kryptonim.
This API can be used to display current exchange rates to a user bofore redirecting him to Kryptonim checkout.
Environments
Environment |
URL |
|---|---|
Integration |
|
Production |
Retrieves current exchange rates for a given input currency and amount. m parameter is assigned during integration
Body request parameters:
Parameter |
Type |
Optional |
Description |
Example |
Default Value |
Comments |
|---|---|---|---|---|---|---|
|
decimal |
yes |
Amount in the Fiat currency |
|
- |
- |
|
string |
yes |
Fiat currency |
|
|
In capital letters. Check available currencies. |
|
string |
yes |
Cryptocurrency |
|
- |
In capital letters. Check available currencies. |
|
string |
yes |
Wallet’s Network |
|
- |
Required if convertedCurrency is specified. Check available blockchains |
|
string |
yes |
Currency of fees and limits |
|
If not provided, |
- |
Response parameters:
Each dictionary in data array corresponds to rates for a specific payment method.
Parameter |
Type |
Description |
Example |
Comments |
|---|---|---|---|---|
|
boolean |
Is KYC required for requested conversion |
|
- |
|
string |
Payment method |
|
- |
|
string |
Fiat currency |
|
- |
|
string |
Cryptocurrency |
|
- |
|
string |
Fiat amount of the conversion |
|
- |
|
string |
Estimated converted cryptocurrency amount |
|
- |
|
string |
Estimated rate of the requested conversion |
|
- |
|
string |
Fiat currency of displayed fees |
|
- |
|
string |
Fiat transaction fee |
|
- |
|
string |
Estimated network fee |
|
- |
|
string |
Total estimated transaction fee |
|
- |
|
string |
Currency of calculated limits |
|
- |
|
string |
Minimum amount of transaction in a given currency |
|
- |
|
string |
Maximum amount of transaction in a given currency |
|
- |
Example request:
POST /v2/ramp/buy/quotes HTTP/1.1 Content-Type: application/json { "amount": 100.01, "currency": "EUR", "converted_currency": "ETH", "blockchain": "Ethereum", "quote_currency": "USD" }
Example response:
HTTP/1.1 201 OK Content-Type: application/json { "data": [ { "kyc": true, "payment_method": "card", "currency": "EUR", "converted_currency": "ETH", "amount": "100.01", "converted_amount": "0.01815568", "rate": "0.00028437", "fees": { "currency": "EUR", "operation_fee": "4", "network_fee": "32.16", "total_fee": "36.16" }, "limits": { "currency": "EUR", "min_amount": "1", "max_amount": "10000" } }, { "kyc": true, "payment_method": "bank", "currency": "EUR", "converted_currency": "ETH", "amount": "100.01", "converted_amount": "0.01751636", "rate": "0.00028323", "fees": { "currency": "EUR", "operation_fee": "6", "network_fee": "32.16", "total_fee": "38.16" }, "limits": { "currency": "EUR", "min_amount": "1", "max_amount": "10000" } } ] }