germangar / whook

WHOOK is a fully functional webhook for handling Tradingview Alerts to crypto exchanges in perpetual USDT futures. Supported exchanges: Binance, Kucoin, Bitget, Coinex, Okx, Bybit, Bingx, Kraken and Phemex.
MIT License
34 stars 10 forks source link

Option to work with hedge positions #8

Closed techsnakebo closed 4 months ago

techsnakebo commented 5 months ago

hi, it works great, I'm testing it with bingX

Is there any way to identify a position? this to manage hedge positiions, to identify a particular position and close it using the identifier of the position. this will permit open hedge positions

germangar commented 5 months ago

Hi,

I don't support hedge positions at the moment. I contemplated doing it but it's quite complicated to implement and I don't have much time to do it. I created the script when I was between jobs but now I can't do much more than maintenance.

Implementing hedged positions would require to create long and short commands that work the same way as the position command works, but they would only work in each trading direction. Problem is, in oneway most exchanges work the same, but in hedged the APIs are trickier. It takes a lot of time to figure out and test each exchange.

I may do it in the future, but not anytime soon. Sorry.