AhoraCrypto
  • Welcome
  • API
    • Payment Intent API
  • Exchange API
  • Networks
  • WIDGET
    • Web Widget
  • React SDK
Powered by GitBook
On this page

Exchange API

PreviousPayment Intent APINextNetworks

Last updated 1 month ago

Crypto to Fiat Estimation

This method calculates the precise fiat amount required to receive the exact specified amount of cryptocurrency, fully accounting for all fees and commissions. In other words, the fiat amount you see is the total payment needed to cover the exact crypto amount you want, with all costs already included.

For example, if you input a crypto amount such as 0.5 BTC, the method might return an estimate of around 25,000 USD.

It is important to note that the exchange rate already includes any fees that AhoraCrypto may apply, so it reflects the final rate the user will receive.

To call the API, it is essential to include the x-api-key header.

Fiat to Crypto Estimation

This method estimates the amount of cryptocurrency you'll receive for a specific fiat payment, based on current market rates and fully accounting for commissions and all associated fees. In other words, if you pay exactly X in fiat, you'll receive the precise crypto amount displayed, with all costs already factored in.

For instance, if you convert 1,000 EUR, the method could return an approximation of 0.3 ETH.

To call the API, it is essential to include the x-api-key header.

get
Query parameters
cryptoAmountnumberRequired
cryptoSymbolstringRequired
currencyIsoCodestringRequired
Header parameters
x-api-keystringRequired

API key for authentication

Responses
200
Estimate fiat amount based on crypto amount
application/json
400
Bad request - Missing required fields or invalid values
401
Unauthorized - Missing or invalid API key
500
Internal Server Error
get
GET /payment/estimate-crypto-to-fiat-exchange HTTP/1.1
Host: api.ahoracrypto.com
x-api-key: text
Accept: */*
{
  "cryptoAmount": 1,
  "cryptoSymbol": "text",
  "fiatAmount": 1,
  "currencyIsoCode": "text"
}
get
Query parameters
fiatAmountnumberRequired
currencyIsoCodestringRequired
cryptoSymbolstringRequired
Header parameters
x-api-keystringRequired

API key for authentication

Responses
200
Estimate crypto amount based on fiat amount
application/json
400
Bad request - Missing required fields or invalid values
401
Unauthorized - Missing or invalid API key
500
Internal Server Error
get
GET /payment/estimate-fiat-to-crypto-exchange HTTP/1.1
Host: api.ahoracrypto.com
x-api-key: text
Accept: */*
{
  "fiatAmount": 1,
  "currencyIsoCode": "text",
  "cryptoAmount": 1,
  "cryptoCode": "text"
}
  • Crypto to Fiat Estimation
  • GET/payment/estimate-crypto-to-fiat-exchange
  • Fiat to Crypto Estimation
  • GET/payment/estimate-fiat-to-crypto-exchange