> ## 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.

# Find Market Matches

> Returns exact matches for a given source market across supported target venues.



## OpenAPI

````yaml /openapi/v1.json get /v1/markets/match
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/match:
    get:
      tags:
        - Markets
      summary: Find Market Matches
      description: >-
        Returns exact matches for a given source market across supported target
        venues.
      operationId: matchMarkets
      parameters:
        - schema:
            $ref: '#/components/schemas/Venue'
          required: true
          name: marketVenue
          in: query
        - schema:
            type: string
            minLength: 1
            description: >-
              Venue-native identifier for the source market (Polymarket:
              `condition_id`; Limitless: `slug`).
          required: true
          name: marketId
          in: query
      responses:
        '200':
          description: Matching markets
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MatchMarketsResponse'
        '400':
          description: Invalid request
          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 { matches } = await client.matchMarkets({
              marketVenue: "polymarket",
              marketId: "0xd595eb9b81885ff018738300c79047e3ec89e87294424f57a29a7fa9162bf116",
            });


            for (const match of matches) {
              console.log(match.venue, match.status, match.title);
            }
components:
  schemas:
    Venue:
      type: string
      enum:
        - polymarket
        - limitless
        - predict_fun
      description: Source market venue (must be a supported venue)
      example: polymarket
    MatchMarketsResponse:
      type: object
      properties:
        matches:
          type: array
          items:
            $ref: '#/components/schemas/MarketMatch'
      required:
        - matches
    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
    MarketMatch:
      oneOf:
        - $ref: '#/components/schemas/PolymarketMatch'
        - $ref: '#/components/schemas/LimitlessMatch'
      discriminator:
        propertyName: venue
        mapping:
          polymarket:
            $ref: '#/components/schemas/PolymarketMatch'
          limitless:
            $ref: '#/components/schemas/LimitlessMatch'
    ApiErrorCode:
      type: string
      enum:
        - INVALID_REQUEST
        - NOT_FOUND
        - INSUFFICIENT_BALANCE
        - IDEMPOTENCY_CONFLICT
        - ORDER_NOT_CANCELLABLE
        - INTERNAL_ERROR
      description: Stable identifier for the error category.
    PolymarketMatch:
      type: object
      properties:
        venue:
          type: string
          enum:
            - polymarket
        title:
          type: string
        status:
          $ref: '#/components/schemas/MarketStatus'
        outcomes:
          type: array
          items:
            $ref: '#/components/schemas/MarketOutcome'
          minItems: 2
      required:
        - venue
        - title
        - status
        - outcomes
      description: A Polymarket market matched to the query.
      title: PolymarketMatch
    LimitlessMatch:
      type: object
      properties:
        venue:
          type: string
          enum:
            - limitless
        title:
          type: string
        status:
          $ref: '#/components/schemas/MarketStatus'
        marketId:
          type: string
          description: Venue-native market identifier (the Limitless market slug).
        outcomes:
          type: array
          items:
            $ref: '#/components/schemas/MarketOutcome'
          minItems: 2
      required:
        - venue
        - title
        - status
        - marketId
        - outcomes
      description: A Limitless market matched to the query.
      title: LimitlessMatch
    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

````