# Deals produced by one order

URL: https://docs.fxapis.com/api-reference/history/deals-produced-by-one-order

> Deals produced by one order. One order can produce several deals — a partial fill leaves more than one.

`GET https://api.fxapis.com/v1/orders/{id}/deals`

One order can produce several deals — a partial fill leaves more than one. These are the broker's own records of money changing hands, which is what a statement is reconciled against.

Authentication: `Authorization: Bearer <API key>`.

#### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string (uuid) | yes |  |

#### Responses

- `200`
- `401`
- `404`

Failures return `{ "error": { "code", "message" } }`; every code is listed at https://docs.fxapis.com/errors.

#### 200 response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object[] | no |  |
| `data[].id` | string (uuid) | no |  |
| `data[].accountId` | string (uuid) | no |  |
| `data[].orderId` | null \| string (uuid) | no | Null when the broker did this without us — a stop firing, a swap, a manual trade. |
| `data[].brokerDealId` | string | no | The broker's deal ticket. The identity of this record. |
| `data[].brokerOrderId` | null \| string | no |  |
| `data[].brokerPositionId` | null \| string | no |  |
| `data[].symbol` | string | no |  |
| `data[].dealType` | string | no | buy, sell, balance, credit, commission, swap-adjacent charges and corrections. |
| `data[].entry` | null \| string | no | in, out, inout or out_by — whether exposure opened or closed. |
| `data[].volume` | null \| string | no | Lots. |
| `data[].price` | null \| string | no | Execution price. |
| `data[].commission` | null \| string | no | Account currency. |
| `data[].swap` | null \| string | no | Account currency. |
| `data[].profit` | null \| string | no | Realised, in account currency. Negative is a loss. |
| `data[].fee` | null \| string | no | Account currency. |
| `data[].dealtAt` | string (date-time) | no | The broker's timestamp, not ours. |
| `data[].comment` | null \| string | no |  |