> ## 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 by Market Slug

> Resolves the asset, market type, and window start from a Polymarket event slug and returns the target price. Supports slug formats like `btc-updown-5m-{ts}`, `bitcoin-up-or-down-april-7-12-et`, and `bitcoin-up-or-down-on-april-7`.



## OpenAPI

````yaml GET /api/v1/targets/slug/{slug}
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/slug/{slug}:
    get:
      tags:
        - Price Targets
      summary: Price by market slug
      description: >-
        Resolves the asset, market type, and window start from a Polymarket
        event slug and returns the target price. Supports slug formats like
        `btc-updown-5m-{ts}`, `bitcoin-up-or-down-april-7-12-et`, and
        `bitcoin-up-or-down-on-april-7`.
      operationId: getTargetsBySlug
      parameters:
        - name: slug
          in: path
          required: true
          schema:
            type: string
            example: btc-updown-5m-1744027500
          description: Polymarket event slug.
      responses:
        '200':
          description: Price for the resolved market
          content:
            application/json:
              example:
                now: '2025-04-07T12:00:00.000Z'
                slug: btc-updown-5m-1744027500
                asset: btc
                marketType: 5min
                windowStart: 1744027500
                windowStartIso: '2025-04-07T12:05:00.000Z'
                source: chainlink
                price: 82450.75
        '400':
          description: Unrecognised slug format
        '410':
          description: Historical data too old (Chainlink retains ~14 days)
        '502':
          description: Upstream error

````