cURL
curl --request POST \ --url https://api.pro.daya.co/public/v1/orders/quote \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <x-api-key>' \ --data ' { "symbol": "<string>", "side": "<string>", "type": "<string>", "price": "<string>", "quantity": "<string>" } '
{ "success": true, "message": "Order quote retrieved successfully", "data": { "symbol": "USD-NGN", "side": "buy", "type": "market", "quantity": "100.00", "estimated_price": "1545.50", "estimated_total": "154550.00", "estimated_fee": "0.15455000" }, "timestamp": "2024-01-15T10:35:00Z" }
Get a price quote for an order without placing it
X-Api-Key: daya_sk_YOUR_API_KEY
USDT-NGN
USDC-NGN
USD-NGN
buy
sell
limit
market
1545.00
type
100.00
curl --request POST \ --url https://api.pro.daya.co/public/v1/orders/quote \ --header 'X-Api-Key: daya_sk_YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "symbol": "USDT-NGN", "side": "buy", "type": "market", "quantity": "100.00" }'
Show data properties
1545.50
154550.00
0.15455000
{ "success": false, "message": "Validation error", "error": { "code": "VALIDATION_ERROR", "message": "Quantity is required" }, "timestamp": "2024-01-15T10:35:00Z" }