Skip to main content
Exchange at a fixed exchange rate
curl --request POST \
  --url https://app.alphapo.net/api/v2/exchange/fixed \
  --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": "string",
  "price": 0
}
'
{
  "data": {
    "id": 2687667,
    "foreign_id": "knwi24op9",
    "type": "exchange",
    "sender_amount": "0.01",
    "sender_currency": "BTC",
    "receiver_amount": "63.52069015",
    "receiver_currency": "EUR",
    "fee_amount": "6.98727592",
    "fee_currency": "EUR",
    "price": "6352.06901520",
    "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
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
price
number
required

Exchange rate price on which exchange will be placed.

sender_currency
string

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

receiver_currency
string

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

sender_amount
number

Amount you want to exchange.

Required range: x >= 0
receiver_amount
number

Amount you want to exchange.

Required range: x >= 0

Response

OK

data
object