I think these variables are what control how often the price is fetched (someone corrects me if I'm wrong):
SPOT_RATE_REFRESH_TARGET = 150 # approx. every 2.5 minutes, try to refresh spot price
SPOT_RATE_CLOSE_TO_STALE = 450 # try harder to fetch an update if price is getting old
SPOT_RATE_EXPIRY = 600 # spot price becomes stale after 10 minutes -> we no longer show/use it
Thank you.
But where do I change these values?
I cannot find them in electrum_data\config file
I am using the portable version of Electrum
They are baked in to the Python source, which you cannot access from the Windows EXEs since Python code is compiled down during the build process. But if you run Electrum directly from the Python interpreter, there should be files littered in your Python's
site-packages folder, and these contain the full source code of all Python packages including Electrum, which you can even modify (although be advised that any changes you make will be overwritten on the next update).