release
This commit is contained in:
+2
-4
@@ -1,7 +1,5 @@
|
||||
[config]
|
||||
miniqmtpath = D:/Programs/DTQMT/userdata_mini
|
||||
miniqmtpath = D:/Programs/QMT/userdata_mini
|
||||
grid_price = 11.0,10.0,9.0,8.0,7.0,6.0,5.0,4.0,3.0,2.0,1.0,0.0
|
||||
grid_volume = 100
|
||||
account_no = 99082560
|
||||
max_enabled_targets = 10
|
||||
|
||||
account_no = 00000000
|
||||
|
||||
@@ -22,6 +22,7 @@ def get_config_path():
|
||||
else:
|
||||
# 开发环境
|
||||
base_path = os.path.dirname(os.path.abspath(__file__))
|
||||
print(f'base_path: {base_path}')
|
||||
|
||||
return os.path.join(base_path, 'config.ini')
|
||||
|
||||
@@ -56,3 +57,9 @@ def initConfig():
|
||||
grid_price = [float(item) for item in str_list]
|
||||
grid_volume = config.getint('config','grid_volume')
|
||||
account_no = config.get('config','account_no')
|
||||
|
||||
# 控制台打印
|
||||
print(f'miniQMTPath: {miniQMTPath}')
|
||||
print(f'grid_price: {grid_price}')
|
||||
print(f'grid_volume: {grid_volume}')
|
||||
print(f'account_no: {account_no}')
|
||||
|
||||
Reference in New Issue
Block a user