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

# List Pulse markets

> Pulse markets are short-horizon cycles (for example BTC 5-minute
windows). Use `status=ACTIVE` to fetch the currently-open cycles
and `status=RESOLVED` (or `CLOSED`) to page through history.




## OpenAPI

````yaml /data-api-reference/openapi.yaml get /pulse/markets
openapi: 3.0.3
info:
  title: XO Data API
  description: >
    Public HTTP routes for **market discovery, portfolio reads, and related

    metadata**, served by the NestJS
    [`xo-backend`](https://github.com/xo-market/xo)

    service on the app host (`https://api-mainnet.xo.market`).


    These endpoints are intentionally separate from the CLOB orderbook REST

    surface (`openapi.yaml`). Use them to:

      * list markets and apply filters (status, category, scope, search),
      * resolve a market by numeric id, by `conditionId`/wrapper address, or
        by slug,
      * list short-horizon **Pulse** markets (e.g. BTC 5-minute windows) and
        fetch a single pulse market by on-chain address,
      * read a user's public portfolio via `GET /users/portfolio`, and
      * read **liquidity rewards** (public discovery plus Privy-authenticated
        `/me` routes).

    Real-time portfolio snapshots are delivered over the unauthenticated

    Socket.IO namespace `/portfolio-public`. See the

    [Portfolio WebSocket](/data-api-reference/portfolio-websocket) guide.


    All paths use the service `/api` global prefix. In non-production

    deployments, the full generated Swagger document is available at

    `/swagger` on the same host.


    ### Rate limits


    Data API REST routes share a budget of **100 requests per 10 seconds**

    per client IP. `/public/liquidity-rewards/*` is throttled separately

    at **30 requests per 10 seconds**.


    ### Wire conventions

      * Pagination is page-based: `page` (1-indexed) and `take` (or `limit`
        for the Pulse routes). Liquidity-rewards proxied pages use 0-indexed
        `page` and `page_size`.
      * Numeric ids are integers; `conditionId` values are `0x`-prefixed
        32-byte hex strings. Use `conditionId` as `marketId` on
        liquidity-rewards routes.
      * Volume strings are decimal (USD) or WEI-encoded (token), depending
        on the field name (`totalVolumeInUSD` vs `totalVolume`).
      * Liquidity-rewards amounts and scores are decimal **strings**.
        Catalogue/summary BFFs are camelCase; proxied maker/market-day
        payloads are snake_case.
      * Authenticated `/liquidity-rewards/*` routes require
        `Authorization: Bearer <privy_access_token>`. The
        `/public/liquidity-rewards/*` prefix does not.

    ### Market scope for market makers


    The `/markets` endpoint accepts a `marketScope` query parameter that

    maps to the on-chain `IXOMarketV1.MarketType` enum

    (`STANDARD=0`, `PULSE=1`, `CLOB=2`, `CLOB_PULSE=3`). Market makers

    integrating against the XO CLOB **should only use**:

      * `onlyClob` — `CLOB` + `CLOB_PULSE` (orderbook markets, both
        long-form and pulse).
      * `onlyClobPulse` — `CLOB_PULSE` only (BTC 5-minute pulse).

    The remaining scopes (`default`, `withClob`, `withPulse`, `onlyPulse`)

    include `STANDARD` and/or `PULSE` markets, which are **LMSR AMM**

    deployments and are not tradable through the CLOB orderbook. Ignore

    those scopes (and rows where `market.type` is `0` or `1`) for MM use.
  version: 1.0.0
  contact:
    name: XO Market
    url: https://beta.xo.market
servers:
  - url: https://api-mainnet.xo.market/api
    description: Production xo-backend (XO mainnet, chainId 3223)
security: []
tags:
  - name: Markets
    description: Market list, filtering, and per-market metadata.
  - name: Pulse Markets
    description: Short-horizon (e.g. BTC 5-minute) Pulse markets.
  - name: Portfolio
    description: Unauthenticated public portfolio reads.
  - name: Liquidity Rewards (public)
    description: |
      Unauthenticated liquidity-rewards reads under
      `/public/liquidity-rewards`. No Privy token.
  - name: Liquidity Rewards (authenticated)
    description: |
      Privy-gated liquidity-rewards reads under `/liquidity-rewards`.
      Send `Authorization: Bearer <privy_access_token>`.
externalDocs:
  description: Data API overview
  url: /data-api-reference/introduction
paths:
  /pulse/markets:
    get:
      tags:
        - Pulse Markets
      summary: List Pulse markets
      description: |
        Pulse markets are short-horizon cycles (for example BTC 5-minute
        windows). Use `status=ACTIVE` to fetch the currently-open cycles
        and `status=RESOLVED` (or `CLOSED`) to page through history.
      parameters:
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/Limit'
        - in: query
          name: status
          schema:
            type: string
            example: ACTIVE
          description: '`ACTIVE`, `RESOLVED`, `CLOSED`.'
        - in: query
          name: marketConfigId
          schema:
            type: integer
          description: Restrict to a specific market config (asset + horizon).
        - in: query
          name: adapterConfigId
          schema:
            type: integer
        - in: query
          name: sortBy
          schema:
            type: string
            enum:
              - createdAt
              - expiresAt
              - resolvedAt
              - closedAt
        - in: query
          name: sortOrder
          schema:
            type: string
            enum:
              - ASC
              - DESC
            default: DESC
      responses:
        '200':
          description: Paginated Pulse market list.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PulseMarketsPage'
components:
  parameters:
    Page:
      in: query
      name: page
      required: false
      schema:
        type: integer
        minimum: 1
        default: 1
      description: Page number (1-indexed).
    Limit:
      in: query
      name: limit
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 10
      description: Page size for the Pulse endpoints.
  schemas:
    PulseMarketsPage:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/PulseMarket'
        meta:
          $ref: '#/components/schemas/PulseMeta'
    PulseMarket:
      type: object
      description: |
        Short-horizon Pulse market (proxied from the perpetual-markets
        service). Each cycle has its own `marketAddress`; aggregated
        history per `marketConfigId` is exposed via the parent service.
      properties:
        id:
          type: integer
        marketConfigId:
          type: integer
          example: 1
        adapterConfigId:
          type: integer
          example: 1
        marketConfigName:
          type: string
          example: BTC-5min
          description: Human-readable config name (e.g. asset + horizon).
        marketAddress:
          type: string
          description: On-chain Pulse market address for this cycle.
        status:
          type: string
          example: ACTIVE
          description: |
            Cycle status. Common values: `ACTIVE`, `RESOLVED`, `CLOSED`.
        cycleNumber:
          type: integer
          example: 9821
        startsAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        observationStartsAt:
          type: string
          format: date-time
        observationEndsAt:
          type: string
          format: date-time
        resolvedAt:
          type: string
          format: date-time
          nullable: true
        closedAt:
          type: string
          format: date-time
          nullable: true
        openingTwap:
          type: string
          nullable: true
        closingTwap:
          type: string
          nullable: true
        winningOutcome:
          type: integer
          nullable: true
        sampleCount:
          type: integer
          example: 60
        marketMetadata:
          type: object
          additionalProperties: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    PulseMeta:
      type: object
      required:
        - page
        - limit
        - total
        - totalPages
        - hasNextPage
        - hasPreviousPage
      properties:
        page:
          type: integer
          example: 1
        limit:
          type: integer
          example: 10
        total:
          type: integer
          example: 42
        totalPages:
          type: integer
          example: 5
        hasNextPage:
          type: boolean
          example: true
        hasPreviousPage:
          type: boolean
          example: false

````