# counsel ## Docs - [GET /accounts/:address/feed, Recent Bets for Copy Trading](https://docs.counsel.markets/api/accounts/feed.md): Fetch an account's full bet history ordered newest-first, with mirrorable flags for open markets to power copy-trading and strategy tracking. - [GET /accounts/:address/positions, Active Stakes](https://docs.counsel.markets/api/accounts/positions.md): Retrieve all parimutuel positions held by an XRPL address, with per-outcome stake totals, market phase, and settlement result for each. - [GET /accounts/:address/profile, Stats, P&L, and Rank](https://docs.counsel.markets/api/accounts/profile.md): Aggregate betting stats, realized and indicative P&L per position, cumulative volume time-series, leaderboard rank, and display name for any address. - [GET /leaderboard, Bettors Ranked by Realized Net P&L](https://docs.counsel.markets/api/leaderboard.md): Fetch the global leaderboard of bettors sorted by realized net P&L, including SourceTag-attributed volume and protocol fee collection metrics. - [GET /markets/:id/bet-intent, Build an Unsigned Bet](https://docs.counsel.markets/api/markets/bet-intent.md): Returns an unsigned XRPL Payment for a specific bet. The server never holds a key, sign with your own wallet and submit directly to the XRPL. - [GET /markets/:id, Single Market State and Bet Caps](https://docs.counsel.markets/api/markets/get.md): Fetch live pool state, indicative odds, and bet caps for a single counsel market by ID. Returns a MarketV1 object plus the caps configuration. - [GET /markets, List All Public Markets with Live Odds](https://docs.counsel.markets/api/markets/list.md): Fetch all public counsel markets with live pool totals, per-outcome stakes, and indicative parimutuel odds. Backed by a live XRPL indexer snapshot. - [counsel API v1 Reference: Parimutuel Markets on XRPL](https://docs.counsel.markets/api/overview.md): Complete reference for counsel API v1. Read-only, no auth, all responses JSON. Seven endpoints: markets, bet construction, accounts, and leaderboard. - [Protocol Fee Structure and Payout Calculation on counsel](https://docs.counsel.markets/concepts/fees-and-payouts.md): How counsel calculates the protocol fee, net pool, payout per unit, and individual winnings, worked example and TypeScript formulas included. - [Market Types, Lifecycle Phases, and Pool Structure](https://docs.counsel.markets/concepts/markets.md): A complete reference for counsel's two market families, the five lifecycle phases, pool account structure, void conditions, and per-market betting caps. - [Parimutuel Pools: How Odds and Payouts Work on counsel](https://docs.counsel.markets/concepts/parimutuel.md): Learn how parimutuel pooling works on counsel: how odds form, why they shift with each bet, and how payouts are calculated at close. - [Market Resolution: Oracle and Manual Resolution Paths](https://docs.counsel.markets/concepts/resolution.md): How counsel resolves Family A oracle markets and Family B manual markets, what triggers a void, and how the multisig trust model protects pool funds. - [Building Bots on counsel: Automate Your Betting Strategy](https://docs.counsel.markets/guides/building-bots.md): Bots are first-class on counsel. Fetch unsigned bet intents, sign with your own key, and submit, the SDK handles the full XRPL lifecycle in a few lines. - [Copy Trading on counsel: Mirror Bets Non-Custodially](https://docs.counsel.markets/guides/copy-trading.md): Mirror any leader's open bets on counsel without giving up your keys. Every mirror is a fresh bet-intent signed by your own wallet, sized to your stake. - [How counsel Works: Bets, Oracle Resolution, Multisig Payouts](https://docs.counsel.markets/how-it-works.md): Technical walkthrough of counsel's market lifecycle: tagged Payment bets, tote board odds, XLS-47 oracle resolution, dispute windows, and multisig payouts. - [Introduction to counsel: XRP Ledger Prediction Markets](https://docs.counsel.markets/introduction.md): How counsel's parimutuel pools work, why odds are indicative until close, and how the non-custodial on-chain design keeps every bet and payout verifiable. - [Place a Bet](https://docs.counsel.markets/placing-a-bet.md): A concrete walkthrough of the bet-intent flow: find a market and outcome, fetch an unsigned XRP Payment with projected odds, sign in your own wallet, and submit to the XRPL. - [Developer Quickstart](https://docs.counsel.markets/quickstart.md): Go from zero to your first counsel API call and your first constructed bet in minutes. - [counsel-js SDK Overview: Fetch, Sign, and Submit Bets](https://docs.counsel.markets/sdk/overview.md): counsel-js is a TypeScript client for counsel prediction markets. Bots fetch unsigned bet intents, sign with their own key, and submit directly to XRPL. - [counsel-js SDK: Complete Method and TypeScript Reference](https://docs.counsel.markets/sdk/reference.md): Full method reference for the Counsel class: constructor, markets, betIntent, placeBet, positions, leaderboard, and all TypeScript interfaces.