# An account's full deal history

URL: https://docs.fxapis.com/api-reference/history/an-accounts-full-deal-history

> An account's full deal history. Everything the broker recorded against this account, including deals no order of yours caused — a stop loss firing, a swap…

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

Everything the broker recorded against this account, **including deals no order of yours caused** — a stop loss firing, a swap charge, a deposit, or somebody trading the same login from the MetaTrader desktop.

That inclusion is the point. A history containing only your own orders would show an account whose balance moves for no visible reason. Ordered by the broker's timestamp, not ours.

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

#### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `symbol` | query | string | no | Only deals on this symbol, as the broker names it. |
| `since` | query | string (date-time) | no | Deals at or after this time (the broker's timestamp). |
| `until` | query | string (date-time) | no | Deals at or before this time. |
| `limit` | query | integer | no |  |
| `cursor` | query | string | no | The `nextCursor` from the previous page. |
| `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 |  |
| `page` | object | no |  |
| `page.hasMore` | boolean | no |  |
| `page.nextCursor` | null \| string | no | Pass as `cursor` to continue. |