Skip to content

Trade Endpoints

All trade methods go through the below endpoints:

  • REST: POST https://papi.synthetix.io/v1/trade

Authentication

All trade methods are signed using EIP-712. Each successful trade request will contain:

  • A piece of structured data that includes the sender address
  • A signature of the hash of that structured data, signed by the sender

Subaccounts

Subaccounts must also follow the signing process defined above. Subaccount delegate private keys are assigned signing authority from the master account.

Expires After

Some trade actions support an optional field expiresAfter which is a timestamp in milliseconds after which the action will be rejected.

Available Methods

Order Management

MethodTypeDescriptionPurpose
Cancel OrdersorderCancels one or more existing ordersRemove one or more orders from the orderbook
Modify OrderorderModifies a single existing order's parametersUpdate individual order price, size, or other parameters without canceling and replacing
Place OrdersorderPlaces one or more orders (market, limit, or conditional) on the orderbookExecute single or multiple buy/sell orders for perpetual contracts and spot trading with efficient batch operations

Account Management

MethodTypeDescriptionPurpose
Create SubaccountaccountCreates a new trading subaccountOrganize trading strategies with isolated accounts and margin management
Update LeverageaccountAdjusts leverage for trading positionsModify risk exposure by changing position leverage

Delegation Management

MethodTypeDescriptionPurpose
Add Delegated SignerdelegationAdds a delegated signer to a subaccountGrant trading permissions to bots, team members, or automated systems
Get Delegated SignersdelegationRetrieves all delegated signers for a subaccountView current access permissions and audit delegated authority
Remove Delegated SignerdelegationRemoves a delegated signer from a subaccountRevoke access permissions immediately for security or team changes

Account Queries

MethodTypeDescriptionPurpose
Get Balance UpdatesqueryRetrieves deposit and withdrawal historyView historical balance changes from deposits and withdrawals
Get Funding PaymentsqueryRetrieves funding payment history and statisticsMonitor funding payments received/paid and analyze funding rate impact
Get Open OrdersqueryRetrieves currently open orders for subaccountMonitor active orders in the orderbook
Get OrdersqueryRetrieves orders with flexible filtering (open, closed, cancelled)Monitor all orders with comprehensive status filtering and pagination
Get PositionsqueryRetrieves current and historical trading positionsMonitor active positions, profit/loss, risk metrics, and position history
Get Performance HistoryqueryRetrieves historical account value, PnL, and volume for a periodAnalyze performance trends for charting and reporting
Get SubaccountqueryRetrieves information and balances for a specific subaccountView account structure, margin status, and available balances for a single subaccount
Get TradesqueryRetrieves trade execution history (fills)View historical trade executions, analyze trading performance, and reconcile positions