cURL
curl --request GET \ --url https://api.pro.daya.co/public/v1/orders/{order_id} \ --header 'X-Api-Key: <x-api-key>'
{ "success": true, "message": "Order retrieved successfully", "data": { "id": "550e8400-e29b-41d4-a716-446655440000", "user_id": "user_abc123", "symbol": "USD-NGN", "side": "buy", "type": "limit", "status": "open", "price": "1545.00", "quantity": "100.00000000", "filled_quantity": "0.00000000", "remaining_quantity": "100.00000000", "executed_price": "", "total_value": "154500.00", "filled_value": "0.00", "base_currency": "USD", "quote_currency": "NGN", "created_at": "2024-01-15T10:35:00Z", "updated_at": "2024-01-15T10:35:00Z" }, "timestamp": "2024-01-15T10:35:00Z" }
Get details of a specific order
X-Api-Key: daya_sk_YOUR_API_KEY
550e8400-e29b-41d4-a716-446655440000
curl --request GET \ --url https://api.pro.daya.co/public/v1/orders/550e8400-e29b-41d4-a716-446655440000 \ --header 'X-Api-Key: daya_sk_YOUR_API_KEY'
Show order properties
buy
sell
limit
market
pending_settlement
new
open
partially_filled
filled
cancelled
rejected
failed
USD
NGN
{ "success": false, "message": "Unauthorized", "error": { "code": "API_KEY_INVALID", "message": "The provided API key is invalid" }, "timestamp": "2024-01-15T10:35:00Z" }