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

# Get Prices

> Get price data for a market.

Returns either candlestick OHLC data or simple price history based on the `type` parameter.
The endpoint automatically determines the exchange and fetches data accordingly.

- **Kalshi**: Returns real OHLC candlestick data with volume
- **Polymarket**: Returns price history (candlesticks will have synthetic OHLC where all values equal the price)

All prices are normalized to 0-1 range.



## OpenAPI

````yaml /openapi.json get /v1/prices/{centos_id}
openapi: 3.1.0
info:
  title: Centos Finance API
  contact:
    name: Centos Finance
    url: https://centosfi.com/
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.centosfi.com
security: []
tags:
  - name: markets
    description: Search and discover prediction markets across Kalshi and Polymarket.
  - name: subaccounts
    description: >-
      Manage trading subaccounts. Each subaccount can have its own exchange
      credentials and positions.
  - name: positions
    description: View current portfolio positions across all connected exchanges.
  - name: fills
    description: Retrieve trade execution history and fill details.
  - name: prices
    description: Get historical price data and candlesticks from exchanges.
  - name: orders
    description: Place and manage orders on prediction market exchanges.
  - name: complex-orders
    description: >-
      Manage complex orders: conditional orders (take-profit and stop-loss),
      TWAP, and other advanced order types.
paths:
  /v1/prices/{centos_id}:
    get:
      tags:
        - prices
      summary: Get Prices
      description: >-
        Get price data for a market.


        Returns either candlestick OHLC data or simple price history based on
        the `type` parameter.

        The endpoint automatically determines the exchange and fetches data
        accordingly.


        - **Kalshi**: Returns real OHLC candlestick data with volume

        - **Polymarket**: Returns price history (candlesticks will have
        synthetic OHLC where all values equal the price)


        All prices are normalized to 0-1 range.
      operationId: get_prices_v1_prices__centos_id__get
      parameters:
        - name: centos_id
          in: path
          required: true
          schema:
            type: integer
            description: Centos market ID
            title: Centos Id
          description: Centos market ID
        - name: type
          in: query
          required: false
          schema:
            enum:
              - candlesticks
              - history
            type: string
            description: Response type
            default: candlesticks
            title: Type
          description: Response type
        - name: interval
          in: query
          required: false
          schema:
            enum:
              - 1d
              - 1w
              - 1m
              - max
            type: string
            description: Time range
            default: 1d
            title: Interval
          description: Time range
        - name: fidelity
          in: query
          required: false
          schema:
            type: integer
            maximum: 60
            minimum: 1
            description: Minutes per data point (for Polymarket history)
            default: 60
            title: Fidelity
          description: Minutes per data point (for Polymarket history)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PriceResponse:
      properties:
        centos_id:
          type: integer
          title: Centos Id
        exchange:
          type: string
          title: Exchange
        type:
          type: string
          enum:
            - candlesticks
            - history
          title: Type
        candlesticks:
          anyOf:
            - items:
                $ref: '#/components/schemas/PriceCandlestick'
              type: array
            - type: 'null'
          title: Candlesticks
        history:
          anyOf:
            - items:
                $ref: '#/components/schemas/PricePoint'
              type: array
            - type: 'null'
          title: History
      type: object
      required:
        - centos_id
        - exchange
        - type
      title: PriceResponse
      description: Response for price queries.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PriceCandlestick:
      properties:
        timestamp:
          type: integer
          title: Timestamp
        open:
          type: number
          title: Open
        high:
          type: number
          title: High
        low:
          type: number
          title: Low
        close:
          type: number
          title: Close
        volume:
          anyOf:
            - type: integer
            - type: 'null'
          title: Volume
      type: object
      required:
        - timestamp
        - open
        - high
        - low
        - close
      title: PriceCandlestick
      description: Candlestick format for all exchanges.
    PricePoint:
      properties:
        timestamp:
          type: integer
          title: Timestamp
        price:
          type: number
          title: Price
      type: object
      required:
        - timestamp
        - price
      title: PricePoint
      description: Simple price point for history type.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````