v1

latestOpenAPI 3.0.42026-07-262045103.2 KB
Limits

Get Trading Limits

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.

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)
  • 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.

get/v1/limits/trading

Query parameters

symbolstring required

The GM token symbol.

side'buy' | 'sell' required

The direction of the trade.

The trade side

Response

OK

timestampnumber required

The Unix timestamp in milliseconds when the trading limits were last updated.

symbolstring required

The GM token symbol.

side'buy' | 'sell' required

The direction of the trade.

maxTokensstring required

The maximum token amount available to trade, represented as a string-encoded decimal with up to 18 digits after the decimal point.

maxNotionalValuestring required

The maximum notional value available to trade, represented as a string-encoded decimal with up to 18 digits after the decimal point.

remainingAttestationsstring required

The number of remaining attestations for this asset.

isAssetTradingOpenboolean required

Indicates whether the user is currently allowed to trade the asset

Example response

{
  "timestamp": 1746655938000,
  "symbol": "AAPLon",
  "maxTokens": "100.000000000000000000",
  "maxNotionalValue": "1234.560000000000000000",
  "remainingAttestations": "3",
  "reason": {
    "message": "Weekend/Holiday",
    "documentation": "https://docs.ondo.finance/"
  }
}