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

# Trading

- [Trading](https://docs.nexus.xyz/trading/trading.md): What the Exchange trades, how orders are matched, and what is live on testnet today.
- [Quickstart](https://docs.nexus.xyz/trading/trading/quickstart.md): From a wallet to a filled order — the shortest path to trading the Exchange over the API.
- [Perpetuals](https://docs.nexus.xyz/trading/trading/perpetuals.md): Perpetual futures on the Exchange — no expiry, funding-tethered, cross-margined in USDX.
- [Market Specifications](https://docs.nexus.xyz/trading/trading/perpetuals/market-specifications.md): Contract specifications for every listed perpetual — tick and lot size, margin rates, leverage, open-interest caps, funding, and fees.
- [Margining](https://docs.nexus.xyz/trading/trading/perpetuals/margining.md): Initial and maintenance margin, leverage as a standing per-market setting, and the liquidation threshold.
- [Order Types](https://docs.nexus.xyz/trading/trading/perpetuals/order-types.md): The eight order types and four time-in-force policies, and what each one requires.
- [Positions](https://docs.nexus.xyz/trading/trading/perpetuals/positions.md): Position state: size, entry, unrealized and realized PnL, funding, and liquidation price.
- [Funding Rates](https://docs.nexus.xyz/trading/trading/perpetuals/funding-rates.md): How funding is measured against the index, when it settles, and what caps it.
- [Liquidations](https://docs.nexus.xyz/trading/trading/perpetuals/liquidations.md): When a position is liquidated, how to compute your own liquidation price, the order the engine sends, and the waterfall that absorbs a shortfall.
- [Price Oracles](https://docs.nexus.xyz/trading/trading/perpetuals/price-oracles.md): How the mark and index prices are built, and the freshness and deviation guards on them.
- [Discovery Bounds](https://docs.nexus.xyz/trading/trading/perpetuals/discovery-bounds.md): The price band and the max-move circuit breaker — the two bounds that decide which orders and which marks the venue will accept.
- [Trading Hours](https://docs.nexus.xyz/trading/trading/perpetuals/trading-hours.md): Which markets trade continuously, which follow exchange hours, and what the venue does and does not yet enforce.
- [Spot](https://docs.nexus.xyz/trading/trading/spot.md): In Development


---

# 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 that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.nexus.xyz/trading.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
