Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在努力从盈透证券的文档中找出如何查询帐户详细信息,例如可用保证金、可用资金等。
我试图效仿他们的例子,但有点迷失了;我无法准确确定如何进行简单的调用以获取帐户详细信息。
谁能提供一个代码片段,或者一些关于方法的指针?
非常感激。
谢谢
使用该reqAccountUpdates(true)方法开始接收有关帐户的事件。然后通过updateAccountValue()回调提供所有帐户数据。如果您不希望定期订阅帐户事件,请致电reqAccountUpdates(false)结束订阅。
reqAccountUpdates(true)
updateAccountValue()
reqAccountUpdates(false)