开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: How to programatically approve a transaction: Security is under Surveillance


 

Welcome Pranav!

I'd check that the option API -> Settings -> "Show advanced order reject UI always" is unchecked.

Also, select all bypass options you are comfortable with in API -> Precautions.

And your thought about the advancedErrorOverride field of the Order class may help. The documentation says that "advancedErrorOverride accepts a comma-separated list with parameters containing error tags. This list will override the mentioned errors and proceed with the order placement". From your log it sounds like you could try setting the field to "8229".

闯ü谤驳别苍

?

?

?
On Wed, Mar 26, 2025 at 10:09 AM, Pranav Lal wrote:

Hi all,

Sorry about the poor subject line.

I am trying to buy a stock and am getting the following error in my logs.
56989180,SRF,STK,,,0,,,NSE,NSE,INR,SRF,SRF,False,,,,combo:
eason:Security is under Surveillance Measure - The scrip PE is greater than
50 for the previous 4 trailing quarters.<br><br><br>Would you like to
continue?.
{"rejects":[{"buttons":[{"options":[{"fixstr":"8229=SURVEILLANCE","text":"Ye
s, transmit the order."}],"style":"chk"}],"id":29,"text":"Security is under
Surveillance Measure &ndash; The scrip PE is greater than 50 for the
previous 4 trailing quarters. <br><br>Would you like to
continue?","textsep":"125"}],"version":"1.0"}

How do I get around this? Is the answer to use the advancedErrorOverride
property of the order object? If yes, what do I enter as its value?

Pranav

Join [email protected] to automatically receive all group messages.