# Hood Hunt agent API

One request is one lookup. The window and the target stay on the book, so the server does not recompute it. Limits are shared with the open site tabs of the same key. call is skip when a hard stop fires, and null when it does not: null is not a buy.

Auth: `Authorization: Bearer <key from the personal @hoodhuntbot link, the k= value>`.

## MCP

https://hoodhunt.lol/mcp/<key> as a custom connector (Claude, ChatGPT, Cursor, Claude Code), or https://hoodhunt.lol/mcp with Authorization: Bearer <key>. GET /api/agent/v1/key returns the ready address as mcp.

Tools: `whoami`, `search_wallets`, `search_devs`, `list_filters`, `get_wallet`, `get_wallet_trades`, `get_dev`, `get_hot`, `find_by_token`, `get_launches`, `get_candles`, `get_blizz_settings`, `backtest_copy`, `token_wallets`, `get_lists`, `update_lists`, `get_tracking`, `set_tracking`, `get_referrals`, `get_blizz_referrals`. A tool answers with the same JSON as its endpoint.

## What the agent sees and can do

The agent works with the same data as the Hood Hunt site of the key owner, through the tools below. It reads; it does not trade.

It sees:
- The copy book: Solana wallets ranked for copy trading over the book window (the last 30 days), rebuilt about once an hour. Search it with any filter of the site (search_wallets + list_filters).
- The snipe book: token devs with their launches over the same window (search_devs + list_filters).
- A wallet card (get_wallet): stats, hard stops, the copy result and up to 60 last coins. A dev card (get_dev): stats, stops, the 8 last launches and the next launch estimate.
- Today: trades of one wallet over the last 24 hours (get_wallet_trades) and the hot wallets of the day (get_hot), both from the live stream, not the book.
- Every wallet that traded a token over the last 30 days, in the book or not, with its numbers in that token and filters (token_wallets).
- Tokens: wallets of the book that traded a token or several tokens (find_by_token), launches that reached the target (get_launches), price candles of a token with the entries and exits of a wallet or a dev (get_candles).
- Ready Blizz order settings for a wallet or a dev (get_blizz_settings) and a backtest of a copy order (backtest_copy).
- The owner's own lists and tracked wallets (get_lists, get_tracking), and the limits of the key (whoami).
- The owner's own referral program (get_referrals): code and links, counters, earnings and payouts, own referrals and their purchases. Only the owner's own record, read only: the agent cannot grant access, change the share, the code or labels, or pay out.
- For partners with Blizz referral data switched on (get_blizz_referrals): the owner's own Blizz referrals with sign-up time, Telegram username and id, volume and reward. Only the owner's own referrals, read only.

It can change only two things, both personal and reversible: the owner's lists (hide or unhide one address, folders: update_lists) and tracked wallets (set_tracking). Everything else is read only.

It cannot:
- Trade, place or change orders, or touch a wallet or Blizz: it only prepares settings, the person enters them in Blizz.
- See trades older than the book window, or single trades older than 24 hours: the book keeps totals per coin, not every trade.
- See every wallet of the network: the book keeps wallets that passed its entry rules. A wallet outside the book is counted on request by get_wallet and uses the daily lookup limit.
- Change the window, the target or the launchpads: they stay as the book was built.
- Remember filters or anything else between calls: every call is independent, and other people's lists and keys are not visible.
- Promise a result: scores, copy results and backtests are estimates on past trades.

Limits (whoami shows the numbers of this key): requests per minute, requests per day (requestsPerDay, null when there is no daily cap), book addresses per day, lookups of wallets outside the book per day, new backtests per day and new tokens of token_wallets per day. They are shared with the open site tabs, the browser extension and the Excel files of the bot of the same account. When a limit is hit the answer is an error with retryAfter: the agent has to stop and wait, not retry.
Plan 3 months: the agent API and MCP together allow 30 requests per minute and 500 requests per rolling 24 hours (the site and the extension do not use them). Over the daily cap the answer is 429 with daily true, until and retryAfter. Lifetime plan: whoami shows its own limits, no daily cap on requests.
Book addresses: every distinct address of the book the account receives counts once, wherever it came from: list rows, cards (with co-traders, cluster, leader, link partner and clone group members), tracked wallets, book wallets in token_wallets rows, caller cards and who labels, the extension and the Excel files of the bot. The count runs over the last 24 hours (a rolling window, not a calendar day): an address leaves it 24 hours after it was last received, and `until` of a 429 is when the oldest one leaves. There is also a weekly cap over the last 7 days (bookAddressesPerWeek in whoami). An address received again inside the window is free. The Hood Hunt team is told when an account passes 70% of its daily book addresses.

How to read an answer: call "skip" means a hard stop fired (stops says which); call null means no hard stop and is not a recommendation to buy; warns are soft warnings. null in a field means no data, never zero. Shares are 0..1 (0.6 is 60%), money is SOL unless the field says USD, time is unix seconds UTC.

## Methods

- `GET /api/agent/v1` — this list
- `GET /api/agent/v1/me` — whose key this is, and the limits
- `GET /api/agent/v1/filters` — every filter key of the book with its unit and meaning: read it once before the first filtered search. Not a book lookup (query: kind copy|devs (both when absent))
- `POST /api/agent/v1/wallets` (body: limit 1..20, page 0..2, sort (any sortable key of filters), dir, q, f {key: [min, max]} (any copy filter of filters, up to 8 keys), minScore, minPnl, minWr, minN, minPf, minCpm, minCpt, minCp1, maxLastDays)
- `POST /api/agent/v1/devs` (body: limit 1..20, page 0..2, sort (any sortable key of filters), dir, q, f {key: [min, max]} (any devs filter of filters, up to 8 keys), minScore, minN, minH20, maxDsb, maxLastDays)
- `GET /api/agent/v1/wallet/<address>` — wallet card: stats, hard stops, copy result cpm / cpt / cpn (cp1 is the mean with outliers), up to 60 last coins with mint
- `GET /api/agent/v1/trades/<address>` — today's trades of a wallet with token addresses: the last 24 hours of the live stream, up to 30, newest first; not the book. Counted like the wallet card
- `GET /api/agent/v1/dev/<address>` — dev card: stats, hard stops, the 8 last launches newest first with mint, the next launch estimate next or nextHist when there is one
- `GET /api/agent/v1/hot` (query: limit 1..20, sort pnl|roi|wr|n, dir, new 0|1)
- `POST /api/agent/v1/mint` (body: m: mint address, or ms: 1..5 mint addresses (wallets that traded all of them))
- `GET /api/agent/v1/launches` (query: win 1|3|7, tgt target cap USD, lp launchpad, sort pk|t0|tt)
- `GET /api/agent/v1/lists`
- `POST /api/agent/v1/lists` (body: op hide|folder.create|folder.put|folder.rename|folder.delete, kind copy|devs)
- `GET /api/agent/v1/track`
- `POST /api/agent/v1/track` (body: addr, on true|false)
- `GET /api/agent/v1/ref` — the key owner's own referral program: code and links, share and threshold, counters (site clicks, bot starts, paid referrals), money earned, due and paid out, own referrals (friends) and their purchases (sales). since keeps only friends and sales newer than that time, limit sets the rows per list. For a partner with extended data switched on (extended true) each sale has a stable id and the buyer's Telegram id, and each own referral has Telegram id, payments and the current access term. Read only. Not a book lookup (query: since UTC time like 2026-11-18T14:00:00Z, limit 1..500, default 50)
- `GET /api/agent/v1/ref/blizz` — the key owner's own Blizz referrals (switched on per partner, others get 404 not enabled): who signed up in Blizz by the owner's referral link, with login, Telegram username and id, registration time, volume, trades, fee and reward in SOL. New sign-ups appear within about 2 minutes; poll with since=<next_since of the previous answer> to get only the new ones. Read only, not a book lookup (query: since UTC time like 2026-11-18T14:00:00Z, limit 1..500, default 50)
- `GET /api/agent/v1/blizz/<copy|snipe|rev>/<address>` — Blizz order settings for a wallet (copy) or a dev (snipe, rev) (query: budget 0.05..100 SOL, lang ru|en)
- `GET /api/agent/v1/candles/<mint>` — price candles of a token in USD cap, the window peak and the trades of a wallet or a dev; not the book (up to 300 candles, more: 400 with tf_min; 50 marks: first 25 and last 25) (query: tf auto|5s|15s|1m|5m|15m|1h|4h|1d, from unix, to unix (window at most 31 days), wallet address, or dev address)
- `POST /api/agent/v1/backtest` — backtest of a copy order on a wallet over the last days: 202 status queued or running, call again after retry_after seconds with the same body; 200 status done with the result (v 2), or failed (body: wallet address (required), days 1..14 (7), amount_sol 0.05..5 (0.5), sl_pct null|5..95, tp_pct null|10..10000, sell ratio|full (ratio), compare stops (optional: the same order with other stop losses in one run), or order: a full Blizz copy order draft {buy, sell, filters} instead of amount_sol, sl_pct, tp_pct and sell (see Fields))
- `POST /api/agent/v1/token` — every wallet that traded a token over the last 30 days with its numbers in that token, filtered and sorted; up to 20 rows per call. 202 status running: call again after retry_after seconds with the same body. New tokens per day are limited (tokensPerDay in whoami) (body: m: token mint or pool address (required), f {key: [min, max] | true} (filters of the token, see Fields), sort pnl|tot|roi|tIn|buy|sell|score|xpk|rank|mcIn|hold (tot), dir desc|asc, limit 1..20 (20), page from 1)
- `GET /api/agent/v1/docs.md` — these docs as markdown, no key needed
- `GET /api/agent/v1/stream` — live events of the key owner as server-sent events: trades of tracked wallets, the bot's tracking and dev-sell alerts, setup digests (see Event stream). One open stream per key

## Fields

- Wallet card coins: up to 60 last coins of the book window, newest first. mint (token address), t (first entry, unix seconds UTC), sym, lp (launchpad), roi (share: 0.2 is +20%), hold (seconds from the first entry to the last sell), sin (SOL in), nb and ns (buys and sells), mc0 (cap at the first entry, USD; null is unknown), xpk (peak after the entry over the entry price).
- Dev card launches: the 8 last launches of the book window, newest first. mint (token address: pass it to get_candles or token_wallets), t (created, unix seconds UTC), sym, lp (launchpad), pk (peak cap, USD), fs (cap in the first second, USD); null is no data.
- Dev card next launch estimate: one of two fields, or none. A missing key means there is no estimate for this dev (it is never sent as null or zero). next: devs with a single launch in 30 days; next.p is the model's chance (0..1) of a +30% take before a -60% stop within 15 minutes when sniping their next launch in the creation block. It is a chance of movement, not of profit: the expected result next.roi (a return, 0.1 is +10%) is often below zero; next.sn is the expected number of snipers in blocks 0-2; m1, k2, k10 and dev describe the first launch (mint, t0), base is 1. Inside next, p, roi and sn can be null: the model gave no estimate (no model, not enough features, or the dev bought out the first launch, why has sweep); next.why lists the model's reason codes and can be empty; next.verdict is always null, Hood Hunt gives no verdicts. nextHist: devs with more launches; nextHist.p is the share of their own launches where the simulated snipe closed in profit, shrunk to the book average for small bases (prior.p0 with weight prior.a), roi the same for the snipe result; base.n is how many launches it counts, base.win how many of them closed in profit; both are null when the exact base is not known (then read only the share). It describes the past and is not a promise. The np column of search_devs is next.p or nextHist.p.
- Copy result: cpm is the median copy ROI per coin (share), cpt is the copy total in SOL at 0.5 SOL per buy of the wallet (one 0.5 SOL check per buy, not per coin), cpn is how many coins it counts. cpo is how many coins the copy still holds and cptO the value of those held tokens at the current price, SOL (an estimate, not a closed result). algo 1 means the wallet looks like a bot / algorithm (cpd coins per active day), 0 not, null no data. null: the book has no such field yet. cp1 is the mean copy ROI with outliers (a coin up to +1000%): read cpm and cpt first. Filters: minCpm (typical coin, share), minCpt (total, SOL); minCp1 filters by the mean.
- Backtest (backtest_copy, POST /api/agent/v1/backtest) is an estimate on past trades, never a forecast or a promise. It copies every trade of the wallet over the last days (1 to 14, the window ends at the start of the current UTC hour) with your order. It models the Blizz queue, fees, network costs and slippage measured on real copies. It counts 10 to 60 seconds in the background: status queued or running means call again after retry_after seconds with the same arguments; done comes with the result, failed with error. One result lives up to 6 hours and a new one is counted at the next hour.
- Backtest order: either the simple fields (amount_sol per buy, optional stop loss sl_pct and take profit tp_pct, sell ratio: sell the same share as the wallet, or full: sell all on its first sell) or order, the full draft, not both. order: buy {amount_sol 0.05..5 (required), ratio_pct 1..100 or null (buy this share of the wallet's buy, at most amount_sol), slippage_pct 1..100 (50), tip_sol and priority_fee_sol 0..0.05 (0.005), once_per_token (false), target_amount_sol {min, max} (copy only wallet buys of this size, SOL), market_cap_usd {min, max} (USD cap at the buy)}; sell {slippage_pct, tip_sol, priority_fee_sol, auto: up to 8 rows {type tp|sl|tsl, trigger_pct (tp 10..10000, sl and tsl 5..95), size_pct 1..100 (100), activation_pct (tsl only: the rise that arms the trailing stop)}, timed: up to 5 rows {after_sec 5..86400, size_pct}}; filters {sell_mode ratio|full, skip_add_ons, copy_sells (true), min_coin_age_min and max_coin_age_min, dexes subset of pf, pam}. An unknown key at any level is an error 400 with its name. params.order of the answer is the order with every default filled in.
- Backtest answer (v 2): summary has the copy invested_sol, returned_sol, open_value_sol (open remainder at the last price, inside pnl_sol; realized_sol counts it as zero), pnl_sol, pnl_pct, coins, closed_coins, wins, losses, win_rate_pct, target_buys, copied_buys, skipped (reasons of missed buys), entry_pct (how much dearer the copy entry is than the wallet's, percent, p25 p50 p75), fees (blizz_sol, network_sol, failed_network_sol), rent_sol, auto_fired (coins where tp, sl, tsl, timer fired; null without them in the order), capture_pct (copy pnl_pct over the wallet's pnl_pct, percent; null when the wallet is not in profit) and target (the wallet's own result). robustness: days_active and coins (how wide the result is), boot_loss_share (share of coin resamples with a loss), top3_share and ex_top3_sol (how much rests on the three best coins), best_day_share, max_drawdown_sol. series: days (result of the copy sells per UTC day with sells and buys), hist (closed coins by pnl_pct in buckets lt-50, -50..0, 0..100, 100..500, gt500, and open), drawdown (the largest fall of the copy result from its peak, SOL, with from and to). coins_best (20 best coins by pnl_sol) and coins_worst (5 worst), coins_total (all coins). schemes: the same run with other exit schemes (ratio, full, and without auto exits when the order has them): pnl_sol, realized_sol and sells of each, best by realized_sol. compare: with compare "stops" the same order is also run with other stop losses in the same engine pass, one backtest of the daily limit: without a stop, 25%, 40% and 65% (sl rows of sell.auto are replaced by one sl row on 100%, the rest of the order stays), and the order's own stop as a fifth row when it differs. compare {kind "stops", best (id with the largest pnl_sol), list: id none|sl25|sl40|sl65|own, sl_pct, current (the row of the asked order: summary, series and coins are built on it), pnl_sol, pnl_pct, win_rate_pct, max_drawdown_sol, coins, sl_fired (coins where the stop fired)}; a field the engine does not give in this run is null. Without compare it is null. accuracy: on live copies the copy entry is usually 1 to 3 percentage points dearer than the model (entry_bias_pp). notes are codes: open_positions, bad_rows, not_modeled:<field>, few_data, uncovered, target_fees_partial (the terminal fee of some of the wallet's own trades is unknown, so the wallet's own result is overstated by about 1 to 3 percentage points). The site gets the same answer with the full curve and up to 60 coins.
- Token wallets (token_wallets, POST /api/agent/v1/token): every wallet that traded the token (m: mint, or a pool address: mint.from_pair then shows the pool and mint.m the token) over the last 30 days, the indexer keeps no older trades. mint: sym, name, lp, dev, t0 (created, unix UTC), curve (pump for pump.fun, mig is then its migration time or null; other launchpads: mig is not known), ath and mcNow (peak and current cap, USD), traders, trades, partial (true: the launch is outside the window or the wallet cap was hit, so tIn, rank and some early buyers are missing; why says which), book (how many book wallets were matched). total is all wallets of the token, matched passed the filters, funnel shows how many were left after each filter. Row numbers are in this token only, SOL from the trade amounts without network fees, tips or trading software fees: buy and sell (SOL), nb and ns (buys and sells), left (share of bought tokens not sold), unreal (unsold tokens at the last price, SOL), pnl (realized: sell minus the cost of the sold part), tot (with the remainder: sell + unreal - buy), roi (tot / buy, a share; null when tokens came by transfer), tIn (seconds from creation to the first buy), rank (buyer number by entry), tb (first buy, unix), mcIn (cap at the first buy, USD), hold and holdL (seconds from the first buy to the first and the last sell), xpk (peak after the entry over the entry price), ofAth (entry price over the window peak). flags: dev (creator), bundle (dev bundle or a buy in the launch block), bot (same_block, churn, dust, fast or null), tin (sold more tokens than bought: they came by transfer, pnl and tot are overstated), soft (trading software names; empty for most rows, it is marked only on a small share of trades), blizz (traded through Blizz), fresh (one-day wallet: known only for book wallets, null outside the book). book: score, pnl, wr, n of the wallet's copy book row, null outside the book. Filters f: ranges [min, max] on tIn, mcIn, rank, buy, sell, pnl, tot, roi, hold, holdL, nb, ns, left, xpk, unreal, ofAth and on the book keys score, wr, n, pf, cpm, cpt, cpn, p7, lastDays, bal, flip, cpd (a book key keeps only book wallets; at most 3 book keys per call); true on noDev, noBundle, noBot, noFresh, noTin, inBook, noLead (drop wallets that follow a leader), sold (sold at least once). A row with no data for a filtered key does not pass. An unknown key is an error 400. Up to 20 rows per call and pages 1 to 5, more is true when the next page has rows. Book wallets in the rows (book not null) count as book addresses of the day; with the daily book addresses used up token_wallets answers 429 daily. The first call for a new token can take longer: status running with retry_after means call again with the same body. New tokens per day are limited (tokensPerDay in whoami); filters, pages, sorting and polling of a token already asked today do not use the limit.
- Filters (f in POST /api/agent/v1/wallets and /devs, filters in search_wallets and search_devs): an object {key: [min, max]} with any filter key of the book; null leaves a side open. GET /api/agent/v1/filters (list_filters) gives every key with its unit and meaning; read it once before the first filtered search. Units: pct is a share 0..1 (0.6 is 60%, never 60; a pct bound outside 0..1 is an error 400), roi is a return (0.1 is +10%, it can be below 0 and above 1: ag, cpm, cp1, snp of devs), sol is SOL, usd is US dollars, sec seconds, day days, n a count. bool keys take true / false or [1, 1] / [0, 0]; bots takes a list of values. A wallet with no data for a filtered key does not pass. An unknown key or a wrong type is an error 400 with the reason. A key set both in f and through minPnl and the like is an error: pass it once. At most 8 keys in f. A row carries only its own fields (the ones of the site row): a filter or sort key outside them narrows and orders the list, but its value is not in the answer; read it on the wallet or dev card. Devs rows also carry np and nsn when they are filtered or sorted by.
- Example: {"f": {"gdn": [5, null], "wr": [0.55, null], "lastDays": [null, 2], "bags": [null, 0.3], "ownLaunch": false}, "sort": "cpm"} keeps wallets with at least 5 profitable days, win rate from 55%, a trade in the last 2 days, at most 30% bags and no own launches, sorted by the typical copy ROI.
- Green days: gdn is the number of profitable days in the window, gday is their share of active days. To ask for at least N profitable days, filter gdn, not gday.
- Filters are not remembered between calls: every search starts with no filters. To reset, just leave f out.
- Referrals (get_referrals, GET /api/agent/v1/ref): the same object as the Referrals tab of the site. me is the owner's own record, or null when there is no code yet (open /ref in @hoodhuntbot); a member who is not a partner gets the ordinary code on the default terms and zero counters. me: code, status on|off, pct (share now, percent), unlock (paid referrals before the share opens), unlocked, to_unlock, pct_after (share after the threshold), site_clicks (opens of the site link), starts (bot starts by the link), paid_refs (referrals who paid), sales_lamports, earned_lamports, due_lamports (to be paid), paid_lamports (paid out), wallet (shortened), labels (channel labels with clicks, starts, paid_refs, earned_lamports; label "" is traffic without a label), friends (up to 50 latest referrals: at start time, who, label, src bot|site, paid, counted unlock|earning|null), sales (up to 50 latest purchases: at, who, plan w1|m1|m3|life, lamports, share_lamports, status unlock|accrued|paid|void), payouts (at, lamports, tx shortened), days (purchases per day over 14 days UTC), app (partner application new|approved|declined|null), code_next_at, code_err. Money is lamports: 1 SOL is 1000000000. rules: the default terms. links: site and bot links of the code and of each label (null without a code). Other people's records are never in the answer. Polling: pass since (UTC time) to get only friends (by start time) and sales (by purchase time) newer than it, and limit (default 50, up to 500) for the rows per list; the answer then has since, limit, friends_matched, sales_matched, truncated and next_since (put it into since of the next call; matched above the returned rows means raise limit). The snapshot keeps at most 50 latest rows per list (500 with extended true): truncated true means a list reached that cap and its oldest row is still newer than since, so older rows after since may be missing and raising limit will not bring them: poll more often. next_since is set 15 minutes back on purpose, so the same row can come again in the next calls: drop repeats by id in sales and by tg_id in friends. A new purchase of an old referral shows up in sales, not in friends. extended true (switched on per partner by the Hood Hunt team) adds: in sales id (stable number of the purchase: use it to never count one twice), tg_id and username of the buyer, access active|none, access_until (unix end of the buyer's current access; null with active means no end date; a past time means it ended then) and access_plan; in friends tg_id, username, bound (false is a visit by your link of a person tied to another code: no id), payments (count), paid_lamports, first_paid_at and the same access fields. Telegram ids and access terms are personal data of other people: use them only for the owner's own funnel.
- Blizz referrals (get_blizz_referrals, GET /api/agent/v1/ref/blizz): only for a partner this is switched on for; anyone else gets error not enabled. referrals are the accounts that signed up in Blizz by the owner's referral link, newest first: account_id, login (Blizz login), username and tg_id (Telegram, null when Blizz has none), registered_at, seen_at (when Hood Hunt first saw the account; equals registered_at for old ones), rate_pct (the owner's share of this account's fee), volume_sol (since stats_from), volume_30d_sol, volume_7d_sol, volume_today_sol, trades, fee_sol (platform fee paid by the account), reward_sol (referral reward credited from this account; null when summary.reward_per_referral is false: the split per account could not be reconciled with the total), first_trade_day, last_trade_day, traded. summary: referrals, traded, new_24h, the volume sums and reward_sol (referral reward credited to the owner since stats_from). Freshness: a new sign-up appears within about 2 minutes (fresh_at is the last successful check; stale true means the check has been failing and new sign-ups may lag up to an hour); volume, trades, fee and reward are refreshed about once an hour (stats_at). All days are UTC, sums are SOL. To watch for new referrals call it with since set to next_since of the previous answer: matched 0 means nobody new. limit is 50 by default (up to 500); matched above returned means there are more, raise limit. Payout totals are not here: see them in Blizz.
- Trades (get_wallet_trades): up to 30 trades of the last 24 hours, newest first. t (unix seconds UTC), mint, sym, side buy or sell, sol, px (price, SOL per token), lp, sig (transaction signature). last is the last trade of the wallet, since is where the stream journal is continuous from, gaps are stream gaps: a trade inside a gap may be missing, so no trades is not proof of no trading. Trades in pools quoted in a token other than SOL are not in trades (their sum is a Blizz conversion, not SOL of the wallet): nonsol_hidden counts them, and note says "N trades in non-SOL pools not shown". Use get_candles with mint and wallet for the entry and exit marks.

## Rules

- limit is 1 to 20, page is 0, 1 or 2. Stop when more is false or page is 2. token_wallets: page 1 to 5.
- Do not send win, target, lps or dd. The window and the target stay on the book.
- call "skip" is a hard stop. call null means no hard stop: it is not a buy.
- Copy in the verdict: stop copy_loss means the copy total over all coins is negative. warns are not stops: copy_typical_loss means the typical coin loses while the total holds on rare big winners; copy_no_data means the copy test was not run, so the copy result is unknown.
- Stop follows_leader: the wallet buys after the same wallet on at least half of its coins (text names the leader). Copying it is pointless.
- Stop farm: at least half of the wallet's checked coins come from a launch farm. Its score is 0: do not recommend it.
- Clone group (grp): wallets with at least 80% of their coins in common and the first entry in the same second on at least 80% of the shared coins are one operator. A list shows one row per group: grp.id is the member with the best score, grp.n is the group size, grp.members the addresses. Count a group as one wallet, never present its members as separate confirmations. grp null: not a clone.
- On 429 wait retryAfter seconds. daily true means the daily limit is used up until `until` (unix seconds, UTC).
- pending true: the card is still counting. Retry once after retryAfter seconds.
- Backtest verdict: never recommend copying a wallet on a backtest alone when robustness.boot_loss_share is above 0.2 (more than 20% of resamples lose), days_active is below 3 or robustness.coins is below 8: say the result is not reliable. A backtest is an estimate, not a promise. New backtests per day are limited (backtestsPerDay in whoami); polling a running one and a ready result do not use the limit.
- Trades count like the wallet card: the address goes into the daily book addresses, and an address you did not get from the book today uses the daily lookup limit. live true: the daily limit of trade addresses is used up until `until`.

## Event stream

`GET /api/agent/v1/stream` with `Authorization: Bearer <agent key>` is a server-sent events stream (text/event-stream) of the key owner's own live events: only what the owner already gets from @hoodhuntbot. There is no stream of the whole book: other people's wallets, the Pulse feed, hot wallets and general alerts never come here. MCP does not hold a stream: use this endpoint from your own process.

Events (`event:` name, `data:` one JSON object; null in a field means no data, never zero; addresses are full):
- `hello` once on connect: {now (unix seconds UTC), track (wallets on the owner's tracking list), max (tracking list cap, the same as in the app), push (false: trade events are switched off on the server, track still comes), scope "agent"}.
- `trade` (has `id:`): a trade of a tracked wallet that is in the copy book, about 1 second after the block: {id, ts (block time, milliseconds UTC), w (wallet), m (mint), sy (ticker), b (1 buy, 0 sell), sol (SOL of the wallet with the launchpad fee), tok (tokens), px (SOL per token), mcSol (cap in SOL at the trade), lp (launchpad), amm (0 curve, 1 pool), sig (transaction signature)}. A launch by a tracked dev: {id, ts, d (dev), m, sy, sol, px, mcSol, lp, amm, sig}, without b and tok. skipped (optional): how many trade events were not sent to this stream because of the rate cap.
- `track`: the bot's tracking alert for any tracked wallet, in the book or not: {ts (block time, unix seconds), w, mint, sym, b (1 buy, 0 sell), sol, pool, px (SOL per token), mcSol, amm, sig}. Buys of one wallet in one token come at most once per 10 minutes; every sell comes. A wallet in the book can come both as trade and as track: drop repeats by sig.
- `devsell`: a dev from the tracking list sold its own token for the first time and low (the bot's dev-sell alert): {ts, d (dev), mint, sym, mc (cap of the sale, USD), sol, share (share of the dev's tokens sold), dsm (the cap the dev usually sells at, USD), wr (share of the dev's launches that made x2 after such a sale), rn (out of how many launches), ceil (entry ceiling, USD)}.
- `setup`: the hourly digest of a saved setup with "send to bot" switched on, sent when the bot has delivered it: {at (unix seconds), presetId, name, kind copy|snipe, addrs: [{w, k {key: value}, u {key: unit}, lab {key: label}, note (the owner's note, only when set)}]}. Only the addresses the bot showed; the same address does not come twice for one setup.
- `ping` every 15 seconds: {now}. No ping for 45 seconds means the connection is dead: reconnect.
- `reset` after a reconnect when the missed trade events are older than the server memory: {since, first, last}. Read what you need again (get_tracking, get_wallet_trades).

Catch-up after a break: only trade events carry `id:`. Reconnect with the header `Last-Event-ID: <last id>` or with `?since=<last id>`: missed trade events of tracked wallets from the last 2000 events of the server come first. track, devsell and setup are not replayed: events of the break are lost, use get_wallet_trades for tracked wallets.

Limits: one open stream per key (a new connection closes the previous one). The stream counts toward the open live tabs of the account (4 with the site tabs; the oldest is closed). Every connection counts as one request of the per-minute limit: reconnect after 3 to 5 seconds, not in a loop. At most 5 trade events per second per stream, the rest are counted in skipped. The tracking list keeps up to max wallets (see hello); change it with POST /api/agent/v1/track or set_tracking, the stream picks up the change within seconds. A revoked access or a new key closes the stream within a minute. Errors before the stream starts are JSON: 401 no or unknown key, 429 rate limit with retryAfter, 503 stream unavailable with retryAfter.

JavaScript client (Node 18+):
```js
let last = '';
for (;;) {
  const r = await fetch('https://hoodhunt.lol/api/agent/v1/stream', { headers: { authorization: `Bearer ${KEY}`, ...(last && { 'last-event-id': last }) } });
  let buf = '';
  if (r.ok) for await (const c of r.body.pipeThrough(new TextDecoderStream())) {
    buf += c; let i;
    while ((i = buf.indexOf('\n\n')) >= 0) { const b = buf.slice(0, i); buf = buf.slice(i + 2);
      const ev = /^event: (.+)$/m.exec(b)?.[1], data = /^data: (.+)$/m.exec(b)?.[1], id = /^id: (.+)$/m.exec(b)?.[1];
      if (id) last = id; if (ev && ev !== 'ping') console.log(ev, JSON.parse(data)); }
  }
  await new Promise((ok) => setTimeout(ok, 5000));
}
```

Python client (requests):
```python
import json, time, requests
last = None
while True:
    h = {'Authorization': f'Bearer {KEY}', **({'Last-Event-ID': last} if last else {})}
    try:
        with requests.get('https://hoodhunt.lol/api/agent/v1/stream', headers=h, stream=True, timeout=(10, 60)) as r:
            ev = None
            for line in r.iter_lines(decode_unicode=True):
                if line.startswith('id: '): last = line[4:]
                elif line.startswith('event: '): ev = line[7:]
                elif line.startswith('data: ') and ev != 'ping': print(ev, json.loads(line[6:]))
    except requests.RequestException: pass
    time.sleep(5)
```
