# AFX Docs

## AFX Docs

- [About AFX](https://docs.afx.xyz/about-afx.md)
- [Core contributors](https://docs.afx.xyz/about-afx/core-contributors.md)
- [Trading Rules](https://docs.afx.xyz/trading-rules.md)
- [Supported Assets](https://docs.afx.xyz/trading-rules/supported-assets.md)
- [Leverage](https://docs.afx.xyz/trading-rules/leverage.md)
- [Margin Modes](https://docs.afx.xyz/trading-rules/margin-modes.md)
- [Position Modes](https://docs.afx.xyz/trading-rules/position-modes.md)
- [Order Types](https://docs.afx.xyz/trading-rules/order-types.md)
- [Order Matching](https://docs.afx.xyz/trading-rules/order-matching.md)
- [Slippage](https://docs.afx.xyz/trading-rules/slippage.md)
- [Take profit and stop loss (TP/SL)](https://docs.afx.xyz/trading-rules/take-profit-and-stop-loss-tp-sl.md)
- [Risk Limits](https://docs.afx.xyz/trading-rules/risk-limits.md)
- [Liquidation](https://docs.afx.xyz/trading-rules/liquidation.md)
- [Liquidation Process](https://docs.afx.xyz/trading-rules/liquidation-process.md)
- [ADL](https://docs.afx.xyz/trading-rules/adl.md)
- [Oracle Price](https://docs.afx.xyz/trading-rules/oracle-price.md)
- [Mark Price](https://docs.afx.xyz/trading-rules/mark-price.md)
- [Funding Rate](https://docs.afx.xyz/trading-rules/funding-rate.md)
- [Vaults](https://docs.afx.xyz/vaults.md)
- [LP Vault](https://docs.afx.xyz/vaults/lp-vault.md)
- [User Vaults](https://docs.afx.xyz/vaults/user-vaults.md)
- [Affiliate Program](https://docs.afx.xyz/affiliate-program.md)
- [VIP Program](https://docs.afx.xyz/vip-program.md)
- [Points](https://docs.afx.xyz/points.md)
- [Season 1](https://docs.afx.xyz/points/season-1.md)
- [Testnet Points](https://docs.afx.xyz/points/testnet-points.md)
- [Audits](https://docs.afx.xyz/audits.md)

## API Reference

- [API Reference](https://docs.afx.xyz/api-reference/index.md): Programmatic interface for perpetual contract trading on the AFX DEX.
- [Quick Start](https://docs.afx.xyz/api-reference/quickstart.md): Place your first trade on AFX DEX in 5 minutes.
- [Exchange API](https://docs.afx.xyz/api-reference/exchange.md): Trading operations — place, replace, bracket, and cancel orders; set leverage; manage vaults.
- [Orders](https://docs.afx.xyz/api-reference/exchange/orders.md)
- [Account](https://docs.afx.xyz/api-reference/exchange/account.md)
- [Authorization](https://docs.afx.xyz/api-reference/exchange/authorization.md)
- [Referral](https://docs.afx.xyz/api-reference/exchange/referral.md)
- [Vault](https://docs.afx.xyz/api-reference/exchange/vault.md)
- [Errors](https://docs.afx.xyz/api-reference/exchange/errors.md)
- [Models](https://docs.afx.xyz/api-reference/exchange/models.md)
- [Info API](https://docs.afx.xyz/api-reference/info.md): Query account, orders, positions, trades, kline, funding rate, and more.
- [Account](https://docs.afx.xyz/api-reference/info/account.md)
- [Orders](https://docs.afx.xyz/api-reference/info/orders.md)
- [Positions](https://docs.afx.xyz/api-reference/info/positions.md)
- [Trades](https://docs.afx.xyz/api-reference/info/trades.md)
- [Products](https://docs.afx.xyz/api-reference/info/products.md)
- [Kline](https://docs.afx.xyz/api-reference/info/kline.md)
- [Funding Rate](https://docs.afx.xyz/api-reference/info/funding-rate.md)
- [Vault](https://docs.afx.xyz/api-reference/info/vault.md)
- [Referral](https://docs.afx.xyz/api-reference/info/referral.md)
- [Explorer](https://docs.afx.xyz/api-reference/info/explorer.md)
- [Models](https://docs.afx.xyz/api-reference/info/models.md)
- [WebSocket](https://docs.afx.xyz/api-reference/websocket.md): Real-time market data and account updates via WebSocket.
- [Connection](https://docs.afx.xyz/api-reference/websocket/connection.md)
- [Market Data](https://docs.afx.xyz/api-reference/websocket/market-data.md)
- [Explorer](https://docs.afx.xyz/api-reference/websocket/explorer.md)
- [User Data](https://docs.afx.xyz/api-reference/websocket/user-data.md)
- [Models](https://docs.afx.xyz/api-reference/websocket/models.md)
- [Signing](https://docs.afx.xyz/api-reference/signing.md): EIP-712 structured signing for Agent and Master wallet operations.
- [Agent Safety](https://docs.afx.xyz/api-reference/agent-safety.md): Operational safety guidance for Master wallets, Agent wallets, and automated trading systems.
- [Python SDK](https://docs.afx.xyz/api-reference/sdk.md): Install the official AFX Python SDK and run examples.
- [Agent Artifacts](https://docs.afx.xyz/api-reference/agent-artifacts.md): Machine-readable files and AI-agent entry points for AFX DEX.

## Announcements

- [System Updates](https://docs.afx.xyz/announcements/system-updates.md)
- [Listings](https://docs.afx.xyz/announcements/listings.md)
- [AFX New Futures Listing - BTCUSDC](https://docs.afx.xyz/announcements/listings/afx-new-futures-listing-btcusdc.md)
- [AFX New Futures Listing - ETHUSDC](https://docs.afx.xyz/announcements/listings/afx-new-futures-listing-ethusdc.md)
- [Delistings](https://docs.afx.xyz/announcements/delistings.md)

## Support

- [Help Center](https://docs.afx.xyz/support/readme.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://docs.afx.xyz/about-afx.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
