diff --git a/README.rst b/README.rst index 16bf64b..bfc91dd 100644 --- a/README.rst +++ b/README.rst @@ -3,16 +3,19 @@ forex-python .. image:: https://travis-ci.org/MicroPyramid/forex-python.svg?branch=master :target: https://travis-ci.org/MicroPyramid/forex-python + :alt: travis-ci .. image:: https://coveralls.io/repos/github/MicroPyramid/forex-python/badge.svg?branch=master :target: https://coveralls.io/github/MicroPyramid/forex-python?branch=master + :alt: coveralls -.. image:: https://landscape.io/github/MicroPyramid/forex-python/master/landscape.svg?style=plastic +.. image:: https://landscape.io/github/MicroPyramid/forex-python/master/landscape.svg?style=flat :target: https://landscape.io/github/MicroPyramid/forex-python/master :alt: Code Health .. image:: https://img.shields.io/badge/python-2.7%2C%203.3%2C%203.4%2C%203.5-blue.svg :target: https://pypi.python.org/pypi/forex-python + :alt: pypi Forex Python is a Free Foreign exchange rates and currency conversion. diff --git a/docs/source/conf.py b/docs/source/conf.py index 7f093c9..5947aa1 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -51,7 +51,7 @@ # General information about the project. project = u'forex-python' -copyright = u'2016, MicroPyramid Informatics Pvt. Ltd.' +copyright = u'2019, MicroPyramid Informatics Pvt. Ltd.' author = u'MicroPyramid Informatics Pvt. Ltd.' # The version info for the project you're documenting, acts as replacement for @@ -59,9 +59,9 @@ # built documents. # # The short X.Y version. -version = u'0.3.0' +version = u'1.2' # The full version, including alpha/beta/rc tags. -release = u'0.3.0' +release = u'1.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/source/index.rst b/docs/source/index.rst index 2b1ed73..c009d5f 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -6,7 +6,7 @@ Free Foreign exchange rates, bitcoin prices and currency conversion. Features: --------- - List all currency rates. -- BitCoin price for all curuncies. +- BitCoin price for all currencies. - Converting amount to BitCoins. - Get historical rates for any day since 1999. - Conversion rate for one currency(ex; USD to INR). diff --git a/forex_python/converter.py b/forex_python/converter.py index 6717d6d..dfcbcd7 100644 --- a/forex_python/converter.py +++ b/forex_python/converter.py @@ -47,7 +47,7 @@ class CurrencyRates(Common): def get_rates(self, base_cur, date_obj=None): date_str = self._get_date_string(date_obj) - payload = {'base': base_cur} + payload = {'base': base_cur, 'rtype': 'fpy'} source_url = self._source_url() + date_str response = requests.get(source_url, params=payload) if response.status_code == 200: @@ -61,7 +61,7 @@ def get_rate(self, base_cur, dest_cur, date_obj=None): return Decimal(1) return 1. date_str = self._get_date_string(date_obj) - payload = {'base': base_cur, 'symbols': dest_cur} + payload = {'base': base_cur, 'symbols': dest_cur, 'rtype': 'fpy'} source_url = self._source_url() + date_str response = requests.get(source_url, params=payload) if response.status_code == 200: @@ -84,7 +84,7 @@ def convert(self, base_cur, dest_cur, amount, date_obj=None): return float(amount) date_str = self._get_date_string(date_obj) - payload = {'base': base_cur, 'symbols': dest_cur} + payload = {'base': base_cur, 'symbols': dest_cur, 'rtype': 'fpy'} source_url = self._source_url() + date_str response = requests.get(source_url, params=payload) if response.status_code == 200: diff --git a/setup.py b/setup.py index d71ffd9..ef2357e 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import os from setuptools import setup, find_packages -VERSION = '1.1' +VERSION = '1.4' long_description_text = """Forex Python is a Free Foreign exchange rates and currency conversion. Features: List all currency rates.