> For the complete documentation index, see [llms.txt](https://docs.shredpay.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shredpay.xyz/developers/agent-wallet/guides/defi-deposit.md).

# Deposit into DeFi

Outline:

* Discover markets with `GET /api/defi/markets`.
* Deposit with `POST /api/defi/deposit` — `chain_id`, `market_id`, `amount`.
* Track shares and USD value with `GET /api/defi/positions`.
* Withdraw with `POST /api/defi/withdraw` — pass `shares` from the position.
* Worked example: deposit USDC into a curated yield vault on Base.
* Fees, gas sponsorship, and APY semantics.

See [MCP Tools](/developers/agent-wallet/mcp-tools.md) for the equivalent `defi_deposit` / `defi_withdraw` tools.
