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

# List markets

> List perps markets with prices, leverage range, funding and minimum size, filterable by provider and sortable.

Returns a paginated list (`items`, `total`, `offset`, `limit`; `limit` defaults to 100, maximum 500). Omit `providerId` to list markets across all providers. `sortBy` accepts `volume24h`, `markPrice` or `priceChangePercent24h`; `order` accepts `asc` or `desc` (default `desc`).

`minSize` is a USD notional computed at the current mark price. Positions must be at least 10 USD notional. Fetch markets live: prices and funding change continuously. Use the returned `id` as `marketId` in [Execute an action](https://docs.yield.xyz/api-reference/perps-api/actions/execute-action.md).


## OpenAPI

````yaml openapi-perps.json GET /v1/markets
openapi: 3.0.0
info:
  title: 'Yield API: Trade (Perps)'
  description: >-
    API Documentation. Errors follow a uniform envelope with `details.code` from
    the public catalog (https://docs.yield.xyz). ValidationPipe failures use
    `validation.message: string[]`.
  version: '1.0'
  contact: {}
servers:
  - url: https://perps.yield.xyz
    description: Production
security: []
tags:
  - name: Discovery
    description: Browse and discover perps markets, networks, and providers
  - name: Portfolio
    description: User-specific positions, orders, and balances
  - name: Actions
    description: Generate transactions to open, close, and manage positions
externalDocs:
  description: For more information
  url: https://docs.yield.xyz
paths:
  /v1/markets:
    get:
      tags:
        - Markets
        - Discovery
      summary: List all markets
      description: >-
        Retrieve a paginated list of available perps markets across all
        supported providers and instruments.
      operationId: MarketsController_getMarkets_v1
      parameters:
        - name: offset
          required: false
          in: query
          description: Offset for pagination
          schema:
            minimum: 0
            default: 0
            example: 0
            type: number
        - name: limit
          required: false
          in: query
          description: Maximum number of items to return
          schema:
            minimum: 1
            maximum: 500
            default: 100
            example: 100
            type: number
        - name: providerId
          required: false
          in: query
          description: Filter by provider/protocol
          schema:
            type: string
            enum:
              - hyperliquid
              - hyperliquid-xyz
        - name: sortBy
          required: false
          in: query
          description: Field to sort markets by
          schema:
            enum:
              - volume24h
              - markPrice
              - priceChangePercent24h
            type: string
        - name: order
          required: false
          in: query
          description: Sort direction
          schema:
            enum:
              - asc
              - desc
            type: string
      responses:
        '200':
          description: Paginated list of markets
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/PaginatedResponseDto'
                  - properties:
                      items:
                        type: array
                        items:
                          $ref: '#/components/schemas/MarketDto'
        '400':
          description: Invalid query parameters (e.g. unknown providerId)
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 401
                  timestamp:
                    type: string
                    example: '2026-05-04T12:00:00.000Z'
                  path:
                    type: string
                    example: /v1/actions
                  message:
                    type: string
                    example: Invalid API key
                  details:
                    type: object
                    properties:
                      message:
                        type: string
                        example: Invalid API key
                      code:
                        type: string
                        example: AUTH_INVALID_API_KEY
        '429':
          description: Rate limit exceeded
          headers:
            x-ratelimit-limit:
              description: Request limit per window
              schema:
                type: string
            x-ratelimit-remaining:
              description: Remaining requests (will be 0)
              schema:
                type: string
            x-ratelimit-reset:
              description: Unix timestamp when window resets
              schema:
                type: string
            retry-after:
              description: Seconds to wait before retrying
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 429
                  timestamp:
                    type: string
                    example: '2026-05-04T12:00:00.000Z'
                  path:
                    type: string
                    example: /v1/actions
                  message:
                    type: string
                    example: Rate limit exceeded
                  details:
                    type: object
                    properties:
                      message:
                        type: string
                        example: Rate limit exceeded
                      code:
                        type: string
                        example: RATE_LIMIT_EXCEEDED
                      error:
                        type: string
                        example: Too Many Requests
                      retryAfter:
                        type: number
                        example: 30
      security:
        - ApiKey: []
components:
  schemas:
    PaginatedResponseDto:
      type: object
      properties:
        total:
          type: number
          description: Total number of items available
          example: 150
        offset:
          type: number
          description: Offset of the current page
          example: 0
        limit:
          type: number
          description: Limit of the current page
          example: 100
      required:
        - total
        - offset
        - limit
    MarketDto:
      type: object
      properties:
        id:
          type: string
          description: Market ID
          example: hyperliquid-eth-usdc
        providerId:
          type: string
          description: Provider ID
          example: hyperliquid
        baseAsset:
          description: Base asset information
          allOf:
            - $ref: '#/components/schemas/TokenDto'
        quoteAsset:
          description: Quote asset information
          allOf:
            - $ref: '#/components/schemas/TokenDto'
        leverageRange:
          description: Leverage range [min, max]
          example:
            - 1
            - 50
          type: array
          items:
            type: number
        supportedMarginModes:
          type: array
          description: Supported margin modes
          items:
            type: string
            enum:
              - isolated
              - cross
        markPrice:
          type: number
          description: Current mark price
        oraclePrice:
          type: number
          description: Oracle/index price
        priceChange24h:
          type: number
          description: Absolute price change in 24h
          example: -1.233
        priceChangePercent24h:
          type: number
          description: Percentage price change in 24h
          example: -5.01
        volume24h:
          type: number
          description: 24h trading volume in quote asset (e.g., USDC)
        openInterest:
          type: number
          description: >-
            Open interest in base asset units (e.g., number of ETH coins, not
            USD notional)
        makerFee:
          type: string
          description: Maker fee rate
          example: '0.0002'
        takerFee:
          type: string
          description: Taker fee rate
          example: '0.0004'
        fundingRate:
          type: string
          description: Current funding rate
          example: '0.00012'
        fundingRateIntervalHours:
          type: number
          description: Funding rate interval in hours
          example: 8
        minSize:
          type: number
          description: >-
            Minimum position size in USD (notional) computed at the current mark
            price. Typically prevents rejection for being below the $10 minimum,
            but actual executed notional may differ due to limit/market slippage
            or price quantization.
          example: 10.22
        metadata:
          description: Market metadata
          allOf:
            - $ref: '#/components/schemas/MarketMetadataDto'
      required:
        - id
        - providerId
        - baseAsset
        - quoteAsset
        - leverageRange
        - supportedMarginModes
        - markPrice
        - oraclePrice
        - priceChange24h
        - priceChangePercent24h
        - volume24h
        - openInterest
        - fundingRate
        - fundingRateIntervalHours
        - minSize
        - metadata
    TokenDto:
      type: object
      properties:
        symbol:
          type: string
          description: Token symbol
          example: ETH
        name:
          type: string
          description: Token name
          example: Ethereum
        network:
          description: Blockchain network
          example: hyperliquid
          allOf:
            - $ref: '#/components/schemas/Networks'
        decimals:
          type: number
          description: Token decimals
          example: 6
        address:
          type: string
          description: Token contract address (optional for native tokens)
          example: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831'
        logoURI:
          type: string
          description: Token logo URI
      required:
        - symbol
        - network
    MarketMetadataDto:
      type: object
      properties:
        name:
          type: string
          description: Market name
          example: ETH-USDC Perpetual
        logoURI:
          type: string
          description: Market logo URI
        url:
          type: string
          description: Market URL
      required:
        - name
        - logoURI
        - url
    Networks:
      type: string
      enum:
        - ethereum
        - ethereum-goerli
        - ethereum-holesky
        - ethereum-sepolia
        - ethereum-hoodi
        - arbitrum
        - base
        - base-sepolia
        - gnosis
        - optimism
        - polygon
        - polygon-amoy
        - starknet
        - zksync
        - linea
        - unichain
        - plume
        - monad-testnet
        - monad
        - robinhood
        - robinhood-testnet
        - arc-testnet
        - arc
        - avalanche-c
        - avalanche-c-atomic
        - avalanche-p
        - binance
        - celo
        - fantom
        - harmony
        - moonriver
        - okc
        - viction
        - core
        - sonic
        - plasma
        - katana
        - hyperevm
        - tempo
        - pharos
        - agoric
        - akash
        - axelar
        - band-protocol
        - bitsong
        - canto
        - chihuahua
        - comdex
        - coreum
        - cosmos
        - crescent
        - cronos
        - cudos
        - desmos
        - dydx
        - evmos
        - fetch-ai
        - gravity-bridge
        - injective
        - irisnet
        - juno
        - kava
        - ki-network
        - mars-protocol
        - nym
        - okex-chain
        - onomy
        - osmosis
        - persistence
        - quicksilver
        - regen
        - secret
        - sentinel
        - sommelier
        - stafi
        - stargaze
        - stride
        - teritori
        - tgrade
        - umee
        - sei
        - mantra
        - celestia
        - saga
        - zetachain
        - dymension
        - humansai
        - neutron
        - polkadot
        - kusama
        - westend
        - bittensor
        - aptos
        - binancebeacon
        - cardano
        - near
        - solana
        - solana-devnet
        - stellar
        - stellar-testnet
        - sui
        - tezos
        - tron
        - ton
        - ton-testnet
        - hyperliquid
      description: Blockchain network
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.