Аутентификация
Все запросы требуют 16-значный PIN аккаунта в качестве ключа API.
x-api-key: YOUR_16_DIGIT_PIN
Альтернатива: параметр ?apiKey=YOUR_PIN
Создать запрос
GET
/api/v1/quote?amount=1.5&outputAsset=btc
| Параметр | Тип | Обязательный | Примечания |
| amount | number | yes | XMR для отправки (1–5000) |
| outputAsset | string | yes | btc, eth, sol, ltc, trx, usdt, usdt-erc20, usdt-arb |
Запрос
curl -H "x-api-key: 1234567890123456" \
"https://xmr2cex.com/api/v1/quote?amount=1.5&outputAsset=btc"
Ответ
{
"quoteId": "q_abc123",
"inputAmount": 1.5,
"outputAsset": "btc",
"outputAmount": 0.01234,
"exchangeRate": 0.00823,
"expiresAt": 1741776120000
}
Получить запрос
GET
/api/v1/quote/:id
Запрос
curl -H "x-api-key: 1234567890123456" \
"https://xmr2cex.com/api/v1/quote/q_abc123"
Ответ
{
"quoteId": "q_abc123",
"inputAmount": 1.5,
"outputAsset": "btc",
"outputAmount": 0.01234,
"exchangeRate": 0.00823,
"expiresAt": 1741776120000
}
Создать заказ
POST
/api/v1/order
| Поле тела | Тип | Обязательный | Примечания |
| quoteId | string | yes | From create quote |
| destinationAddress | string | yes | Output wallet address |
Запрос
curl -X POST "https://xmr2cex.com/api/v1/order" \
-H "x-api-key: 1234567890123456" \
-H "Content-Type: application/json" \
-d '{"quoteId":"q_abc123","destinationAddress":"bc1q..."}'
Ответ
{
"orderId": "ord_xyz",
"status": "awaiting_payment",
"inputAmount": 1.5,
"depositAddress": "888tN...",
"outputAsset": "btc",
"destinationAddress": "bc1q...",
"createdAt": 1741776000000
}
Получить заказ
GET
/api/v1/order/:id
Запрос
curl -H "x-api-key: 1234567890123456" \
"https://xmr2cex.com/api/v1/order/ord_xyz"
Ответ
{
"orderId": "ord_xyz",
"status": "completed",
"inputAmount": 1.5,
"depositAddress": "8888...",
"outputAsset": "btc",
"destinationAddress": "bc1q...",
"createdAt": 1741776000000
}
Статусы заказа
| Status | Description |
| PENDING | Ожидается депозит XMR |
| CONFIRMING | Депозит обнаружен, ожидаем 5 подтверждений |
| SENDING | Отправка с биржи |
| SENT | Средства отправлены |
Ошибки
{"error": "Description of what went wrong."}
| Code | Meaning |
| 400 | Отсутствуют или неверны параметры |
| 401 | Неверный или отсутствует ключ API |
| 404 | Ресурс не найден |
| 500 | Ошибка сервера |
Справка
Базовый URLhttps://xmr2cex.com/api/v1
ФорматJSON
Аутентификацияx-api-key header
Назад в аккаунт