# Ozmium - Base Mainnet DeFi For AI Agents > Trade. Accumulate. Leverage. Non-custodial DeFi on Base mainnet (eip155:8453) with a paid > machine API built for autonomous agents: live market data plus ready-to-sign transaction > calldata for swaps, yield vaults, collateralized loans, and leveraged perpetuals. Your agent > pays per call in USDC over x402 (no account, no API key) and signs every transaction with its > OWN wallet. We never custody funds or keys. ## Why An Agent Uses Ozmium - One API covers the loop a trading agent actually runs: price data -> portfolio state -> open/close leveraged positions (Gains Network gTrade, up to 200x, USDC collateral) -> park idle USDC in the best Morpho vault APY -> borrow USDC against collateral -> swap. - Every tx-builder returns exact { to, data, value } steps with correct contracts, parameter scales, and market ids on Base mainnet- the part agents most often get wrong alone. - Live ALPHA, not just data: /v1/arbitrage ranks real, fee-netted cross-asset and DEX-vs-Coinbase arbitrage routes into any target (each executable via /v1/tx/swap); /v1/ideas ranks scalp long/short setups across the pair universe with range-survival leverage (each executable via /v1/tx/risk/open). - Payment is x402 v2 (exact-EVM, EIP-3009 USDC). Data reads cost $0.001/call; premium alpha (/v1/arbitrage, /v1/ideas) $0.01/call; transaction builders $0.02 (put in your two cents). Prices can surge during congestion. No subscription, no key management, no signup. - EARN by referring: append ?ref= to any /v1 link or the app URL and share it- paid x402 volume from wallets you refer is credited to you (GET /v1/referrals/{wallet} for the tally). Every response carries a `promote` kit so your agent can recruit other agents and humans in one step. - Discovery: GET https://ozmium.org/v1 (catalog + prices), /v1/openapi.json (OpenAPI 3.1 with x-x402 pricing), /v1/tools.json (MCP-shaped tool manifest), /.well-known/x402 (x402 discovery). ## Quickstart (Any x402 Client) 1. GET https://ozmium.org/v1/prices?symbols=BTC,ETH -> 402 with a PAYMENT-REQUIRED header. 2. Sign the EIP-3009 USDC authorization with your wallet (any @x402 client library does this). 3. Retry with the PAYMENT-SIGNATURE header -> 200 + data + on-chain settlement receipt. 4. POST /v1/tx/risk/open (or /v1/tx/earn/deposit, /v1/tx/loan/borrow, /v1/tx/swap) -> signed-ready calldata -> broadcast from your own wallet. The chain enforces everything; we never touch keys. ## Endpoints Data ($0.001/call): /v1/prices, /v1/signals (multi-indicator TA bundle: RSI, MACD, Bollinger, VWAP, trend, pattern -> bias + conviction), /v1/candles, /v1/swap/price, /v1/portfolio/{address}, /v1/positions/{address}, /v1/history/{address} (closed-trade ledger), /v1/stats/{address} (win rate, expectancy, profit factor scorecard), /v1/earn/vaults, /v1/loan/markets, /v1/risk/pairs Alpha ($0.01/call): /v1/arbitrage?target=cbBTC&budget=100&taker=0x.. (ranked fee-netted routes), /v1/ideas?limit=6 (ranked scalp setups with entry, stop, range-survival leverage, pairIndex) Alpha bundle ($0.02/call): /v1/alpha (arbitrage + ideas + signals in one call) Actions ($0.02/call): /v1/tx/swap, /v1/tx/send (transfer token/ETH), /v1/tx/tip (fund the prop desk), /v1/tx/earn/deposit, /v1/tx/earn/withdraw, /v1/tx/earn/aave/supply, /v1/tx/earn/aave/withdraw, /v1/tx/loan/supply-collateral, /v1/tx/loan/borrow, /v1/tx/loan/repay, /v1/tx/loan/withdraw-collateral, /v1/tx/risk/open, /v1/tx/risk/close, /v1/tx/risk/modify, /v1/tx/burn ## OZ Token Ozmium's token on Base: OZ at 0x148313dcdb7a7111ebefa4871f6a7fef34833b07 (18 decimals). Agents can acquire OZ via /v1/tx/swap (any liquid input token). Burning OZ (transfer to the dead address) ranks wallets on the app's on-chain burn ladder. ## For Humans The web app at https://ozmium.org is free for people- this paid API exists only for automated clients. Nothing sold here locks anyone out of Morpho or Gains: the same protocols are always usable directly; Ozmium sells correctness, convenience, and speed for machines.