From ecaac6857589f31102c7f8a64887b5650382be21 Mon Sep 17 00:00:00 2001 From: ravi Date: Sun, 6 May 2018 19:43:07 +0530 Subject: [PATCH] changed currency source to ratesapi.io --- README.rst | 4 ++-- docs/source/currencysource.rst | 6 +++--- forex_python/converter.py | 4 ++-- setup.py | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 15f3316..8217da3 100644 --- a/README.rst +++ b/README.rst @@ -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). @@ -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: diff --git a/docs/source/currencysource.rst b/docs/source/currencysource.rst index aeb445c..d72c57a 100644 --- a/docs/source/currencysource.rst +++ b/docs/source/currencysource.rst @@ -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 diff --git a/forex_python/converter.py b/forex_python/converter.py index 6a9a818..a3117a5 100644 --- a/forex_python/converter.py +++ b/forex_python/converter.py @@ -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 @@ -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: diff --git a/setup.py b/setup.py index 3329072..b2a59f2 100644 --- a/setup.py +++ b/setup.py @@ -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.