@hssandeep Hello Administrator, can you please respond to this message? I guess there is no solution for this as hence no one has responded. If that is the case, i rest my case but either way please do respond
Thanks
Best posts made by hssandeep
Latest posts made by hssandeep
-
RE: Unable to apply STOPLOSS for options in AngelOne UI through SmartSDK code, anyone has solved this issue?
-
RE: "Order placement failed: 'NoneType' object is not subscriptable"
Can someone respond to this query? I am stuck here and unable to proceed
Thanks a lot
Sandeep -
Unable to apply STOPLOSS for options in AngelOne UI through SmartSDK code, anyone has solved this issue?
Folks,
I am stuck at this particular point while creating a STOPLOSS trade for BANKNIFTY options trade.The trade goes through but the problem is the Angle Broking UI where i am expecting the STOPLOSS order to be showing up under "Open Orders" but doesn't show-up anything
If I go to "VIEW ORDER HISTORY" it shows a REJECTED order that says "Reason: 16408 : Trigger price entered has invalid characters"
to test, I tried with all datatypes (float, integer, string etc) but not been successful.
Here is a sample code of "orderparams" that was executed
orderparams = {
"variety": "STOPLOSS",
"tradingsymbol": "BANKNIFTY12JAN2344500CE",
"symboltoken": str(40774),
"exchange": "NFO",
"transactiontype": "SELL",
"ordertype": "STOPLOSS_LIMIT",
"quantity": "25",
"producttype": "CARRYFORWARD",
"price": slprice,
"trigger_price": triggerPrice,
"stoploss": "0",
"duration": "DAY",
"squareoff": "0"
}Can anyone of you help me find out where the problem is?
I have attached the screenshot for better understanding of the problem -
RE: "Order placement failed: 'NoneType' object is not subscriptable"
@neeluru
I tried the above piece of code and it works perfectly with a valid "orderId" but the challenge is on the Angle Broking UI under "Open Orders" this is not reflected.
But if you get into "VIEW ORDER HISTORY" page it shows the following error:Reason: 16408 : Trigger price entered has invalid characters
Below are the details and have attached the screenshot
Details
Order Placed on 05-Jan-2023 at 14:04:31Product Type
Carry Forward - STOPLOSS
Action
Sell
Order Type
Stop Loss Limit
Validity
Day
Segment Type
F&O
Broker Order No.
230105001112007
Reason: 16408 : Trigger price entered has invalid characters