开云体育

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

Invalid symbols


szeyu73
 

hello.

i found some problem in placing invalid symbols. for example, if i
place an order to BUY 100 shares of XYZ, which is not valid.

the TWS API won't tell my program thru the API (such as ErrMsg and
OrderStatus), but just make a popup in the Trader Workstation
program. hence i have no no way to know that the symbol is invalid.

my solution is to keep a list of avaliable symbols. i'll check if the
symbol is in the list before placing the order.

it works, but i have to update the list from time to time. is there
any better solutions?

thanks

---
dustin