# Nexwest Docs > Documentation for Nexwest: an onchain trading venue with a fully onchain order book, unified margin, and a developer-first API. Nexwest Docs is a static, AI-readable documentation site. Every page has a Markdown mirror at /raw/
/. ## Docs Learn how Nexwest works, from your first deposit to advanced margin and liquidity concepts. - [What is Nexwest?](https://docs.nexwest.app/docs/what-is-nexwest): Nexwest is a fully onchain trading venue with a central limit order book, unified margin, and a single API for every market. - [Quickstart](https://docs.nexwest.app/docs/quickstart): Go from a fresh wallet to a live order in four steps. This guide covers account creation, funding, and your first perpetual trade. - [Connect a wallet](https://docs.nexwest.app/docs/connect-wallet): Supported wallets, account creation, network settings, and how to move between wallet, email, and mobile sessions safely. - [Deposits & withdrawals](https://docs.nexwest.app/docs/deposits-withdrawals): Supported deposit routes, arrival times, withdrawal fees, and the exact states a transfer moves through. - [Your first trade](https://docs.nexwest.app/docs/first-trade): A guided walkthrough of a first perpetual position: sizing, leverage, order placement, and reading the position after a fill. - [Testnet](https://docs.nexwest.app/docs/testnet): Use Nexwest testnet to build and test without real funds. Includes faucet limits, chain settings, and differences from mainnet. - [Architecture](https://docs.nexwest.app/docs/architecture): How Nexwest separates consensus, execution, and settlement while keeping one-block finality and a single account state. - [Accounts](https://docs.nexwest.app/docs/accounts): Master accounts, sub-accounts, vaults, API wallets, and the three account abstraction modes. - [Order book](https://docs.nexwest.app/docs/order-book): Price-time priority, order identifiers, depth snapshots, and how the book is represented in the API. - [Fees](https://docs.nexwest.app/docs/fees): Maker and taker fees, volume tiers, staking discounts, referral rewards, and builder-code fees. - [Order types](https://docs.nexwest.app/docs/trading/order-types): Every order type on Nexwest, including stop, take, chase, scale, trailing stop, and TWAP, with time-in-force behavior. - [Margining](https://docs.nexwest.app/docs/trading/margining): Cross and isolated margin, initial and maintenance requirements, the transfer margin rule, and liquidation thresholds. - [Funding](https://docs.nexwest.app/docs/trading/funding): How the funding rate is calculated, when it is charged, and how to estimate the cost of holding a perpetual position. - [Liquidations](https://docs.nexwest.app/docs/trading/liquidations): When a position is liquidated, how partial liquidations work, and how the backstop vault takes over a failing account. - [Take profit & stop loss](https://docs.nexwest.app/docs/trading/tp-sl): Trigger orders, reduce-only behavior, and how OCO pairs protect a position without leaving a second leg exposed. - [Portfolio margin](https://docs.nexwest.app/docs/trading/portfolio-margin): Scenario-based margin for hedged portfolios, including LTV, borrow/lend, and the liquidation rules that differ from cross margin. - [Builder codes](https://docs.nexwest.app/docs/trading/builder-codes): How applications attach a fee to the fills they route, the user approval flow, fee caps, and the rules for claiming revenue. - [Vaults](https://docs.nexwest.app/docs/liquidity/vaults): Deposit into strategy vaults, create your own, and understand the fee, lockup, and accounting rules. - [Market making](https://docs.nexwest.app/docs/liquidity/market-making): Maker rebates, latency considerations, rate limits, and the operational details for running a market-making strategy on Nexwest. - [Staking](https://docs.nexwest.app/docs/staking/staking): Stake NXW with validators, earn protocol rewards, and understand the lockup and unstaking queue. - [Points & referrals](https://docs.nexwest.app/docs/staking/points-referrals): How the points program works, how referral codes are created, and how builder codes differ from referrals. - [Audits](https://docs.nexwest.app/docs/security/audits): Independent security reviews of the Nexwest protocol, the scope of each engagement, and the status of remediated findings. - [Bug bounty](https://docs.nexwest.app/docs/security/bug-bounty): Report a vulnerability, see the reward tiers, and understand the rules for responsible disclosure. - [Brand kit](https://docs.nexwest.app/docs/brand): Logo files, color tokens, typography, and the rules for using the Nexwest name in products and integrations. ## API Build on Nexwest with REST and WebSocket endpoints for market data, account state, and order execution. - [API overview](https://docs.nexwest.app/api/overview): Base URLs, the public and signed surfaces, response conventions, and a first request against the Nexwest API. - [Authentication](https://docs.nexwest.app/api/authentication): API wallets, request signing, expiry, and the difference between public reads and signed exchange actions. - [Nonces & API wallets](https://docs.nexwest.app/api/nonces): How nonces are ordered, how to avoid collisions across processes, and how API wallet pruning works. - [Signing](https://docs.nexwest.app/api/signing): The typed-data domain, action hashing, and the exact payload used for exchange requests. - [Info endpoint](https://docs.nexwest.app/api/info): Read market metadata, order books, account state, fills, funding, candles, and fees from POST /info. - [Exchange endpoint](https://docs.nexwest.app/api/exchange): Place, cancel, and modify orders, update leverage and margin, transfer between accounts, and schedule a dead-man's switch. - [WebSocket](https://docs.nexwest.app/api/websocket): Connect, subscribe, handle snapshots and deltas, keep the connection alive, and post signed actions over the socket. - [Market data feed](https://docs.nexwest.app/api/market-data): WebSocket protocol used by the Nexwest market ticker, including allMids, l2Book, snapshots, deltas, and reconnect rules. - [Error codes](https://docs.nexwest.app/api/errors): HTTP status codes, exchange error strings, retry behavior, and the errors that are safe to retry automatically. - [Rate limits](https://docs.nexwest.app/api/rate-limits): Address and IP weight limits, per-endpoint costs, batching, and how to handle 429 responses. - [SDKs & examples](https://docs.nexwest.app/api/sdks): Official TypeScript, Python, and Rust SDKs, plus community integrations and runnable examples. - [Assets & tick sizes](https://docs.nexwest.app/api/assets): How asset IDs are constructed for perps, spot, and outcome markets, and how to respect tick and lot sizes. ## Builders SDKs, tooling, indexers, and grants for teams shipping on top of Nexwest. - [Builder overview](https://docs.nexwest.app/builders/overview): What you can build on Nexwest, the primitives available to integrators, and how builder codes route fees. - [Tools & infrastructure](https://docs.nexwest.app/builders/tools): RPC providers, indexers, oracles, explorers, and the tooling ecosystem around Nexwest. - [Grants program](https://docs.nexwest.app/builders/grants): Funding, testnet allocations, and technical support for teams building on Nexwest. - [Revenue calculator](https://docs.nexwest.app/builders/revenue): Model builder-code and referral revenue from trading flow, with the real Hyperliquid caps and a reality check on costs. ## Support Troubleshooting guides for connectivity, deposits, withdrawals, and trading outcomes. - [Connectivity issues](https://docs.nexwest.app/support/connectivity): Fix wallet connection loops, signature prompts, email codes, WalletConnect sessions, and wrong-network errors. - [Deposits](https://docs.nexwest.app/support/deposits): Find a missing deposit, recover from a wrong-chain transfer, and understand why a deposit is still pending. - [Withdrawals](https://docs.nexwest.app/support/withdrawals): What to do when a withdrawal has not arrived, keeps getting re-deposited, or was sent to the wrong chain. - [Trade outcomes](https://docs.nexwest.app/support/trade-outcomes): Why a position was liquidated, why a TP/SL did not execute, what 'Action already expired' means, and how to read the trade history. - [Account & staking](https://docs.nexwest.app/support/account): Fix staking links, unstaking delays, sub-account access, account-mode changes, and API wallet permissions. - [Security](https://docs.nexwest.app/support/security): What to do if your account is compromised, how to spot impersonators, and the approvals you should revoke. ## Utilities - [Full corpus](https://docs.nexwest.app/llms-full.txt): Every documentation page in one file. - [Search index](https://docs.nexwest.app/search-index.json): Titles, descriptions, and body text. - [Changelog](https://docs.nexwest.app/changelog): Product and API changes.