The scripconsent=yes parameter cannot be set with smartconnect smartapi-java-2.2.6.jar which is the latest. I get an error as below from SmartConnect API:
2026-02-18 13:27:55.094 ERROR [ Transaction-0] com.angelbroking.smartapi.SmartConnect : [316] JSONObject["data"] is not a JSONObject (class org.json.JSONObject$Null : null).
My order placement fails. Upon investigation I found I get error only for certain stocks like stocks of BSE shares which are cautionary. I dont get this when i place orders for stocks like HDFC or SILVERMIC.
I cant override or cannot do much. I have done all my code with your JAVA APIs, and now I am stuck in this blocker. Please update the JAVA API, if smartconnect API added any changes so that your API documentation is in sync with your Java implementation.