PhoenixPerpetualsDocs API v1
Get an API key

API reference ยท Platform

GET/v1/limits

Get the limits⁠.

No key

Every request budget and limit, as they stand now. Budgets are per minute; a request takes from each budget it belongs to, and the rate headers of each answer say what is left.

Responses#

200OK
  • environmentstringrequired

    The environment of the host you called.

    One oflivesandbox

  • rateobjectrequired

    The request budgets. A request takes from every budget it belongs to.

    Show 8 fields
    • public_per_ipobjectrequired
      Show 2 fields
      • per_minintegerrequired

        Requests a minute.

      • burstintegerrequired

        Requests at once.

    • per_ipobjectrequired
      Show 2 fields
      • per_minintegerrequired

        Requests a minute.

      • burstintegerrequired

        Requests at once.

    • per_key_readobjectrequired
      Show 2 fields
      • per_minintegerrequired

        Requests a minute.

      • burstintegerrequired

        Requests at once.

    • per_key_tradeobjectrequired
      Show 2 fields
      • per_minintegerrequired

        Requests a minute.

      • burstintegerrequired

        Requests at once.

    • per_account_tradeobjectrequired
      Show 2 fields
      • per_minintegerrequired

        Requests a minute.

      • burstintegerrequired

        Requests at once.

    • per_customerobjectrequired
      Show 2 fields
      • per_minintegerrequired

        Requests a minute.

      • burstintegerrequired

        Requests at once.

    • bulkobjectrequired
      Show 2 fields
      • per_minintegerrequired

        Requests a minute.

      • burstintegerrequired

        Requests at once.

    • what_ifobjectrequired
      Show 2 fields
      • per_minintegerrequired

        Requests a minute.

      • burstintegerrequired

        Requests at once.

  • keysobjectrequired
    Show 3 fields
  • ordersobjectrequired
    Show 10 fields
    • Working orders an account may hold.

    • Working orders across your accounts.

    • new_per_min_accountintegerrequired

      New orders a minute on one account.

    • new_per_day_accountintegerrequired

      New orders a day on one account.

    • price_band_pctdecimal stringrequired

      How far from the market price a priced order may be, in percent.

    • quote_max_age_sintegerrequired

      The oldest price an order is checked against, in seconds.

    • quote_max_age_slow_sintegerrequired

      The oldest unchanged price of a quiet market an order is checked against, while the price feed lives (other markets move), in seconds.

    • gtd_min_secondsintegerrequired

      The nearest a gtd order may expire, in seconds from now.

    • gtd_max_daysintegerrequired

      The farthest, in days from now.

    • open_spacing_msintegerrequired

      The least time between two orders that can open a position on one account, in ms: the engine takes one about this often, so the next waits its turn (reduce-only orders and cancels never wait). A call that would wait past its reply time is refused 429 rate_limited, scope order_spacing.

  • sandboxobject
    Show 3 fields
  • strategiesobjectrequired
    Show 12 fields
  • alertsobjectrequired
    Show 3 fields
    • armed_per_accountintegerrequired

      Price alerts armed at once on one account.

    • armed_per_customerintegerrequired

      Price alerts armed at once across your accounts.

    • kept_daysintegerrequired

      How long an alert that fired (or was disabled) stays listed, in days.

  • body_max_bytesintegerrequired

    The largest request body.

  • page_limitobjectrequired
    Show 2 fields
    • defaultintegerrequired

      Items a page holds by default.

    • maxintegerrequired

      The most a page may hold.

304Not Modified: your If-None-Match still matches (no body; nothing changed).
400The request carries something this route does not know, or a parameter twice.
{
  "error": {
    "type": "invalid_request",
    "code": "unknown_field",
    "message": "A parameter or field is not part of this route.",
    "request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
    "retryable": false,
    "doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#unknown_field"
  }
}
405The path exists, with other methods (see the Allow header).
{
  "error": {
    "type": "method",
    "code": "method_not_allowed",
    "message": "This route does not take that method.",
    "request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
    "retryable": false,
    "doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#method_not_allowed"
  }
}
414The URL is over the length limit.
{
  "error": {
    "type": "payload",
    "code": "uri_too_long",
    "message": "The address is too long.",
    "request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
    "retryable": false,
    "doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#uri_too_long"
  }
}
429A request budget is used up (details.scope says which).
{
  "error": {
    "type": "rate_limit",
    "code": "rate_limited",
    "message": "Too many requests: slow down.",
    "request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
    "retryable": true,
    "doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#rate_limited"
  }
}
500An error we did not expect.
{
  "error": {
    "type": "server",
    "code": "internal_error",
    "message": "Something went wrong on our side.",
    "request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
    "retryable": true,
    "doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#internal_error"
  }
}
503A service this call needs did not answer.
{
  "error": {
    "type": "server",
    "code": "temporarily_unavailable",
    "message": "This cannot be done right now. Try again in a moment.",
    "request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
    "retryable": true,
    "doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#temporarily_unavailable"
  }
}

Errors#

Codes this endpoint can return. Match on the code, never on the message.

Guides, endpoints, fields and error codes.