This commit is contained in:
maxinxin 2025-07-10 19:28:20 +08:00
parent 9b8cd3c99d
commit f9164a56b3
21 changed files with 54 additions and 49 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
# 需要忽略logs文件夹
logs/
# 需要忽略的文件
Auto Trade Log.log
config.py

View File

@ -22,7 +22,7 @@ warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
path = r'C:\trade_software\国盛证券同花顺新一代\xiadan.exe'
path = r'C:\国盛证券同花顺新一代\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -22,7 +22,7 @@ warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
path = r'C:\trade_software\goldsun\TdxW.exe'
path = r'C:\goldsun\TdxW.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -22,7 +22,7 @@ warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
path = r'C:\trade_software\e海通财独立交易\AlternateTradeSys5.18.73\xiadan.exe'
path = r'C:\e海通财独立交易\AlternateTradeSys5.18.73\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -22,7 +22,7 @@ warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
path = r'C:\trade_software\恒泰证券网上交易独立委托\xiadan.exe'
path = r'C:\恒泰证券网上交易独立委托\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',

View File

@ -22,7 +22,7 @@ warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
path = r'C:\trade_software\华福证券独立下单\xiadan.exe'
path = r'C:\华福证券独立下单\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -19,10 +19,10 @@ import datetime
from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\华鑫同花顺独立下单\xiadan.exe'
path = r'C:\华鑫同花顺独立下单\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -17,10 +17,10 @@ import datetime
from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\华鑫同花顺独立下单(奇点)\xiadan.exe'
path = r'C:\华鑫同花顺独立下单(奇点)\xiadan.exe'
class HuaXinClientTrader:

View File

@ -19,10 +19,10 @@ import datetime
from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\江海证券同花顺独立下单\xiadan.exe'
path = r'C:\江海证券同花顺独立下单\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -19,10 +19,10 @@ from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\金元证券金融终端2.0\xiadan.exe'
path = r'C:\金元证券金融终端2.0\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -20,10 +20,10 @@ from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\开源证券独立下单\xiadan.exe'
path = r'C:\开源证券独立下单\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -17,10 +17,10 @@ import datetime
from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\平安证券智投版\xiadan.exe'
path = r'C:\平安证券智投版\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -19,10 +19,10 @@ import datetime
from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\sywgtonghuashun\xiadan.exe'
path = r'C:\sywgtonghuashun\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -18,10 +18,10 @@ import datetime
from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\万和证券财智通金融终端\xiadan.exe'
path = r'C:\万和证券财智通金融终端\xiadan.exe'
class WanHeClientTrader:

View File

@ -18,10 +18,10 @@ from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\xyzqzhb\xiadan.exe'
path = r'C:\xyzqzhb\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -20,10 +20,10 @@ from config import ssid,password
from tools import *
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\双子星金融终端独立交易-中国银河证券\xiadan.exe'
path = r'C:\双子星金融终端独立交易-中国银河证券\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -20,10 +20,10 @@ import datetime
from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\中山赢者专业版\xiadan.exe'
path = r'C:\中山赢者专业版\xiadan.exe'
class ZSZQClientTrader:

View File

@ -19,10 +19,10 @@ import datetime
from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\zhongyou\xiadan.exe'
path = r'C:\zhongyou\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',

View File

@ -19,10 +19,10 @@ from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\zd_zsone\TdxW.exe'
path = r'C:\zd_zsone\TdxW.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)

View File

@ -19,7 +19,6 @@ import datetime
from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
from pathlib import Path
root_path = Path(__file__).parent.parent

View File

@ -20,10 +20,10 @@ from tools import *
from config import ssid,password
warnings.filterwarnings('ignore')
scripts_path = os.path.dirname(os.path.realpath(__file__))
root_path = scripts_path[:scripts_path.find(project_name)+len(project_name)]
from pathlib import Path
root_path = Path(__file__).parent.parent
path = r'C:\trade_software\zxzq\xiadan.exe'
path = r'C:\zxzq\xiadan.exe'
engine = create_engine(
'mysql+pymysql://cn_ainvest_db:cn_ainvest_sd3a1@rm-2zewagytttzk6f24xno.mysql.rds.aliyuncs.com:3306/',
encoding="utf-8", echo=False)