私は以前の注文のステータスを取得したいと思います。私は次の単純なコードを持っていますが、私はTrue/Falseの値しか得ません。ここに私のコードは次のとおりです。ここIBpyの注文状況の更新
from ib.opt import Connection, message
tws_conn = Connection.create(port=7497, clientId=999)
tws_conn.connect()
def acct_update(msg):
print msg
tws_conn.register(acct_update, message.openOrder)
tws_conn.register(acct_update, message.orderStatus)
が出力されます。
>>> from ib.opt import Connection, message
>>>
>>> tws_conn = Connection.create(port=7497, clientId=999)
>>> tws_conn.connect()
Server Version: 76
TWS Time at connection:20161021 18:53:42 EST
True
>>>
>>> def acct_update(msg):
... print msg
...
>>> tws_conn.register(acct_update, message.openOrder)
True
>>> tws_conn.register(acct_update, message.orderStatus)
True
>>>
>>>
どのように私はオープン注文のリストを得ることができますか?個々の注文のステータスを取得するにはどうすればよいですか?
ありがとうございました。