TTAPI Order Submission based on market state