# GUM Docs > GUM (gum.ag, built by Jupiter) is the universal identity and liquidity layer for crypto. These docs cover using GUM, GUM Perps, Universal Deposit, Universal Swap & Bridge, and the Trading API + CLI/MCP server (`@gumag/cli`) for bots and AI agents. Trading API (Spot + Perps): base URL https://api.gum.ag/app/v1, no API key; a Solana or EVM wallet is the account and signs each quote. OpenAPI 3.1 spec: https://api.gum.ag/app/v1/openapi.json CLI & MCP server: `npx -y @gumag/cli@latest mcp` (npm: `@gumag/cli`, source: https://github.com/jupnet/gum-cli, skill: `npx skills add jupnet/gum-cli`, bridge SDK: `@gumag/bridge`) Full docs (single file): https://docs.gum.ag/llms-full.txt Sitemap: https://docs.gum.ag/sitemap.xml ## Getting started - [Introduction](https://docs.gum.ag/index.md): Learn how GUM works, accept deposits with Universal Deposit, swap and bridge assets with Universal Swap & Bridge, or trade from your own code with the Trading API. ## How GUM works - [How GUM works](https://docs.gum.ag/how-gum-works.md): GUM lets you hold, trade and move assets across multiple chains, with more to come. This page shows what happens behind the app. - Accounts - [Universal Accounts and sign-in](https://docs.gum.ag/accounts/universal-accounts.md): Your GUM account comes from the way you sign in, with no seed phrase to write down. - [Private social login (OpenIDZK)](https://docs.gum.ag/accounts/openidzk.md): How signing in with Google, Apple or X works, and what stays private. - Deposits and withdrawals - [Deposit](https://docs.gum.ag/funds/deposit.md): Send supported tokens to your personal deposit addresses on GUM for free. - [Withdraw](https://docs.gum.ag/funds/withdraw.md): Send USD or tokens from GUM to an address on another chain, for a flat fee per destination chain. - [Gifts](https://docs.gum.ag/funds/gifts.md): Send USD to anyone as a link, QR code or code, which they claim by signing in to GUM. - Trade - [Trade tokens](https://docs.gum.ag/trade/tokens.md): Buy and sell tokens across supported chains with your USD balance. - [Stocks](https://docs.gum.ag/trade/stocks.md): Trade tokenized stocks and ETFs with your USD balance, and know what a stock token does and doesn't give you. - [Earn](https://docs.gum.ag/trade/earn.md): Buy yield-bearing tokens from third parties with your USD balance, and see where their yield and risks come from. - Perps - [GUM Perps](https://docs.gum.ag/perps/overview.md): Trade perpetual futures on crypto using your USD balance as collateral. Leverage limits vary by market. - [Perps accounts and sub-accounts](https://docs.gum.ag/perps/accounts.md): Move USD between your balance and GUM Perps, keep positions apart with sub-accounts, and know the limits that apply. - [Margin and leverage](https://docs.gum.ag/perps/margin-and-leverage.md): How much USD you need to open and keep a position, how leverage and margin modes work, and how the app estimates your liquidation price. - [Orders](https://docs.gum.ag/perps/orders.md): The order types and options GUM Perps supports, how big an order can be, and why an order can be rejected. - [Funding](https://docs.gum.ag/perps/funding.md): The hourly payments between longs and shorts that keep perp prices close to the oracle price. - [Liquidation](https://docs.gum.ag/perps/liquidation.md): When GUM Perps closes your positions, what it costs, and how to avoid it. - [Fees](https://docs.gum.ag/fees.md): What GUM charges when you trade, trade perps, deposit, withdraw or send a gift, and what it doesn't. - Under the hood - [Typed signatures and addresses](https://docs.gum.ag/protocol/typed-signatures.md): How GUM Network accepts signatures from Ethereum wallets, passkeys, social sign-in and session keys, and how each one maps to a 32-byte address. - [OpenIDZK proofs](https://docs.gum.ag/protocol/openidzk-proofs.md): How a Google, Apple or X sign-in becomes a GUM Network signature: the nonce binding, the address salt, the Groth16 proof and the checks validators run. - [Transaction wire format](https://docs.gum.ag/protocol/wire-format.md): The byte layout of a GUM Network transaction: typed signature records in front of an unchanged Solana legacy message, and the Solana features GUM Network removes. ## Universal Deposit - [Overview](https://docs.gum.ag/universal-deposit/overview.md): Get dollars to any supported chain. Send USDC, USDT, USDG — or a supported token — on whichever chain you like; swapping and bridging are handled for you. - [Embed the widget](https://docs.gum.ag/universal-deposit/embed.md): One iframe. Hand it a destination and it handles deposit addresses, QR codes, and wallet transfers. - [How Universal Deposit works](https://docs.gum.ag/universal-deposit/how-it-works.md): What happens between a deposit landing on a source chain and dollars arriving at the destination. - [Universal Deposit security model](https://docs.gum.ag/universal-deposit/security-model.md): What the forwarder program guarantees, and what you trust GUM for. - API reference - [Using the API](https://docs.gum.ag/universal-deposit/api-reference/overview.md): Public endpoints: run a deposit, resolve a deposit address back to its destination, build a token picker that only offers depositable tokens, and price the fee rate. - [Deposit addresses](https://docs.gum.ag/universal-deposit/api-reference/get-deposit-addresses.md): Returns a deposit address on each supported chain for your destination — whatever lands on them is bridged to the destination address you supplied. - [Resolve deposit addresses](https://docs.gum.ag/universal-deposit/api-reference/lookup-deposit-addresses.md): Takes deposit addresses and returns the destination each one settles to — the reverse of /v2/deposit-addresses, for reconciling where funds actually land. - [Token search](https://docs.gum.ag/universal-deposit/api-reference/get-token-search.md): Search tokens by name, symbol, or address across every supported chain, then keep the ones Universal Deposit can convert. - [Top tokens](https://docs.gum.ag/universal-deposit/api-reference/get-top-mcap.md): The top tokens by market cap on one chain, already filtered to the ones Universal Deposit can convert. - [Stable tokens](https://docs.gum.ag/universal-deposit/api-reference/get-stable-tokens.md): The stablecoins on one chain that Universal Deposit bills at the stable fee rate. - [Deposit costs and estimates](https://docs.gum.ag/universal-deposit/deposit-costs.md): What lands at the destination, which fees come off along the way, and what the widget's estimate does and does not include. ## Universal Swap & Bridge - [Overview](https://docs.gum.ag/universal-bridge/overview.md): Swap tokens or bridge assets across chains. Compare live routes and build your own interface with the API. - [Quickstart](https://docs.gum.ag/universal-bridge/v2/quickstart.md): Quote, sign and track a transfer in ten lines with @gumag/bridge, or in four HTTP calls. - API v2 - [API v2](https://docs.gum.ag/universal-bridge/v2/overview.md): Quote, order, sign and track a transfer with explicit IDs and base units, while the API runs the router behind it. - [Chains](https://docs.gum.ag/universal-bridge/v2/chains.md): Every chain you can send from or to, with its gas coin. - [Tokens](https://docs.gum.ag/universal-bridge/v2/tokens.md): Search the tokens a chain can send or receive. - [Quotes](https://docs.gum.ag/universal-bridge/v2/quotes.md): Every route that can run your transfer now, best first, each ready to order. - [Create an order](https://docs.gum.ag/universal-bridge/v2/create-order.md): Turn a quote into the transactions the sender signs. - [Report a step](https://docs.gum.ag/universal-bridge/v2/report-step.md): Tell the API what the wallet did with one step. - [Get an order](https://docs.gum.ag/universal-bridge/v2/get-order.md): Follow an order from signature to delivery or refund. - [Wallet history](https://docs.gum.ag/universal-bridge/v2/list-orders.md): Every transfer a wallet sent or received, newest first. - [Fees and limits](https://docs.gum.ag/universal-bridge/fees-and-limits.md): Read quote costs correctly and handle minimum amounts and request limits. ## Trading API - [Overview](https://docs.gum.ag/trading-api/overview.md): Buy, sell, deposit and withdraw on GUM from your own code, with a Solana or EVM wallet as your account. - [Quickstart](https://docs.gum.ag/trading-api/quickstart.md): Buy $5 of SOL: quote, sign, submit, track. - [Sign with your wallet](https://docs.gum.ag/trading-api/signing.md): What a quote's message and transaction are, how your signature becomes a GUM Network typed signature, and how to sign with a Solana or EVM key in JavaScript, Python, Rust or Go, or with a browser wallet. - [Track status](https://docs.gum.ag/trading-api/status.md): Follow a trade or withdrawal until it settles: poll it, or stream live updates. - [CLI](https://docs.gum.ag/trading-api/cli.md): Trade from your terminal with gumag, or connect it to an MCP client. - [Errors and limits](https://docs.gum.ag/trading-api/errors-and-limits.md): Every error has the same shape and a stable code; rate limits are per IP and come back in response headers. - API reference - [Using the API](https://docs.gum.ag/trading-api/reference/overview.md): Base URL, the objects every endpoint shares, and pagination. - [Tokens](https://docs.gum.ag/trading-api/reference/get-tokens.md): Search the tokens and tokenized stocks you can trade right now. - [Balances](https://docs.gum.ag/trading-api/reference/get-balances.md): An account's USD cash and every token it holds, with USD values. - [Your deposit addresses](https://docs.gum.ag/trading-api/reference/get-deposit-addresses.md): Your own deposit address on every supported chain. Anything you send there is credited to your GUM account. - [History](https://docs.gum.ag/trading-api/reference/get-history.md): An account's deposits, swaps and withdrawals, newest first. - [Quote a swap](https://docs.gum.ag/trading-api/reference/post-swap-quote.md): Price a buy or a sell and get the message to sign. Quotes last about 30 seconds. - [Submit a swap](https://docs.gum.ag/trading-api/reference/post-swap.md): Submit a signed quote. The trade settles in seconds; track it with the returned id. - [Swap status](https://docs.gum.ag/trading-api/reference/get-swap.md): A trade's status by id, polled or streamed live. - [Quote a withdrawal](https://docs.gum.ag/trading-api/reference/post-withdraw-quote.md): Prepare a withdrawal to an address on another chain and get the message to sign. - [Submit a withdrawal](https://docs.gum.ag/trading-api/reference/post-withdraw.md): Submit a signed withdrawal and track it with the returned id. - [Withdrawal status](https://docs.gum.ag/trading-api/reference/get-withdraw.md): A withdrawal's status by id, polled or streamed live. - [Chains](https://docs.gum.ag/trading-api/reference/get-chains.md): The chains GUM supports, and the dollar token it credits and pays out on each. - Perps - [Perps markets](https://docs.gum.ag/trading-api/reference/get-perps-markets.md): List active GUM Perps markets with live mark/index prices, hourly and annualized funding rates, fees and margin tiers. - [Perps orderbook](https://docs.gum.ag/trading-api/reference/get-perps-orderbook.md): L2 orderbook bids and asks for a GUM Perps market. - [Perps funding history](https://docs.gum.ag/trading-api/reference/get-perps-funding-history.md): Historical hourly funding rates and average annualized funding rate for a GUM Perps market. - [Perps account](https://docs.gum.ag/trading-api/reference/get-perps-account.md): An account's GUM Perps sub-accounts, balances, margin, configured market leverage, open positions and resting orders. - [Quote a Perps deposit](https://docs.gum.ag/trading-api/reference/post-perps-deposit-quote.md): Prepare a free USD transfer from your GUM spot balance into a GUM Perps sub-account. - [Submit a Perps deposit](https://docs.gum.ag/trading-api/reference/post-perps-deposit.md): Submit a signed Spot → Perps USD margin deposit. - [Quote a Perps withdrawal](https://docs.gum.ag/trading-api/reference/post-perps-withdraw-quote.md): Prepare a free USD transfer from a GUM Perps sub-account back to your GUM spot cash balance. - [Submit a Perps withdrawal](https://docs.gum.ag/trading-api/reference/post-perps-withdraw.md): Submit a signed Perps → Spot USD margin withdrawal. - [Quote a Perps leverage update](https://docs.gum.ag/trading-api/reference/post-perps-leverage-quote.md): Prepare a target leverage update for a GUM Perps market. - [Submit a Perps leverage update](https://docs.gum.ag/trading-api/reference/post-perps-leverage.md): Submit a signed GUM Perps leverage update. - [Quote a Perps order](https://docs.gum.ag/trading-api/reference/post-perps-orders-quote.md): Price a GUM Perps market, limit or post-only order and get the action message to sign. - [Submit a Perps order](https://docs.gum.ag/trading-api/reference/post-perps-orders.md): Submit a signed GUM Perps order. - [Quote a Perps cancel](https://docs.gum.ag/trading-api/reference/post-perps-cancel-quote.md): Prepare cancellation of one open Perps order or every open order in a market. - [Submit a Perps cancel](https://docs.gum.ag/trading-api/reference/post-perps-cancel.md): Submit a signed GUM Perps order cancellation. ## Reference - [Glossary](https://docs.gum.ag/glossary.md): Short definitions of the terms used across the GUM docs, each linked to the page that explains it.