Order Precautions
TWS has a number of built in order precautions that can prevent TAT from submitting orders via the API.
If you seen an error like this example below in the TXT log export, that is the reason for an opening or stop order not being able to be placed successfully.
The following order "ID:1064" price exceeds the Percentage constraint of 3%.
Restriction is specified in Precautionary Settings of Global Configuration/Presets.
Modifying or Bypassing Order Precautions
To prevent these precautions from interfering with TAT orders placed via the API there are two options, both of which are configured from the Global Settings menu in TWS:
1) Bypass all precautions for API orders.
2) Also, set the Bypass No Overfill Protection precaution for destinations where implied natively. This is necessary in TWS version 10.25 for OCA orders which are used with profit targets or StopLimitOCO order types. This is VERY important if you are using these stop types.
3) Adjust the actual precaution values.
It is also possible to adjust the precaution values to a level that does not trigger for orders placed via TAT. Take note to adjust both the Presets >Options (Single leg orders) and Presets > Combos (Spread orders).
2
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article