Skip to content

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