Issue in Stoploss Order
-
Hello Team @Moderator_1 @Moderator_2 @Moderator_3
I'm having issue in Sl order placement
Error logs and order params attached, i already tried multiple combinations of price and stop price, but nothing worked
Code is working fine with limit orders, But getting issue in Stoploss Order
[E 240925 10:51:47 smartConnect:243] Error occurred while making a POST request to https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/placeOrder. Error: Difference between limit price and trigger price for SL Limit Order is beyond the exchange’s Permissible range of < 1.50 >. Consider setting the limit price to < 1.50 > or lower. URL: https://apiconnect.angelone.in/rest/secure/angelbroking/order/v1/placeOrder, Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.193', 'X-MACAddress': '--', 'Accept': 'application/json', 'X-PrivateKey': '----', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'variety': 'STOPLOSS', 'tradingsymbol': 'IOC-EQ', 'symboltoken': '1624', 'transactiontype': 'BUY', 'exchange': 'NSE', 'ordertype': 'STOPLOSS_LIMIT', 'producttype': 'INTRA DAY', 'duration': 'DAY', 'price': '175', 'squareoff': '0', 'stoploss': '176', 'quantity': '1'}, Response: {'status': False, 'message': 'Difference between limit price and trigger price for SL Limit Order is beyond the exchange’s Permissible range of < 1.50 >. Consider setting the limit price to < 1.50 > or lower', 'errorcode': 'AB1007', 'data': {'script': 'IOC-EQ', 'orderid': None, 'uniqueorderid': 'd2767738-546e-4989-be34-10b29ab68bef'}}
Thanks in advance
-
@Moderator_3
Thanks for reply ![alt text]Trigger price para is missing in my code, Below order para works for stoploss Order
#--------------------------------------------
In doc also trigger price para is not mentioned
https://github.com/angel-one/smartapi-python@Moderator_3 please share the updated doc link if i'm using old link
Thanks
-
hello ,
This is under exchange permission limit range.. For all stoploss order limit order above this is by default for all equity orders .Thanks