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

DisplaySize in order must be 0 when received string is empty, not MaxInt64 #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dimchansky
Copy link

The default value of DisplaySize must be zero, not MaxInt64, when reading Order data from TWS. Otherwise if you try to send PlaceOrder request with the same fields as the received order, except for the parameter to modify, you'll get Unable to parse data. java.lang.NumberFormatException: For input string: "9223372036854775807" error from TWS. It's because TWS can't parse DisplaySize value that is equal to MaxInt64. Actually, when you call NewOrder method, the default value of DisplaySize is zero, not MaxInt64. Why it should be different, when you read the order from TWS?

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

Successfully merging this pull request may close these issues.

1 participant