get_pnl
Retrieve PnL totals and per-strategy breakdown from the runtime state snapshot. Returns realized, unrealized, and fees per strategy.
Instructions
Read PnL totals plus per-strategy breakdown from the runtime state snapshot. Use this for 'what's my PnL' / 'how is strategy X doing today'. Returns realized + unrealized + fees per strategy. Returns the engine_not_running idle response when no snapshot is present yet (no error). Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy | No | Filter the per-strategy breakdown to one row; total still reflects the full snapshot. | |
| state_path | No | Override snapshot path. |