forex-python
forex-python copied to clipboard
Foreign exchange rates, Bitcoin price index and currency conversion using ratesapi.io
In this PR, we implement the ability for the API to automatically fallback to alternate APIs so that the probability of availability is higher. Adding new providers should be easy...
Added forex provider (exchangerate.host) which is almost a 1to1 replacement for the old theforexapi.com. Added a check to throw if a currency is not available since new provider always returns...
theforexapi.com is not working, can I change the API to another one? Please fix the problem as soon as possible
I am getting the following while trying to access forex-python: HTTPSConnectionPool(host='theforexapi.com', port=443): Max retries exceeded with url: [/api/latest](https://file+.vscode-resource.vscode-cdn.net/api/latest)?base=USD&rtype=fpy (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 60] Operation...
I'm having a problem where certain currency conversions are returning the same rate every time. ## CAD to USD ``` >>> from forex_python.converter import CurrencyRates >>> import datetime >>> rates...
## Code ```python from pendulum import now, datetime from forex_python.bitcoin import BtcConverter btc_converter = BtcConverter() date = datetime(2022, 5, 1) while date < now(): btc_usd_rate = btc_converter.get_previous_price('USD', date) if btc_usd_rate:...
``` FAILED tests/test.py::TestGetRates::test_get_rates_valid_code - forex_python.... FAILED tests/test.py::TestGetRates::test_get_rates_with_date - forex_python.c... FAILED tests/test.py::TestGetRate::test_get_rate_with_date - forex_python.con... FAILED tests/test.py::TestGetRate::test_get_rate_with_valid_codes - forex_pyt... FAILED tests/test.py::TestAmountConvert::test_amount_convert_date - forex_pyt... FAILED tests/test.py::TestAmountConvert::test_amount_convert_valid_currency FAILED tests/test.py::TestForceDecimalAmountConvert::test_amount_decimal_convert FAILED tests/test.py::TestForceDecimalAmountConvert::test_amount_decimal_convert_date FAILED tests/test.py::TestForceDecimalAmountConvert::test_amount_decimal_invalid_type FAILED...
I've been getting forex_python.converter.RatesNotAvailableError for the last couple of days any guidance or advice would be much appreciated
I have written a python script for converting EUR to USD and GBP to USD based on today's value using python package forex_python, but I am getting incorrect conversion rates...
Library doesn't return any new data after 09-08-2023. Looks like source service got the problem as it's latest is also the same date: https://[theforexapi.com/api/latest](https://theforexapi.com/api/latest)