# Synthetix Mainnet > Developer documentation for Synthetix perpetual contracts ## Integration essentials (for AI agents) These notes summarize concepts that repeat across the API reference below. **Links in this file use absolute URLs** so tools can fetch pages without resolving a base path. - **Trader documentation** (separate site): [docs.synthetix.io](https://docs.synthetix.io) — end-user guides; **this** file indexes **developer** integration docs only. - **Mainnet endpoints** (see [Environments](https://developers.synthetix.io/environments)): **REST:** `POST` `https://papi.synthetix.io/v1/trade` (authenticated), `POST` `https://papi.synthetix.io/v1/info` (public). **WebSocket:** `wss://papi.synthetix.io/v1/ws/trade` (authenticated), `wss://papi.synthetix.io/v1/ws/info` (public). **Headers:** every REST and WebSocket request must send a descriptive **User-Agent** (see Environments). - **Authentication**: trading uses **EIP-712** signed requests; each request needs a monotonically increasing **nonce**. EIP-712 **domain** for mainnet: `name: "Synthetix"`, `version: "1"`, `chainId: 1`, `verifyingContract: "0x0000000000000000000000000000000000000000"`. See [Authentication](https://developers.synthetix.io/developer-resources/api/authentication) and [Nonce management](https://developers.synthetix.io/developer-resources/api/authentication/nonce-management). - **REST vs WebSocket**: most actions are available on both; see [REST API](https://developers.synthetix.io/developer-resources/api/rest-api) and [WebSocket API](https://developers.synthetix.io/developer-resources/api/ws-api). - **Shared types and policies**: [Objects](https://developers.synthetix.io/developer-resources/api/objects), [Notation](https://developers.synthetix.io/developer-resources/api/notation), [Error handling](https://developers.synthetix.io/developer-resources/api/error-handling), and [Rate limits](https://developers.synthetix.io/developer-resources/api/rate-limits). - **OpenAPI**: there is no public OpenAPI bundle for this API today; the MDX pages listed below are the source of truth. ## Docs - [Changelog](https://developers.synthetix.io/changelog): Changes relevant to 3rd-party integrators for the Synthetix release on 2026-04-28. - [Deposits & Account Creation](https://developers.synthetix.io/deposits): This guide covers how to deposit collateral into your Synthetix trading account and how accounts are created. - [Environments](https://developers.synthetix.io/environments): The Synthetix API currently provides a mainnet environment for production trading. - [Getting Started](https://developers.synthetix.io/getting-started): Quick start guide for integrating with the Synthetix Trading API. - [Error Handling](https://developers.synthetix.io/developer-resources/api/error-handling): This guide covers error response shapes, error codes, and retry strategies for the Synthetix API. - [Trading Fees](https://developers.synthetix.io/developer-resources/api/fees): Fee structure for perpetual futures trading on Synthetix. - [General Information](https://developers.synthetix.io/developer-resources/api/general-information): The Synthetix API provides access to perpetual futures trading on our trading platform. The API is designed with high performance and security in mind, offering both REST and WebSocket endpoints for different use cases. Most actions are available on both REST and WS, with some additional subscriptions available through our WebSocket. - [Market Makers](https://developers.synthetix.io/developer-resources/api/market-makers): Quick reference for market makers integrating with Synthetix perpetual futures. - [API Notation](https://developers.synthetix.io/developer-resources/api/notation): Synthetix API conventions and data formats. - [Objects](https://developers.synthetix.io/developer-resources/api/objects): This page provides detailed reference information for all object types used throughout the Synthetix API. These objects represent the core data structures that you'll encounter when interacting with trading endpoints, account management, and market data. - [Rate Limiting](https://developers.synthetix.io/developer-resources/api/rate-limits): This guide explains how rate limits work on the Synthetix off-chain trading APIs and how to build clients that stay within limits. - [Tiers](https://developers.synthetix.io/developer-resources/api/tiers): Synthetix uses a volume-based tier system. A subaccount's tier determines its trading fee rates, open order caps, and the number of subaccounts the wallet can create. - [EIP-712 Signing Implementation](https://developers.synthetix.io/developer-resources/api/authentication/eip-712-signing): This guide provides detailed implementation instructions for EIP-712 signature generation across different programming languages and libraries. - [Authentication Examples](https://developers.synthetix.io/developer-resources/api/authentication/examples): For comprehensive implementation examples across all languages and frameworks, see **[EIP-712 Signing Implementation](https://developers.synthetix.io/developer-resources/api/authentication/eip-712-signing)**. - [Authentication](https://developers.synthetix.io/developer-resources/api/authentication): All trading endpoints on the Synthetix API require authentication using EIP-712 signatures. This section provides comprehensive guidance on implementing secure authentication for both REST and WebSocket APIs. - [Nonce Management](https://developers.synthetix.io/developer-resources/api/authentication/nonce-management): The nonce system is a critical security feature that prevents replay attacks and ensures request uniqueness in the Synthetix APIs. Every authenticated request must include an incrementing nonce. - [Authentication Overview](https://developers.synthetix.io/developer-resources/api/authentication/overview): The Synthetix API uses **EIP-712 signatures** for secure, cryptographic authentication. This approach ensures that only authorized accounts can execute trades while maintaining the highest security standards. - [Authentication Troubleshooting](https://developers.synthetix.io/developer-resources/api/authentication/troubleshooting): This guide helps you diagnose and resolve common authentication issues when using the Synthetix API. - [Get Exchange Status](https://developers.synthetix.io/developer-resources/api/rest-api/getExchangeStatus): Returns the current operational status of the exchange. This endpoint is available even when the exchange is under maintenance and other public endpoints are returning HTTP 503 — making it suitable for polling-based health checks or pre-flight status gates. - [REST API](https://developers.synthetix.io/developer-resources/api/rest-api): The Synthetix REST API provides secure, authenticated access to trading operations and public market data through standard HTTP POST requests. - [WebSocket API](https://developers.synthetix.io/developer-resources/api/ws-api): The Synthetix API provides real-time, bidirectional communication for both trading operations and market data streaming. - [Timeouts & Heartbeats](https://developers.synthetix.io/developer-resources/api/ws-api/timeouts-heartbeats): Proper timeout and heartbeat management is crucial for maintaining stable WebSocket connections to the Synthetix API. - [Get Candles](https://developers.synthetix.io/developer-resources/api/rest-api/info/getCandles): Retrieve OHLCV (Open, High, Low, Close, Volume) price data for a specific trading pair. - [Get Collaterals](https://developers.synthetix.io/developer-resources/api/rest-api/info/getCollaterals): Retrieve configuration for all supported collateral assets, including deposit caps, LTV thresholds, withdrawal fees, and tiered haircut structures. - [Get Funding Rate](https://developers.synthetix.io/developer-resources/api/rest-api/info/getFundingRate): Retrieve current funding rates for perpetual markets. This is a public endpoint that returns market-wide funding rate information without requiring authentication. - [Get Funding Rate History](https://developers.synthetix.io/developer-resources/api/rest-api/info/getFundingRateHistory): Retrieve historical funding rates for a perpetual market over a specified time range. This is a public endpoint — no authentication required. - [Get Is Whitelisted](https://developers.synthetix.io/developer-resources/api/rest-api/info/getIsWhitelisted): Check if a wallet address is whitelisted to place orders on the platform. This is a public endpoint that returns whether a specific wallet address has trading permissions. - [Get Last Trades](https://developers.synthetix.io/developer-resources/api/rest-api/info/getLastTrades): Retrieve the most recent trade execution history (fills) from Synthetix's orderbook across all users. Each trade represents a filled order or partial fill that has been executed. This endpoint provides public market data without requiring authentication. - [Get Market Prices](https://developers.synthetix.io/developer-resources/api/rest-api/info/getMarketPrices): Retrieve current market prices and 24-hour statistics for all trading pairs. - [Get Markets](https://developers.synthetix.io/developer-resources/api/rest-api/info/getMarkets): Retrieve comprehensive market configuration information for all available trading pairs. - [Get Mid Prices](https://developers.synthetix.io/developer-resources/api/rest-api/info/getMids): Retrieve the current mid prices for all available markets. Mid prices represent the midpoint between the best bid and best ask prices, providing a simple reference price for each market. - [Get Open Interest](https://developers.synthetix.io/developer-resources/api/rest-api/info/getOpenInterest): Retrieve open interest data for all trading markets. - [Get Orderbook](https://developers.synthetix.io/developer-resources/api/rest-api/info/getOrderbook): Retrieve order book depth (market depth) for a specific trading pair. - [getSubAccountIds](https://developers.synthetix.io/developer-resources/api/rest-api/info/getSubAccountIds): Returns all subaccount IDs associated with a wallet address. - [Info Endpoint](https://developers.synthetix.io/developer-resources/api/rest-api/info): Public market data and information endpoints that don't require authentication. - [Add Delegated Signer](https://developers.synthetix.io/developer-resources/api/rest-api/trade/addDelegatedSigner): Add a delegated signer to a subaccount, allowing another wallet address to perform authorized actions on behalf of the subaccount. This enables secure delegation of trading operations to automated systems, trading bots, or team members without sharing private keys. Multiple delegated signers can be added to a single subaccount. - [REST API Authentication](https://developers.synthetix.io/developer-resources/api/rest-api/trade/authentication): **📖 [Authentication Guide](https://developers.synthetix.io/developer-resources/api/authentication)** - [Cancel All Orders](https://developers.synthetix.io/developer-resources/api/rest-api/trade/cancelAllOrders): Cancel all open orders for specific market(s), or all markets with the wildcard symbol. - [Cancel Orders](https://developers.synthetix.io/developer-resources/api/rest-api/trade/cancelOrders): Cancel one or more existing orders by venue order ID or client order ID (CLOID) - [Create Subaccount](https://developers.synthetix.io/developer-resources/api/rest-api/trade/createSubaccount): Create a new trading subaccount under the authenticated wallet address. Subaccounts allow for isolated trading strategies, separate margin management, and organized position tracking within a single master account. - [Get Balance Updates](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getBalanceUpdates): Retrieve historical deposit, withdrawal, and transfer transactions for a subaccount. This endpoint returns balance changes from on-chain deposits, withdrawals, and internal transfers, excluding funding payments. - [Get Delegated Signers](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getDelegatedSigners): Retrieve a list of all delegated signers for a specific subaccount. This endpoint provides visibility into which wallet addresses have been granted permissions to act on behalf of the subaccount, along with their permission levels and delegation details. - [Get Delegations For Delegate](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getDelegationsForDelegate): Retrieve a list of all delegations granted to the authenticated wallet address. This endpoint allows a delegate wallet to discover which accounts have delegated permissions to it, enabling frontends to detect when a connected wallet is a delegate and allow switching to the delegator's account. - [Get Funding Payments](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getFundingPayments): Retrieve detailed funding payment history and statistics for the authenticated subaccount. This endpoint provides user-specific funding data including payments received, paid, and net funding across all positions. - [Get Open Orders](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getOpenOrders): Retrieve all currently open orders for the authenticated subaccount. This endpoint returns only active orders (not filled or cancelled), with optional filtering by symbol. Note: `side`, `type`, and `status` params are accepted in the request but are not forwarded to the backend and have no filtering effect. - [Get Orders History](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getOrdersHistory): Retrieve orders history for the authenticated subaccount with comprehensive filtering, sorting, and pagination capabilities, providing access to orders in any status with flexible query options. - [Get Performance History](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getPerformanceHistory): Retrieve comprehensive performance analytics including historical account value, PnL trends, and trading volume for a subaccount over a specified period. Optimized for charting and performance analysis. - [Get Position History](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getPositionHistory): Retrieve closed position history for an authenticated subaccount with symbol and time-range filtering plus pagination. - [Get Positions](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getPositions): Retrieve detailed information about positions for the authenticated subaccount with time range filtering and pagination. This unified endpoint supports both current and historical position data. - [Get Rate Limits](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getRateLimits): Retrieve current rate limit usage and capacity for the authenticated user. This endpoint provides real-time information about API request consumption, helping developers monitor usage and avoid hitting rate limits. - [Get Subaccount](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getSubAccount): This endpoint retrieves detailed information for a specific subaccount, providing essential account metadata, collateral information, and cross margin summary. For detailed position information, use the `getPositions` endpoint. For performance analytics, use the `getPerformanceHistory` endpoint. - [Get Subaccounts](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getSubAccounts): Retrieve all subaccounts under the same master account as the authenticated subaccount. Works for both account owners and delegated signers — any subaccount that can authenticate will receive the full list of sibling subaccounts, each including collateral balances, cross margin summary, positions, market preferences, fee rates, and delegated signers. This is a more comprehensive alternative to `getSubAccount` that returns multiple subaccounts with delegation information included. - [Get Trades](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getTrades): Retrieve trade execution history (fills) from Synthetix's orderbook. Each trade represents a filled order or partial fill that has been executed. Returns trades for the specified subaccount. - [Get Trades For Position](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getTradesForPosition): Retrieve trade execution history (fills) for a specific position within a subaccount. Unlike [`getTrades`](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getTrades), which returns all trades for a subaccount, this endpoint filters trades to those associated with a single position identified by `positionId`. - [Get Transfers](https://developers.synthetix.io/developer-resources/api/rest-api/trade/getTransfers): Retrieve transfer history for a subaccount, including collateral transfers between subaccounts. Supports filtering by collateral symbol and time range, with pagination. - [Trade Endpoints](https://developers.synthetix.io/developer-resources/api/rest-api/trade): All trade methods go through the below endpoints: - [Modify Order](https://developers.synthetix.io/developer-resources/api/rest-api/trade/modifyOrder): Modify existing orders by changing their price and/or quantity. This is essentially a cancel-and-replace operation that maintains the order's position in the queue while updating its parameters. - [Place Orders](https://developers.synthetix.io/developer-resources/api/rest-api/trade/placeOrders): Place one or more orders on Synthetix's orderbook. This endpoint always accepts an array of orders for consistency, even when placing a single order. - [Remove All Delegated Signers](https://developers.synthetix.io/developer-resources/api/rest-api/trade/removeAllDelegatedSigners): Remove all delegated signers from a subaccount in a single request, revoking their ability to perform trading actions on behalf of the subaccount. This immediately terminates all trading permissions previously granted to any wallet addresses, providing a fast way to revoke all delegations at once. - [Remove Delegated Signer](https://developers.synthetix.io/developer-resources/api/rest-api/trade/removeDelegatedSigner): Remove a delegated signer from a subaccount, revoking their ability to perform trading actions on behalf of the subaccount. This immediately terminates the trading permission previously granted to the specified wallet address. - [Schedule Cancel (Dead Man's Switch)](https://developers.synthetix.io/developer-resources/api/rest-api/trade/scheduleCancel): Schedule an automatic cancel-all operation at a future time as a safety feature if you lose connectivity or system access. - [Update Leverage](https://developers.synthetix.io/developer-resources/api/rest-api/trade/updateLeverage): Change your leverage setting for a specific symbol/market - [Update Subaccount Name](https://developers.synthetix.io/developer-resources/api/rest-api/trade/updateSubAccountName): Rename an existing trading subaccount. The authenticated subaccount's display name is updated to the new value provided in the request. - [Voluntary Auto Exchange](https://developers.synthetix.io/developer-resources/api/rest-api/trade/voluntaryAutoExchange): Exchange non-USDT collateral for USDT at the best available rate, with automatic haircut calculation applied to the source asset. - [Withdraw Collateral](https://developers.synthetix.io/developer-resources/api/rest-api/trade/withdrawCollateral): Withdraw collateral from your Synthetix trading account back to your wallet, subject to approval, margin requirements and risk checks. - [Get Candles (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/info-websocket/getCandles): Retrieve OHLCV (Open, High, Low, Close, Volume) price data for a specific trading pair through the WebSocket connection. This endpoint provides historical candlestick data for technical analysis and charting without requiring authentication. - [Get Funding Rate (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/info-websocket/getFundingRate): Retrieve current funding rates for perpetual markets through the WebSocket connection. This is a public endpoint that returns market-wide funding rate information without requiring authentication. - [Get Is Whitelisted (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/info-websocket/getIsWhitelisted): Check if a wallet address is whitelisted for trading operations through the WebSocket connection. This is a public endpoint that returns whitelist status without requiring authentication. - [Get Last Trades (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/info-websocket/getLastTrades): Retrieve the most recent trade execution history (fills) from Synthetix's orderbook across all users through the WebSocket connection. Each trade represents a filled order or partial fill that has been executed. This endpoint provides public market data without requiring authentication. - [Get Market Prices (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/info-websocket/getMarketPrices): Retrieve current market prices and 24-hour statistics for all trading pairs through the WebSocket connection. This endpoint provides comprehensive real-time pricing data without requiring authentication. - [Get Markets (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/info-websocket/getMarkets): Retrieve comprehensive market configuration information for all available trading pairs through the WebSocket connection. - [Get Mid Prices (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/info-websocket/getMids): Retrieve the current mid prices for all available markets through the WebSocket connection. Mid prices represent the midpoint between the best bid and best ask prices, providing a simple reference price for each market. - [Get Open Interest (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/info-websocket/getOpenInterest): Retrieve open interest data for all trading markets through the WebSocket connection. Open interest represents the total number of outstanding derivative contracts that have not been settled. - [Get Orderbook (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/info-websocket/getOrderbook): Retrieve order book depth (market depth) for a specific trading pair through the WebSocket connection. This endpoint provides a real-time snapshot of buy and sell orders without requiring authentication. - [Get SubAccount IDs (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/info-websocket/getSubAccountIds): Returns all subaccount IDs associated with a wallet address through the WebSocket connection. This is a public endpoint that allows looking up subaccounts without authentication. - [Info WebSocket](https://developers.synthetix.io/developer-resources/api/ws-api/info-websocket): Public WebSocket endpoint for real-time market data and information queries without authentication. - [Candle Updates](https://developers.synthetix.io/developer-resources/api/ws-api/subscriptions/candleUpdates): Receive real-time OHLCV price candles for charting and technical analysis across multiple timeframes. - [WebSocket Subscriptions](https://developers.synthetix.io/developer-resources/api/ws-api/subscriptions): Real-time data streams for market data and trading activity. - [Market Price Updates](https://developers.synthetix.io/developer-resources/api/ws-api/subscriptions/marketPriceUpdates): Receive real-time price updates for individual price types (mark, last, index, mid) as they change. - [Orderbook Updates](https://developers.synthetix.io/developer-resources/api/ws-api/subscriptions/orderbookUpdates): Note: The subscription type is `"orderbook"` (lowercase). Some exchanges use `orderBook` (camelCase) for similar functionality. - [SubAccount Updates](https://developers.synthetix.io/developer-resources/api/ws-api/subscriptions/subAccountUpdates): Consolidated real-time stream of all subaccount activity including orders, trades, margin updates, and liquidations. This subscription replaces the need to subscribe to multiple separate streams. - [Trade Updates](https://developers.synthetix.io/developer-resources/api/ws-api/subscriptions/tradeUpdates): Receive real-time public trade notifications as they occur on the exchange. - [Add Delegated Signer (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/addDelegatedSigner): Add a delegated signer to a subaccount through the WebSocket connection, allowing another wallet address to perform authorized actions on behalf of the subaccount. This enables secure delegation of trading operations to automated systems, trading bots, or team members without sharing private keys. - [WebSocket Authentication](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/authentication): The Trade WebSocket requires authentication using EIP-712 signatures before any trading operations can be performed. - [Cancel All Orders (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/cancelAllOrders): Cancel all open orders for specific market(s), or all markets with the wildcard symbol, through the WebSocket connection. - [Cancel Orders (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/cancelOrders): Cancel one or more existing orders through the WebSocket connection for fastest order management. - [Create Subaccount (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/createSubaccount): Create a new trading subaccount under the authenticated wallet address through the WebSocket connection. Subaccounts allow for isolated trading strategies, separate margin management, and organized position tracking within a single master account. - [Get Balance Updates (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getBalanceUpdates): Retrieve historical deposit, withdrawal, and transfer transactions for a subaccount through the WebSocket connection. This endpoint returns balance changes from on-chain deposits, withdrawals, and internal transfers, excluding funding payments. - [Get Delegated Signers (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getDelegatedSigners): Retrieve a list of all delegated signers for a specific subaccount through the WebSocket connection. This endpoint provides visibility into which wallet addresses have been granted permissions to act on behalf of the subaccount, along with their permission levels and delegation details. - [Get Delegations For Delegate (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getDelegationsForDelegate): Retrieve a list of all delegations granted to the authenticated wallet address through the WebSocket connection. This endpoint allows a delegate wallet to discover which accounts have delegated permissions to it, enabling frontends to detect when a connected wallet is a delegate and allow switching to the delegator's account. - [Get Funding Payments (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getFundingPayments): Retrieve detailed funding payment history and statistics for the authenticated subaccount through the WebSocket connection. This endpoint provides user-specific funding data including payments received, paid, and net funding across all positions. - [Get Open Orders (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getOpenOrders): Retrieve all currently open orders for the authenticated subaccount through the WebSocket connection. This method returns only active orders (not filled or cancelled), with optional filtering by symbol and pagination. - [Get Order History (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getOrderHistory): Retrieve order history for the authenticated subaccount through the WebSocket connection with comprehensive filtering capabilities, providing access to orders in any status (started, placed, partially filled, filled, cancelled, rejected) with flexible query options. - [Get Performance History (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getPerformanceHistory): Retrieve comprehensive performance analytics including historical account value, PnL trends, and trading volume for a subaccount over a specified period through the WebSocket connection. Optimized for charting and performance analysis. - [Get Position History (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getPositionHistory): Retrieve closed position history for an authenticated subaccount over WebSocket with symbol, time-range, and pagination filters. - [Get Positions (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getPositions): Retrieve position information for the authenticated subaccount through the WebSocket connection with time-based filtering and pagination capabilities. - [Get Rate Limits (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getRateLimits): Retrieve current rate limit usage and capacity for the authenticated user through the WebSocket connection. This method provides real-time information about API request consumption. - [Get Subaccount (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getSubAccount): Retrieve complete account information for the authenticated subaccount through the WebSocket connection, including collateral balances, open positions, margin summary, market preferences, and fee rate information. - [Get Subaccounts (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getSubAccounts): Retrieve all subaccounts under the same master account as the authenticated subaccount through the WebSocket connection. Works for both account owners and delegated signers — any subaccount that can authenticate will receive the full list of sibling subaccounts, each including collateral balances, cross margin summary, positions, market preferences, fee rates, and delegated signers. This is a more comprehensive alternative to `getSubAccount` that returns multiple subaccounts with delegation information included. - [Get Trades (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getTrades): Retrieve trade execution history (fills) for the authenticated subaccount through the WebSocket connection. Each trade represents a filled order or partial fill that has been executed. - [Get Trades For Position (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getTradesForPosition): Retrieve trade execution history (fills) for a specific position within a subaccount through the WebSocket connection. Unlike [`getTrades`](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getTrades), which returns all trades for a subaccount, this endpoint filters trades to those associated with a single position identified by `positionId`. - [Get Transfers (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/getTransfers): Retrieve transfer history for a subaccount through the WebSocket connection. Returns collateral transfers between subaccounts with filtering and pagination support. - [Trade WebSocket](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket): The Trade WebSocket provides authenticated, real-time access to trading operations with lower latency than REST endpoints. - [Modify Order (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/modifyOrder): Modify existing orders by changing their price and/or quantity through the WebSocket connection. This is essentially a cancel-and-replace operation that maintains the order's position in the queue while updating its parameters. - [Place Orders (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/placeOrders): Place orders through the WebSocket connection for lowest latency trading. - [Remove All Delegated Signers (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/removeAllDelegatedSigners): Remove all delegated signers from a subaccount through the WebSocket connection, revoking their ability to perform trading actions on behalf of the subaccount. This immediately terminates all trading permissions previously granted to any wallet addresses, providing a fast way to revoke all delegations at once. - [Remove Delegated Signer (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/removeDelegatedSigner): Remove a delegated signer from a subaccount through the WebSocket connection, revoking their ability to perform trading actions on behalf of the subaccount. This immediately terminates the trading permission previously granted to the specified wallet address. - [Schedule Cancel (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/scheduleCancel): Schedule automatic order cancellation through the WebSocket connection as a safety mechanism (Dead Man's Switch) for WebSocket-based trading systems. - [Update Leverage (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/updateLeverage): Adjust leverage settings for trading markets through the WebSocket connection for rapid risk management and position scaling. - [Update Subaccount Name (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/updateSubAccountName): Rename an existing trading subaccount through the WebSocket connection. The authenticated subaccount's display name is updated to the new value provided in the request. - [Withdraw Collateral (WebSocket)](https://developers.synthetix.io/developer-resources/api/ws-api/trade-websocket/withdrawCollateral): Withdraw collateral from your Synthetix trading account back to your wallet through the WebSocket connection. Withdrawals are subject to approval, margin requirements, and risk checks.