Skip to main content
Exchange regardless of the exchange rate
curl --request POST \
  --url https://app.alphapo.net/api/v2/exchange/now \
  --header 'Content-Type: application/json' \
  --header 'X-processing-key: <api-key>' \
  --header 'X-processing-signature: <api-key>' \
  --data '
{
  "sender_currency": "BTC",
  "receiver_currency": "BTC",
  "sender_amount": 0,
  "receiver_amount": 0,
  "foreign_id": "user_1714"
}
'
{
  "data": {
    "sender_currency": "EUR",
    "sender_amount": "1966.61957532",
    "receiver_currency": "BTC",
    "receiver_amount": "0.10000000",
    "fee_currency": "EUR",
    "fee_amount": "19.66619575",
    "price": "0.00005084",
    "id": 678287,
    "foreign_id": "user_1714",
    "type": "exchange",
    "status": "processing"
  }
}

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.

foreign_id
string
required

Unique foreign ID in your system. Must not contain personal data, such as the user's name or email address.

Maximum string length: 255
sender_amount
number

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

Required range: x >= 0
receiver_amount
number

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

Required range: x >= 0

Response

OK

data
object