I am new to the IBKR API and I'm trying to figure out where to put my "if-condition" that checks whether a condition is true or not, and then proceed to make a trade (or not). I understand that there are a lot of callback-methods that is being called after the connection is established, and the "myApp.run()" is called. I think I need to put my "if-condition" in one of these callback-methods, for example in "reqMktData"(?) Does anyone have any tips or experiences with where (what method) is a good place to execute orders continuously (if a condition is true) from? I hope I made the question clear, and to clarify further, I know how to make and send a single order. I am wondering how to make a program wait until a certain "if-condition" is true, and then execute it.