| Top | Getting Data | Splits & Dividends | The Datetime Index | Frequency & Intervals | Technical Indicators | Foreign Exchange | Cryptocurrencies |

Alpha Vantage API Overview
| Alpha Vantage | alpha_vantage Module |
Evan Marie online: | EvanMarie.com| EvanMarie@Proton.me | Linked In | GitHub | Hugging Face | Mastadon | Jovian.ai | TikTok | CodeWars | Discord ⇨ ✨ EvanMarie ✨#6114 |

Pros and Cons of Alpha Vantage:
Pros

Cons


| Top | Getting Data | Splits & Dividends | The Datetime Index | Frequency & Intervals | Technical Indicators | Foreign Exchange | Cryptocurrencies |

Getting Data from Alpha Vantage
Time Series Object
Resulting Data & Types
Setting Specific Time Periods
compact returns the last 100 timestamps (default)
full returns the last 100 timestamps


| Top | Getting Data | Splits & Dividends | The Datetime Index | Frequency & Intervals | Technical Indicators | Foreign Exchange | Cryptocurrencies |

Stock Splits & Dividends
Observing differences in importing from Alpha Vantage versus yfinance
Adj Close - Adjusted for stock splits and dividends
ts.get_daily_adjusted() - also returns the dividend amount and split coefficient
Splits - There have been 3 stock splits within the timeframe of this data
split coefficient == 3 - Investigating when the stock split by 3


| Top | Getting Data | Splits & Dividends | The Datetime Index | Frequency & Intervals | Technical Indicators | Foreign Exchange | Cryptocurrencies |

Datetime Index
Getting a single year


| Top | Getting Data | Splits & Dividends | The Datetime Index | Frequency & Intervals | Technical Indicators | Foreign Exchange | Cryptocurrencies |

Frequency & Interval Settings
get_monthly_adjusted() - monthly data
get_weekly_adjusted() - weekly data
intraday - interval of 60 minutes (default = 15 minutes)
intraday - interval of 1 minute


| Top | Getting Data | Splits & Dividends | The Datetime Index | Frequency & Intervals | Technical Indicators | Foreign Exchange | Cryptocurrencies |

Technical Indicators
- Typically used by day traders and technical analysts to find patterns in historical price and volume data
- Alpha Vantage offers 50 technical indicators
sma50 - 50 day moving average
- 50 and 200 days are typically used
# 50-day slow moving average overview
# Microsoft closing data for same period
# Dataframes combined (removing days with NaN values)
Bollinger Bands
- Middle Band is the same as the SMA50
- Lower is minus 2 std from the SMA
- Upper is plus 2 std from the SMA
# combining with Microsoft close and SMA50
Bands indicate volatility:
- if bands are close together, it indicates low volatility
- if they are farther apart, it indicates higher volatility
- if current price is above the upper band, signals selling
- if current price is below the lower band, signals buying