MCPcopy Create free account
hub / github.com/ccxt/ccxt / remove_proxy_options

Function remove_proxy_options

python/ccxt/test/exchange/base/test_shared_methods.py:491–503  ·  view source on GitHub ↗
(exchange, skipped_properties)

Source from the content-addressed store, hash-verified

489
490
491def remove_proxy_options(exchange, skipped_properties):
492 proxy_url = exchange.check_proxy_url_settings()
493 [http_proxy, https_proxy, socks_proxy] = exchange.check_proxy_settings()
494 # because of bug in transpiled, about `.proxyUrl` being transpiled into `.proxy_url`, we have to use this workaround
495 exchange.set_property(exchange, 'proxyUrl', None)
496 exchange.set_property(exchange, 'proxy_url', None)
497 exchange.set_property(exchange, 'httpProxy', None)
498 exchange.set_property(exchange, 'http_proxy', None)
499 exchange.set_property(exchange, 'httpsProxy', None)
500 exchange.set_property(exchange, 'https_proxy', None)
501 exchange.set_property(exchange, 'socksProxy', None)
502 exchange.set_property(exchange, 'socks_proxy', None)
503 return [proxy_url, http_proxy, https_proxy, socks_proxy]
504
505
506def set_proxy_options(exchange, skipped_properties, proxy_url, http_proxy, https_proxy, socks_proxy):

Callers

nothing calls this directly

Calls 3

check_proxy_settingsMethod · 0.80
set_propertyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…