openfund-maker 2.2.3__tar.gz → 2.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: openfund-maker
3
- Version: 2.2.3
3
+ Version: 2.2.5
4
4
  Summary: Openfund-maker.
5
5
  Requires-Python: >=3.9,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "openfund-maker"
3
- version = "2.2.3"
3
+ version = "2.2.5"
4
4
  description = "Openfund-maker."
5
5
  authors = []
6
6
  readme = "README.md"
@@ -30,7 +30,7 @@ priority = "primary"
30
30
 
31
31
  [tool.pytest.ini_options] # mandatory section name
32
32
  addopts = "-vs --no-header --no-summary"
33
- log_cli = 1
33
+ log_cli = true
34
34
  log_cli_level = "DEBUG"
35
35
  log_cli_format = "%(asctime)s.%(msecs)03d - %(filename)s:%(lineno)d - %(funcName)s - %(levelname)s - %(message)s"
36
36
  log_cli_datefmt = "%Y-%m-%d-%H:%M:%S"
@@ -20,6 +20,10 @@ class ThreeLineStrategyMaker:
20
20
  self.is_demo_trading = self.g_config.get('is_demo_trading', 1) # live trading: 0, demo trading: 1
21
21
  # self.instrument_info_dict = {}
22
22
  self.cross_directions = {} # 持仓期间,存储每个交易对的交叉方向
23
+ proxies = {
24
+ "http": self.g_config.get('proxy', "http://localhost:7890"),
25
+ "https": self.g_config.get('proxy', "http://localhost:7890")
26
+ }
23
27
 
24
28
  # 配置交易所
25
29
  self.exchange = ccxt.okx({
@@ -29,7 +33,7 @@ class ThreeLineStrategyMaker:
29
33
  'timeout': 3000,
30
34
  'rateLimit': 50,
31
35
  'options': {'defaultType': 'future'},
32
- # 'proxies': {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'},
36
+ 'proxies': proxies
33
37
  })
34
38
 
35
39
 
File without changes