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

Order.getStatus() returns null #20

Open
FreeGoldRush opened this issue Jul 7, 2020 · 3 comments
Open

Order.getStatus() returns null #20

FreeGoldRush opened this issue Jul 7, 2020 · 3 comments

Comments

@FreeGoldRush
Copy link

Immediately after calling client.placeOrder() a call to order.getStatus returns null. This is unexpected. Shouldn't it return a Status instance? The call to placeOrder() places an order and seems to work as expected.

@studerw
Copy link
Owner

studerw commented Jul 7, 2020 via email

@studerw
Copy link
Owner

studerw commented Jul 13, 2020

@FreeGoldRush Did the sleeping for a few seconds solve your problem?

@FreeGoldRush
Copy link
Author

Sorry, have not tried it yet. Sleeping isn't an option. I'll probably just create a Thread that checks order status every 250 ms or something until it gets a valid value.

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