Support Board
Date/Time: Thu, 23 Jan 2025 05:51:59 +0000
Post From: Returning OrderNumber when using sc.FlattenPosition();
[2018-10-31 09:40:49] |
User553714 - Posts: 184 |
Hi, When using either sc.FlattenPosition() or sc.FlattenAndCancelAllOrders() how do I return the InternalOrder number of the Order issued to flatten a position? I would usually use the code below for orders I issue but in the case of the Flatten Functions I don't know the s_SCNewOrder Object name being used to be able to do this? int& EntryInternalOrderID = sc.GetPersistentInt(x); s_SCNewOrder NewOrderEntry; EntryInternalOrderID = NewOrderEntry.InternalOrderID; Thanks |