From 7dbf4fe9c5d05750ac318b3a87ba81bafd8a3817 Mon Sep 17 00:00:00 2001 From: zerone Date: Tue, 25 Feb 2025 00:15:58 +0800 Subject: [PATCH] del proxy --- src/server.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/server.py b/src/server.py index d383a71..04b8bb2 100644 --- a/src/server.py +++ b/src/server.py @@ -60,19 +60,19 @@ async def get_exchange(exchange_id: str) -> ccxt.Exchange: if exchange_id not in exchange_instances: exchange_class = SUPPORTED_EXCHANGES[exchange_id] - # 创建交易所实例时配置代理 - proxy = PROXY_CONFIG['http'] or PROXY_CONFIG['https'] - exchange_options = {} + # # 创建交易所实例时配置代理 + # proxy = PROXY_CONFIG['http'] or PROXY_CONFIG['https'] + # exchange_options = {} - if proxy: - exchange_options.update({ - 'proxies': { - 'http': proxy, - 'https': proxy - } - }) + # if proxy: + # exchange_options.update({ + # 'proxies': { + # 'http': proxy, + # 'https': proxy + # } + # }) - exchange_instances[exchange_id] = exchange_class(exchange_options) + exchange_instances[exchange_id] = exchange_class() return exchange_instances[exchange_id]