bybit-exchange / pybit

Official Python3 API connector for Bybit's HTTP and WebSockets APIs.
Other
423 stars 135 forks source link

Close position with Stop Loss #190

Closed Chenger1 closed 9 months ago

Chenger1 commented 9 months ago

I send request to open position via Market order. For example: side = Buy. Qty = 0.11 Then i want to send stop loss order and my goal to close position when stop loss is triggered. I send payload with parameters:

But when stop loss if triggered - position still exists. Which parameters should i set so position will be closed after stop loss?

Chenger1 commented 9 months ago

Proper way to this - is to use https://bybit-exchange.github.io/docs/v5/position/trading-stop But it is still not convenient because we cant set orderLinkId