如果您在期货公司的账户位于期货公司的其它席位上(非主席), 您可以在创建 TqAccount 时用 front_broker 和 front_url 参数指定次席服务器:
<span class="n">api</span> <span class="o">=</span> <span class="n">TqApi</span><span class="p">(</span><span class="n">TqAccount</span><span class="p">(</span><span class="s2">"H海通期货"</span><span class="p">,</span> <span class="s2">"320102"</span><span class="p">,</span> <span class="s2">"123456"</span><span class="p">,</span> <span class="n">front_broker</span><span class="o">=</span><span class="s2">"3233"</span><span class="p">,</span> <span class="n">front_url</span><span class="o">=</span><span class="s2">"tcp://132.31.128.201:41205"</span><span class="p">))</span>
west 已回答的问题 2020年4月27日