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

# Get a downsampled price series for a standard lookback window

> Returns a downsampled OHLC series for a standard time window. Use this to show a price chart or analyze recent price movement for an instrument. For example: ticker=BTCUSD, window=M1 returns Bitcoin over the last month.



## OpenAPI

````yaml /openapi-readme.json get /trading/chart/{ticker}/{window}
openapi: 3.1.0
info:
  title: Amana API
  version: 1.0.0
  description: API documentation for Amana platform
servers:
  - url: https://gateway.amana.io
    description: Amana app
security: []
tags:
  - name: onboarding
    description: Endpoints related to user onboarding, KYC processes, and account setup.
  - name: auth
    description: Endpoints for user authentication, token management, and session handling.
  - name: trading
    description: >-
      Endpoints related to trading operations, account management, and market
      data retrieval.
  - name: charting
    description: >-
      Endpoints for retrieving historical price data, technical indicators, and
      other charting-related information.
  - name: uaepass
    description: Endpoints for UAE Pass authentication and identity verification.
  - name: alerts
  - name: cms
  - name: dw
  - name: events
  - name: geo-location
  - name: high-leverage
  - name: kyc
  - name: mt
  - name: nafath
  - name: payments
  - name: promo-codes
  - name: smart-money
  - name: support
  - name: symbols
  - name: trading-accounts
  - name: transactions
  - name: user
  - name: watchlists
paths:
  /trading/chart/{ticker}/{window}:
    get:
      tags:
        - trading
      summary: Get a downsampled price series for a standard lookback window
      description: >-
        Returns a downsampled OHLC series for a standard time window. Use this
        to show a price chart or analyze recent price movement for an
        instrument. For example: ticker=BTCUSD, window=M1 returns Bitcoin over
        the last month.
      operationId: getChartSeries
      parameters:
        - schema:
            type: string
          in: path
          name: ticker
          required: true
          description: Trading symbol, for example XAUUSD, EURUSD, or BTCUSD.
        - schema:
            type: string
            enum:
              - D1
              - D5
              - M1
              - M3
              - Y1
              - MAX
          in: path
          name: window
          required: true
          description: >-
            Lookback window. D1=today, D5=5 days, M1=1 month, M3=3 months, Y1=1
            year, MAX=all available history.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    timestamp:
                      type: integer
                      description: Candle close time as Unix seconds.
                    open:
                      type: number
                      description: Opening price.
                    high:
                      type: number
                      description: Highest price in the period.
                    low:
                      type: number
                      description: Lowest price in the period.
                    close:
                      type: number
                      description: Closing price.
                    volume:
                      type: number
                      description: Trade volume.
                  required:
                    - timestamp
                    - open
                    - high
                    - low
                    - close
                  additionalProperties: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token obtained from authentication endpoints

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.