UTA groups trading collateral and positions into one account rather than forcing a product to maintain separate balances for every market.
Lifecycle
- Create a margin account.
- Deposit supported collateral.
- Open a long or short position with size, leverage, margin, and slippage constraints.
- Track funding, unrealized PnL, margin health, and liquidation price.
- Add margin or close a position.
- Liquidate or auction positions that cross the configured risk boundary.
Risk boundary
The UTA module owns position state, funding data, health calculations, and liquidation transitions. An interface should display current health and oracle freshness before allowing an action. Leverage is a risk control, not a performance feature; a client must not assume that a position can be closed at the quoted price during stress.
Integration
The TypeScript SDK exposes margin-account creation, deposits, position open/close, margin adjustment, position and health queries. The current chain message surface supports adding margin; a client must not invent a remove-margin transaction if the target schema does not expose one.
Combine UTA with DEX execution, oracle data, lending, and MEV-aware execution.