Login Page - Create Account

Support Board


Date/Time: Sat, 29 Mar 2025 01:39:34 +0000



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

[2025-03-23 18:59:55]
User431178 - Posts: 623
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.