Quick test is down,if look at converter.py
If look at isssus so has ddofborg has done a altentaive.
Test it no has PyPi install just a Repo,so clone down and run.
def _source_url(self): return "https://theforexapi.com/api/"So the
theforexapi
👀 is down,then nothing will work in this library.If look at isssus so has ddofborg has done a altentaive.
Test it no has PyPi install just a Repo,so clone down and run.
G:\div_code\forex_env (forex_env) λ git clone https://github.com/ddofborg/exchange_rates.git Cloning into 'exchange_rates'... remote: Enumerating objects: 25, done. remote: Counting objects: 100% (25/25), done. remote: Compressing objects: 100% (23/23), done. remote: Total 25 (delta 10), reused 6 (delta 2), pack-reused 0 Receiving objects: 100% (25/25), 8.59 KiB | 4.29 MiB/s, done. Resolving deltas: 100% (10/10), done. G:\div_code\forex_env (forex_env) λ ls exchange_rates/ Include/ Lib/ pyvenv.cfg Scripts/ G:\div_code\forex_env (forex_env) λ cd exchange_rates\ G:\div_code\forex_env\exchange_rates (main -> origin) (forex_env) λ ptpython >>> from exchange_rates import get_exchange_rates >>> get_exchange_rates('USD', target_currencies=['EUR', 'CAD', 'USD'], on_date='2023-10-01') {'EUR': 0.9496676163342831, 'CAD': 1.3613485280151947, 'USD': 1.0} # Test a newer date >>> get_exchange_rates('USD', target_currencies=['EUR', 'CAD', 'USD'], on_date='2024-03-05') {'EUR': 0.9217439395335976, 'CAD': 1.3592957876301963, 'USD': 1.0}