更新qmt代码
This commit is contained in:
@@ -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=''))
|
||||
|
||||
Reference in New Issue
Block a user