Skip to content

Commit f1381a4

Browse files
authored
Update README.md
1 parent 2a27a7e commit f1381a4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ ts = TimeSeries(key='YOUR_API_KEY')
4747
# Get json object with the intraday data and another with the call's metadata
4848
data, meta_data = ts.get_intraday('GOOGL')
4949
```
50+
To query data from a specific month in history, you may use the 'month' parameter for various features.
51+
```python
52+
from alpha_vantage.timeseries import TimeSeries
53+
from alpha_vantage.techindicators import TechIndicators
54+
ts = TimeSeries(key='YOUR_API_KEY')
55+
ti = TechIndicators(key='YOUR_API_KEY')
56+
# Get json object with the intraday data and another with the call's metadata for January, 2014.
57+
data, meta_data = ts.get_intraday('GOOGL', month='2014-01')
58+
#Get json object with the simple moving average (SMA) values and another with the call's metadata for January, 2014.
59+
data, meta_data = ti.get_sma('GOOGL', month='2014-01')
60+
```
5061
You may also get a key from [rapidAPI](https://rapidapi.com/alphavantage/api/alpha-vantage-alpha-vantage-default). Use your rapidAPI key for the key variable, and set ```rapidapi=True```
5162

5263
```python

0 commit comments

Comments
 (0)