---
title: "Get Trading Limits"
method: GET
path: "/v1/limits/trading"
tags: ["Limits"]
---

# Get Trading Limits

`GET /v1/limits/trading`

Provides real-time trading limits based on global, user, and asset-specific exposure limits.

Limits:
- The "Max Notional Value" limit is based on the dollar value of outstanding attestations. That is, if a user has a limit of \$1,000,000, and has 30 non-expired, non-filled attestations at a value of \$999,000, they will not be able to request another attestation for \$1000.
- The "Remaining Attestations" limits the number of non-expired, non-executed attestations. For example if the limit is 50, and a user has 50 outstanding attestations, they must wait for one to execute or expire before requesting another.

If the market is closed or paused, the response will indicate that trading is not allowed and provide the reason. For more information on market hours, see [Get Current Market Status](https://docs.ondo.finance/api-reference/status/get-current-market-status).

**Trading Limits Reason Codes**

When trading is not allowed, the response will include a `reason` field which may include one of the following common codes:
- `MARKET_CLOSED`: Market is closed.
- `MARKET_PAUSED`: Market is temporarily paused.
- `ASSET_PAUSED`: Specific asset is paused.
- `ASSET_CLOSED_FOR_SESSION`: The asset is not tradable in this session (e.g., not available overnight; see [Get Market Data](https://docs.ondo.finance/api-reference/assets/get-market-data-for-all-supported-assets))
- `ASSET_LIMITED`: Asset can be traded, but order size is more limited than usual.
- `MAX_LIMIT_REACHED`: Maximum limit has been reached.
- `MAX_ATTESTATIONS`: Maximum attestations reached.
- `OFFHOURS_EXPOSURE_LIMIT_REACHED`: The off-hours exposure limit has been reached for the asset during the current off-hours session.

For caching details on this endpoint, please see: [Endpoint Caching](https://docs.ondo.finance/api-reference/endpoint-caching).

## Query parameters

- `symbol` string, required
- `side` 'buy' | 'sell', required — The direction of the trade.

## Response `200`

OK

- TradingLimitsResponse
  - `timestamp` number, required — The Unix timestamp in milliseconds when the trading limits were last updated.
  - `symbol` string, required — The GM token symbol.
  - `side` 'buy' | 'sell', required — The direction of the trade.
  - `maxTokens` string, required — The maximum token amount available to trade, represented as a string-encoded decimal with up to 18 digits after the decimal point.
  - `maxNotionalValue` string, required — The maximum notional value available to trade, represented as a string-encoded decimal with up to 18 digits after the decimal point.
  - `remainingAttestations` string, required — The number of remaining attestations for this asset.
  - `isAssetTradingOpen` boolean, required — Indicates whether the user is currently allowed to trade the asset
  - `reason` TradingLimitsReason — Reason why trading is restricted for the given asset and user.
    - `message` string, required — The human-readable message describing the reason
    - `documentation` string, required — Additional documentation or reference
    - `code` 'MARKET_CLOSED' | 'MARKET_PAUSED' | 'ASSET_PAUSED' | 'ASSET_CLOSED_FOR_SESSION' | 'ASSET_LIMITED' | 'MAX_LIMIT_REACHED' | 'MAX_ATTESTATIONS' | 'OFFHOURS_EXPOSURE_LIMIT_REACHED', required — The code indicating why trading is not allowed.

## Other responses

- `400` — One of the request parameters is invalid. Please see the returned message and documentation for details.
- `401` — Missing or invalid API key.
- `403` — Trading is restricted due to market or asset state.
- `429` — The account has exceeded its rate limits. Please see the returned message and documentation for details.
- `500` — An internal server error occurred. Please see the returned message and documentation for details.

---

[API](https://skmtc.net/ondo/apis/gm-backend-api.md) · [All operations](https://skmtc.net/ondo/apis/gm-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ondo/gm-backend-api/versions/12953a4908b2/schema)
