Thursday, September 13, 2012

OrderIDs

I have spent part of the day working on automating a simple system. Well, I worked on setting up all the parts needed to get a system functioning. A big piece of the system is, obviously, being able to buy and sell shares/contracts! :D

And boy has it been somewhat frustrating. Haha.

If you decide to make your own automated system with Interactive Brokers API, make sure you put all of your OrderIDs in order! (i.e. if you have an orderID = 13, the next has to be 14 or larger).

This would work well in a completed system. I'm going to be updating the orderID using a counter. It's all clean and self contained. But, if you are testing a script that just sends order out and you wonder why it may not be working, it could very well be due to some orderID issue...you can, also, reset the orderIDs manually in the Configure->API window.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.