01-projects/investing/positions

README

2026-05-18·ledger-index·status: active

Positions Ledger

Two surfaces for tracking deployed paper-trade positions:

1. Per-strategy folders (operational state)

Each strategy gets a positions/<strategy-slug>/ folder. Inside:

Files include: order IDs, share counts, fill prices, slippage vs reference, account snapshot pre/post-trade.

2. Attribution ledger (cross-cutting P&L source-of-truth)

_attribution-ledger.csv — flat ticker-by-strategy ledger. Source of truth for "of $X Alpaca P&L, $Y came from strategy A." Alpaca shows positions as one undifferentiated portfolio; this ledger tags each share by which strategy bought it and at what R-weight.

CSV columns:

How attribution works at quarterly rollup

  1. Pull current Alpaca positions + cost basis.
  2. For each Alpaca position, look up matching CSV row(s) by ticker + entry_date.
  3. If the same ticker appears in multiple strategies (e.g., MSFT in smart-money-mirror only today, but could end up in another future strategy), split P&L pro-rata by entry-notional contribution.
  4. Roll up by strategy to get strategy-level P&L. Roll up by RDCO thesis bucket (memory / power / AI-infra / hyperscaler / etc.) via the strategy → bucket mapping.

The quarterly rollup script lives at ~/.claude/scripts/attribution-rollup.py (built when first needed).

Edge cases

Active strategies

Strategy Bucket Spec Initial deploy
smart-money-mirror-v1 hyperscaler + AI-infra + memory (multi-bucket; smart-money signal IS the entry trigger) strategies/2026-05-18-smart-money-mirror-v1.md 2026-05-18, 6 tickers, ~$13.2k OPG integer (pending fractional top-up)
power-cycle-v1.1 power theses/2026-05-18-power-cycle-v1.1.md 2026-05-18, 5 tickers (GEV/TLN/VST/CEG/CCJ), $20k fractional notional DAY market

Exited strategies

(none)

Related