Exchange
Get info about exchange rates. This endpoint has limitation up to 30 requests per minute from one IP address. In case this amount is exceeded a new successful response can only be obtained after one minute break.
Private key
Private secret key
Amount you want to calculate. The parameter is required when the receiver_amount parameter is absent
Amount you want to calculate for getting. The parameter is required when the sender_amount parameter is absent.
POST /api/v2/exchange/calculate HTTP/1.1
Host: app.cryptoprocessing.com
X-Processing-Key: text
X-Processing-Signature: text
Content-Type: application/json
Accept: */*
Content-Length: 109
{
"sender_currency": "BTC",
"receiver_currency": "BTC",
"sender_amount": 0,
"receiver_amount": 0,
"price_precision": 8
}
{
"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
}
}
Make the exchange at a given fixed exchange rate.
Private key
Private secret key
Amount you want to exchange.
Amount you want to exchange.
Unique foreign ID in your system.
Exchange rate price on which exchange will be placed.
POST /api/v2/exchange/fixed HTTP/1.1
Host: app.cryptoprocessing.com
X-Processing-Key: text
X-Processing-Signature: text
Content-Type: application/json
Accept: */*
Content-Length: 121
{
"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"
}
}
Make the exchange regardless of the price.
Private key
Private secret key
Amount you want to exchange. This parameter is required when the receiver_amount parameter is absent.
Amount you want to exchange. This parameter is required when the sender_amount parameter is absent.
Unique foreign ID in your system.
POST /api/v2/exchange/now HTTP/1.1
Host: app.cryptoprocessing.com
X-Processing-Key: text
X-Processing-Signature: text
Content-Type: application/json
Accept: */*
Content-Length: 111
{
"sender_currency": "BTC",
"receiver_currency": "BTC",
"sender_amount": 0,
"receiver_amount": 0,
"foreign_id": "string"
}
{
"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": "postman_auto_test_1665475611907",
"type": "exchange",
"status": "processing"
}
}
Was this helpful?