Support Board
Date/Time: Sun, 02 Feb 2025 22:54:26 +0000
Post From: How to Link Flattened Order IDs to newly created Market Order ID
[2019-09-24 21:57:16] |
neodigm - Posts: 7 |
I'd like to quickly be able to link a filled Limit Order to the Market Order created when using the sc.FlattenPosition() function call. What would be the best means of doing this? I can see that the attached (to the parent order) Limit Order (for the target) and Stop Order get canceled for these positions, and a Market Order is then created to close, but it's under a newly created InternalOrderID. How would one best, quickly determine which original Limit Orders the Market Order closes (especially when there are multiple ones)? Thank you.
|