更新qmt代码

This commit is contained in:
2026-01-04 22:43:13 +08:00
parent 040d65cf9e
commit afc703549f
8 changed files with 10852 additions and 55 deletions

View File

@@ -1,4 +1,5 @@
from xtquant import xttrader
from xtquant.xtdata import download_history_data, get_market_data
from xtquant.xttype import StockAccount
import random
@@ -31,5 +32,5 @@ else:
print('订阅失败')
asset = xt_trader.query_stock_asset(account)
print(asset.cash)
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=''))