Skip to main content
Calculate the exchange rate
curl --request POST \
  --url https://app.alphapo.net/api/v2/exchange/calculate \
  --header 'Content-Type: application/json' \
  --header 'X-processing-key: <api-key>' \
  --header 'X-processing-signature: <api-key>' \
  --data '
{
  "sender_currency": "BTC",
  "receiver_currency": "EUR",
  "sender_amount": 0.03
}
'
{
  "data": {
    "sender_currency": "EUR",
    "sender_amount": "25.00000000",
    "receiver_currency": "BTC",
    "receiver_amount": "0.00123001",
    "fee_currency": "CPD",
    "fee_amount": "0.17266485",
    "price": "0.00004920",
    "ts_fixed": 1665008630,
    "ts_release": 1665008690,
    "fix_period": 60
  }
}

Authorizations

X-processing-key
string
header
required

Your API key.

X-processing-signature
string
header
required

The request body, signed with HMAC-SHA512 with your secret key. You can find the secret key in your account.

Body

application/json
sender_currency
string
required

Currency to exchange from. For a list of all available currencies, see Supported currencies.

receiver_currency
string
required

Currency to exchange to. For a list of all available currencies, see Supported currencies.

sender_amount
number<float>

Amount you want to exchange. You must include either this parameter or receiver_amount.

Required range: x >= 0
receiver_amount
number<float>

Amount you want to exchange. You must include either this parameter or receiver_amount.

Required range: x >= 0

Response

OK

data
object