Skip to content

Commit d0a2478

Browse files
author
Ravi kumar
authored
Merge pull request #58 from MicroPyramid/fpy_param
add forex-python parameter to ratesapi.io
2 parents 9768bc8 + 5c9a727 commit d0a2478

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

README.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ forex-python
33

44
.. image:: https://travis-ci.org/MicroPyramid/forex-python.svg?branch=master
55
:target: https://travis-ci.org/MicroPyramid/forex-python
6+
:alt: travis-ci
67

78
.. image:: https://coveralls.io/repos/github/MicroPyramid/forex-python/badge.svg?branch=master
89
:target: https://coveralls.io/github/MicroPyramid/forex-python?branch=master
10+
:alt: coveralls
911

10-
.. image:: https://landscape.io/github/MicroPyramid/forex-python/master/landscape.svg?style=plastic
12+
.. image:: https://landscape.io/github/MicroPyramid/forex-python/master/landscape.svg?style=flat
1113
:target: https://landscape.io/github/MicroPyramid/forex-python/master
1214
:alt: Code Health
1315

1416
.. image:: https://img.shields.io/badge/python-2.7%2C%203.3%2C%203.4%2C%203.5-blue.svg
1517
:target: https://pypi.python.org/pypi/forex-python
18+
:alt: pypi
1619

1720
Forex Python is a Free Foreign exchange rates and currency conversion.
1821

docs/source/conf.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@
5151

5252
# General information about the project.
5353
project = u'forex-python'
54-
copyright = u'2016, MicroPyramid Informatics Pvt. Ltd.'
54+
copyright = u'2019, MicroPyramid Informatics Pvt. Ltd.'
5555
author = u'MicroPyramid Informatics Pvt. Ltd.'
5656

5757
# The version info for the project you're documenting, acts as replacement for
5858
# |version| and |release|, also used in various other places throughout the
5959
# built documents.
6060
#
6161
# The short X.Y version.
62-
version = u'0.3.0'
62+
version = u'1.2'
6363
# The full version, including alpha/beta/rc tags.
64-
release = u'0.3.0'
64+
release = u'1.2'
6565

6666
# The language for content autogenerated by Sphinx. Refer to documentation
6767
# for a list of supported languages.

docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Free Foreign exchange rates, bitcoin prices and currency conversion.
66
Features:
77
---------
88
- List all currency rates.
9-
- BitCoin price for all curuncies.
9+
- BitCoin price for all currencies.
1010
- Converting amount to BitCoins.
1111
- Get historical rates for any day since 1999.
1212
- Conversion rate for one currency(ex; USD to INR).

forex_python/converter.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CurrencyRates(Common):
4747

4848
def get_rates(self, base_cur, date_obj=None):
4949
date_str = self._get_date_string(date_obj)
50-
payload = {'base': base_cur}
50+
payload = {'base': base_cur, 'rtype': 'fpy'}
5151
source_url = self._source_url() + date_str
5252
response = requests.get(source_url, params=payload)
5353
if response.status_code == 200:
@@ -61,7 +61,7 @@ def get_rate(self, base_cur, dest_cur, date_obj=None):
6161
return Decimal(1)
6262
return 1.
6363
date_str = self._get_date_string(date_obj)
64-
payload = {'base': base_cur, 'symbols': dest_cur}
64+
payload = {'base': base_cur, 'symbols': dest_cur, 'rtype': 'fpy'}
6565
source_url = self._source_url() + date_str
6666
response = requests.get(source_url, params=payload)
6767
if response.status_code == 200:
@@ -84,7 +84,7 @@ def convert(self, base_cur, dest_cur, amount, date_obj=None):
8484
return float(amount)
8585

8686
date_str = self._get_date_string(date_obj)
87-
payload = {'base': base_cur, 'symbols': dest_cur}
87+
payload = {'base': base_cur, 'symbols': dest_cur, 'rtype': 'fpy'}
8888
source_url = self._source_url() + date_str
8989
response = requests.get(source_url, params=payload)
9090
if response.status_code == 200:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
from setuptools import setup, find_packages
44

5-
VERSION = '1.1'
5+
VERSION = '1.4'
66
long_description_text = """Forex Python is a Free Foreign exchange rates and currency conversion.
77
Features:
88
List all currency rates.

0 commit comments

Comments
 (0)