API reference ยท Platform
/v1/limitsGet 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
-
The environment of the host you called.
One of
livesandbox -
The request budgets. A request takes from every budget it belongs to.
Show 8 fields
-
Show 3 fields
-
Keys you may hold in each environment.
-
Addresses in a key's allowlist.
-
The longest a key may live, in days.
-
-
Show 10 fields
-
Working orders an account may hold.
-
Working orders across your accounts.
-
New orders a minute on one account.
-
New orders a day on one account.
-
How far from the market price a priced order may be, in percent.
-
The oldest price an order is checked against, in seconds.
-
The oldest unchanged price of a quiet market an order is checked against, while the price feed lives (other markets move), in seconds.
-
The nearest a gtd order may expire, in seconds from now.
-
The farthest, in days from now.
-
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.
-
-
sandboxobjectShow 3 fields
-
Sandbox accounts you may open, ever.
-
The balance a sandbox account starts with.
-
Hours without use before a sandbox account is parked.
-
-
Show 12 fields
-
Running strategies an account may hold.
-
Of those, programs (oco, twap, vwap, scaled, chase, conditional).
-
Working orders of strategies on one account.
-
Running strategies across your accounts.
-
Take-profit legs on one position.
-
Stop-loss legs on one position.
-
The shortest twap or vwap, in minutes.
-
The longest twap or vwap, in minutes.
-
The shortest time between slices, in seconds.
-
The most limits in a scaled ladder.
-
Whether chase strategies may start.
-
The longest a chase may run, in minutes.
-
-
Show 3 fields
-
Price alerts armed at once on one account.
-
Price alerts armed at once across your accounts.
-
How long an alert that fired (or was disabled) stays listed, in days.
-
-
The largest request body.
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.