Hey guys,
?
I was searching for some information about manualOrderCancelTime and came across this thread. I have been having some issues when attempting to cancel orders by way of Order ID. The orders are placed via the API and not via the TWS directly. I am using the following command in my python program to cancel orders by Order ID:
?
self.cancelOrder([orderId], "")?
?
This throws the following error and the program terminates:
?
'str' object has no attribute 'manualOrderCancelTime'
?
When I use the following command instead, to close all active orders, this works without any issues:
?
self.reqGlobalCancel()
?
I cannot figure out what is wrong here as I have seen by the earlier responses in this thread that I should only need to specify a single argument (the Order ID) and an empty string in order for this command to execute order cancellation.
?
Any assistance with this would be most appreciated.
?
Regards,
Scott.