bybit-exchange / pybit

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

I want to pass the orderLinkId to the TPSL order that comes with the limit order. #213

Closed ayoub-abdessadak closed 3 days ago

ayoub-abdessadak commented 1 month ago

When placing a limit order for spot with a TPSL, the TPSL order does not contain information referring to the limit order. The only way to link a limit order and the tpsl order is by checking the values, which can be the same for different limit orders with a TPSL target.

dextertd commented 3 days ago

This is impossible. TP/SL/TS are system-managed orders and you can't give them your own orderLinkId. You could create a normal order with place_order() and manually operate on it so that it acts as TP/SL/TS.