Commit Graph

257 Commits

Author SHA1 Message Date
jaxperro 6d2fb0f34b copybot: their-bet stake ceiling replaces stake cap + banked reserve (parity with backtest)
stake = class % of equity (drawdown-braked), capped at the signal's own
position size so far (OPEN caps at their fill, ADDs grow with their
position). No sweep, no $250 pin — fills stay within size the market
demonstrably absorbed from the signal itself.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 23:45:56 -04:00
jaxperro 1b8f48eda3 backtest: drop banking/stake-cap; stakes capped at the followed wallet's own bet
cur_stake = class % of equity (drawdown-braked), then min(their stake):
a copy is never bigger than what the wallet actually bet. No reserve
sweep, no $250 pin — the their-bet ceiling is the liquidity bound now
(fills stay within size the market demonstrably absorbed).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 23:41:59 -04:00
copybot[bot] 6f88849f85 copybot: live paper feed [skip ci] 2026-07-06 03:37:04 +00:00
jaxperro 64b56c0818 copybot: follow-set update (deploy_bot.sh) 2026-07-05 23:36:25 -04:00
jaxperro 2d2d3aa097 backtest: add ArbTrader as third whale (30d replay: 74W-1L, +$21k)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 23:35:12 -04:00
jaxperro abeb74a6f7 add ArbTrader to follow 2026-07-05 23:33:03 -04:00
copybot[bot] 2a933d2687 copybot: live paper feed [skip ci] 2026-07-06 03:28:26 +00:00
copybot[bot] af10d121b7 copybot: live paper feed [skip ci] 2026-07-06 03:24:11 +00:00
copybot[bot] 4c6c7239b4 copybot: live paper feed [skip ci] 2026-07-06 03:19:56 +00:00
copybot[bot] f8a45ebe0c copybot: live paper feed [skip ci] 2026-07-06 03:13:34 +00:00
copybot[bot] cbe62f7bea copybot: live paper feed [skip ci] 2026-07-06 03:11:26 +00:00
jaxperro 6f8fdb7aff copybot: follow-set update (deploy_bot.sh) 2026-07-05 23:10:53 -04:00
jaxperro 4190455436 copybot: compact follow config + auto floors + one-command deploy
config format matches backtest.json — one entry per wallet:
  wallets: [{wallet, name, class: volume|whale, floor?}]
normalize_follow_config expands it into the legacy watchlist/watch/
floors/classes structures (old-format configs like config.live.json
pass through untouched). Volume wallets without an explicit floor get
an auto p80 derived from the data-api at boot (the worker has no cache),
logged and published in the feed. live/deploy_bot.sh = validate ->
preview -> commit -> push -> railway redeploy -> confirm boot.

Promotion workflow: prove a wallet in backtest.json, copy the same
entry into copybot.paper.json, run deploy_bot.sh.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 23:10:51 -04:00
copybot[bot] bf2495b58b copybot: live paper feed [skip ci] 2026-07-06 03:09:39 +00:00
copybot[bot] a2349f8865 copybot: live paper feed [skip ci] 2026-07-06 02:44:29 +00:00
jaxperro cb4a33279a sharps feed: all-time trusted stats (every bet); bot feed: wallet classes
* validate_timing.display_stats adds all_win/all_won/all_lost/all_pnl —
  the wallet's record and own P&L over EVERY resolved bet ever cached,
  trusted rows only, deduped one-per-market (feeds the dashboard's new
  All-Time columns); consensus temp table now built before the pool
* copybot write_feed adds classes {name: volume|whale} so the dashboard
  can badge whale-class wallets

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 22:43:56 -04:00
jaxperro 4792235582 backtest: interchangeable wallets + rolling window (live/backtest.json)
portfolio.py now replays ANY wallet set over a rolling N-day window
(default 30) instead of the hardcoded four-from-June-1:

* live/backtest.json: {days, stake_cap_usd, class_pct, wallets:[{wallet,
  name, class}]} — edit to add/remove/swap wallets; seeded with the paper
  bot's current 7-wallet follow set
* class parity with the bot: 'whale' replays EVERY trusted bet at
  class_pct.whale of equity; 'volume' replays conviction bets at
  class_pct.volume, p80 threshold from PRE-window bets only (no peeking)
* outcomes read through trust.py (trusted rows) so any pasted-in wallet
  is scored honestly, not on cache marks
* ad-hoc CLI that leaves the dashboard feed alone:
    python3 portfolio.py --wallets 0xabc,0xdef:whale --days 14 --out /tmp/t.json
* fix: open positions with unknown entry time used to sort at t=0 and
  drain the bankroll before any historical bet ran; they now queue at the
  end (and pre-window entries are excluded)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 22:15:37 -04:00
jaxperro e07ff3d305 copybot: sold legs now realize on the bet record, not just cash
Mirror-exits were correct at book level (cash/fees) but invisible per bet:
a fully mirror-sold bet went to 'closed' with pnl null, and a TRIMmed bet
that later resolved subtracted its ORIGINAL cost+fee while ignoring the
sold leg's proceeds — understating whole-bet pnl on the feed.

* _drain_fills links every SELL fill to its bet record
  (sold_shares / sold_proceeds, net of taker fee)
* write_feed: full mirror-sell -> pnl = sold_proceeds − cost − entry fee,
  plus exit_price; dashboard's existing 'mirror-sold with recorded P&L'
  branch picks it up
* settle_resolved: pnl = resolution proceeds + sold leg − original cost −
  entry fee (pos.cost is trim-reduced; bet.cost is the original)

Sandbox-tested: TRIM cash+record, TRIM->WIN whole-bet truth, full EXIT
feed reconcile all agree to the cent.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 21:58:06 -04:00
jaxperro 034e128281 copybot: whale class follows ALL trades — no conviction floor
Whale-class wallets bypass min_their_usd and per-wallet floors entirely:
both current whales win ~92% across their ENTIRE book (Stavenson 469-39,
0x4bFb 862-72 all-time trusted; 99.2% last 30d for the whale), so
size-filtering them only costs flow. The 0.95 entry cap stays (execution
guard, validated). Floors removed from the paper config for both.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 21:45:45 -04:00
copybot[bot] 58975e515b copybot: live paper feed [skip ci] 2026-07-06 01:43:42 +00:00
copybot[bot] b8f3e5ac2b copybot: live paper feed [skip ci] 2026-07-06 01:37:24 +00:00
copybot[bot] 1e8d62ae73 copybot: live paper feed [skip ci] 2026-07-06 01:31:06 +00:00
jaxperro f8a0f0caee copybot: stop following shisan888
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 21:30:28 -04:00
copybot[bot] 09a0b09a83 copybot: live paper feed [skip ci] 2026-07-06 00:22:51 +00:00
copybot[bot] 2cdad828ba copybot: live paper feed [skip ci] 2026-07-06 00:18:37 +00:00
copybot[bot] cf83a424db copybot: live paper feed [skip ci] 2026-07-06 00:08:05 +00:00
copybot[bot] 45e21f7c97 copybot: live paper feed [skip ci] 2026-07-06 00:03:50 +00:00
copybot[bot] e2b98ebe58 copybot: live paper feed [skip ci] 2026-07-05 23:57:29 +00:00
copybot[bot] 666e19c44a copybot: live paper feed [skip ci] 2026-07-05 23:46:55 +00:00
copybot[bot] c574f6e244 copybot: live paper feed [skip ci] 2026-07-05 23:44:48 +00:00
copybot[bot] d9cf038c92 copybot: live paper feed [skip ci] 2026-07-05 23:19:40 +00:00
copybot[bot] 1fc8d28323 copybot: live paper feed [skip ci] 2026-07-05 22:29:21 +00:00
copybot[bot] 5a5fac6cb5 copybot: live paper feed [skip ci] 2026-07-05 22:27:13 +00:00
copybot[bot] 50be9a3a80 copybot: live paper feed [skip ci] 2026-07-05 22:22:59 +00:00
copybot[bot] 297aa457dc copybot: live paper feed [skip ci] 2026-07-05 21:42:47 +00:00
copybot[bot] a2be73f439 copybot: live paper feed [skip ci] 2026-07-05 21:25:53 +00:00
copybot[bot] c53f004e1f copybot: live paper feed [skip ci] 2026-07-05 20:05:56 +00:00
copybot[bot] d0df03972c copybot: live paper feed [skip ci] 2026-07-05 17:36:56 +00:00
jaxperro 306fece6a7 live: daily refresh — skilled + sharp wallets [skip ci] 2026-07-05 12:57:42 -04:00
copybot[bot] 2ef0e194c1 copybot: live paper feed [skip ci] 2026-07-05 15:48:17 +00:00
copybot[bot] 34476dc3d7 copybot: live paper feed [skip ci] 2026-07-05 15:44:05 +00:00
copybot[bot] af4e894dce copybot: live paper feed [skip ci] 2026-07-05 11:54:09 +00:00
copybot[bot] 1a56539e52 copybot: live paper feed [skip ci] 2026-07-05 11:45:44 +00:00
jaxperro 971204d58d live: daily refresh — skilled + sharp wallets [skip ci] 2026-07-04 19:29:22 -04:00
copybot[bot] 72fa74dc90 copybot: live paper feed [skip ci] 2026-07-04 23:25:49 +00:00
copybot[bot] cac894be96 copybot: live paper feed [skip ci] 2026-07-04 23:19:30 +00:00
jaxperro 0b625c994a README: July test now 8 wallets in two stake classes (volume 4% / whale 12%)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 19:18:51 -04:00
jaxperro 5c0e50efb2 copybot: wallet classes replace raw multipliers — 'volume' 4% / 'whale' 12%
follow.wallet_class marks each wallet (default: volume); follow.class_pct
maps class -> equity fraction. Stavenson + 0x4bFb-whale are whales at 12%,
everyone else rides volume at 4%. Drawdown brake, stake cap, and the
base-fraction sweep threshold unchanged. Verified: $120 whale / $40 volume.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 19:14:46 -04:00
copybot[bot] b6b2e6baf6 copybot: live paper feed [skip ci] 2026-07-04 23:12:13 +00:00
copybot[bot] 1a969745ca copybot: live paper feed [skip ci] 2026-07-04 23:10:02 +00:00