Hi everyone,
I’m trying to calculate two metrics for my account using the Tradovate API:
- Total P&L since account creation
- Year-to-Date (YTD) P&L
So far I’ve identified these potentially relevant endpoints:
- /cashBalance/getCashBalanceSnapshot
- /fillPair/list
- /cashBalanceLog/deps
My questions:
- Does getCashBalanceSnapshot return fields like realizedPnl or totalPnl, or only the current cash balance amount?
- Is there an endpoint that returns historical P&L data with timestamps, so I can filter by date range for YTD?
- What’s the recommended approach to get a complete trade history with P&L per trade (including the contract multiplier for dollar conversion)?
If there’s no single endpoint for this, I’d appreciate knowing the correct combination of endpoints and fields to use.
Thanks in advance!