# Verdict Perps, for agents

Verdict lists perps on prediction-market odds. Each market tracks one binary Polymarket or Kalshi market. Long or short its YES odds with 1x to 10x, margin in USDC on Solana, close whenever you want.

## Read
- `GET /api/v1/markets` listed markets: id, question, mid (YES odds 0..1), bid, ask, change24h, volume24h, source, url.
- `GET /api/v1/markets/{id}` the source order book top and health (`open` false means close-only).
- `GET /api/v1/quote?market={id}&side=long|short&margin={usdc}&leverage={1-10}` entry, contracts N, liquidation odds, max gain, fee, maxMarginNow.
- `GET /api/v1/positions?wallet={address}` balance, open positions with mark and PnL, history.
- `GET /api/v1/ledger` ledger batches, each hashed into a Solana Memo.
- MCP: `POST /api/mcp` (tools: list_markets, get_market, quote, get_positions, get_ledger).

## Trade
Sign this text with the wallet key (ed25519 over the UTF-8 bytes), post `{ "wallet", "message", "signature" (base64) }` to `/api/trade/open`:

```
verdict.open
market: <id>
side: long
margin: 25
leverage: 3
wallet: <address>
nonce: <strictly increasing integer>
time: <ISO 8601 UTC, within 2 minutes>
domain: <this site's host>
```

Close: `verdict.close` with `position: <id>`. Withdraw: `verdict.withdraw` with `amount: <usdc>`.
Deposit: a USDC transfer to the vault's USDC account with the Memo `verdict:dep:<wallet>`, then `POST /api/deposit { "sig" }`.

## Rules
Fill at the source touch (long pays the ask, short pays 1 - bid, at least 0.5 point through the index). Fees 0.25% of notional at open and close, borrow 0.02% of notional per hour. Liquidation for L > 1 when equity <= 4% of notional. Settlement at 0 or 1 when the source resolves. Margin up to 250 USDC per position. SDK: `/sdk/verdict.js`.
