Skip to main content
GET
/
v1
/
perps
/
max_order_size
Get Max Order Size
curl --request GET \
  --url https://api.ondoperps.xyz/v1/perps/max_order_size \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "result": {
    "percent100": {
      "maxBidBaseSize": "43.96",
      "maxAskBaseSize": "43.96"
    },
    "percent75": {
      "maxBidBaseSize": "32.97",
      "maxAskBaseSize": "32.97"
    },
    "percent50": {
      "maxBidBaseSize": "21.98",
      "maxAskBaseSize": "21.98"
    },
    "percent25": {
      "maxBidBaseSize": "10.99",
      "maxAskBaseSize": "10.99"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

market
string
required

Market to estimate max order size for

Example:

"AAPL-USD.P"

buffer
string

Factor to scale returned sizes to guard against fluctuations between calling this endpoint and placing the order. Must be a decimal between 0 and 1. Defaults to 0.9.

Example:

"0.9"

Response

Maximum order sizes

success
boolean
required

Whether the request was successful

Example:

true

error
string

Error message, present only on failure

Example:

""

error_code
string

Semantic error code. See each endpoint's error responses for the specific codes it can return.

deprecated
string

Deprecation notice, if applicable

Example:

""

result
object