Skip to main content
Monaco separates your spot trading balance from the collateral in your parent margin account. Your EVM wallet connects you to both, and optional sub-accounts let you split margin trading further.

Trading And Moving Funds

Trading inside Monaco is gasless. Deposits and withdrawals are on-chain Sei transactions and require a small amount of SEI for gas.Your parent margin account holds USDC collateral. Cross or isolated margin determines how that collateral is locked when you trade. See Margin for the concepts used to assess your account and positions, including one margin mode per market.The account panel in the terminal provides deposit, withdrawal, and spot-to-margin transfer controls.

Sub-Accounts

Sub-accounts are extra margin accounts that sit beside your parent margin account. Each one holds its own collateral and its own positions, all under the same wallet.Sub-accounts are isolated. A loss in one sub-account never draws on another, or on your parent margin account. Use them to keep a hedge apart from your main book, to run one strategy per account, or to give a bot or agent an account of its own.

Funding A Sub-Account

To withdraw funds held in a sub-account, transfer them back to your parent margin account first.

Limits

Closing A Sub-Account

A sub-account can be closed once it is flat: no open positions and no resting, conditional, or TWAP orders. Its collateral returns to your parent margin account in the same step. A sub-account still in liquidation or bad debt cannot be closed.

Agents

A delegated agent can be limited to a single sub-account, so it trades only that account.

Understanding Balance Changes

Every balance change is recorded in an append-only ledger, which provides the history used for reconciliation.

Working With Your Accounts

  • Wallets & Auth covers wallet setup, authentication, asset IDs, token contracts, and supported balances.
  • Vault Deposits & Withdrawals covers deposits, withdrawals, live balances, locked funds, and parent margin collateral.
  • Perps Collateral covers creating, funding, reading, and closing sub-accounts through the API and SDK.
  • The Margin Accounts SDK covers margin requirements, transfers, funding, and pre-trade risk simulation.
  • Positions covers exposure, position risk, and liquidations.

Ledger Movements

LOCK and UNLOCK are entry types; the rest are transaction types. When a spot order rests on the book, its remainder is locked in a LOCK row with transaction type TRADE. When the order is cancelled, partially cancelled, expires or is replaced, the release is an UNLOCK row with transaction type TRADE. Both reference the order (referenceType Order), and the description gives the reason. A fill records DEBIT and CREDIT rows with transaction type TRADE that reference the trade (referenceType TRADE), and a buying maker’s rebate is one more CREDIT on the same trade. To list only fill activity, filter by transaction type TRADE and keep the DEBIT and CREDIT rows. When a maker-fee change resizes the locks of resting buy orders, the adjustment is a LOCK or UNLOCK row with transaction type FEE, one per balance rather than per order.

Isolated-Only Markets

A market marked isolatedOnly accepts cross margin only to reduce a position: open new positions there with isolated margin, or the order is rejected with CROSS_MARGIN_NOT_ALLOWED. Each market is held in one margin mode at a time per margin account: while the cross bucket or the market’s isolated bucket holds a position or a resting (non-reduce-only) order, an order that is not reduce-only in the other mode is rejected with MARGIN_MODE_CONFLICT.

Sub-Account API

POST /api/v1/margin/collateral/transfer (transferMarginCollateral) moves collateral between any combination of your wallet, margin accounts, and risk buckets. Rows from listMarginAccounts() carry subaccountKey and marginAccountState.

Sub-Account Transfer Rules

  • Creating, closing, and transferring share the per-user movement budget with withdrawals. Exceeding it returns 429 with retryAfter.
  • The sub-account transfer routes refuse your parent margin account with 400; use the parent margin account routes for it.
  • An unknown margin account, or one you do not own, returns 404.
  • A delegated agent session cannot use the sub-account transfer routes.