hyperliquid-dex / hyperliquid-python-sdk

SDK for Hyperliquid API trading with Python.
MIT License
238 stars 97 forks source link

grouped order #43

Closed koradiyakaushal closed 4 months ago

koradiyakaushal commented 4 months ago

How to create grouped Market/Limit order with TP/SL? like OCO order in UI. do we have to create separate orders? Provide example if possible, or documentation, as couldn't find anywhere in docs.

traderben commented 4 months ago

The python sdk's api doesn't support this. You would need to create an order action with grouping set to normalTpsl or positionTpsl