Skip to main content

report_agent_pnl

Function report_agent_pnl 

Source
pub async fn report_agent_pnl(
    rpc_url: &str,
    agents_params: &[AgentParams],
    agent_stats: Option<&[AgentStatsReport]>,
)
Expand description

Print a PnL summary for each agent, comparing final on-chain balances against the seed amounts. Optionally includes opportunity/success-rate stats when agent_stats is provided.