> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daya.co/llms.txt
> Use this file to discover all available pages before exploring further.

# List Order Trades

> List all trades (fills) for a specific order

## 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

<ParamField header="X-Api-Key" type="string" required>
  Your API key with Read or Trade scope

  ```
  X-Api-Key: daya_sk_YOUR_API_KEY
  ```
</ParamField>

## Path Parameters

<ParamField path="order_id" type="string" required>
  The unique order identifier (UUID)

  **Example:** `550e8400-e29b-41d4-a716-446655440000`
</ParamField>

## Request Examples

<CodeGroup>
  ```bash cURL theme={null}
  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'
  ```

  ```javascript JavaScript theme={null}
  const orderId = '550e8400-e29b-41d4-a716-446655440000';

  const response = await fetch(
    `https://api.pro.daya.co/public/v1/orders/${orderId}/trades`,
    {
      headers: { 'X-Api-Key': 'daya_sk_YOUR_API_KEY' }
    }
  );

  const data = await response.json();
  console.log('Order trades:', data.data);
  ```

  ```python Python theme={null}
  import requests

  order_id = '550e8400-e29b-41d4-a716-446655440000'
  headers = {'X-Api-Key': 'daya_sk_YOUR_API_KEY'}

  response = requests.get(
      f'https://api.pro.daya.co/public/v1/orders/{order_id}/trades',
      headers=headers
  )

  data = response.json()
  print(f"Order trades: {data['data']}")
  ```

  ```go Go theme={null}
  package main

  import (
      "encoding/json"
      "fmt"
      "net/http"
  )

  func main() {
      orderID := "550e8400-e29b-41d4-a716-446655440000"
      url := fmt.Sprintf("https://api.pro.daya.co/public/v1/orders/%s/trades", orderID)

      req, _ := http.NewRequest("GET", url, nil)
      req.Header.Set("X-Api-Key", "daya_sk_YOUR_API_KEY")

      client := &http.Client{}
      resp, err := client.Do(req)
      if err != nil {
          panic(err)
      }
      defer resp.Body.Close()

      var result map[string]interface{}
      json.NewDecoder(resp.Body).Decode(&result)
      fmt.Println("Order trades:", result["data"])
  }
  ```
</CodeGroup>

## Response

<ResponseField name="success" type="boolean" required>
  Indicates if the request was successful
</ResponseField>

<ResponseField name="message" type="string" required>
  Human-readable response message
</ResponseField>

<ResponseField name="data" type="array" required>
  Array of trade objects for the order

  <Expandable title="trade properties">
    <ResponseField name="id" type="string">
      Unique trade identifier (UUID)
    </ResponseField>

    <ResponseField name="symbol" type="string">
      Trading pair symbol

      **Example:** `USD-NGN`
    </ResponseField>

    <ResponseField name="side" type="string">
      Trade side relative to the authenticated user (`"buy"` or `"sell"`)
    </ResponseField>

    <ResponseField name="order_id" type="string">
      The authenticated user's order identifier (UUID)
    </ResponseField>

    <ResponseField name="price" type="string">
      Execution price
    </ResponseField>

    <ResponseField name="quantity" type="string">
      Trade quantity in base asset
    </ResponseField>

    <ResponseField name="total_value" type="string">
      Trade value in quote asset (price x quantity)
    </ResponseField>

    <ResponseField name="fee" type="string">
      Fee charged to the authenticated user for this trade
    </ResponseField>

    <ResponseField name="is_maker" type="boolean">
      Whether the authenticated user was the maker (resting order) in this trade
    </ResponseField>

    <ResponseField name="created_at" type="string">
      ISO 8601 trade execution timestamp
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="timestamp" type="string">
  ISO 8601 timestamp of the response
</ResponseField>

### Success Response

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "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"
  }
  ```
</ResponseExample>

## Error Responses

<ResponseExample>
  ```json 401 Unauthorized theme={null}
  {
    "success": false,
    "message": "Unauthorized",
    "error": {
      "code": "API_KEY_INVALID",
      "message": "The provided API key is invalid"
    },
    "timestamp": "2024-01-15T10:35:00Z"
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "success": false,
    "message": "Order not found",
    "error": {
      "code": "ORDER_NOT_FOUND",
      "message": "The specified order does not exist"
    },
    "timestamp": "2024-01-15T10:35:00Z"
  }
  ```
</ResponseExample>

## 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

<CardGroup cols={2}>
  <Card title="Get Order" icon="receipt" href="/pro/api-reference/get-order">
    View the order details
  </Card>

  <Card title="List Trades" icon="clock-rotate-left" href="/pro/api-reference/list-trades">
    View all your trades across orders
  </Card>
</CardGroup>
