We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29b0e00 commit a64cbd1Copy full SHA for a64cbd1
1 file changed
binance/async_client.py
@@ -42,6 +42,15 @@ def __init__(
42
self.https_proxy = https_proxy
43
self.loop = loop or get_loop()
44
self._session_params: Dict[str, Any] = session_params or {}
45
+
46
+ # Convert https_proxy to requests_params format for BaseClient
47
+ if https_proxy and requests_params is None:
48
+ requests_params = {'proxies': {'http': https_proxy, 'https': https_proxy}}
49
+ elif https_proxy and requests_params is not None:
50
+ if 'proxies' not in requests_params:
51
+ requests_params['proxies'] = {}
52
+ requests_params['proxies'].update({'http': https_proxy, 'https': https_proxy})
53
54
super().__init__(
55
api_key,
56
api_secret,
0 commit comments