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

# Price at Timestamp

> Returns the target price for the market window that contains the given Unix timestamp. Retries up to 4 times with 1s delay to absorb the ~1–5s publish lag at window boundaries.

<Note>
  **Building an algorithmic trading bot?** For instant, real-time delivery of target prices the moment each window opens — with no polling and no rate limits — use the [WebSocket API](/websocket) instead. Connect once, subscribe to your assets, and receive prices pushed directly to you as each market window starts.
</Note>


## OpenAPI

````yaml GET /api/v1/targets/timestamp
openapi: 3.1.0
info:
  title: Vatic API
  version: 1.0.0
  description: >-
    Polymarket price targets, Hyperliquid prediction market data, market
    timestamps, fee calculators, and order management for systematic prediction
    market trading.
servers:
  - url: https://api.vatic.trading
    description: Production
security: []
paths:
  /api/v1/targets/timestamp:
    get:
      tags:
        - Price Targets
      summary: Price at a specific timestamp
      description: >-
        Returns the target price for the market window that contains the given
        Unix timestamp. Retries up to 4 times with 1s delay to absorb the ~1–5s
        publish lag at window boundaries.
      operationId: getTargetsTimestamp
      parameters:
        - name: asset
          in: query
          required: true
          schema:
            type: string
            enum:
              - btc
              - eth
              - sol
              - xrp
              - hype
              - doge
              - bnb
        - name: type
          in: query
          required: true
          schema:
            type: string
            enum:
              - 5min
              - 15min
              - 1hour
              - 4hour
              - daily
          description: Market interval type.
        - name: timestamp
          in: query
          required: true
          schema:
            type: integer
            example: 1744027500
          description: >-
            Unix timestamp (seconds). Any timestamp within the target window
            works.
      responses:
        '200':
          description: Price for the requested window
          content:
            application/json:
              example:
                now: '2025-04-07T12:00:00.000Z'
                asset: btc
                marketType: 5min
                provider: chainlink
                requestedTimestamp: 1744027500
                requestedTimestampIso: '2025-04-07T12:05:00.000Z'
                source: chainlink
                price: 82450.75
                _cache:
                  hit: false
                  windowStart: 1744027500
                  ageSec: 3
        '400':
          description: Validation error
        '502':
          description: Upstream price provider error
        '503':
          description: Upstream throttled — retry shortly

````