cURL
curl --request GET \ --url https://api.pro.daya.co/public/v1/trades/{id} \ --header 'X-Api-Key: <x-api-key>'
{ "success": true, "message": "Trade retrieved successfully", "data": { "id": "660e8400-e29b-41d4-a716-446655440000", "symbol": "USD-NGN", "side": "buy", "order_id": "550e8400-e29b-41d4-a716-446655440000", "price": "1545.50", "quantity": "100.00000000", "total_value": "154550.00", "fee": "0.15455000", "is_maker": false, "created_at": "2024-01-15T10:35:01Z" }, "timestamp": "2024-01-15T10:35:01Z" }
Get details of a specific trade
X-Api-Key: daya_sk_YOUR_API_KEY
660e8400-e29b-41d4-a716-446655440000
curl --request GET \ --url https://api.pro.daya.co/public/v1/trades/660e8400-e29b-41d4-a716-446655440000 \ --header 'X-Api-Key: daya_sk_YOUR_API_KEY'
Show trade properties
USD-NGN
"buy"
"sell"
{ "success": false, "message": "Unauthorized", "error": { "code": "API_KEY_INVALID", "message": "The provided API key is invalid" }, "timestamp": "2024-01-15T10:35:00Z" }
side
order_id