For the benefit of those members that do use Python with the TWS API (and Jürgen surely with over 6,000 members I cannot be the only one, and therefore this has relevance to those members), I used the following method which works nicely.
?
# create the OrderCancel object
order_cancel = OrderCancel()
?
# add an empty string for manualOrderCancelTime to the object
order_cancel.manualOrderCancelTime = ""
# pass the object as the second parameter
self.cancelOrder(orderId, order_cancel)
?
Also DS, to clarify, I did indeed use square brackets as a symbolic notation of passing a single integer value as the OrderID, rather than this being the syntax of the code that would represent a list in Python.
?
As this was the last issue in my 6000+ line program that I so naively developed using a copy-and-paste approach, I am most pleased that the program now works perfectly and is rendering excellent daily results.?
?
Thank you all for your input.