> For the complete documentation index, see [llms.txt](https://docs.aftermath.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aftermath.finance/perpetuals/architecture.md).

# Trading

This section covers everything you need to trade on Aftermath Perpetuals — from the markets you can trade and the orders you can place, to how prices, fees, margin, and liquidations work under the hood.

### Markets

Aftermath offers both crypto and tokenized real-world asset markets. See [Market Specifications](/perpetuals/architecture/market-specifications.md) for the parameters of each listed market, including the difference between 24/7 and 24/5 trading schedules.

### Orders

[Order Types](/perpetuals/architecture/order-types.md) walks through every order the exchange supports — market, limit, stop, scale, OTO, and TWAP orders. [SL/TP](/perpetuals/architecture/sl-tp.md) covers attaching stop loss and take profit orders to your positions, and [Self-Trade Prevention](/perpetuals/architecture/self-trade-prevention.md) explains what happens when your own orders would match each other.

### Prices and funding

Every market is anchored to its underlying via [Oracles](/perpetuals/architecture/oracle-prices.md) and periodic [Funding](/perpetuals/architecture/funding.md) payments exchanged between longs and shorts.

### Fees

Trading costs and fee tiers are covered in [Fees](/perpetuals/architecture/fees.md). Third-party frontends and integrators can earn fees on the order flow they route through [Builder Codes (Front End Fee)](/perpetuals/architecture/builder-codes-front-end-fee.md).

### Margin and risk

[Margin](/perpetuals/architecture/margin.md) explains collateral, leverage, and margin requirements. Positions that fall below maintenance margin are handled by [Liquidations](/perpetuals/architecture/liquidations.md).

### Accounts

[Account](/perpetuals/architecture/account.md) covers the onchain account model, agent wallets, sub-accounts, and gasless trading. [Auto Confirmation](/perpetuals/architecture/auto-confirmation.md) lets you trade without per-transaction wallet popups. Professional traders should also see [Market Makers](/perpetuals/architecture/market-makers.md).
