# Market hours for a symbol or instrument, from the account's broker

URL: https://docs.fxapis.com/api-reference/instruments/market-hours-for-a-symbol-or-instrument-from-the-accounts-broker

> Market hours for a symbol or instrument, from the account's broker. When the account's broker lets orders be placed in a symbol — or in this account's symbol…

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

When the account's broker lets orders be placed in a symbol — or in this account's symbol for an instrument — as the broker configured it (MetaTrader's `SymbolInfoSessionTrade`), with whether it is open now and when that next changes.

`trade` and `quote` are given in the broker's server time and in UTC; `utcOffsetSeconds` is the broker's clock as measured when the sessions were read. Read when the account comes online and refreshed daily, so it answers while the account is offline.

Holidays a broker does not load into its schedule are not here: on such a day an order is still refused with `ORDER_REJECTED` (`Market closed`).

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

#### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `symbol` | query | string | no | A broker symbol, exactly as the broker spells it. |
| `instrument` | query | string | no | Or an instrument, e.g. `XAUUSD`: this account's symbol for it is used. |
| `id` | path | string (uuid) | yes |  |

#### Responses

- `200`
- `400`
- `401`
- `404`
- `409`
- `422`

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.symbol` | string | no | Example: `"XAUUSD"` |
| `data.instrument` | null \| string | no | Example: `"XAUUSD"` |
| `data.server` | string | no |  |
| `data.utcOffsetSeconds` | integer | no | Example: `10800` |
| `data.sessionsSyncedAt` | string (date-time) | no |  |
| `data.openNow` | boolean | no |  |
| `data.nextOpen` | null \| string (date-time) | no | When it next opens (UTC), if closed. |
| `data.nextClose` | null \| string (date-time) | no | When it next closes (UTC), if open. |
| `data.trade` | object | no |  |
| `data.trade.server` | object[] | no | In the broker's server time. |
| `data.trade.server[].day` | "sunday" \| "monday" \| "tuesday" \| "wednesday" \| "thursday" \| "friday" \| "saturday" | no |  |
| `data.trade.server[].open` | string | no | HH:MM. Example: `"00:01"` |
| `data.trade.server[].close` | string | no | HH:MM; `24:00` is the end of the day. Example: `"23:58"` |
| `data.trade.utc` | object[] | no | In UTC. |
| `data.trade.utc[].day` | "sunday" \| "monday" \| "tuesday" \| "wednesday" \| "thursday" \| "friday" \| "saturday" | no |  |
| `data.trade.utc[].open` | string | no | HH:MM. Example: `"00:01"` |
| `data.trade.utc[].close` | string | no | HH:MM; `24:00` is the end of the day. Example: `"23:58"` |
| `data.quote` | object | no |  |
| `data.quote.server` | object[] | no |  |
| `data.quote.server[].day` | "sunday" \| "monday" \| "tuesday" \| "wednesday" \| "thursday" \| "friday" \| "saturday" | no |  |
| `data.quote.server[].open` | string | no | HH:MM. Example: `"00:01"` |
| `data.quote.server[].close` | string | no | HH:MM; `24:00` is the end of the day. Example: `"23:58"` |
| `data.quote.utc` | object[] | no |  |
| `data.quote.utc[].day` | "sunday" \| "monday" \| "tuesday" \| "wednesday" \| "thursday" \| "friday" \| "saturday" | no |  |
| `data.quote.utc[].open` | string | no | HH:MM. Example: `"00:01"` |
| `data.quote.utc[].close` | string | no | HH:MM; `24:00` is the end of the day. Example: `"23:58"` |