1 // portkit v1.0.0 — portfolio infrastructure, batteries included
2
3 export type Mission = "Build your portfolio tracker faster";
4
5 /** Drop-in TypeScript modules: perf engine · broker sync · P&L */
Ready-to-use TypeScript modules for performance computation, broker sync, & P&L tracking — drop into your project in minutes.
Four focused packages. Install only what you need.
TWR, MWR, Sharpe ratio, max drawdown — all return calculations your tracker needs.
Pre-built adapters for Interactive Brokers, Alpaca, and Binance. One unified interface.
Real-time position state machine. Handles splits, dividends, and corporate actions.
Realized & unrealized P&L with per-asset breakdown. FIFO, LIFO, average cost methods.