Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for 2.1.0 Release #143

Merged
merged 3 commits into from Sep 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -138,10 +138,10 @@ from alpha_vantage.cryptocurrencies import CryptoCurrencies
import matplotlib.pyplot as plt

cc = CryptoCurrencies(key='YOUR_API_KEY', output_format='pandas')
data, meta_data = cc.get_digital_currency_intraday(symbol='BTC', market='CNY')
data['1b. price (USD)'].plot()
data, meta_data = cc.get_digital_currency_daily(symbol='BTC', market='CNY')
data['4b. close (USD)'].plot()
plt.tight_layout()
plt.title('Intraday value for bitcoin (BTC)')
plt.title('Daily close value for bitcoin (BTC)')
plt.grid()
plt.show()
```
Expand Down
17 changes: 17 additions & 0 deletions alpha_vantage/cryptocurrencies.py
Expand Up @@ -57,3 +57,20 @@ def get_digital_currency_monthly(self, symbol, market):
"""
_FUNCTION_KEY = 'DIGITAL_CURRENCY_MONTHLY'
return _FUNCTION_KEY, 'Time Series (Digital Currency Monthly)', 'Meta Data'

@av._output_format
@av._call_api_on_func
def get_digital_currency_exchange_rate(self, symbol, market):
""" Returns the current exchange rate for a digital currency
(e.g., BTC) traded on a specific market (e.g., CNY/Chinese Yuan),
and when it was last updated.

Keyword Arguments:
symbol: The digital/crypto currency of your choice. It can be any
of the currencies in the digital currency list. For example:
symbol=BTC.
market: The exchange market of your choice. It can be any of the
market in the market list. For example: market=CNY.
"""
_FUNCTION_KEY = 'CURRENCY_EXCHANGE_RATE'
return _FUNCTION_KEY, 'Dictonary (Digital Currency Exchange Rate)', 'Meta Data'
2 changes: 1 addition & 1 deletion alpha_vantage/techindicators.py
Expand Up @@ -675,7 +675,7 @@ def get_trix(self, symbol, interval='daily', time_period=20, series_type='close'

@av._output_format
@av._call_api_on_func
def get_ultsoc(self, symbol, interval='daily', timeperiod1=None,
def get_ultosc(self, symbol, interval='daily', timeperiod1=None,
timeperiod2=None, timeperiod3=None):
""" Return the ultimate oscillaror values in two json objects as
data and meta_data. It raises ValueError when problems arise
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Expand Up @@ -55,9 +55,9 @@
# built documents.
#
# The short X.Y version.
version = u'1.8.0'
version = u'2.1.0'
# The full version, including alpha/beta/rc tags.
release = u'1.8.0'
release = u'2.1.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
Binary file modified images/docs_cripto_btc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -11,7 +11,7 @@

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