from tqsdk import TqApi, TqAccount, TqSim
api = TqApi(TqSim())
position=api.get_position()
print(“多开均价: %.2f” % (Position.open_price_long))
NameError: name ‘Position’ is not defined
ringo 已回答的问题 2020年5月14日
from tqsdk import TqApi, TqAccount, TqSim
api = TqApi(TqSim())
position=api.get_position()
print(“多开均价: %.2f” % (Position.open_price_long))
NameError: name ‘Position’ is not defined