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

# Get Market

> Returns a single market with its tradeable outcomes and indicative pricing.



## OpenAPI

````yaml /openapi/v1.json get /v1/markets/{marketVenue}/{marketId}
openapi: 3.0.0
info:
  title: ParlayX API
  version: 1.0.0
  description: Aggregated prediction-market trading API
servers:
  - url: https://api.parlayx.com
security:
  - apiKey: []
tags:
  - name: Markets
    description: Discover markets and find cross-venue matches.
  - name: Orders
    description: Submit, inspect, and cancel orders.
  - name: Rebalances
    description: Move funds between venues and track the transfer.
  - name: Balance
    description: Read account balances and funding state.
paths:
  /v1/markets/{marketVenue}/{marketId}:
    get:
      tags:
        - Markets
      summary: Get Market
      description: >-
        Returns a single market with its tradeable outcomes and indicative
        pricing.
      operationId: getMarket
      parameters:
        - schema:
            allOf:
              - $ref: '#/components/schemas/Venue'
              - description: Market venue (must be a supported venue)
          required: true
          name: marketVenue
          in: path
        - schema:
            type: string
            minLength: 1
            description: >-
              Venue-native market identifier (Polymarket: `condition_id`;
              Limitless: `slug`).
          required: true
          name: marketId
          in: path
      responses:
        '200':
          description: Market
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMarketResponse'
        '400':
          description: Invalid request or unknown market
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: API key missing, malformed, or not recognized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
              example:
                message: Forbidden
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: >
            import { createClient } from "@parlayx/sdk";


            const client = createClient({ apiKey: process.env.PARLAYX_API_KEY!
            });


            const { market } = await client.getMarket(
              "polymarket",
              "0xd595eb9b81885ff018738300c79047e3ec89e87294424f57a29a7fa9162bf116",
            );


            for (const outcome of market.outcomes) {
              console.log(outcome.name, outcome.outcomeId, outcome.ask);
            }
components:
  schemas:
    Venue:
      type: string
      enum:
        - polymarket
        - limitless
        - predict_fun
      description: Source market venue (must be a supported venue)
      example: polymarket
    GetMarketResponse:
      type: object
      properties:
        market:
          $ref: '#/components/schemas/Market'
      required:
        - market
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              $ref: '#/components/schemas/ApiErrorCode'
            message:
              type: string
              description: Plain-text explanation of the error.
          required:
            - code
            - message
      required:
        - error
    AuthError:
      type: object
      properties:
        message:
          type: string
          description: Plain-text explanation of the authentication error.
      required:
        - message
    Market:
      type: object
      properties:
        venue:
          $ref: '#/components/schemas/Venue'
        marketId:
          type: string
          description: >-
            Venue-native market identifier (Polymarket: `condition_id`;
            Limitless: `slug`).
        title:
          type: string
          example: Will the Lakers win the 2026 NBA Finals?
        status:
          $ref: '#/components/schemas/MarketStatus'
        outcomes:
          type: array
          items:
            $ref: '#/components/schemas/MarketOutcome'
          minItems: 2
        expirationDate:
          type: string
          format: date-time
          description: ISO 8601 market expiration timestamp, normalized across venues.
          example: '2026-07-01T00:00:00Z'
      required:
        - venue
        - marketId
        - title
        - status
        - outcomes
    ApiErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - NOT_FOUND
        - INSUFFICIENT_BALANCE
        - IDEMPOTENCY_CONFLICT
        - ORDER_NOT_CANCELLABLE
        - INTERNAL_ERROR
      description: Stable identifier for the error category.
    MarketStatus:
      type: string
      enum:
        - open
        - closed
      example: open
    MarketOutcome:
      type: object
      properties:
        name:
          type: string
          example: 'Yes'
        outcomeId:
          type: string
          description: Opaque venue-native outcome identifier.
        mid:
          type: number
          description: >-
            Midpoint price (0-1) for this outcome — indicative, the mean of bid
            and ask.
        bid:
          type: number
          description: Best executable price (0-1) to sell this outcome into.
          example: 0.54
        ask:
          type: number
          description: Best executable price (0-1) to buy this outcome at.
          example: 0.56
      required:
        - name
        - outcomeId
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````