# portfolio_snapshot > Compute portfolio snapshot values from positions and cash. - Author: Jonghun Shin - Repository: ozingmw/Agent_Trading_Company - Version: 20260131212608 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/ozingmw/Agent_Trading_Company - Web: https://mule.run/skillshub/@@ozingmw/Agent_Trading_Company~portfolio_snapshot:20260131212608 --- --- name: portfolio_snapshot description: Compute portfolio snapshot values from positions and cash. --- Inputs: - cash: number - positions: list of {qty, market_value} - initial_cash: number Rules: - positions_count = len(positions) - market_value = sum(position.market_value) - pnl_total = (market_value + cash) - initial_cash Return JSON: { "cash": number, "positions_count": number, "pnl_total": number }