interactive-broker-python-api icon indicating copy to clipboard operation
interactive-broker-python-api copied to clipboard

Place order reply should accept `reply` as bool

Open odygrd opened this issue 4 years ago • 1 comments

I was getting a http error 500 when using the order reply request

https://github.com/areed1192/interactive-broker-python-api/blob/0ab98cdf3809dba66bff1c09a62f03be69f5545a/ibw/client.py#L1805

According to ibrk documentation the confirmation should be boolean : https://www.interactivebrokers.co.uk/api/doc.html#tag/Order/paths/~1iserver~1account~1orders~1{faGroup}/post

Changing the function signature makes it work def place_order_reply(self, reply_id: str = None, reply: bool = None):

Please also note that the documentation section of the function looks like it is copy pasted from a different function

odygrd avatar Feb 14 '21 02:02 odygrd

It's ease to avoid by assigning True to reply:

reply_yes = ib_client.place_order_reply(
	reply_id = buy_order_id,
	reply = True
)```

unreal79 avatar Aug 20 '21 14:08 unreal79