new update

This commit is contained in:
2025-11-11 17:45:56 +08:00
parent 662a1ea7c1
commit 54fd7c9545
7 changed files with 148 additions and 326 deletions
-7
View File
@@ -37,13 +37,6 @@ def is_trading_time():
return False
def getInstrumentName(stock_code):
# print(f"getInstrumentName: 获取标的名称 {stock_code}")
detail = xtdata.get_instrument_detail(stock_code, False)
if detail is None:
return "UnNamed"
return detail['InstrumentName']
def getStockPosition(stock_code: str, xt_trader: xttrader.XtQuantTrader, account: StockAccount):
volume = 0