forex-python icon indicating copy to clipboard operation
forex-python copied to clipboard

RatesNotAvailableError for the past couple of days

Open TristanCGough opened this issue 2 years ago • 2 comments

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

TristanCGough avatar Oct 23 '23 06:10 TristanCGough

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

Any other recommendations for Python?

mikefirefly avatar Oct 23 '23 19:10 mikefirefly

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

M-Waszkiewicz-Anaconda avatar Oct 27 '23 11:10 M-Waszkiewicz-Anaconda