I am looking for an API to temporarily lock account from taking new orders for the rest of the day after my day SL is hit. Is any API available for the same? For example if I lose 2% of my capital in a day, i need to lock account to avoid revenge trading and lose more.
You can make a logout API call.