Расчет, preflight и создание заявки
quote -> preflight -> create order1. Рассчитать quote
curl -sS https://example.com/api/v3/private/exchange/quotes \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"route_id": 25,
"amount": "100",
"type_rate": "fixed"
}'{
"state": 0,
"message": "OK",
"result": {
"quote": {
"route_id": 25,
"amount": "100",
"receive_amount": "0.00102",
"rate": "0.00001020",
"type_rate": "fixed"
}
}
}2. Проверить preflight
3. Создать заявку
Основные поля заявки
Поле
Обязательно
Что означает
Совместимые alias-поля
Рекомендуемое поле
Alias
Последнее обновление
Это было полезно?