Skip to main content
GET
/
public
/
v1
/
trades
List Trades
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"
}

Overview

Retrieve a list of executed trades for the authenticated user. Trades represent individual fills against orders.

Authentication

X-Api-Key
string
required
Your API key with Read or Trade scope
X-Api-Key: daya_sk_YOUR_API_KEY

Query Parameters

symbol
string
Filter by trading pair symbolExample: USDT-NGN
order_id
string
Filter by order IDExample: 550e8400-e29b-41d4-a716-446655440000
limit
integer
Maximum number of trades to returnDefault: 50Range: 1 to 100
offset
integer
Number of trades to skip for paginationDefault: 0

Request Examples

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'

Response

success
boolean
required
Indicates if the request was successful
message
string
required
Human-readable response message
data
array
required
Array of trade objects
timestamp
string
ISO 8601 timestamp of the response

Success Response

{
  "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"
}

Error Responses

{
  "success": false,
  "message": "Unauthorized",
  "error": {
    "code": "API_KEY_INVALID",
    "message": "The provided API key is invalid"
  },
  "timestamp": "2024-01-15T10:35:00Z"
}

Rate Limits

  • 100 requests per minute per API key

Next Steps

List Orders

View your orders

Place Order

Place a new order