calculate_total_pnl
Documentation for eth_defi.hyperliquid.vault_scanner.calculate_total_pnl function.
- calculate_total_pnl(pnl_all_time)
Calculate the total PnL from the all-time PnL history array.
The pnl_all_time array contains cumulative PnL values. The last value represents the current total all-time PnL.