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
receiver_amount
.receiver_amount
.OK
Exchange is unavailable
Bad key header
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: 72
{
"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
}
}
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. Must not contain personal data, such as the user's name or email address.
Exchange rate price on which exchange will be placed.
OK
Bad key header
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
receiver_amount
.sender_amount
.Unique foreign ID in your system. Must not contain personal data, such as the user's name or email address.
OK
Bad key header
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: 114
{
"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"
}
}
Was this helpful?