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

# GET /ondo/stocks/market-status

> Returns Ondo GM market status with a stable response shape. The market-wide fields (`isOpen`, session fields, optional close reason) are always present. `asset` is `null` when `symbol` is omitted; when `symbol` is provided (GM token ending in lowercase `on`, e.g. `NVDAon`), `asset` nests per-symbol pause/limit status, market data, and a concrete `tradable` / `blockingReason` decision. `asset.tradable` is false for market closed/paused (`ONDO_MARKET_CLOSED` / `ONDO_MARKET_PAUSED`, unless off-hours are open) or an active asset pause (`ONDO_ASSET_PAUSED`). An active `ASSET_LIMITED` restriction only sets `limited: true` and does not block trading.



## OpenAPI

````yaml /openapi.yaml get /ondo/stocks/market-status
openapi: 3.0.0
info:
  version: 2.0.0
  title: Pods API
  description: >
    # Pods API Documentation


    Pods API is a comprehensive DeFi aggregation platform that enables
    cross-chain and same-chain transactions for yield strategies.


    ## Key Features


    - **Cross-Chain Swaps**: Swap tokens across different blockchain networks

    - **Same-Chain Swaps**: Optimal routing for swaps within the same network

    - **Yield Strategies**: Access to multiple DeFi protocols (Aave, Morpho,
    Lido, etc.)

    - **Wallet Tracking**: Monitor positions and yields across protocols

    - **Transaction Monitoring**: Real-time status updates for cross-chain
    transactions


    ## Authentication


    Most API endpoints require authentication using an API key in the
    `x-api-key` header:


    ```

    x-api-key: your-api-key-here

    ```


    Obtain your API key from the Pods dashboard.


    **Exceptions:**

    - `GET /health` is public and does not require authentication.

    - Customer dashboard endpoints (e.g. `GET /customers/me`,
    `/customers/:id/tokens`, `/customers/:id/token-groups`) require a **Bearer**
    token (Supabase or Magic JWT). API key alone is not sufficient for these
    routes because they enforce user role checks.


    ## Base URL


    Production: `https://api.pods.finance`


    ## Rate Limits


    - 100 requests per minute per API key

    - 1000 requests per hour per API key


    ## Quote Expiration


    Quotes expire after 5 minutes. The `deadline` field is a Unix timestamp in
    seconds and `deadlineDate` is an ISO 8601 string (UTC); request a new quote
    when the deadline has passed.


    ## Error Handling


    All errors follow a consistent format. The HTTP status line is the source of
    truth — the body does **not** include `httpStatus`:


    ```json

    {
      "error": {
        "code": "ERROR_CODE",
        "message": "Human-readable error message",
        "details": {}
      }
    }

    ```


    ## Common Error Codes


    - **QUOTE_NOT_FOUND** (404): Quote not found or expired

    - **ACTION_NOT_FOUND** (404): Action not found

    - **STRATEGY_NOT_FOUND** (404): Strategy not found

    - **INVALID_ACTION_TYPE** (400): Action type is not supported for this
    endpoint

    - **QUOTE_EXPIRED** (400): Quote has expired

    - **QUOTE_VALIDATION_ERROR** (400): Quote validation failed

    - **PROVIDER_NOT_FOUND** (404): Swap provider not found

    - **NO_ROUTE_FOUND** (400): No swap route available between specified chains

    - **INVALID_PREFERRED_PROVIDER** (400): Unknown preferredProvider name

    - **PREFERRED_PROVIDER_NOT_ELIGIBLE** (400): preferredProvider is not
    eligible for this swap route

    - **PREFERRED_PROVIDER_QUOTE_UNAVAILABLE** (400): No quote was returned for
    the requested preferredProvider

    - **QUOTE_GENERATION_FAILED** (400): Could not generate quote for specified
    parameters

    - **FEE_SPONSORSHIP_NOT_ALLOWED** (403): Fee sponsorship is not allowed for
    this customer

    - **INVALID_TX_HASH** (400): Invalid transaction hash format

    - **TX_UPDATE_FAILED** (500): Failed to update transaction status

    - **INVALID_AMOUNT_PARAMS** (400): Cannot specify both amountIn and
    amountOut simultaneously

    - **MISSING_AMOUNT_PARAMS** (400): Either amountIn or amountOut is required

    - **INVALID_SLIPPAGE** (400): slippage must be a number between 0.0001 and
    0.5 (fraction of 1, e.g. 0.01 = 1%)

    - **AMOUNT_IN_TOO_LOW** (400): AmountIn is below the minimum for this route

    - **AMOUNT_IN_TOO_HIGH** (400): AmountIn exceeds available liquidity for
    this route. Try a smaller amount.

    - **AMOUNT_IN_TOO_LOW_OFFRAMP** (400): AmountIn must be greater than 1 USDC

    - **AMOUNT_IN_TOO_HIGH_OFFRAMP** (400): AmountIn must be less than 5k USDC

    - **AMOUNT_OUT_TOO_LOW_OFFRAMP** (400): AmountOut must be greater than 5
    BRLA

    - **AMOUNT_OUT_TOO_HIGH_OFFRAMP** (400): AmountOut must be less than 26k
    BRLA

    - **AMOUNT_IN_TOO_LOW_ONRAMP** (400): AmountIn must be greater than 5 BRLA

    - **AMOUNT_IN_TOO_HIGH_ONRAMP** (400): AmountIn must be less than 75k BRLA

    - **AMOUNT_OUT_TOO_LOW_ONRAMP** (400): AmountOut must be greater than 1 USDC

    - **AMOUNT_OUT_TOO_HIGH_ONRAMP** (400): AmountOut must be less than 15k USDC

    - **TRANSFER_VALIDATION_FAILED** (400): Token transfer validation failed

    - **REFUND_PROCESSING_FAILED** (500): Failed to process refund transaction

    - **INSUFFICIENT_AMOUNT_FOR_REFUND** (400): Transferred amount insufficient
    to cover refund fee

    - **FORBIDDEN** (403): Access denied

    - **INTERNAL_SERVER_ERROR** (500): An unexpected error occurred

    - **BYTECODE_GENERATION_FAILED** (500): Failed to generate transaction
    bytecode

    - **SWAP_EXECUTION_FAILED** (500): Failed to execute swap transaction

    - **KAMINO_SERVICE_UNAVAILABLE** (503): Lending service is temporarily
    unavailable. Please try again later.

    - **KAMINO_BAD_REQUEST** (400): Invalid request to lending service

    - **DEPOSIT_NOT_FOUND** (404): Bitcoin deposit not found

    - **SYMBIOSIS_API_ERROR** (502): Error communicating with Symbiosis API


    ## Support


    - Documentation: https://docs.pods.finance

    - Support: support@pods.finance
  contact:
    name: Pods Support
    email: support@pods.finance
    url: https://pods.finance
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.pods.finance
    description: Production server
security: []
tags:
  - name: Health
    description: Health check endpoints
  - name: KYC
    description: Reusable Sumsub KYC import and status endpoints
  - name: Swap v2
    description: Token swap operations (latest version)
  - name: Tracking
    description: Execution tracking for swaps, transfers, and strategy operations
  - name: Strategies
    description: DeFi yield strategy operations
  - name: Tokens
    description: Token catalog operations
  - name: Ondo
    description: Ondo Global Markets stock status and tradability
  - name: Transfer
    description: Token transfer transaction generation
  - name: Wallets
    description: Wallet position tracking
  - name: Customers
    description: Customer account management (Bearer auth)
  - name: Quotes
    description: Quote history and management
  - name: Smart Account
    description: ERC-4337 Gnosis Safe smart account provisioning
paths:
  /ondo/stocks/market-status:
    get:
      tags:
        - Ondo
      summary: GET /ondo/stocks/market-status
      description: >-
        Returns Ondo GM market status with a stable response shape. The
        market-wide fields (`isOpen`, session fields, optional close reason) are
        always present. `asset` is `null` when `symbol` is omitted; when
        `symbol` is provided (GM token ending in lowercase `on`, e.g. `NVDAon`),
        `asset` nests per-symbol pause/limit status, market data, and a concrete
        `tradable` / `blockingReason` decision. `asset.tradable` is false for
        market closed/paused (`ONDO_MARKET_CLOSED` / `ONDO_MARKET_PAUSED`,
        unless off-hours are open) or an active asset pause
        (`ONDO_ASSET_PAUSED`). An active `ASSET_LIMITED` restriction only sets
        `limited: true` and does not block trading.
      parameters:
        - schema:
            type: string
            pattern: ^[A-Za-z0-9.]{1,}on$
            description: >-
              Optional Ondo GM token symbol ending in lowercase `on` (e.g.
              NVDAon). When omitted, `asset` is null.
            example: NVDAon
          required: false
          name: symbol
          in: query
      responses:
        '200':
          description: Market status with optional nested asset tradability
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OndoMarketStatus'
        '401':
          description: Unauthorized - missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid symbol (must end in lowercase `on`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: Upstream Ondo GM market status request failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Ondo GM API is not configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    OndoMarketStatus:
      type: object
      properties:
        isOpen:
          type: boolean
          example: true
        marketStatus:
          type: string
          example: regular
        nextOpen:
          type: string
        nextClose:
          type: string
        nextOpenSession:
          type: string
          example: premarket
        offhours:
          type: object
          properties:
            isOpen:
              type: boolean
              example: false
          required:
            - isOpen
        reason:
          type: object
          nullable: true
          properties:
            code:
              type: string
              example: MARKET_CLOSED
            message:
              type: string
              example: Weekend/Holiday
            documentation:
              type: string
          required:
            - code
            - message
        timestamp:
          type: string
          example: '2025-08-20T21:03:02.000Z'
        asset:
          allOf:
            - $ref: '#/components/schemas/OndoAssetTradability'
            - nullable: true
              description: >-
                Null when `symbol` is omitted; otherwise the per-symbol
                tradability snapshot
      required:
        - isOpen
        - asset
      description: Ondo GM market-wide status plus optional nested asset tradability
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details:
              nullable: true
          required:
            - code
            - message
      required:
        - error
      example:
        error:
          code: QUOTE_NOT_FOUND
          message: Quote not found or expired
    OndoAssetTradability:
      type: object
      properties:
        symbol:
          type: string
          description: Ondo GM token symbol ending in lowercase `on`
          example: NVDAon
        tradable:
          type: boolean
          description: Whether Deframe considers the symbol safe to trade right now
          example: false
        limited:
          type: boolean
          description: >-
            True when an active ASSET_LIMITED restriction exists; trade is still
            allowed
          example: false
        blockingReason:
          type: object
          nullable: true
          properties:
            code:
              type: string
              example: ONDO_ASSET_PAUSED
            message:
              type: string
              example: 'NVDAon trading is paused: earnings.'
          required:
            - code
            - message
          description: Null when tradable; otherwise a concrete ONDO_* reason
        paused:
          type: boolean
          example: true
        status:
          nullable: true
          description: Matching asset pause/limit entry when present
        marketData:
          nullable: true
          description: Raw per-asset market data when available
      required:
        - symbol
        - tradable
        - limited
        - blockingReason
        - paused
      description: >-
        Per-symbol tradability nested under market status when `symbol` is
        provided
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Obtain from your Pods dashboard.

````