Skip to content

Commit 5d8e568

Browse files
committed
Repaired Alpha Vantage naming
1 parent 4ea2f10 commit 5d8e568

File tree

7 files changed

+26
-23
lines changed

7 files changed

+26
-23
lines changed

docs/source/remote_data.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Currently the following sources are supported:
3030
- :ref:`Tiingo<remote_data.tiingo>`
3131
- :ref:`IEX<remote_data.iex>`
3232
- :ref:`Robinhood<remote_data.robinhood>`
33-
- :ref:`AlphaVantage<remote_data.alphavantage>`
33+
- :ref:`Alpha Vantage<remote_data.alphavantage>`
3434
- :ref:`Enigma<remote_data.enigma>`
3535
- :ref:`Quandl<remote_data.quandl>`
3636
- :ref:`St.Louis FED (FRED)<remote_data.fred>`
@@ -112,17 +112,17 @@ year relative to today.
112112
113113
.. _remote_data.alphavantage
114114
115-
AlphaVantage
116-
============
115+
Alpha Vantage
116+
=============
117117

118-
`AlphaVantage <https://www.alphavantage.co/documentation>`__ provides realtime
118+
`Alpha Vantage <https://www.alphavantage.co/documentation>`__ provides realtime
119119
equities and forex data. Free registration is required to get an API key.
120120

121121
Historical Time Series Data
122122
^^^^^^^^^^^^^^^^^^^^^^^^^^^
123123

124124
Through the
125-
`AlphaVantage <https://www.alphavantage.co/documentation>`__ Time Series
125+
`Alpha Vantage <https://www.alphavantage.co/documentation>`__ Time Series
126126
endpoints, it is possible to obtain historical equities data for individual
127127
symbols. The following endpoints are available:
128128

@@ -152,7 +152,7 @@ provided.
152152
Quotes
153153
^^^^^^
154154

155-
`AlphaVantage <https://www.alphavantage.co/documentation>`__ Batch Stock Quotes
155+
`Alpha Vantage <https://www.alphavantage.co/documentation>`__ Batch Stock Quotes
156156
endpoint allows the retrieval of realtime stock quotes for up to 100 symbols at
157157
once. These quotes are accessible through the top-level function
158158
``get_quote_av``.
@@ -171,7 +171,7 @@ once. These quotes are accessible through the top-level function
171171
Forex
172172
^^^^^
173173

174-
`AlphaVantage <https://www.alphavantage.co/documentation>`__ provides realtime
174+
`Alpha Vantage <https://www.alphavantage.co/documentation>`__ provides realtime
175175
currency exchange rates (for physical and digital currencies).
176176

177177
To request the exchange rate of physical or digital currencies, simply format
@@ -199,7 +199,7 @@ Multiple pairs are are allowable:
199199
Sector Performance
200200
^^^^^^^^^^^^^^^^^^
201201

202-
`AlphaVantage <https://www.alphavantage.co/documentation>`__ provides sector
202+
`Alpha Vantage <https://www.alphavantage.co/documentation>`__ provides sector
203203
performances through the top-level function ``get_sector_performance_av``.
204204

205205
.. ipython:: python

docs/source/whatsnew/v0.7.0.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ Enhancements
2222
~~~~~~~~~~~~
2323

2424
- A new data connector for data provided by
25-
`AlphaVantage <https://www.alphavantage.co/documentation>`__ was
25+
`Alpha Vantage <https://www.alphavantage.co/documentation>`__ was
2626
introduced to obtain Foreign Exchange (FX) data.
2727
(:issue:`389`)
2828

2929
- A new data connector for data provided by
30-
`AlphaVantage <https://www.alphavantage.co/documentation>`__ was
30+
`Alpha Vantage <https://www.alphavantage.co/documentation>`__ was
3131
introduced to obtain historical time series data.
3232
(:issue:`389`)
3333

3434
- A new data connector for data provided by
35-
`AlphaVantage <https://www.alphavantage.co/documentation>`__ was
35+
`Alpha Vantage <https://www.alphavantage.co/documentation>`__ was
3636
introduced to obtain sector performance data, accessed through the
3737
top-level function ``get_sector_performance_av``.
3838
(:issue:`389`)
3939

4040
- A new data connector for data provided by
41-
`AlphaVantage <https://www.alphavantage.co/documentation>`__ was
41+
`Alpha Vantage <https://www.alphavantage.co/documentation>`__ was
4242
introduced to obtain real-time Batch Stock Quotes through the
4343
top-level function ``get_quote_av``.
4444
(:issue:`389`)

pandas_datareader/av/__init__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010

1111
class AlphaVantage(_BaseReader):
1212
"""
13-
Base class for all AlphaVantage queries
13+
Base class for all Alpha Vantage queries
14+
15+
Notes
16+
-----
17+
See `Alpha Vantage <https://www.alphavantage.co/>`__
1418
"""
1519
_format = 'json'
1620

@@ -42,12 +46,12 @@ def params(self):
4246

4347
@property
4448
def function(self):
45-
""" AlphaVantage endpoint function"""
49+
""" Alpha Vantage endpoint function"""
4650
raise NotImplementedError
4751

4852
@property
4953
def data_key(self):
50-
""" Key of data returned from AlphaVantage """
54+
""" Key of data returned from Alpha Vantage """
5155
raise NotImplementedError
5256

5357
def _read_lines(self, out):
@@ -61,6 +65,5 @@ def _read_lines(self, out):
6165
else:
6266
raise RemoteDataError()
6367
df = df[sorted(df.columns)]
64-
# df.sort_index(ascending=True, inplace=True)
6568
df.columns = [id[3:] for id in df.columns]
6669
return df

pandas_datareader/av/forex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class AVForexReader(AlphaVantage):
99
"""
10-
Returns DataFrame of the AlphaVantage Foreign Exchange (FX) Exchange Rates
10+
Returns DataFrame of the Alpha Vantage Foreign Exchange (FX) Exchange Rates
1111
data.
1212
1313
.. versionadded:: 0.7.0
@@ -24,7 +24,7 @@ class AVForexReader(AlphaVantage):
2424
session : Session, default None
2525
requests.sessions.Session instance to be used
2626
api_key : str, optional
27-
AlphaVantage API key . If not provided the environmental variable
27+
Alpha Vantage API key . If not provided the environmental variable
2828
ALPHAVANTAGE_API_KEY is read. The API key is *required*.
2929
"""
3030
def __init__(self, symbols=None, retry_count=3, pause=0.5, session=None,

pandas_datareader/av/quotes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class AVQuotesReader(AlphaVantage):
88
"""
9-
Returns DataFrame of AlphaVantage Realtime Stock quotes for a symbol or
9+
Returns DataFrame of Alpha Vantage Realtime Stock quotes for a symbol or
1010
list of symbols.
1111
1212
Parameters

pandas_datareader/av/sector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class AVSectorPerformanceReader(AlphaVantage):
88
"""
9-
Returns DataFrame of the AlphaVantage Sector Performances SECTOR data.
9+
Returns DataFrame of the Alpha Vantage Sector Performances SECTOR data.
1010
1111
.. versionadded:: 0.7.0
1212
@@ -22,7 +22,7 @@ class AVSectorPerformanceReader(AlphaVantage):
2222
session : Session, default None
2323
requests.sessions.Session instance to be used
2424
api_key : str, optional
25-
AlphaVantage API key . If not provided the environmental variable
25+
Alpha Vantage API key . If not provided the environmental variable
2626
ALPHAVANTAGE_API_KEY is read. The API key is *required*.
2727
"""
2828
@property

pandas_datareader/av/time_series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class AVTimeSeriesReader(AlphaVantage):
77
"""
8-
Returns DataFrame of the AlphaVantage Stock Time Series endpoints
8+
Returns DataFrame of the Alpha Vantage Stock Time Series endpoints
99
1010
.. versionadded:: 0.7.0
1111
@@ -55,7 +55,7 @@ def function(self):
5555

5656
@property
5757
def output_size(self):
58-
""" Used to limit the size of the AlphaVantage query when
58+
""" Used to limit the size of the Alpha Vantage query when
5959
possible.
6060
"""
6161
delta = datetime.now() - self.start

0 commit comments

Comments
 (0)