Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@

# 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
# |version| and |release|, also used in various other places throughout the
# 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.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
6 changes: 3 additions & 3 deletions forex_python/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down