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

# Asset window

> The exchange's own candle for ONE window — the price to beat, and the
price so far. This is the figure a candle-direction market settles on.

Two flags, and the distinction matters: `complete` means the window is
over BY THE CLOCK; `confirmed` means the stored candle was read AFTER its
bucket closed and can no longer change. In the seconds between, complete
is true while close is still mid-formation — do not present an
unconfirmed close as final.



## OpenAPI

````yaml /api-reference/openapi/calibri.yaml get /api/v2/pythia/public/assets/{symbol}/window
openapi: 3.1.0
info:
  title: Calibri API
  version: 1.0.0
  description: >-
    The Calibri API. Discover markets, read live books, place signed orders, and
    manage positions and account data.

    Routed by path prefix to the service that answers it — which is an
    implementation detail, not something a caller has to reason about.
servers:
  - description: Production
    url: https://calibri.io
security: []
tags:
  - name: Health
    description: Service liveness.
    x-displayName: Health
  - name: Events
    description: Discover events and their metadata.
    x-displayName: Events
  - name: Markets
    description: List markets and load market detail for trading.
    x-displayName: Markets
  - name: Series
    description: Recurring event series.
    x-displayName: Series
  - name: Tags
    description: Editorial shelves used to browse the catalogue.
    x-displayName: Tags
  - name: Market Data
    description: Order book, depth, trade tape, tickers, and candles.
    x-displayName: Market Data
  - name: Assets
    description: Underlying asset price history for price-feed markets.
    x-displayName: Assets
  - name: Community
    description: Leaderboard and platform activity.
    x-displayName: Community
  - name: Currencies
    description: Currency registry.
    x-displayName: Currencies
  - name: Trade
    description: Place, list, and cancel orders.
    x-displayName: Trade
  - name: Positions
    description: Your matched contracts.
    x-displayName: Positions
  - name: Wallet
    description: Self-custody Safe, passkey, session keys, and relay.
    x-displayName: Wallet
  - name: Rewards
    description: Maker rebates and referral earnings.
    x-displayName: Rewards
  - name: Account
    description: Balances, ledger, PnL, limits, preferences, and profile.
    x-displayName: Account
  - name: Categories
    description: Categories
    x-displayName: Categories
  - name: Other
    description: Other
    x-displayName: Other
externalDocs:
  description: ''
  url: ''
paths:
  /api/v2/pythia/public/assets/{symbol}/window:
    get:
      tags:
        - Assets
      summary: Asset window
      description: >-
        The exchange's own candle for ONE window — the price to beat, and the

        price so far. This is the figure a candle-direction market settles on.


        Two flags, and the distinction matters: `complete` means the window is

        over BY THE CLOCK; `confirmed` means the stored candle was read AFTER
        its

        bucket closed and can no longer change. In the seconds between, complete

        is true while close is still mid-formation — do not present an

        unconfirmed close as final.
      parameters:
        - description: Coinbase product id, e.g. BTC-USD
          in: path
          name: symbol
          required: true
          schema:
            type: string
        - description: Window opening instant, Unix seconds, on a granularity boundary
          in: query
          name: start
          required: true
          schema:
            type: integer
        - description: Window width in seconds (default 300)
          in: query
          name: granularity_seconds
          schema:
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetWindowResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
      security: []
components:
  schemas:
    AssetWindowResponse:
      properties:
        close:
          example: 65400.5
          type: number
        complete:
          description: 'Complete: the window is over BY THE CLOCK.'
          example: true
          type: boolean
        confirmed:
          description: >-
            Confirmed: the candle we hold was read AFTER its bucket closed, so
            it can

            no longer change. Distinct from Complete, and the distinction is the
            whole

            point — for the seconds between a window closing and the poller
            re-reading

            it, the clock says finished while the stored close is still a

            mid-formation value. Showing that as final would mean showing a
            number

            that then moves, on the one figure that decides whether a member
            won.
          example: true
          type: boolean
        granularity_seconds:
          example: 300
          type: integer
        high:
          example: 65450.75
          type: number
        low:
          example: 65300.5
          type: number
        open:
          description: >-
            Pointers, because present-but-empty is a real state: the poller has
            not

            read this bucket yet, which is normal in the first seconds of a
            window.

            Omitted rather than zeroed so a client shows a placeholder instead
            of

            drawing a $0.00 open.
          example: 65380.25
          type: number
        symbol:
          example: BTC-USD
          type: string
        window_end:
          example: 1722950700
          type: integer
        window_start:
          example: 1722950400
          type: integer
      type: object
    ErrorResponse:
      properties:
        errors:
          description: Match on the code, not the HTTP status or any human text.
          example:
            - order.not_found
          items:
            type: string
          type: array
          uniqueItems: false
      type: object

````

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