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

# Symbol trading sessions

> Returns the full weekly trading and quote session schedule for a symbol,
as configured on the broker's MT5 server. Session windows are in
broker-local time; use `brokerTzOffsetSecs` to convert to UTC.

Each day entry lists one or more contiguous windows. Days with no
windows mean the market is closed that day. `alwaysOpen` is true when
every day has a single full 00:00–24:00 window (e.g. crypto on some
brokers).




## OpenAPI

````yaml /openapi-spec/easierprop.yaml get /api/accounts/{id}/symbols/{symbol}/sessions
openapi: 3.0.3
info:
  title: Easier Prop REST API
  version: 2.1.0
  description: >
    MT5 Trading Infrastructure API. Manage multiple broker accounts, execute
    trades, stream market data, and administer API keys, usage snapshots, and
    billing terms.


    **Client API** endpoints live under `/api` and require an `X-API-Key`
    header.

    **Admin API** endpoints live under `/admin` and accept either a JWT
    `Authorization: Bearer <jwt>` (obtained via `/admin/login`) or the same
    `X-API-Key` header used by client endpoints.


    Admin user provisioning is read-only via REST: `GET /admin/admins` lists
    admins, but creation, update, and deletion are performed out-of-band (DB /
    ops tooling). Bootstrap a brand-new deployment with `POST /admin/seed` while
    no superadmin exists.
servers:
  - url: https://api.easierprop.com
    description: Production
security: []
tags:
  - name: Admin
    description: Authentication, API key management, and admin user CRUD
  - name: Accounts
    description: Register and manage MT5 broker accounts
  - name: Sessions
    description: Control broker connections
  - name: Trading
    description: Place, modify, and close orders
  - name: Account Info
    description: Balance, equity, margin, and statistics
  - name: Market Data
    description: Symbols, quotes, OHLC history, and trade sessions
  - name: Expert Advisors
    description: Upload, run, stop, and monitor MQL5 Expert Advisors on your accounts
  - name: Enhanced
    description: >-
      Portfolio, risk, performance, copy-trade, hedge, breakeven, close-all, lot
      calculator, and position details
  - name: Extended
    description: >-
      Change password, server timezone, symbol sessions, closed positions,
      mails, tick value, equity stats, and more
paths:
  /api/accounts/{id}/symbols/{symbol}/sessions:
    parameters:
      - $ref: '#/components/parameters/accountId'
      - $ref: '#/components/parameters/symbol'
    get:
      tags:
        - Extended
      summary: Symbol trading sessions
      description: |
        Returns the full weekly trading and quote session schedule for a symbol,
        as configured on the broker's MT5 server. Session windows are in
        broker-local time; use `brokerTzOffsetSecs` to convert to UTC.

        Each day entry lists one or more contiguous windows. Days with no
        windows mean the market is closed that day. `alwaysOpen` is true when
        every day has a single full 00:00–24:00 window (e.g. crypto on some
        brokers).
      operationId: symbolSessions
      responses:
        '200':
          description: Session hours
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/SymbolSessions'
      security:
        - ApiKeyHeader: []
components:
  parameters:
    accountId:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: Account ID
    symbol:
      name: symbol
      in: path
      required: true
      schema:
        type: string
      description: Instrument name (e.g. EURUSD)
  schemas:
    SymbolSessions:
      type: object
      description: |
        Broker-reported trading and quote session windows for all 7 days of the
        week. Data is parsed from the MT5 binary protocol; accuracy depends on
        the broker's server configuration.
      properties:
        symbol:
          type: string
          example: EURUSD
        quotes:
          type: array
          description: Quote session schedule — days when the broker streams prices.
          items:
            $ref: '#/components/schemas/SessionDay'
        trades:
          type: array
          description: Trade session schedule — days when orders can be executed.
          items:
            $ref: '#/components/schemas/SessionDay'
        alwaysOpen:
          type: boolean
          description: True when the symbol has a single 00:00–24:00 window every day.
          example: false
        brokerTzOffsetSecs:
          type: integer
          description: |
            Broker server UTC offset in seconds. All `startMin`/`endMin` values
            are in broker-local time; apply this offset to convert to UTC.
          example: 7200
    SessionDay:
      type: object
      properties:
        day:
          type: integer
          description: Day index 0=Sunday … 6=Saturday
          example: 1
        name:
          type: string
          description: Short day name
          example: MON
        windows:
          type: array
          items:
            $ref: '#/components/schemas/SessionWindow'
    SessionWindow:
      type: object
      description: A contiguous trading window within a single day.
      properties:
        startMin:
          type: integer
          description: Window open in minutes since midnight (0–1440)
          example: 0
        endMin:
          type: integer
          description: Window close in minutes since midnight (0–1440)
          example: 1440
        startTime:
          type: string
          description: Human-readable open time "HH:MM"
          example: '00:00'
        endTime:
          type: string
          description: Human-readable close time "HH:MM"
          example: '24:00'
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        Client API key (prefixed with `sk_`). On `/api/*` endpoints the key
        is scoped to its own MT5 accounts. On `/admin/*` endpoints the key
        identifies its **owning admin** and grants access to all of that
        admin's keys — so any of your `sk_` works to manage any of your
        other keys (cross-admin operations are rejected as `400 Key not
        found`).

````