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

# Get Markets

> Retrieve a list of prediction markets with their current prices, liquidity, and market data. Supports pagination and filtering by status and event ticker.



## OpenAPI

````yaml openapi.json get /v1/prediction-market/markets
openapi: 3.0.0
info:
  title: Swaps API
  description: The Swaps API documentation
  version: '1.0'
  contact: {}
servers:
  - url: https://swap-api.flux.fun
    description: Production
  - url: http://localhost:3000
    description: Development
security: []
tags: []
paths:
  /v1/prediction-market/markets:
    get:
      tags:
        - Prediction Markets & Portfolio
      summary: Get Markets
      description: >-
        Retrieve a list of prediction markets with their current prices,
        liquidity, and market data. Supports pagination and filtering by status
        and event ticker.
      operationId: PredictionMarketsController_getMarkets
      parameters:
        - name: limit
          required: false
          in: query
          description: >-
            Maximum number of markets to return. Defaults to 20. Maximum is
            1000.
          schema:
            type: number
        - name: status
          required: false
          in: query
          description: >-
            Market status filter. Options: unopened, open, paused, closed,
            settled. Defaults to "open".
          schema:
            type: string
        - name: cursor
          required: false
          in: query
          description: Pagination cursor for fetching the next page of results.
          schema:
            type: string
        - name: event_ticker
          required: false
          in: query
          description: >-
            Filter by event ticker. Multiple event tickers can be provided as a
            comma-separated list (maximum 10).
          schema:
            type: string
        - name: tickers
          required: false
          in: query
          description: >-
            Filter by specific market tickers. Comma-separated list of market
            tickers to retrieve.
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMarketsResponseDto'
      security:
        - api-key: []
components:
  schemas:
    GetMarketsResponseDto:
      type: object
      properties:
        markets:
          type: array
          items:
            $ref: '#/components/schemas/MarketDto'
        cursor:
          type: string
          nullable: true
        count:
          type: number
          example: 20
      required:
        - markets
        - count
    MarketDto:
      type: object
      properties:
        ticker:
          type: string
          example: KXBTC-24DEC31-T100K
        eventTicker:
          type: string
          example: KXBTC-24DEC31
        title:
          type: string
          example: Will Bitcoin reach $100,000 by Dec 31?
        subtitle:
          type: string
          example: Bitcoin price prediction market
        status:
          type: string
          example: open
        marketType:
          type: string
          example: binary
        yesBid:
          type: number
          example: 45
        yesAsk:
          type: number
          example: 47
        noBid:
          type: number
          example: 53
        noAsk:
          type: number
          example: 55
        lastPrice:
          type: number
          example: 46
        yesBidDollars:
          type: string
          example: '0.45'
        yesAskDollars:
          type: string
          example: '0.47'
        noBidDollars:
          type: string
          example: '0.53'
        noAskDollars:
          type: string
          example: '0.55'
        lastPriceDollars:
          type: string
          example: '0.46'
        liquidity:
          type: number
          example: 50000
        liquidityDollars:
          type: string
          example: '500.00'
        volume:
          type: number
          example: 1000000
        volume24h:
          type: number
          example: 50000
        openInterest:
          type: number
          example: 25000
        openTime:
          type: string
          example: '2024-01-01T00:00:00Z'
        closeTime:
          type: string
          example: '2024-12-31T23:59:59Z'
        expirationTime:
          type: string
          example: '2025-01-01T12:00:00Z'
        rulesPrimary:
          type: string
          example: This market resolves to Yes if Bitcoin trades at or above $100,000
        rulesSecondary:
          type: string
        yesSubTitle:
          type: string
          example: Bitcoin reaches $100K
        noSubTitle:
          type: string
          example: Bitcoin stays below $100K
        iconUrlDarkMode:
          type: string
          example: example.com/icon.png
          description: Icon URL for dark mode
        iconUrlLightMode:
          type: string
          example: example.com/icon.png
          description: Icon URL for light mode
        backgroundColorLightMode:
          type: string
          example: '#AA00FF'
          description: Background color for light mode
        backgroundColorDarkMode:
          type: string
          example: '#D24DFF'
          description: Background color for dark mode
      required:
        - ticker
        - eventTicker
        - title
        - subtitle
        - status
        - marketType
        - yesBid
        - yesAsk
        - noBid
        - noAsk
        - lastPrice
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key

````