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

Java code giving error #61

Open
ajaythukral opened this issue Jun 8, 2023 · 3 comments
Open

Java code giving error #61

ajaythukral opened this issue Jun 8, 2023 · 3 comments

Comments

@ajaythukral
Copy link

I was using these API for automaticaly place orders. But today start getting following error.

java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type com.studerw.tda.model.account.RequestedDestination from String "C2": not one of the values accepted for Enum class: [NASDAQ, CBOE, C_2, ISE, NYSE, BATS, AMEX, PHLX, BOX, AUTO, INET, ECN_ARCA]
at [Source: (BufferedInputStream); line: 9265, column: 28] (through reference chain: java.util.ArrayList[235]->com.studerw.tda.model.account.Order["requestedDestination"])

@studerw
Copy link
Owner

studerw commented Jun 10, 2023

Hi @ajaythukral

Can you make sure you're on the latest release i.e. change to 2.4.2.

This issue was likely fixed a few years ago. See this issue 48.

Let me know if that works, and I can close this issue. Otherwise, we can investigate further.

@studerw
Copy link
Owner

studerw commented Jun 18, 2023

I will close this issue soon if you aren't still getting errors after upgrading.

@ajaythukral
Copy link
Author

ajaythukral commented Jun 21, 2023 via email

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