Comments (8)
looks easy to fix
they are change the way to requests https://www.alphavantage.co/documentation/#intraday
Old system (recenly in the code 08-2023 )
https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY_EXTENDED&symbol=UBER&interval=15min&slice=year2month12&apikey=FXZ0
New system (have to be uptaded I dont have time )
https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=IBM&interval=5min&month=2019-01&outputsize=full&apikey=FXZ0
alphavantage has changed the keywords request &slice=year2month12 for &month=2019-01
Please try to change it , if work , could you share it to updated the code
from tensorflow-stocks-prediction-machine-learning-realtime.
did all changes but no, this is not working: see this is the api response: meta data tag making issue.
0_API_alphavantage_get_old_history.py this file must be changed based on current meta data . please check your code, commit the new changes.
"Meta Data": {
"1. Information": "Intraday (5min) open, high, low, close prices and volume",
"2. Symbol": "IBM",
"3. Last Refreshed": "2019-01-31 19:15:00",
"4. Interval": "5min",
"5. Output Size": "Full size",
"6. Time Zone": "US/Eastern"
},
"Time Series (5min)": {
"2019-01-31 19:15:00": {
"1. open": "103.2400",
"2. high": "103.3990",
"3. low": "102.9970",
"4. close": "103.1370",
"5. volume": "320"
},
"201
from tensorflow-stocks-prediction-machine-learning-realtime.
when I print the clumn names: its showing like this :
[' "1. Information": "Intraday (15min) open', ' high', ' low', ' close prices and volume"', 'Unnamed: 4']
but in the code : column names not matched with waht data received from alphavantage
df_S_all = df_S_all.rename(columns={'time': 'Date', 'open': 'Open','high': 'High', 'close': 'Close','low': 'Low', 'volume': 'Volume'})
df_S_all = df_S_all.sort_values(['Date'], ascending=True)
better can you please build the project code and see the error in your local machine.
from tensorflow-stocks-prediction-machine-learning-realtime.
when I print the clumn names: its showing like this :
[' "1. Information": "Intraday (15min) open', ' high', ' low', ' close prices and volume"', 'Unnamed: 4']
likely your are reciving a dict, you have to look inside the dict to only get Open, close..... data
from tensorflow-stocks-prediction-machine-learning-realtime.
Yes thats correct , trying to take time series data contained those but its not taking out: below is the yellow marked we need to process it.
tried with multiple way but its not working, Can you please able to update code base. also can you please provide your contact email address, so that I can show you how to progress this.
from tensorflow-stocks-prediction-machine-learning-realtime.
If I may, could you make the change?
It's easy,
1º change the type of query , (explained in previous answers )
2º process and modify the data for a correct visualisation with pandas.
3º save them in a .csv following the format of the previous one.
4º [if you want to ] pass me the solution to update the source code
excuse me, if you are stuck with this, I don't think you have much progress, you can write me to the telegram group of the documentation.
from tensorflow-stocks-prediction-machine-learning-realtime.
solved in the last version of https://github.com/Leci37/stocks-prediction-Machine-learning-RealTime-TensorFlow/blob/master/0_API_alphavantage_get_old_history.py
but is better use alapaca o yahoo to get the full data
from tensorflow-stocks-prediction-machine-learning-realtime.
You can use alpaca API by
https://github.com/Leci37/stocks-prediction-Machine-learning-RealTime-TensorFlow/blob/master/0_API_alpaca_historical.py
from tensorflow-stocks-prediction-machine-learning-realtime.
Related Issues (17)
- No code ? HOT 4
- Some files for quick-start not Found HOT 2
- Can we use any other API as source instead of yahoo? HOT 1
- Requires Statement.py and realtime_model_POOL_driver.py HOT 5
- distplot is a deprecated and will be removed in seaborn v0.14.0.
- get_technical_indicators.py issue
- [Bug Report] there is a mismatch between the length of the header or column names and the actual data being read into a pandas DataFrame. This could result in some data loss or incorrect parsing of the CSV file.
- Stuck at first try, Using Alpaca is not working, alphavantage is not either. So come up with yahoo finance but technical indicator is not reading. HOT 1
- Respond to Multidimensional arrays feeding in tensorflow
- Proposal and some questions HOT 1
- Package pyine is yanked. Is it necessary? HOT 2
- Numpy requirement conflict during pip install. HOT 1
- Step 3. error importing set_session HOT 2
- possible collaboration? HOT 1
- FileNotFoundError: [Errno 2] No such file or directory: 'plots_relations/best_selection_GOOG_neg.json' HOT 4
- Timescales HOT 1
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 tensorflow-stocks-prediction-machine-learning-realtime.