MicroPyramid / forex-python

Foreign exchange rates, Bitcoin price index and currency conversion using ratesapi.io
http://forex-python.readthedocs.io/en/latest/usage.html
MIT License
661 stars 195 forks source link

RatesNotAvailableError for the past couple of days #147

Open TristanCGough opened 1 year ago

TristanCGough commented 1 year ago

I've been getting forex_python.converter.RatesNotAvailableError for the last couple of days any guidance or advice would be much appreciated

mikefirefly commented 1 year ago

Well, https://theforexapi.com throws error 504 so this is the reason.

Any other recommendations for Python?

M-Waszkiewicz-Anaconda commented 1 year ago

possibly connected with that couple of tests keep failing:

================================================================================================================= short test summary info ==================================================================================================================
FAILED tests/test_bitcoin.py::TestPreviousPrice::test_previous_price_valid_currency - AssertionError: <class 'NoneType'> != <class 'float'>
FAILED tests/test_bitcoin.py::TestPreviousPriceList::test_previous_price_list_with_valid_currency - AssertionError: {} is not true
FAILED tests/test_bitcoin.py::TestConvertToBtcOn::test_convert_to_btc_on_with_valid_currency - forex_python.converter.RatesNotAvailableError: BitCoin Rates Source Not Ready For Given Date
FAILED tests/test_bitcoin.py::TestConvertBtcToCurOn::test_convert_to_btc_on_with_valid_currency - forex_python.converter.RatesNotAvailableError: BitCoin Rates Source Not Ready For Given Date
FAILED tests/test_bitcoin.py::TestBitCoinWithoutForceDecimal::test_convert_to_btc_on_with_valid_currency - forex_python.converter.RatesNotAvailableError: BitCoin Rates Source Not Ready For Given Date
FAILED tests/test_bitcoin.py::TestBitCoinWithoutForceDecimal::test_previous_price_list_with_valid_currency - AssertionError: {} is not true
FAILED tests/test_bitcoin.py::TestBitCoinWithoutForceDecimal::test_previous_price_valid_currency - AssertionError: <class 'NoneType'> != <class 'float'>
FAILED tests/test_bitcoin.py::TestBitCoinForceDecimal::test_convert_to_btc_on_with_valid_currency - forex_python.converter.RatesNotAvailableError: BitCoin Rates Source Not Ready For Given Date
FAILED tests/test_bitcoin.py::TestBitCoinForceDecimal::test_previous_price_list_with_valid_currency - AssertionError: {} is not true