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

raise RatesNotAvailableError("Currency Rates Source Unavailable.") forex_python.converter.RatesNotAvailableError: Currency Rates Source Unavailable.

Open Ana-Niko-byte opened this issue 1 year ago • 11 comments

Hi all, is the API down again? It was working perfectly 30 mins ago

Ana-Niko-byte avatar Feb 17 '24 12:02 Ana-Niko-byte

Same issue here.. Api seems to be down.

M-Borsuk avatar Feb 17 '24 22:02 M-Borsuk

Any idea when it should be back up running? Need it for a project due in 4 days :(

Ana-Niko-byte avatar Feb 18 '24 16:02 Ana-Niko-byte

Ay updates on this?

GonzaloJMan avatar Feb 20 '24 08:02 GonzaloJMan

Same issue here! any update?

paridev avatar Feb 21 '24 09:02 paridev

Doesn't look like. I had to comment the library in the code, as it was returning every time I tried to use it a weird "Module not imported forex_python" with an Error 522 , even if the code hadn't change in 14 months...

GonzaloJMan avatar Feb 21 '24 09:02 GonzaloJMan

Connection appears to be down -> NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x00000170363F6E10>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',))

Dub27 avatar Feb 21 '24 21:02 Dub27

API is still down as of 28/02, any help would be greatly appreciated: forex_python.converter.RatesNotAvailableError: Currency Rates Source Not Ready.

billy-moore-98 avatar Feb 28 '24 09:02 billy-moore-98

Same issue here. I was able to work around it by using the bitcoin converter instead.

from forex_python.bitcoin import BtcConverter
b = BtcConverter()

# Input type of currency (EUR, USD, GBP, CAD, AUD, and others)
source_currency = input("Currency: ").upper()
target_currency = input("Target currency: ").upper()

# Get the amount to exchange
amount_to_exchange = int(input(f"How much {source_currency} would you like to exchange? "))

# Get the price of Bitcoin in the currency being exchanged
btc_amount = b.convert_to_btc(amount_to_exchange, source_currency)
print(f"Price of {amount_to_exchange} {source_currency}: {btc_amount}")

# Convert Bitcoin to the target currency
exchange_rate = b.convert_btc_to_cur(btc_amount, target_currency)
print(f"{amount_to_exchange} {source_currency} = {exchange_rate} {target_currency}")

Could my code be better? Absolutely. I'd add some kind of check to the user input (such as making sure that the currency they typed does exist) but this is good for my use case as is.

Hope this helps as a temporary solution!

sebastianboscan avatar Feb 29 '24 03:02 sebastianboscan

I think i'ts down again

danimaeztu avatar Mar 06 '24 10:03 danimaeztu

Any other alternatives?

yunhongz avatar Apr 18 '24 05:04 yunhongz

@yunhongz I had success with https://pypi.org/project/CurrencyConverter/

cowiekw avatar Apr 22 '24 14:04 cowiekw