API reference ยท Markets
/v1/marketsList markets.
No key
Every market you can trade, with its tick size, size step, leverage, fee and exposure cap. The list is complete: it never pages.
Responses#
200OK
-
A market id: the asset and USD; an option adds its venue or hours after a dot.
-
The market's name; for a currency, the pair its price is quoted in (JPY-USD: USD/JPY, yen per dollar).
-
Whether the market trades now.
One of
openhaltedclosed -
The venue it trades on: its prices and fills are that venue's. Null for a currency on FX hours.
-
When it trades: around the clock, its underlying market's sessions (Standard Market Hours, closed on weekends), or FX hours.
One of
24/7standardfx -
For an option (the same asset on another venue, or on Standard Market Hours): its market. Null for a market.
-
The ways this asset can be traded, the market first, then its options: an account holds one of them at a time (market_option_held). Null when there is only the market.
-
Prices are multiples of this.
-
Sizes are multiples of this, in the base asset.
-
The smallest order size (the size step). An order must also be worth at least min_notional.
-
The smallest order value in USD: an order worth less is refused order_too_small.
-
The highest leverage on this market.
-
The fee on each fill, in percent of its value.
-
The most you may hold on this market across your accounts on the same rule, in USD.
-
How far from the price a market order may fill, in percent.
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.