# Shield Swap documentation > Trade with the Shield Swap SDKs and CLI, bridge and prepare funds, build integrations, and understand the protocol's public and confidential boundaries. Every page is available as Markdown. Append `.md` to any documentation URL, or request the page with `Accept: text/markdown`. Links below use the production base `https://shield.fi/docs`. For a Mintlify preview, replace that base with the preview origin. Append `.md` to request page content. For example, use `/trading/quickstart.md` on the preview origin, without `/docs`. Stay on the preview because production can have different content. ## Machine-readable sources - [Full documentation text](https://shield.fi/docs/llms-full.txt): Every published page in one file. API reference entries are one-line stubs, so read the OpenAPI specification for request and response schemas. - [OpenAPI specification](https://shield.fi/docs/openapi.json): Authoritative paths, parameters, schemas, and authentication requirements for every published endpoint. - [Sitemap](https://shield.fi/docs/sitemap.xml): Every published documentation URL. ## Start - [Documentation home](https://shield.fi/docs): Trade in the app or with the SDKs, APIs, and agents, or provide liquidity. - [Get started](https://shield.fi/docs/start/getting-started): What Shield Swap is, what stays confidential, and the pages that take you to a first trade in the app. - [Developer Quickstart](https://shield.fi/docs/trading/quickstart): Swap 1.5 USDCx for ETH on testnet, from account configuration and test tokens through submission and claiming. Includes instructions for running the packaged Typescript and Python examples and recommends the CLI for a first terminal trade. - [Choose an integration path](https://shield.fi/docs/developers/integration-path): Compare Typescript and Python SDKs, AgentKit and its MCP server, indexed API data, and direct program calls. Links to SDK setup and trading guides and includes AgentKit installation and MCP setup commands. - [Set up the Typescript SDK](https://shield.fi/docs/sdk/typescript-client): Configure local-key or browser wallet clients, persistent recovery storage, and API access. - [Audiences](https://shield.fi/docs/start/audiences): Identify which reading path fits your role. ## Trade The developer guides include Typescript, Python, and CLI examples where supported. Pages with a Developers / Web App switch default to Developers; use the Developers sections for SDK and CLI instructions. The Developer Quickstart uses testnet. Setup and the main funding, quote, swap, and recovery walkthroughs use mainnet. - [Setup](https://shield.fi/docs/trading/configure): Install trading tools, create or load an Aleo account, retain its keys, and configure service or browser clients. Covers optional recovery storage, API authentication, and referral code retrieval and redemption. The Web App view installs Shield Wallet and connects it to Shield Swap. - [Fund](https://shield.fi/docs/trading/fund-and-bridge): Check spendable funds, bridge ETH between Ethereum and Aleo, and shield public balances for trading. The unified Typescript, Python, and REST workflow covers route discovery, quotes, submission, delivery checks, and recovery; the CLI checks balances. The Web App view bridges assets in and out with Fund Wallet, tracks a transfer, and shields a public balance. - [Quote](https://shield.fi/docs/trading/quote): Discover pools, look up token symbols and decimals, check active liquidity and trading controls, and request a quote with a slippage tolerance. - [Swap](https://shield.fi/docs/trading/swap): Review a mainnet USDCx-to-ETH quote, submit it, claim the output, and check both transactions with Typescript, Python, or the CLI. Covers partial fills and refunds. - [Swap History & Recovery](https://shield.fi/docs/trading/history-and-recovery): Reopen the original recovery store or journal, reconcile history, establish the original swap's outcome, and claim pending output without submitting another swap. - [Concurrent swaps](https://shield.fi/docs/trading/concurrent-swaps): Inspect token records, plan and execute joins and splits so each parallel swap has its own covering record, submit coordinated concurrent swaps, and keep the layout maintained between batches with Typescript, Python, or the CLI. ## Trading reference - [Verify swap settlement](https://shield.fi/docs/trading/verify-settlement): Check the original swap and claim transactions, cleared pending output, and exact unspent ETH claim record. Includes mainnet and testnet lookups and a Typescript record verifier. - [Swap with the Typescript SDK](https://shield.fi/docs/sdk/swaps): Plan, submit, claim, and recover swaps with the client library. - [Failures and recovery](https://shield.fi/docs/trading/failures-and-recovery): Classify rejections and recover funds. - [Trader workflow](https://shield.fi/docs/trading/trader-workflow): Implement quoting, submission, claims, and recovery. - [Preparing token records](https://shield.fi/docs/trading/preparing-token-records): Assemble the records a swap consumes. - [Single-hop swaps](https://shield.fi/docs/trading/single-hop-swaps): Swap through one pool. - [Price limits, slippage, and deadlines](https://shield.fi/docs/trading/price-limits-slippage-deadlines): Bound execution price and validity. - [Output claims and refunds](https://shield.fi/docs/trading/output-claims-and-refunds): Claim settled output and recover refunds. - [Multi-hop swaps](https://shield.fi/docs/trading/multi-hop-swaps): Route across several pools. ## Provide liquidity - [Choosing a liquidity range](https://shield.fi/docs/liquidity/choosing-a-range): Discover pools, select an exact pool key, and set a liquidity range with the SDKs or CLI, or choose a range in the app. - [Minting a position](https://shield.fi/docs/liquidity/minting-a-position): Open a position in the app or with the Typescript SDK, Python SDK, or CLI, with preview, mint, and confirmation. - [Increasing liquidity](https://shield.fi/docs/liquidity/increasing-liquidity): Add funds to a position at its current range in the app or with the SDKs or CLI. - [Decreasing liquidity](https://shield.fi/docs/liquidity/decreasing-liquidity): Remove some or all of a position's funds in the app or with the SDKs or CLI, and how decrease and collect differ. - [Collecting and burning](https://shield.fi/docs/liquidity/collecting-and-burning): Collect position funds in the app, from Pending Claims, or with the SDKs or CLI, and close an empty position. - [Rebalance positions](https://shield.fi/docs/liquidity/rebalance-position): Move a position to a new range in the app or with the Typescript and Python SDKs. - [Advanced rebalancing](https://shield.fi/docs/liquidity/advanced-rebalancing): Compare atomic and staged strategies, calculate amounts and bounds, and manage execution with Typescript, Python, and Rust examples. - [Tracking position fills](https://shield.fi/docs/liquidity/position-fills): Track live fills and calculate LP inventory changes with Typescript and Python examples. - [LP fee entitlements](https://shield.fi/docs/liquidity/fee-entitlements): Read collectible balances and calculate a fee split with Typescript and Python examples. ## Integration guides - [REST API overview](https://shield.fi/docs/rest/overview): Review API capabilities and access requirements. - [Authentication](https://shield.fi/docs/rest/authentication): Create browser sessions and backend API tokens. - [Pagination and errors](https://shield.fi/docs/rest/pagination-and-errors): Page through collections and handle error responses. - [WebSocket streams](https://shield.fi/docs/rest/websocket): Subscribe to live market and settlement updates. - [Build a market-data bot](https://shield.fi/docs/rest/trading-bot): Combine routes, history, and live updates in one client. - [Bridge](https://shield.fi/docs/developers/bridging): Review supported pairs and interfaces, bridge SOL, and receive USDCx directly into token records. Includes frontend integration, Dynamic and Privy embedded wallets, and checkpoint and nonce retention for recovery. ## Market API reference - [Get pool oracle](https://shield.fi/docs/api-reference/pools/get-pool-oracle): Read an indexed oracle snapshot for a supported time window. - [Get rebalance state](https://shield.fi/docs/api-reference/pools/get-rebalance-state): Read pool and tick state for a rebalance. - [List token markets](https://shield.fi/docs/api-reference/explore/list-token-markets): Compare token market statistics. - [Get token market](https://shield.fi/docs/api-reference/explore/get-token-market): Read one token market and its pools. - [List pool markets](https://shield.fi/docs/api-reference/explore/list-pool-markets): Compare pool market statistics. - [List market transactions](https://shield.fi/docs/api-reference/explore/list-market-transactions): Read the public transaction feed with cursor pagination. ## Referral API reference - [Get my referral code](https://shield.fi/docs/api-reference/referrals/get-my-referral-code): Retrieve the authenticated account's shareable referral code or create one if permitted. - [Redeem a referral code](https://shield.fi/docs/api-reference/referrals/redeem-referral-code): Redeem another trader's code for the authenticated account. See Setup for Typescript, Python, and CLI examples. ## Understand the protocol - [Protocol overview](https://shield.fi/docs/start/overview): Understand the program, API, records, and client responsibilities. - [Protocol boundaries](https://shield.fi/docs/start/protocol-boundaries): Review what is public, confidential, and off-chain. - [Architecture](https://shield.fi/docs/developers/architecture): See how the program, indexer, and clients fit together. - [Confidentiality model](https://shield.fi/docs/confidentiality/model): Understand what the ledger reveals and what stays confidential. - [Public data](https://shield.fi/docs/confidentiality/public-data): Review the fields that remain observable on the ledger. - [Confidential data](https://shield.fi/docs/confidentiality/confidential-data): Review the fields that stay encrypted to their owner. - [Security model](https://shield.fi/docs/security/security-model): Review assets, invariants, trust boundaries, and failure classes. - [Trust and key boundaries](https://shield.fi/docs/security/trust-and-key-boundaries): Identify which keys hold which authority. - [Admin control risks](https://shield.fi/docs/security/admin-control-risks): Understand the powers held by protocol administration. ## Program reference - [Entry-point signatures](https://shield.fi/docs/reference/entrypoint-signatures): Read current core and router function signatures. - [Records](https://shield.fi/docs/reference/records): Look up record layouts. - [Structs](https://shield.fi/docs/reference/structs): Look up struct layouts. - [Mappings](https://shield.fi/docs/reference/mappings): Look up mapping keys and value types. - [Constants and limits](https://shield.fi/docs/reference/constants-and-limits): Look up protocol constants and bounds. - [Error and rejection catalog](https://shield.fi/docs/reference/error-and-rejection-catalog): Map failures to causes and remedies. - [Glossary](https://shield.fi/docs/reference/glossary): Resolve Shield Swap terminology. ## Optional - [Pools and keys](https://shield.fi/docs/concepts/pools-and-keys): Understand how a pool key identifies a market. - [Concentrated liquidity](https://shield.fi/docs/concepts/concentrated-liquidity): Understand range-bounded liquidity. - [Price, ticks, and sqrt price](https://shield.fi/docs/concepts/price-ticks-and-sqrt-price): Understand the price representation. - [Swap and claim lifecycle](https://shield.fi/docs/concepts/swap-and-claim-lifecycle): Follow a swap from submission to claim. - [Token amount normalization](https://shield.fi/docs/concepts/token-amount-normalization): Convert between display and base units. - [Fixed-point conventions](https://shield.fi/docs/math/fixed-point-conventions): Read the fixed-point formats used throughout. - [Q128.128 fee growth](https://shield.fi/docs/math/q128-fee-growth): Calculate pending fees from a consistent state snapshot, with integer arithmetic and overflow checks. - [Swap step](https://shield.fi/docs/math/swap-step): Follow the per-step swap computation. - [Liquidity formulas](https://shield.fi/docs/math/liquidity-formulas): Compute amounts from liquidity and bounds. - [Rounding, overflow, and invariants](https://shield.fi/docs/math/rounding-overflow-and-invariants): Review numeric safety rules. - [Compliance records](https://shield.fi/docs/confidentiality/compliance-records): Understand the records created by mint, rebalance, and swap actions. - [Regulator and compliance review](https://shield.fi/docs/confidentiality/regulator-and-compliance-review): Understand the disclosure path. - [External references](https://shield.fi/docs/reference/external-references): Follow sources outside this site.