Skip to content

Commit

Permalink
Merge pull request #158 from PatrickAlphaVantage/develop
Browse files Browse the repository at this point in the history
Added VWAP
  • Loading branch information
PatrickAlphaC committed Oct 31, 2019
2 parents 0ed8b0c + 8817beb commit 8354fd4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions alpha_vantage/techindicators.py
Expand Up @@ -163,6 +163,20 @@ def get_mama(self, symbol, interval='daily', series_type='close',
_FUNCTION_KEY = "MAMA"
return _FUNCTION_KEY, 'Technical Analysis: MAMA', 'Meta Data'

@av._output_format
@av._call_api_on_func
def get_vwap(self, symbol, interval='5min'):
""" Returns the volume weighted average price (VWAP) for intraday time series.
Keyword Arguments:
symbol: the symbol for the equity we want to get its data
interval: time interval between two conscutive values,
supported values are '1min', '5min', '15min', '30min', '60min'
(default 5min)
"""
_FUNCTION_KEY = "VWAP"
return _FUNCTION_KEY, 'Technical Analysis: VWAP', 'Meta Data'

@av._output_format
@av._call_api_on_func
def get_t3(self, symbol, interval='daily', time_period=20, series_type='close'):
Expand Down
6 changes: 3 additions & 3 deletions docs/conf.py
Expand Up @@ -55,9 +55,9 @@
# built documents.
#
# The short X.Y version.
version = u'2.1.0'
version = u'2.1.1'
# The full version, including alpha/beta/rc tags.
release = u'2.1.0'
release = u'2.1.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -153,6 +153,6 @@
'Miscellaneous'),
]

#-- Napoleon options
# -- Napoleon options

napoleon_include_private_with_doc = True
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -11,7 +11,7 @@

setup(
name='alpha_vantage',
version='2.1.0',
version='2.1.1',
author='Romel J. Torres',
author_email='romel.torres@gmail.com',
license='MIT',
Expand Down

0 comments on commit 8354fd4

Please sign in to comment.