Java code giving error
Opened this issue · 3 comments
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"])
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.
I will close this issue soon if you aren't still getting errors after upgrading.