API reference ยท Accounts
/v1/accountsList accounts.
Read
The accounts your key reaches in this environment, newest first, with their rule. On the live host: your evaluation and funded accounts. On the sandbox host: your sandbox accounts.
Responses#
200OK
-
The account number.
-
The environment the account lives in.
One of
livesandbox -
Where the account is in the programme.
One of
evaluationfundedsandbox -
pending: being opened; active: trading.
One of
pendingactivepassedfailedclosedsuspended -
The product it was bought as.
-
Its size as sold.
-
The balance it started with.
-
The balance: closed trades and fees only.
-
The account's rule, as the trading engine enforces it.
Show 11 fields
-
The balance the account started with.
-
Show 4 fields
-
The most the account may lose in a trading day, in USD.
-
The same limit in percent of its basis.
-
What the day's loss is measured from.
One of
peak_balancestart_balancepeak_equityday_start_balanceday_start_equity -
What happens when it is reached.
One of
fail_accountflattenflatten_and_pause
-
-
Show 3 fields
-
The most the account may fall from its reference, in USD.
-
The same limit in percent.
-
How the reference moves: end_of_day and end_of_trade follow the highest balance, static stays at the start, intraday_equity follows the highest equity.
One of
end_of_dayend_of_tradestaticintraday_equity
-
-
Show 3 fields
-
The profit to reach, in USD.
-
The same target in percent.
-
Positions must be closed when it is reached.
-
-
Days with a trade the account needs.
-
Calendar days the account needs.
-
Positions may stay open overnight.
-
Positions may stay open over the weekend.
-
Days without a trade after which the account fails.
-
-
A payout may be requested now.
-
parkedbooleanSandbox only: parked after a while unused; it wakes the moment you use it.
-
When the account was made.
401The request has no Authorization header.
{
"error": {
"type": "authentication",
"code": "missing_api_key",
"message": "No API key: send it as Authorization: Bearer <key>.",
"request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
"retryable": false,
"doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#missing_api_key"
}
}403The key only works from the addresses you listed.
{
"error": {
"type": "permission",
"code": "ip_not_allowed",
"message": "This address is not on the key's allowlist.",
"request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
"retryable": false,
"doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#ip_not_allowed"
}
}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 trading engine did not give a complete answer in time; nothing partial is returned.
{
"error": {
"type": "engine",
"code": "state_unavailable",
"message": "The account's figures cannot be read right now.",
"request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
"retryable": true,
"doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#state_unavailable"
}
}Errors#
Codes this endpoint can return. Match on the code, never on the message.