Login Page - Create Account

Support Board


Date/Time: Thu, 01 May 2025 02:10:14 +0000



Post From: Assistance Differentiating Open (Active PnL) vs. Closed (Finalized PnL) Orders in Simulati

[2025-03-23 18:59:55]
User431178 - Posts: 656
You are conflating orders and positions.
Once an order is filled it is done, there is no such thing as an order with a fluctating PnL.

Order to enter >>> Live position >>> Order to exit

1. You can query the active orders uisng sc.GetOrderByOrderID or sc.GetOrderByIndex.
2. You can query the fills using sc.GetOrderFillEntry.

Between those two you can find the status of your orders.