"No FX rate available". Add text [*Tor Not Working] to FX providers that don't allow tor connections (Tor, VPN, proxy, banned, disallowed, exchange rate, currency conversion, fiat, USD/EUR)
See original GitHub issueRecently, 3 out of the 4 currency converters contained within Electrum have stopped allowing Tor & VPN connections, and therefore I’m proposing they should be removed as choices.
Here are the logs showing unsuccessful attempts to change configurations.
CoinGecko: NO LONGER ALLOWS TOR CONNECTIONS:
20201116T233657.155142Z | INFO | exchange_rate.CoinGecko | failed fx history: ClientResponseError(RequestInfo(url=URL('https://api.coingecko.com/api/v3/coins/bitcoin/market_chart?vs_currency=NZD&days=max'), method='GET', headers=<CIMultiDictProxy('Host': 'api.coingecko.com', 'User-Agent': 'Electrum', 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate')>, real_url=URL('https://api.coingecko.com/api/v3/coins/bitcoin/market_chart?vs_currency=NZD&days=max')), (), status=403, message='Forbidden', headers=<CIMultiDictProxy('Date': 'Mon, 16 Nov 2020 23:36:56 GMT', 'Content-Type': 'text/html; charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'close', 'CF-Chl-Bypass': '1', 'Set-Cookie': '__cfduid=dd51654833fe1e827e79ea235e6b144c61605569816; expires=Wed, 16-Dec-20 23:36:56 GMT; path=/; domain=.coingecko.com; HttpOnly; SameSite=Lax', 'Cache-Control': 'private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0', 'Expires': 'Thu, 01 Jan 1970 00:00:01 GMT', 'X-Frame-Options': 'SAMEORIGIN', 'cf-request-id': '06750441830000178a6bbc2000000001', 'Expect-CT': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', 'Vary': 'Accept-Encoding', 'Server': 'cloudflare', 'CF-RAY': '5f35097c0f8e178a-FRA', 'Content-Encoding': 'gzip')>)
BitcoinVenezuela: NO LONGER ALLOWS TOR CONNECTIONS:
20201116T233709.982996Z | INFO | exchange_rate.BitcoinVenezuela | failed fx quotes: ClientResponseError(RequestInfo(url=URL('https://api.bitcoinvenezuela.com/'), method='GET', headers=<CIMultiDictProxy('Host': 'api.bitcoinvenezuela.com', 'User-Agent': 'Electrum', 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate')>, real_url=URL('https://api.bitcoinvenezuela.com/')), (), status=403, message='Forbidden', headers=<CIMultiDictProxy('Date': 'Mon, 16 Nov 2020 23:37:09 GMT', 'Content-Type': 'text/html; charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'close', 'Set-Cookie': '__cfduid=dd0a83f76002890de97506408823f0d181605569829; expires=Wed, 16-Dec-20 23:37:09 GMT; path=/; domain=.bitcoinvenezuela.com; HttpOnly; SameSite=Lax; Secure', 'CF-Chl-Bypass': '1', 'Cache-Control': 'private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0', 'Expires': 'Thu, 01 Jan 1970 00:00:01 GMT', 'X-Frame-Options': 'SAMEORIGIN', 'cf-request-id': '06750473c70000fc59699ec000000001', 'Expect-CT': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', 'Report-To': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report?s=xhPZRFXZal%2F%2FePswbu%2F39B9aj5%2BDhkH2TQ78F9Ce%2BTIUm%2F2jsKbogcycEvrrw05nZBxuUzhIMNmcDwa0z2d4UWUniNN%2BJIE1AU2F0TSXdZbHrseNiVRFwLI%3D"}],"group":"cf-nel","max_age":604800}', 'NEL': '{"report_to":"cf-nel","max_age":604800}', 'Vary': 'Accept-Encoding', 'Server': 'cloudflare', 'CF-RAY': '5f3509cc79e1fc59-ZAG', 'Content-Encoding': 'gzip')>)
CoinCap: NO LONGER ALLOWS TOR CONNECTIONS:
20201116T233719.334200Z | INFO | exchange_rate.CoinCap | failed fx quotes: ClientResponseError(RequestInfo(url=URL('https://api.coincap.io/v2/rates/bitcoin/'), method='GET', headers=<CIMultiDictProxy('Host': 'api.coincap.io', 'User-Agent': 'Electrum', 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate')>, real_url=URL('https://api.coincap.io/v2/rates/bitcoin/')), (), status=403, message='Forbidden', headers=<CIMultiDictProxy('Date': 'Mon, 16 Nov 2020 23:37:19 GMT', 'Content-Type': 'text/html; charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'close', 'Set-Cookie': '__cfduid=d16678194a13d4f75e3e87f9e63a5df561605569839; expires=Wed, 16-Dec-20 23:37:19 GMT; path=/; domain=.coincap.io; HttpOnly; SameSite=Lax', 'Cache-Control': 'private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0', 'Expires': 'Thu, 01 Jan 1970 00:00:01 GMT', 'X-Frame-Options': 'SAMEORIGIN', 'cf-request-id': '067504984f00001f3d00b1c000000001', 'Expect-CT': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', 'Vary': 'Accept-Encoding', 'Server': 'cloudflare', 'CF-RAY': '5f350a06df471f3d-FRA', 'Content-Encoding': 'gzip')>)
CoinDesk: STILL ALLOWS TOR CONNECTIONS:
20201116T233733.494979Z | INFO | exchange_rate.CoinDesk | getting fx quotes for USD
20201116T233734.623428Z | INFO | exchange_rate.CoinDesk | received fx quotes
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
fiat exchange rates provider not working stable with Tor · ...
"No FX rate available". Add text [*Tor Not Working] to FX providers that don't allow tor connections (Tor, VPN, proxy, banned, disallowed, ...
Read more >I am having trouble connecting to Tor, and I can't figure out ...
If a SOCKS proxy is not required, or you're not sure, please try connecting to the Tor network without a SOCKS proxy. Common...
Read more >Foreign Exchange Transaction Information | TorFX
Important information for international money transfers. TorFX is a leading foreign currency exchange broker providing unrivalled personal service ...
Read more >frequent-classes
68143 content 66103 container 62797 text 62248 menu 61539 header 60443 title 59211 item 58874 footer 56970 logo 55075 right 54598 nav 53672...
Read more >Untitled
Teknos aquatop 2600-23, Stephen scattergood penn state, Luxtorpeda sklep internetowy, 4 bay das enclosure, Meadow park apartments grove city, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure. Maybe the code could be made aware of this somehow; not sure exactly how though. Perhaps we could add a boolean property to each exchange for Tor-friendliness and allow to filter for that.
Indeed many exchange rate providers ban Tor exit node IPs. I share your views and think it is a shame. On the other hand, there are not many providers that provide historical conversion rates at all, and these work just fine for many people over clearnet, so we should not simply remove them completely. Instead of removing providers that ban Tor/VPNs, we should add new ones that do not.