robinhood-options-mobile

Instrument Previous Positions & Cost Basis Lookback

Overview

RealizeAlpha provides complete historical visibility into previously held and closed positions for any instrument. Instead of only displaying active open holdings or fragmented raw orders, the Instrument Previous Positions & Cost Basis Lookback engine reconstructs complete historical trading cycles (round trips) directly from filled order records (/orders/, /positions/?nonzero=false, and Paper Trading stores).

Traders can audit their historical performance per ticker, analyze entry/exit execution quality, track realized P&L, evaluate holding period lengths, and examine win/loss ratios across every historical round trip.


Key Capabilities

1. FIFO Lot-Matching & Cycle Reconstruction

2. Historical Round-Trip Metrics

For each historical position cycle:

3. Aggregate Lookback Summary


UI Components

InstrumentHistoricalPositionsWidget (lib/widgets/instrument_historical_positions_widget.dart)


Testing & Verification