Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from alpha_vantage.timeseries import TimeSeries
- from alpha_vantage.techindicators import TechIndicators
- from alpha_vantage.sectorperformance import SectorPerformances
- from alpha_vantage.cryptocurrencies import CryptoCurrencies
- import matplotlib
- import matplotlib.pyplot as plt
- import os
- from Robinhood import Robinhood
- ts = TimeSeries('Y6XOU2KE1F12H1BW', output_format='pandas')
- data, meta_data = ts.get_intraday(symbol='MSFT',interval='1min', outputsize='full')
- # We can describe it
- print(data.describe())
- data['4. close'].plot()
- plt.title('Intraday Times Series for the MSFT stock (1 min)')
- plt.grid()
- plt.show()
- print(meta_data)
- ti = TechIndicators('Y6XOU2KE1F12H1BW', output_format='pandas')
- data, meta_data = ti.get_bbands(symbol='MSFT', interval='60min', time_period=60)
- data.describe()
- data.plot()
- plt.title('BBbands indicator for MSFT stock (60 min)')
- plt.grid()
- plt.show()
- from Robinhood import Robinhood
- my_trader = Robinhood()
- logged_in = my_trader.login(username="DshiSPC", password="1qws09390557")
- stock_instrument = my_trader.instruments("GEVO")[0]
- quote_info = my_trader.quote_data("GEVO")
- print(quote_info)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement