PhoenixPerpetualsDocs API v1
Get an API key

API reference ยท Markets

GET/v1/markets

List 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
  • marketstringrequired

    A market id: the asset and USD; an option adds its venue or hours after a dot.

  • namestringrequired

    The market's name; for a currency, the pair its price is quoted in (JPY-USD: USD/JPY, yen per dollar).

  • statusstringrequired

    Whether the market trades now.

    One ofopenhaltedclosed

  • venuestring or nullrequired

    The venue it trades on: its prices and fills are that venue's. Null for a currency on FX hours.

  • trading_hoursstringrequired

    When it trades: around the clock, its underlying market's sessions (Standard Market Hours, closed on weekends), or FX hours.

    One of24/7standardfx

  • option_ofstring or nullrequired

    For an option (the same asset on another venue, or on Standard Market Hours): its market. Null for a market.

  • optionsarray of object or nullrequired

    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.

  • tick_sizedecimal stringrequired

    Prices are multiples of this.

  • size_stepdecimal stringrequired

    Sizes are multiples of this, in the base asset.

  • min_sizedecimal stringrequired

    The smallest order size (the size step). An order must also be worth at least min_notional.

  • min_notionaldecimal string or nullrequired

    The smallest order value in USD: an order worth less is refused order_too_small.

  • max_leverageintegerrequired

    The highest leverage on this market.

  • fee_rate_pctdecimal stringrequired

    The fee on each fill, in percent of its value.

  • exposure_capdecimal string or nullrequired

    The most you may hold on this market across your accounts on the same rule, in USD.

  • max_slippage_pctobject or nullrequired

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

    Show 3 fields
    • defaultdecimal string or nullrequired

      The slippage bound a market order gets when it names none.

    • mindecimal string or nullrequired

      The tightest bound an order may ask.

    • maxdecimal string or nullrequired

      The widest bound an order may ask.

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.