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

# Get current OHLC bars

> Returns the latest OHLC bar for all tracked futures symbols.
Bars update in real time from the live market data feed.

## Price Format
Prices are raw fixed-point integer values. Divide by 1,000,000,000 for display:
- `6010250000000` → `$6010.25`



## OpenAPI

````yaml /api-reference/md-openapi.json get /md/ohlc
openapi: 3.0.3
info:
  contact:
    name: Hyperprop
    url: https://hyperprop.com
  description: >-
    # Hyperprop Market Data API


    Real-time futures market data streaming.


    ## Overview


    - **REST endpoints** for current ticker prices, OHLC, order books

    - **WebSocket** for real-time streaming with channel subscriptions

    - **JWT authentication** + CME entitlements


    ## Price Format


    Prices are **raw fixed-point integer values** (i64):

    ```text

    displayPrice = rawPrice / 1_000_000_000

    // 6010250000000 → $6010.25

    ```


    ## Authentication


    All WebSocket connections require a JWT token:

    ```http

    wss://api.hyperprop.com/md/ws/stream?token=YOUR_JWT_TOKEN

    ```


    ## CME Entitlements


    Access requires an accepted CME market data agreement and an active
    entitlement for the requested product.


    | Exchange | Symbols |

    |----------|---------|

    | CME | ES, NQ, RTY |

    | CBOT | ZC, ZS, ZW, ZB, ZN |

    | NYMEX | CL, NG, RB |

    | COMEX | GC, SI, HG |


    ## WebSocket Usage


    Connect to `/md/ws/stream` and subscribe to channels:


    ```javascript

    const ws = new
    WebSocket('wss://api.hyperprop.com/md/ws/stream?token=JWT_TOKEN');


    ws.onopen = () => {
      // Subscribe to ticker channel
      ws.send(JSON.stringify({
        action: 'subscribe',
        channel: 'ticker',
        symbols: ['ES', 'NQ']
      }));
    };


    ws.onmessage = (e) => {
      const msg = JSON.parse(e.data);
      if (msg.type === 'Price') {
        console.log(`${msg.data.symbol}: $${(msg.data.price / 1e9).toFixed(2)}`);
      }
    };

    ```
  license:
    name: Proprietary
  title: Hyperprop Market Data API
  version: 0.1.0
servers:
  - url: https://api.hyperprop.com
    description: Production
security: []
tags:
  - description: Health checks and server information
    name: System
  - description: Current ticker prices
    name: Tickers
  - description: OHLC candlestick data
    name: OHLC
  - description: Best bid/ask prices (top of book)
    name: Order Book
  - description: Historical market data (OHLC bars)
    name: Historical
  - description: Real-time streaming via WebSocket
    name: WebSocket
paths:
  /md/ohlc:
    get:
      tags:
        - OHLC
      summary: Get current OHLC bars
      description: >-
        Returns the latest OHLC bar for all tracked futures symbols.

        Bars update in real time from the live market data feed.


        ## Price Format

        Prices are raw fixed-point integer values. Divide by 1,000,000,000 for
        display:

        - `6010250000000` → `$6010.25`
      operationId: getOhlc
      responses:
        '200':
          content:
            application/json:
              example:
                data:
                  NQU6:
                    close: 29530250000000
                    high: 29534750000000
                    low: 29521000000000
                    open: 29528500000000
                    timestamp: 1786046400000
                    volume: 412
                interval: 60
                success: true
              schema:
                $ref: '#/components/schemas/OhlcResponse'
          description: Current OHLC bars for all tracked symbols
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: OHLC service unavailable
components:
  schemas:
    OhlcResponse:
      description: Response for OHLC endpoint
      properties:
        data:
          additionalProperties:
            $ref: '#/components/schemas/OhlcData'
          description: Map of contract to latest OHLC bar
          type: object
        interval:
          description: Interval in seconds
          format: int32
          minimum: 0
          type: integer
        success:
          description: Whether the request was successful
          type: boolean
      required:
        - success
        - interval
        - data
      type: object
    ErrorResponse:
      description: Error response
      example:
        code: AUTH_REQUIRED
        error: Unauthorized
        message: Valid JWT token required
      properties:
        code:
          description: Error code for programmatic handling
          type: string
        error:
          description: Error type
          type: string
        message:
          description: Human-readable error message
          type: string
      required:
        - error
        - code
        - message
      type: object
    OhlcData:
      description: OHLC bar data for a symbol
      properties:
        close:
          description: Close price
          format: int64
          type: integer
        contract:
          description: The specific contract (e.g., "ESH6", "NQH6")
          type: string
        high:
          description: High price
          format: int64
          type: integer
        interval:
          description: Bar interval in seconds (e.g., 1, 60, 300, 3600)
          format: int32
          minimum: 0
          type: integer
        low:
          description: Low price
          format: int64
          type: integer
        open:
          description: Open price (raw fixed-point i64, divide by 1e9 for display)
          format: int64
          type: integer
        symbol:
          description: The base symbol (e.g., "ES", "NQ")
          type: string
        timestamp:
          description: Bar start timestamp (unix seconds)
          format: int64
          minimum: 0
          type: integer
        volume:
          description: Volume for the bar
          format: int64
          minimum: 0
          type: integer
      required:
        - symbol
        - contract
        - open
        - high
        - low
        - close
        - volume
        - timestamp
        - interval
      type: object

````

## Related topics

- [GET /historical - Fetch historical OHLC bars](/market-data-api/historical/get-historical--fetch-historical-ohlc-bars.md)
- [GET /historical/latest - Fetch latest OHLC bars for gap fill.](/market-data-api/historical/get-historicallatest--fetch-latest-ohlc-bars-for-gap-fill.md)
- [WebSocket Stream (Documentation Only)](/market-data-api/websocket/websocket-stream-documentation-only.md)
- [Introduction](/introduction.md)
- [Changelog](/changelog.md)
