This commit is contained in:
2025-10-27 18:16:33 +08:00
parent f37c1158ee
commit be7e7dda48
4 changed files with 16 additions and 11 deletions
+7 -1
View File
@@ -15,4 +15,10 @@ def getStockPosition(stock_code: str, xt_trader: xttrader.XtQuantTrader, account
if pos.stock_code == stock_code:
volume = pos.m_nVolume
break
return volume
return volume
def interact():
"""执行后进入repl模式"""
import code
code.InteractiveConsole(locals=globals()).interact()