Crypto

Overview

API endpoints here pertain to any operations we expose on the cryptocurrency or networks. For example, you would use these APIs to retrieve the current prices for cryptocurrencies to display to your users.

Please see our list of supported currencies or our Currency enum for reference on formatting and network support.

You will need to provide either fiatAmount or minCryptoAmount.

fiatAmount - The total amount in fiat to be exchanged. Fees will be top down.

minCryptoAmount - The minimum amount in crypto to be exchanged for. Fees will be bottom up.

{
    "fiatAmount": "100",
    "type": "INSTANT",
    "cryptoCurrency": "ETH"
}
curl --location -g --request POST 'https://api.ratio.me/v1/crypto/estimates:ach' \
--header 'ratio-client-id: <YOUR_CLIENT_ID>' \
--header 'ratio-client-secret: <YOUR_CLIENT_SECRET>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
    "fiatAmount": "100",
    "type": "INSTANT",
    "cryptoCurrency": "ETH"
}'

Last updated