Understanding the Need to Calculate Account Performance Values

It is important to understand how to calculate account performance values in real-time including but not limited to: Open and Realized P/L, Account Net Liquidating Value, Margin Requirements.

Using the Tradovate Trader app will show you these values graphically, but if you plan on using the API these values will not be pre-calculated - you’ll be required to do all of the calculations yourself. Our API provides just the market data, and it is up to the developer how to use it.

How to calculate open P&L in JavaScript

Part of the Tradovate comprehensive JavaScript tutorial.

:point_down:
https://github.com/tradovate/example-api-js/tree/main/tutorial/WebSockets/EX-12-Calculating-Open-PL