Skip to main content
GET
/
public
/
v1
/
orders
/
{order_id}
/
trades
List Order Trades
curl --request GET \
  --url https://api.pro.daya.co/public/v1/orders/{order_id}/trades \
  --header 'X-Api-Key: <x-api-key>'
{
  "success": true,
  "message": "Order trades retrieved successfully",
  "data": [
    {
      "id": "660e8400-e29b-41d4-a716-446655440000",
      "symbol": "USD-NGN",
      "side": "buy",
      "order_id": "550e8400-e29b-41d4-a716-446655440000",
      "price": "1545.00",
      "quantity": "60.00000000",
      "total_value": "92700.00",
      "fee": "0.09270000",
      "is_maker": false,
      "created_at": "2024-01-15T10:35:01Z"
    },
    {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "symbol": "USD-NGN",
      "side": "buy",
      "order_id": "550e8400-e29b-41d4-a716-446655440000",
      "price": "1545.50",
      "quantity": "40.00000000",
      "total_value": "61820.00",
      "fee": "0.06182000",
      "is_maker": false,
      "created_at": "2024-01-15T10:35:01Z"
    }
  ],
  "timestamp": "2024-01-15T10:35:01Z"
}

Overview

Retrieve all trades (fills) associated with a specific order. This is useful for seeing how a partially filled or fully filled order was executed across multiple trades. This endpoint requires authentication with an API key that has Read scope.

Authentication

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

Path Parameters

order_id
string
required
The unique order identifier (UUID)Example: 550e8400-e29b-41d4-a716-446655440000

Request Examples

curl --request GET \
  --url https://api.pro.daya.co/public/v1/orders/550e8400-e29b-41d4-a716-446655440000/trades \
  --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 for the order
timestamp
string
ISO 8601 timestamp of the response

Success Response

{
  "success": true,
  "message": "Order trades retrieved successfully",
  "data": [
    {
      "id": "660e8400-e29b-41d4-a716-446655440000",
      "symbol": "USD-NGN",
      "side": "buy",
      "order_id": "550e8400-e29b-41d4-a716-446655440000",
      "price": "1545.00",
      "quantity": "60.00000000",
      "total_value": "92700.00",
      "fee": "0.09270000",
      "is_maker": false,
      "created_at": "2024-01-15T10:35:01Z"
    },
    {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "symbol": "USD-NGN",
      "side": "buy",
      "order_id": "550e8400-e29b-41d4-a716-446655440000",
      "price": "1545.50",
      "quantity": "40.00000000",
      "total_value": "61820.00",
      "fee": "0.06182000",
      "is_maker": false,
      "created_at": "2024-01-15T10:35:01Z"
    }
  ],
  "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"
}

Notes

  • You can only view trades for your own orders. Attempting to access trades for another user’s order will return a 404 response.
  • An order may have zero trades (if still open or cancelled before any fills), one trade, or many trades (if filled in multiple partial fills).
  • Trades are returned in chronological order.

Rate Limits

  • 100 requests per minute per API key

Next Steps

Get Order

View the order details

List Trades

View all your trades across orders