Comments (12)
Having this issue on option chains. Tracked it down to
DefaultMapper public static <T> T fromJson(InputStream in, TypeReference<T> typeReference) { try (BufferedInputStream ignored = new BufferedInputStream(in)) { return defaultMapper.readValue(in, typeReference); } catch (IOException e) { throw new RuntimeException(e); }
with an exception like:
Cannot deserialize value of type
java.math.BigDecimal from String "NaN": not a valid representation at [Source: (BufferedInputStream); line: 1, column: 38443] (through reference chain: com.studerw.tda.model.option.OptionChain["putExpDateMap"]->java.util.LinkedHashMap["2020-10-23:5"]->java.util.LinkedHashMap["42.0"]->java.util.ArrayList[0]
Apparently some field on the return is not a number but I am not smart enough to track further. I've tried a couple tickers, same result.
I'll also post this under #31.
from td-ameritrade-client.
from td-ameritrade-client.
Thanks!!
from td-ameritrade-client.
@higgsja what version are you using? The latest build or the last release 2.2.0?
from td-ameritrade-client.
2.2.0
If you cannot recreate this issue let me know. Could be I have another incorrect version of some jar file.
from td-ameritrade-client.
Went ahead and looked through the jar versions. Seems ok. Let me know if you discover the issue on this or if I can help further.
from td-ameritrade-client.
from td-ameritrade-client.
I can try ...
from td-ameritrade-client.
Ok, that works in a limited way:
Huge number of 'WARN com.studerw.tda.parse.BigDecimalNanDeserializer - volatility using invalid NAN instead of a valid double' for the various elements including the greeks, etc. Could be tdAmeritrade does not actually provide those elements?
However, it does not fail and the basic info is now available.
Thanks!!!
from td-ameritrade-client.
from td-ameritrade-client.
harrumph.
I sent a message to the tdAmeritrade team last May. They answered (not a useful answer) yesterday. Clearly not a priority ...
from td-ameritrade-client.
@higgsja, I made and published new release 2.3.0 if you want the fixes for NAN. I'm going to close this unless there is something else.
from td-ameritrade-client.
Related Issues (20)
- Option Prices: repeated error on NAN instead of valid double HOT 4
- FYI See this repo with clean TD Ameritrade API schemas. HOT 1
- Option Chain Parse failure from getOptionChain() HOT 7
- Duplicate class / NoSuchMethodError HOT 1
- PlaceOrder question HOT 2
- placeOrder HOT 1
- New issue with retrieving transaction history HOT 5
- Orders failed to parse. HOT 2
- Getting Error while creating Option order HOT 1
- Fetching Child Order Price HOT 1
- fix javadoc HOT 2
- Create Option Order - OptionInstrument sending null/blank values
- Generating a new access token with every API call HOT 2
- when do you implements Streaming API function? HOT 1
- RuntimeException: Empty json body: [200 - ] - https://api.tdameritrade.com/v1/marketdata/quotes?symbol=blahblah1 HOT 1
- Vulnerabilities from dependencies HOT 1
- Java code giving error HOT 3
- Receiving unauthorized errors when calling API and 400 status when trying to get access token HOT 2
- Using Spring and getting javax.validation.NoProviderFoundException with PriceHistReq Validation
- Schwab API HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from td-ameritrade-client.