Comments (10)
Most likely explanation is that RH changed the symbol for one of your stocks, so symbols saved locally do not match the RH API. If you use docker - you can try stopping and deleting the container (don't delete image to avoid re-download) and start a new container. It should pull the updated list of symbols.
Alternatively, if you want, post the list of stocks/symbols you have and I can check each of them manually.
from robinhood-portfolio.
Not using docker, deployed both in Windows & Linux machine. Any other thoughts/advice to fix? I haven't had this issue with other RH py scripts
from robinhood-portfolio.
I suspect the issue was that there were no dividend payouts, so dataframe was empty and as a result had no "instrument" field. Could you pull the latest version and try again?
from robinhood-portfolio.
Thanks for your quick reply. Making progress, the error disappears but now it is stuck downloading market data...
Downloading dividends from Robinhood
Downloading orders from Robinhood
Downloading market data for 20171108-20180618
It's been downloading for 30min+ now, doubt it really takes that long?
from robinhood-portfolio.
No, no way. Likely get's stuck somewhere because of empty dividends info. If I don't have ideas - may need to add verbosity to understand where it get's stuck.
from robinhood-portfolio.
Found where it gets stuck...
pf = web.DataReader(tickers, 'morningstar', start_date, end_date)
Maybe there's a ticker morningstar doesn't like?
from robinhood-portfolio.
Ah, it's totally possible. Getting stock data nowadays is difficult - I had to switch to morningstar after google killed it's API. You can check some more exotic tickers on their page.
Just to be sure, it is not something else - you can add pause=1.0
to that call, it is in folder backend/market_data.py
on line 41. I suspect that if you have a large list of tickers to pull morningstar may not like it, so we can try to increase the delay between requests. If this does not work - then it is likely some exotic ticker.
from robinhood-portfolio.
I believe I found the exotic ticker, SESN. What do I do now? It's a valid ticker...
from robinhood-portfolio.
Yes, you are right, SESN does not go through, although I can see it on morningstar page actually - https://www.morningstar.com/stocks/xnas/sesn/quote.html. I use external library to get quotes - I'll try to see why it is happening.
from robinhood-portfolio.
Submitted issue to pandas-datareader. I looked at their code and morningstar url and don't see anything which could explain it. Hopefully they can address it. Cheers.
from robinhood-portfolio.
Related Issues (12)
- Portfolio on Raspberry pi HOT 5
- Docker run fails. No module named 'Robinhood' HOT 14
- cannot set using a list-like indexer with a different length than the value HOT 3
- What? HOT 1
- Not Confused _Buliding
- Google API change? HOT 2
- Exception: Request Error!: 404 : Not Found (/mstar/daily.py) HOT 2
- Trying to run in a conda env with most updated pandas-0.23.3 HOT 1
- 502 bad gateway? HOT 3
- Missing Market data values shows up as NaN HOT 2
- Issues updating data (running on docker) HOT 2
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 robinhood-portfolio.