Comments (8)
I went out to the developer.tdameritrade.com site, tried a couple tickers including DIS with no issue at all. Remain scratching my head.
from td-ameritrade-client.
Turns out GE and RUN cause the same issue.
from td-ameritrade-client.
Let me test with unit tests for DIS, GE, and RUN. They may have added a new enumeration type that will be easy to add.
from td-ameritrade-client.
from td-ameritrade-client.
Add CVX to the list ...
from td-ameritrade-client.
Ok, may be as simple as changing the following in OptionDeliverable.java (or not as I messed with a lot of things beyond my understanding).
change:
public enum AssetType { CASH_EQUIVALENT, CURRENCY, EQUITY, FIXED_INCOME, INDEX, MUTUAL_FUND, OPTION }
to:
`public enum AssetType {
CASH_EQUIVALENT,
CURRENCY,
EQUITY,
FIXED_INCOME,
INDEX,
MUTUAL_FUND,
OPTION,
STOCK
}'
from td-ameritrade-client.
Yes I think that might just be enough to fix it. If you want to test it out, checkout the master branch and make your fix to the OptionDeliverable.AssetType enum in master branch.
Then, run a maven clean install. You'll see that you now installed the api with version 2.4.0-SNAPSHOT into your local Maven repository. Then in your actual app, change the version from whatever you were using (2.3.0) to 2.4.0-SNAPSHOT. Then rebuild your app and try to run the same query that was giving you problems.
Let me know if it works. If so, you could either add a Pull Request with the change (so you can get the Github Cred!!) or I can just do it manually. I think your other error in issue #36 might be as easy to fix. It is just the TDA keeps changing their API for no good reason and breaking code that depends on it :(
from td-ameritrade-client.
@higgsja Thanks for your help on this. I just looked on TDA's dev site and apparently they don't have any Enumeration for AssetType nor Currency Type (previously it was USD, CAD, JPY, EUR). Instead their Json Schema just lists them as Strings, so I'm going to do the same and convert them to string. Merged into Master which is 2.4.0-SNAPSHOT. I'll make a full 2.4.0 release later this week with other issues. Thanks Again!
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.