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 6 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.
-
-
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.
-
-
The largest request body.
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"
}
}503The API is starting and has not loaded your keys yet.
{
"error": {
"type": "engine",
"code": "not_ready",
"message": "The API is starting. Try again in a moment.",
"request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
"retryable": true,
"doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#not_ready"
}
}Errors#
Codes this endpoint can return. Match on the code, never on the message.