cURL
curl --request GET \ --url https://api.pro.daya.co/public/v1/trades \ --header 'X-Api-Key: <x-api-key>'
{ "success": true, "message": "Trades 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" }, { "id": "660e8400-e29b-41d4-a716-446655440001", "symbol": "USD-NGN", "side": "sell", "order_id": "550e8400-e29b-41d4-a716-446655440001", "price": "1548.00", "quantity": "50.00000000", "total_value": "77400.00", "fee": "0.05000000", "is_maker": true, "created_at": "2024-01-15T10:20:15Z" } ], "timestamp": "2024-01-15T10:35:01Z" }
List trade history for the authenticated user
X-Api-Key: daya_sk_YOUR_API_KEY
USDT-NGN
550e8400-e29b-41d4-a716-446655440000
50
1
100
0
curl --request GET \ --url 'https://api.pro.daya.co/public/v1/trades?symbol=USDT-NGN&limit=20' \ --header 'X-Api-Key: daya_sk_YOUR_API_KEY'
Show trade properties
"buy"
"sell"
{ "success": false, "message": "Unauthorized", "error": { "code": "API_KEY_INVALID", "message": "The provided API key is invalid" }, "timestamp": "2024-01-15T10:35:00Z" }