Skip to content

Commit

Permalink
Merge pull request #35 from MicroPyramid/api_change
Browse files Browse the repository at this point in the history
changed currency source to ratesapi.io
  • Loading branch information
Ravi kumar authored May 6, 2018
2 parents c506dcf + ecaac68 commit 92ef386
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Forex Python is a Free Foreign exchange rates 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 All @@ -31,7 +31,7 @@ Features:
Currency Source:
-----------------

Fixer.io is a free API for current and historical foreign exchange rates published by European Central Bank.
https://ratesapi.io/api/ is a free API for current and historical foreign exchange rates published by European Central Bank.
The rates are updated daily 3PM CET.

BitCoin Price Source:
Expand Down
6 changes: 3 additions & 3 deletions docs/source/currencysource.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
currency source
===============

fixer.io
https://ratesapi.io/api/
--------
Fixer.io is a free API for current and historical foreign exchange rates published by European Central Bank. The rates are updated daily 3PM CET.
https://ratesapi.io/api/ is a free API for current and historical foreign exchange rates published by European Central Bank. The rates are updated daily 3PM CET.

List of Supported Currency codes.
---------------------------------
**Updated On 2016-05-22**
**Updated On 2018-05-08**

|EUR - Euro Member Countries
|IDR - Indonesia Rupiah
Expand Down
4 changes: 2 additions & 2 deletions forex_python/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class RatesNotAvailableError(Exception):
"""
Custome Exception when http://fixer.io/ is Down are not available for currency rates
Custome Exception when https://ratesapi.io/api/ is Down are not available for currency rates
"""
pass

Expand All @@ -24,7 +24,7 @@ def __init__(self, force_decimal=False):
self._force_decimal = force_decimal

def _source_url(self):
return "http://api.fixer.io/"
return "http://ratesapi.io/api/"

def _get_date_string(self, date_obj):
if date_obj is None:
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 = '0.3.3'
VERSION = '1.0.0'
long_description_text = """Forex Python is a Free Foreign exchange rates and currency conversion.
Features:
List all currency rates.
Expand Down

0 comments on commit 92ef386

Please sign in to comment.