studerw / td-ameritrade-client

TD Ameritrade Java Client
Apache License 2.0
69 stars 47 forks source link

Java code giving error #61

Open ajaythukral opened 1 year ago

ajaythukral commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

ajaythukral commented 1 year ago

I am not getting any errors. Its closed

On Sun, Jun 18, 2023 at 1:45 PM William Studer @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/studerw/td-ameritrade-client/issues/61#issuecomment-1596235045, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSA7UWDUAHT5Q5V35QOXVDXL5EF3ANCNFSM6AAAAAAY7XWZOE . You are receiving this because you were mentioned.Message ID: @.***>