更新qmt代码,支持多端qmt登录
This commit is contained in:
@@ -5,7 +5,7 @@ import random
|
||||
|
||||
##订阅账户
|
||||
# 设置 QMT 交易端的数据路径和会话ID
|
||||
min_path = r"D:\QMT\国金证券QMT交易端\userdata_mini"
|
||||
min_path = r"C:\\QMT\\中金财富QMT个人版交易端\\userdata_mini"
|
||||
session_id = int(random.randint(100000, 999999))
|
||||
|
||||
# 创建 XtQuantTrader 实例并启动
|
||||
@@ -22,7 +22,7 @@ else:
|
||||
exit()
|
||||
|
||||
# 设置账户信息
|
||||
account = StockAccount('8886100517')
|
||||
account = StockAccount('8176081580')
|
||||
|
||||
# 订阅账户
|
||||
res = xt_trader.subscribe(account)
|
||||
@@ -30,7 +30,3 @@ if res == 0:
|
||||
print('订阅成功')
|
||||
else:
|
||||
print('订阅失败')
|
||||
|
||||
|
||||
download_history_data('000001.SZ', '1m', start_time='20251201', end_time='')
|
||||
print(get_market_data(stock_list=['000001.SZ'], period='1m', start_time='20251201', end_time=''))
|
||||
|
||||
Reference in New Issue
Block a user