tesser-portfolio

Crates.iotesser-portfolio
lib.rstesser-portfolio
version0.9.3
created_at2025-11-19 06:23:49.62459+00
updated_at2025-12-04 04:53:00.284584+00
descriptionPortfolio accounting, P&L, and risk controls for Tesser
homepage
repositoryhttps://github.com/tesserspace/tesser
max_upload_size
id1939504
size84,726
Zijing Zhang (pluveto)

documentation

README

tesser-portfolio

Portfolio accounting primitives: tracks cash, positions, and realized/unrealized PnL.

Overview

  • Portfolio applies fills, updates entries/exits, and produces equity snapshots.
  • Supports serialization via PortfolioState so live trading can persist and reload.
  • Includes PortfolioConfig for setting initial equity and future risk parameters.

Typical Usage

  • Backtester and live runtime call apply_fill_positions and then feed the resulting ledger entries through apply_ledger_entries whenever orders settle.
  • Strategies can inspect positions through Portfolio::positions() via the StrategyContext.
  • Live trading snapshots the state with portfolio.snapshot() and restores with Portfolio::from_state.

Tests

cargo test -p tesser-portfolio
Commit count: 0

cargo fmt