Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Place order reply should accept reply as bool #22

Open
odygrd opened this issue Feb 14, 2021 · 1 comment
Open

Place order reply should accept reply as bool #22

odygrd opened this issue Feb 14, 2021 · 1 comment

Comments

@odygrd
Copy link

odygrd commented Feb 14, 2021

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

def place_order_reply(self, reply_id: str = None, reply: str = None):

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 odygrd changed the title Place order reply should accept reply as bool Place order reply should accept reply as bool Feb 14, 2021
@unreal79
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants