Support Board
Date/Time: Fri, 22 Nov 2024 14:02:52 +0000
Post From: Using FlattenAndCancelAllOrders with Options on IB
[2013-05-03 20:57:12] |
User76625 - Posts: 49 |
I'm running into a problem using the sc.FlattenAndCancelAllOrders() command with options - the chart uses SMART as the exchange (a compilation of orders all available exchanges), but when an order is actually filled, the Symbol on the Trade Positions tab will show the actual exchange it was filled on (i.e., AMEX). Since the symbol doesn't match the chart, the Flatten command doesn't trigger since it thinks there is no open position to flatten. For example: Chart Symbol: GOOG-OPT-20130517-835-C-SMART-100-USD Filled Order Symbol: GOOG 130518C008350000-OPT-AMEX Any ideas on a work around? Date Time Of Last Edit: 2013-05-03 21:31:53
|