Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
掘金社区
pxling 发表在 问题反馈 2020-03-02 20:08:10
如何得到仿真交易中的持仓列表
如何得到仿真交易中的持仓列表Pinned highlighted
pxling 发表在问题反馈 2020-03-02 20:08:10
我用这个命令 poses = get_positions(a1) 得到了持仓的list 如果我只想得到持仓的symbol, 有什么简单的命令么。
positions = context.account().positions() position_symbols = [position.symbol for position in positions] 多看下api文档
pxling
热门标签
热门推荐
Looks like your connection to 掘金量化社区 - 量化交易者的交流社区 was lost, please wait while we try to reconnect.