> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solana.vanna.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Spot Swap

> Swap SOL, USDC, xStocks, and PreStocks through Jupiter from wallet or margin.

Spot is a Jupiter-routed swap. Use it to rotate wallet inventory, or to move margin-vault balances without opening a perp.

<Frame caption="Jupiter swap card. Wallet SOL to USDC. History lists recent fills. Click the image to zoom.">
  <img src="https://mintcdn.com/vanna-solana/wh284vjd5bR4K3BU/images/swap/overview.png?fit=max&auto=format&n=wh284vjd5bR4K3BU&q=85&s=4d842f92c0bc8929a33bcca535d22fce" alt="Spot swap card routing SOL to USDC via Jupiter" loading="lazy" decoding="async" width="1432" height="969" data-path="images/swap/overview.png" />
</Frame>

## Steps

1. Open **Swap**.
2. Pick pay / receive assets.
3. Choose **Wallet** or **Margin** as the source of funds when the UI offers it.
4. Review price impact, quote, slippage (default 1%), and minimum received.
5. Confirm. Wait for the history row.

Margin-balance swaps call `user_margin_swap`: the program signs the vault, Jupiter executes, and a health check runs on the new balances. Wallet swaps never touch the PDA.

PreStocks (ANTHROPIC, OPENAI) carry a real Token-2022 transfer fee (\~1%) that is included in sizing. xStocks (TSLAx, GOOGLx, AAPLx) are Token-2022 but have no transfer fee. A quote that looks "short" versus the headline price on a PreStock leg is often the fee, not a bug.
