开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: twsapi: parameter list for orderstatus?


cyberbri_2000
 

Works fine now, thanx for the help! I had price as double instead of
single, which you pointed out.

Private Sub tws1_orderStatus(ByVal id As Long, ByVal Status As
String, ByVal Filled As Long, ByVal Remaining As Long, ByVal price As
Single)

the word Status is a reserved property name for certain objects

When I type it into my editor it automatically caps the lead
letter....

Try changing the variable declaration to a different name, such as
TWSstatus or something

There are three and counting uses of VB keywords or propertey names
in the standard TWS API:

"right", "currencey" and Now "status"

Pretty lame IMHO

Scott

PS please let us know if this resolves the issue

Join [email protected] to automatically receive all group messages.