# Plurex Docs - [Welcome to Plurex](https://docs.plurex.io/index.md): One execution layer for trading across venues and hosts, from risk-free forward testing to live execution. - [How Plurex works](https://docs.plurex.io/how-plurex-works.md): The model behind Plurex: venues, hosts, accounts and paper hosts, the principles that keep it unambiguous, and how a strategy moves from paper to live. - [Quickstart](https://docs.plurex.io/quickstart.md): Go from a new Plurex account to a filled paper order in about ten minutes, using curl. - [Authentication](https://docs.plurex.io/authentication.md): Create API keys with the access each program needs, and authenticate every request and stream with two headers. - [Venues and hosts](https://docs.plurex.io/concepts/venues-and-hosts.md): The core model behind Plurex: venues are where markets trade and prices form, hosts hold your accounts and execute your orders. - [Venues](https://docs.plurex.io/concepts/venues.md): How Plurex models market data: venue markets, order books, trades, observations, freshness, candles, funding history and streams. - [Hosts](https://docs.plurex.io/concepts/hosts.md): How Plurex models trading: host markets, orders, fills, wallets, positions, margin, market settings and transactions. - [Tenants and accounts](https://docs.plurex.io/concepts/accounts.md): Who owns your accounts, how real and paper accounts are created, and how to manage them safely through the API. - [Instruments and sizing](https://docs.plurex.io/concepts/instruments.md): How Plurex identifies instruments, derives canonical symbols, and measures every size in native contracts. - [Capabilities](https://docs.plurex.io/capabilities/overview.md): How every Plurex host and venue describes exactly what it supports, so your code can decide what to call before it calls. - [Host capabilities](https://docs.plurex.io/capabilities/host-capabilities.md): Every capability in a host's header, the request variant each one gates, and how to use them to choose between operations. - [Market order rules](https://docs.plurex.io/capabilities/order-rules.md): Read a host market's order types, per-input rules, options, trigger rules and settings, and build orders that pass them exactly. - [Venue capabilities](https://docs.plurex.io/capabilities/venue-capabilities.md): Which market-data reads and streams each venue and market supports, on what terms, and how to resolve one before you call it. - [Place and manage orders](https://docs.plurex.io/guides/orders.md): Submit every order type, track orders to their final state, cancel them, and recover safely when a submission's outcome is unclear. - [Streams](https://docs.plurex.io/guides/streams.md): Follow your accounts' orders and balance postings, and a market's order book, trades, prices and candles, as they happen, and keep a correct local copy through reconnects. - [Balances, positions and settings](https://docs.plurex.io/guides/portfolio.md): Read an account's balances, positions and margin, set leverage and position mode safely, and reconcile balance postings. - [Read market data](https://docs.plurex.io/guides/market-data.md): Discover venues and markets, read order books, trades, prices and statistics, follow them live with streams, and page back through candles and funding history. - [Paper trading](https://docs.plurex.io/paper/overview.md): Forward test strategies against live order books with simulated funds, through the same API calls you use to trade for real. - [Leverage and liquidation](https://docs.plurex.io/paper/leverage-and-liquidation.md): How paper perpetuals use collateral and leverage, when an account is liquidated, and what happens to a loss bigger than the account. - [Fees and funding](https://docs.plurex.io/paper/fees-and-funding.md): Choose a paper account's fee tier, read the rates it pays, and follow perpetual funding and settlement through its transactions. - [From paper to live](https://docs.plurex.io/paper/going-live.md): Move a strategy from paper trading to a connected exchange account with the same API calls, and plan for the differences that matter. - [Platform API](https://docs.plurex.io/api-reference/platform/overview.md): The Plurex Platform API is command and query RPC over HTTP with long-lived streams: how it is shaped, where it lives and how to call it. - [API conventions](https://docs.plurex.io/api-reference/platform/conventions.md): Understand request and response formats, paging, unions, batches, sizes, decimals, timestamps and compatibility. - [Errors](https://docs.plurex.io/api-reference/platform/errors.md): The error envelope, every error code with what to do about it, and how to retry and reconcile each operation. - [List venues](https://docs.plurex.io/api-reference/platform/venues/list.md): Lists every venue with the market data it supports. - [List venue markets](https://docs.plurex.io/api-reference/platform/venues/list-markets.md): Lists a venue's markets with the market data each one supports, optionally filtered. Option markets are not listed. - [Get the L2 order book](https://docs.plurex.io/api-reference/platform/venues/get-order-book-l2.md): The current L2 order book of one market: each price level with the total size resting there. An unknown market returns 422 NotSupported. - [Stream the L2 order book](https://docs.plurex.io/api-reference/platform/venues/subscribe-to-order-book-l2s.md): Streams one market's L2 order book: a Reset of the whole book, then Updates of the changed levels. An unlisted market returns 422 NotSupported. - [Get the L1 order book](https://docs.plurex.io/api-reference/platform/venues/get-order-book-l1.md): The current top of book of one market: the best bid and ask with the total size at each. A market the venue does not serve returns 422 NotSupported. - [Stream the L1 order book](https://docs.plurex.io/api-reference/platform/venues/subscribe-to-order-book-l1s.md): Streams one market's top of book: a Reset with the current best bid and ask, then an Update with the complete top of book on each change. A market the venue does not stream returns 422 NotSupported. - [Get recent trades](https://docs.plurex.io/api-reference/platform/venues/get-recent-trades.md): The venue's recent public trades for one market, oldest first; not a complete history. An unknown market returns 422 NotSupported. - [Stream public trades](https://docs.plurex.io/api-reference/platform/venues/subscribe-to-trades.md): Streams one market's public trades: a Reset of the recent trades, then Updates with new trades. An unlisted market returns 422 NotSupported. - [Get a price](https://docs.plurex.io/api-reference/platform/venues/get-price.md): The current price of one kind (traded, mark or index) for one market. A market or kind the venue does not serve returns 422 NotSupported. - [Stream a price](https://docs.plurex.io/api-reference/platform/venues/subscribe-to-prices.md): Streams one market's price of one kind: a Reset with the current value, then an Update on each change. A market or kind the venue does not stream returns 422 NotSupported. - [Get market statistics](https://docs.plurex.io/api-reference/platform/venues/get-market-statistics.md): Statistics for one market, over the window it declares. A market the venue does not serve returns 422 NotSupported. - [Stream market statistics](https://docs.plurex.io/api-reference/platform/venues/subscribe-to-market-statistics.md): Streams one market's statistics: a Reset with the current values, then an Update on each change. A market the venue does not stream returns 422 NotSupported. - [Get indicative funding](https://docs.plurex.io/api-reference/platform/venues/get-indicative-funding.md): The current indicative funding rate for one perpetual; the rate that settles can differ. A market the venue does not serve returns 422 NotSupported. - [Stream indicative funding](https://docs.plurex.io/api-reference/platform/venues/subscribe-to-indicative-fundings.md): Streams one perpetual's indicative funding rate: a Reset with the current estimate, then an Update on each change. A market the venue does not stream returns 422 NotSupported. - [Get open interest](https://docs.plurex.io/api-reference/platform/venues/get-open-interest.md): The current open interest for one derivative, in the unit its market declares. A market the venue does not serve returns 422 NotSupported. - [Stream open interest](https://docs.plurex.io/api-reference/platform/venues/subscribe-to-open-interests.md): Streams one derivative's open interest: a Reset with the current amount, then an Update on each change. A market the venue does not stream returns 422 NotSupported. - [List candles](https://docs.plurex.io/api-reference/platform/venues/list-candles.md): Closed candles for one market, price kind and interval, newest first, without gaps; the forming candle is never included. ByInstrument starts from the latest closed candle, ByInstrumentBefore from candles ending at or before `before`; paging past the first page needs the market's listBefore. Before… - [Stream candles](https://docs.plurex.io/api-reference/platform/venues/subscribe-to-candles.md): Streams one market's candles of one price kind and interval: a Reset of the recent candles, then an Update of the current candle as it forms and as each new one starts. A market, price kind or interval the venue does not stream returns 422 NotSupported. - [List funding periods](https://docs.plurex.io/api-reference/platform/venues/list-funding-periods.md): Finalized funding rates for one perpetual, newest first across every page. A market the venue does not serve returns 422 NotSupported. - [List hosts](https://docs.plurex.io/api-reference/platform/hosts/list.md): Lists every host, real and paper, with the operations it supports. - [List host markets](https://docs.plurex.io/api-reference/platform/hosts/list-markets.md): Lists a host's markets with their order types, order rules and settings, optionally filtered. Option markets are not listed. - [Get an order](https://docs.plurex.io/api-reference/platform/hosts/get-order.md): Gets one order by ID or clientOrderId. 404 OrderNotFound can mean the order is not visible yet. - [Get orders](https://docs.plurex.io/api-reference/platform/hosts/get-orders.md): Gets the orders you name. Unknown identifiers are left out. - [List open orders](https://docs.plurex.io/api-reference/platform/hosts/list-orders.md): Lists live orders, globally or for one instrument. - [Stream account orders](https://docs.plurex.io/api-reference/platform/hosts/subscribe-to-account-orders.md): Streams one account's orders, starting with a Reset of its open orders, then an Update per change the host reports, each carrying the complete order. Intermediate states may be merged; a terminal state is final. After an Ended line, subscribe again for a fresh Reset. - [List closed orders](https://docs.plurex.io/api-reference/platform/hosts/list-closed-orders.md): Lists filled, cancelled and rejected orders, globally or for one instrument, optionally before or after a time. Treat that time boundary as approximate and dedupe by order ID. - [Submit an order](https://docs.plurex.io/api-reference/platform/hosts/submit-order.md): Submits one order and returns it as the host accepted it, Pending until the host has reported it working; what happens next arrives on the order stream and GetOrder. If the outcome is unclear (a timeout, 429 or 5xx), look the order up with the GetOrder clientOrderId variant the host supports before… - [Cancel an order](https://docs.plurex.io/api-reference/platform/hosts/cancel-order.md): Cancels one open order; Ack means the host accepted the cancel, so confirm the final state with the order stream or GetOrder. 404 OrderNotFound means the host does not know it as an open order (possibly not visible yet), and 409 OrderAlreadyClosed means it already finished and may have filled, so do… - [Cancel orders](https://docs.plurex.io/api-reference/platform/hosts/cancel-orders.md): Cancels the orders you name and returns one CancelResult per identifier; a Failed result carries the code CancelOrder would return. An error that stops the whole call is returned as an ordinary error. - [Cancel all orders](https://docs.plurex.io/api-reference/platform/hosts/cancel-all-orders.md): Cancels every open order on the account, or on one instrument; success means none remain open, and orders already closed count as cancelled. Otherwise it returns 502 CancelAllFailed: check ListOpenOrders. - [List fills](https://docs.plurex.io/api-reference/platform/hosts/list-fills.md): Lists executions for one order, one instrument or the whole account. - [List wallets](https://docs.plurex.io/api-reference/platform/hosts/list-wallets.md): Lists the account's asset balances. - [List open positions](https://docs.plurex.io/api-reference/platform/hosts/list-positions.md): Lists the account's open derivative positions. An instrument can appear in more than one item. - [List margin states](https://docs.plurex.io/api-reference/platform/hosts/list-margin-states.md): Lists the account's margin groups with their totals; an account has zero or more. A host can refuse an account margin mode it does not support with 422 NotSupported. - [Get market account state](https://docs.plurex.io/api-reference/platform/hosts/get-market-state.md): Gets the account's balances, position, collateral and leverage for one market. Where the market has more than one position, it returns their summed sides. - [Get market leverage](https://docs.plurex.io/api-reference/platform/hosts/get-leverage.md): Gets the account's current leverage setting for one market. - [Get market position mode](https://docs.plurex.io/api-reference/platform/hosts/get-position-mode.md): Gets the account's position mode for one market. - [Set market leverage](https://docs.plurex.io/api-reference/platform/hosts/set-leverage.md): Sets the account's leverage for one market and returns the resulting setting. - [Set market position mode](https://docs.plurex.io/api-reference/platform/hosts/set-position-mode.md): Sets the account's position mode for one market and returns the resulting mode. - [List account transactions](https://docs.plurex.io/api-reference/platform/hosts/list-transactions.md): Lists the account's balance postings, in the order the host's listTransactions capability states. Posting IDs match the transaction stream. - [Stream account transactions](https://docs.plurex.io/api-reference/platform/hosts/subscribe-to-account-transactions.md): Streams one account's new balance postings, with the IDs ListTransactions returns; reconcile with ListTransactions after the stream opens. Not ordered relative to order events. - [Connect an exchange or broker account](https://docs.plurex.io/api-reference/platform/accounts/connect.md): Connects an exchange or broker account with its API credentials: 422 InvalidProviderCredentials if the provider rejects them, 422 ProviderAccessDenied if they lack the access the account needs. If the outcome is unclear, check List accounts before retrying. - [Update account credentials](https://docs.plurex.io/api-reference/platform/accounts/update-connection.md): Replaces the account's exchange or broker credentials: 422 InvalidProviderCredentials if the provider rejects them, 422 ProviderAccessDenied if they lack the access the account needs. - [Rename an account](https://docs.plurex.io/api-reference/platform/accounts/rename.md): Renames an account. - [Delete an account](https://docs.plurex.io/api-reference/platform/accounts/delete.md): Deletes an account. A paper account takes nothing more: its open orders are cancelled and its positions closed at market. A real account keeps its orders and positions on the venue. Repeating after success returns 404 AccountNotFound. - [List accounts](https://docs.plurex.io/api-reference/platform/accounts/list.md): Lists the tenant's accounts that the API key can access, optionally filtered. Accounts it cannot access are left out of each page, so a page can be short or empty before the last. - [Get an account](https://docs.plurex.io/api-reference/platform/accounts/get.md): Gets one account. - [Create a paper account](https://docs.plurex.io/api-reference/platform/paper/create.md): Creates a paper account on a paper host. 422 AccountLimit when the tenant can create no more paper accounts. If the outcome is unclear, check List accounts before retrying. - [Deposit into a paper account](https://docs.plurex.io/api-reference/platform/paper/deposit.md): Credits the paper account and returns the resulting wallet. If the outcome is unclear, check ListTransactions before retrying. - [Withdraw from a paper account](https://docs.plurex.io/api-reference/platform/paper/withdraw.md): Debits the paper account's available balance and returns the resulting wallet; above the available balance, or above what an open position's loss or a debt leaves available, it fails with 422 InsufficientFunds and changes nothing. If the outcome is unclear, check ListTransactions before retrying. - [Set paper fee tier](https://docs.plurex.io/api-reference/platform/paper/set-fee-tier.md): Selects the paper account's fee tier and returns the resulting fee settings. Existing orders keep their fee terms. - [Get paper host fee tiers](https://docs.plurex.io/api-reference/platform/paper/get-host-fee-tiers.md): Gets a paper host's selectable fee tiers and its default tier. - [Get paper fee settings](https://docs.plurex.io/api-reference/platform/paper/get-fee-settings.md): Gets the available fee tiers and the selected tier. - [Get effective paper fee rates](https://docs.plurex.io/api-reference/platform/paper/get-effective-fee-rates.md): Gets the maker and taker rates that apply to new orders on one instrument. - [Web app](https://docs.plurex.io/platform/overview.md): Use the Plurex web app to sign up, trade by hand, review your accounts and create the API keys your programs use. - [Terminal](https://docs.plurex.io/platform/terminal.md): Trade one market at a time in the web app, with a live chart, order book, trades and your position. - [Accounts](https://docs.plurex.io/platform/accounts.md): Add real and paper accounts in the web app, fund paper accounts, and review each account's balances, positions, orders and history. - [Connect an exchange account](https://docs.plurex.io/platform/add-exchange.md): Create an exchange API key and connect your exchange account to Plurex in the web app or through the API. - [Organisations and members](https://docs.plurex.io/platform/organisations.md): Share trading accounts and API keys with a team in an organisation, and choose exactly what each member can do. - [API keys and access](https://docs.plurex.io/platform/api-keys.md): Create API keys on the DevTools page and choose exactly which accounts each key can reach and what it can do there. - [Settings and security](https://docs.plurex.io/platform/settings.md): Change your email and password, turn on two-factor authentication, and recover access to your Plurex login. ## OpenAPI Specs - [plurex-platform-api](/api-reference/platform/plurex-platform-api.yaml) ## AsyncAPI Specs - [plurex-platform-async-api](/api-reference/platform/plurex-platform-async-api.yaml) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.