Idirect-Tech / Breeze-Python-SDK

The official Python client library for the ICICI Securities trading APIs
MIT License
62 stars 30 forks source link

What is the difference in price and stop loss value in a square off order #129

Closed vineetvermait closed 1 month ago

vineetvermait commented 2 months ago

when I am placing a square off order for a long position (bought at 110), I want to set up stop loss at 105, what would be valid values of price in this case??

currently when I set stop loss value and price value as same the only the order is successful

vineetvermait commented 2 months ago

any comments??

karanag commented 2 months ago

you need to add two values

limit(price in api) stoploss

stoploss will be 105, this the price at which stoploss will get activated. Limit is the lowest price you are will to sell it at, so if you set 100 - the trade will happen at any price between 105 to 100 depending on market conditions