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
@@ -75,6 +75,13 @@ class QmtV(XtQuantTraderCallback):
strategy_name, # strategy_name
orderRemark # remark # type: ignore
)
def getInstrumentName(self, stock_code:str):
# print(f"getInstrumentName: 获取标的名称 {stock_code}")
detail = xtdata.get_instrument_detail(stock_code, False)
if detail is None:
return None
return detail['InstrumentName']
# def print_position_info(self):
# positions:list[XtPosition] = self.xt_trader.query_stock_positions(self.account)