algo2t / alphatrade

Python APIs for SAS Online Alpha Trade Web platform for creating algo trading using python
https://algo2t.github.io/alphatrade
MIT License
44 stars 22 forks source link

Buy limit order of a sell order getting executed at market price #19

Closed akshay1728 closed 2 years ago

akshay1728 commented 2 years ago

Hi,

I am placing the see order of bankniffty call at market order which is getting placed properly. But when i am trying to place order buy order for this call with limit price(basically placing a stop loss order of the sell order) it is getting executed at the market price instead of the limit price. Please see below image, the order got executed at 306 and my trigger price is 364 and limit 366.

image

akshay1728 commented 2 years ago

Got the issue, the order type should be StopLossLimit instead of Limit. Closing the issue