Курси та комісії
Курси обміну та комісії.
Запит
POST /v2/rates
POST /v2/rates HTTP/1.1
Content-Type: application/json
Accept: application/json; charset=utf-8
Api-key: {publicApiKey}
Signature: {signature}
{}
Примітка
Використовуйте порожній об'єкт {}
у запиті і створюйте цифровий підпис до нього.
Відповідь
Відповідь міститиме набір об'єктів, згрупований за типом ордера і структурований наступним чином:
RESPONSE
HTTP/1.1 200 OK
Content-Type: application/json
{
"status": "success",
"data": {
"deposit": {
"btc_btc": {
"order_type": "deposit",
"currency_from": "btc",
"network_from": "btc",
"currency_to": "btc",
"network_to": null,
"exchange_rate": null,
"min_amount_from": "0.002",
"max_amount_from": "1000000",
"fixed_fee_amount_from": "0.0005",
"fixed_fee_amount_to": null,
"fee_percent_from": null,
"min_fee_amount_from": null,
"fee_percent_to": null,
"min_fee_amount_to": null,
"fee_percent_from_payer": "merchant",
"fee_percent_to_payer": null,
"currency_from_precision": 8,
"currency_to_precision": 8
},
"usdt_trc20": {
"order_type": "deposit",
"currency_from": "usdt",
"network_from": "trc20",
"currency_to": "usdt",
"network_to": null,
"exchange_rate": null,
"min_amount_from": "2",
"max_amount_from": "1000000",
"fixed_fee_amount_from": null,
"fixed_fee_amount_to": null,
"fee_percent_from": null,
"min_fee_amount_from": null,
"fee_percent_to": null,
"min_fee_amount_to": null,
"fee_percent_from_payer": "merchant",
"fee_percent_to_payer": null,
"currency_from_precision": 2,
"currency_to_precision": 2
}
},
"deposit_exchange": {
"eth_erc20-usdt": {
"order_type": "deposit_exchange",
"currency_from": "eth",
"network_from": "erc20",
"currency_to": "usdt",
"network_to": null,
"exchange_rate": "2441.63659",
"min_amount_from": "0.02",
"max_amount_from": "10000000",
"fixed_fee_amount_from": "0.002",
"fixed_fee_amount_to": null,
"fee_percent_from": null,
"min_fee_amount_from": null,
"fee_percent_to": null,
"min_fee_amount_to": null,
"fee_percent_from_payer": "merchant",
"fee_percent_to_payer": null,
"currency_from_precision": 8,
"currency_to_precision": 2
}
},
"deposit_exchange_withdraw": {
"btc_btc-usdt_trc20": {
"order_type": "deposit_exchange_withdraw",
"currency_from": "btc",
"network_from": "btc",
"currency_to": "usdt",
"network_to": "trc20",
"exchange_rate": "106825.0717",
"min_amount_from": "0.002",
"max_amount_from": "0.00458734",
"fixed_fee_amount_from": "0.0005",
"fixed_fee_amount_to": "3",
"fee_percent_from": null,
"min_fee_amount_from": null,
"fee_percent_to": null,
"min_fee_amount_to": null,
"fee_percent_from_payer": "merchant",
"fee_percent_to_payer": "client",
"currency_from_precision": 8,
"currency_to_precision": 2
}
},
"exchange": {
"eth-usdt": {
"order_type": "exchange",
"currency_from": "eth",
"network_from": null,
"currency_to": "usdt",
"network_to": null,
"exchange_rate": "2441.63659",
"min_amount_from": "0.00409562",
"max_amount_from": null,
"fixed_fee_amount_from": null,
"fixed_fee_amount_to": null,
"fee_percent_from": null,
"min_fee_amount_from": null,
"fee_percent_to": null,
"min_fee_amount_to": null,
"fee_percent_from_payer": null,
"fee_percent_to_payer": null,
"currency_from_precision": 8,
"currency_to_precision": 2
},
"usdt-eth": {
"order_type": "exchange",
"currency_from": "usdt",
"network_from": null,
"currency_to": "eth",
"network_to": null,
"exchange_rate": "0.0004030504",
"min_amount_from": "10",
"max_amount_from": null,
"fixed_fee_amount_from": null,
"fixed_fee_amount_to": null,
"fee_percent_from": null,
"min_fee_amount_from": null,
"fee_percent_to": null,
"min_fee_amount_to": null,
"fee_percent_from_payer": null,
"fee_percent_to_payer": null,
"currency_from_precision": 2,
"currency_to_precision": 8
}
},
"exchange_withdraw": {
"bch-usdt_trc20": {
"order_type": "exchange_withdraw",
"currency_from": "bch",
"network_from": null,
"currency_to": "usdt",
"network_to": "trc20",
"exchange_rate": "521.96853",
"min_amount_from": "0.01533",
"max_amount_from": "1915.82432",
"fixed_fee_amount_from": null,
"fixed_fee_amount_to": "3",
"fee_percent_from": null,
"min_fee_amount_from": null,
"fee_percent_to": null,
"min_fee_amount_to": null,
"fee_percent_from_payer": null,
"fee_percent_to_payer": "client",
"currency_from_precision": 5,
"currency_to_precision": 2
}
},
"withdraw": {
"usdt_trc20": {
"order_type": "withdraw",
"currency_from": "usdt",
"network_from": null,
"currency_to": "usdt",
"network_to": "trc20",
"exchange_rate": null,
"min_amount_from": "8",
"max_amount_from": "6240561",
"fixed_fee_amount_from": null,
"fixed_fee_amount_to": "3",
"fee_percent_from": null,
"min_fee_amount_from": null,
"fee_percent_to": null,
"min_fee_amount_to": null,
"fee_percent_from_payer": null,
"fee_percent_to_payer": "client",
"currency_from_precision": 2,
"currency_to_precision": 2
}
}
}
}
Опис параметрів у відповіді:
order_type
– Тип ордера, див. Ордераcurrency_from
– Валюта депозиту чи обмінуnetwork_from
– Мережа здійснення депозитуcurrency_to
– Валюта виплати або в яку відбувається обмін депозитуnetwork_to
– Мережа виплатиexchange_rate
– Курс обмінуfixed_fee_amount_from
– Фіксована сума комісії у валюті депозитуfixed_fee_amount_to
– Фіксована сума комісії у валюті виплатиfee_percent_from
– Комісія у відсотках від суми депозитуfee_percent_to
– Комісія у відсотках від суми виплатиmin_fee_amount_from
– Мінімальна сума комісії від суми депозитуmin_fee_amount_to
– Мінімальна сума комісії від суми виплатиmin_amount_from
– Мінімальна сума депозиту чи обмінуmax_amount_from
– Максимальна сума депозиту чи обмінуcurrency_from_precision
– Точність валюти депозиту чи обміну, кількість знаків після комиcurrency_to_precision
– Точність валюти виплати, кількість знаків після комиfee_percent_from_payer
– Хто платить комісію від суми депозиту:merchant
абоclient
(null якщо першим відбувається процес обміну)fee_percent_to_payer
– Хто платить комісію від суми виплати:merchant
абоclient
(null якщо останнім відбувається процес обміну). Merchant означає, що комісія утримується окремо з балансу мерчанта