Bot error on bybit inverse perpetuals

Bug info:

  • Bot URL → Gainium app
  • [Optional] Steps to reproduce → create short combo bot on BTCUSD on bybit
  • Expected result → buy limit order successfully placed

Hello, i have an existing position which i am actively DCA’ing in/out both manual and via another webhook bot and i want gainium to work on the same trading pair (BTCUSD: bybit inverse perpetual btc). Note: hedge mode on the exchange can only be set for usdt perps, not inverse perps). the short combo but starts just fine (with sell order) and also places additional sell orders, however it fails to produce limit buy orders (error msg: Error: reduce-only order has same side with current position). please help

We have received your bug report regarding the bot error on Bybit inverse perpetuals and will update you shortly. Thanks for providing the bot URL. We’ll investigate the error related to limit buy orders (‘Error: reduce-only order has same side with current position’) and get back to you as soon as possible.

Unfortunately it cannot be done. You have short bot. It means that all buy orders of bot will have reduce only flag. And because you already have active long position, exchange throwing the error.
I suggest you to create subaccount for the short bot

the order doesnt even make it to the cex order log. it is an internal bot error.
as said, I am actively tradings in/out with other bots, so it should be possible and seems a gainium problem.

No, order rejected by the exchange and the error message is the reason we got from exchange.
Are you trading any other short bot within this position on Gainium?

no, I am trying to get this working with gainium so i can switch to you guys. currently using other bot/webhook system.

Ok.
Our futures bots has main direction in the bot. If its a long bot - direction is long, if short - short.
Orders within main direction (buy for long, sell for short) are sent as it is. Orders opposite to the main direction (sell for long, buy for short) sent with reduce only flag. To prevent unexpected position increase.

Thats why you are getting this error. We sent all buy orders inside your bot with reduce only flag. Which conflicts with current position on the exchange, therefore exchange rejected the order.

Its always better to separate short and long. So I suggested to add subaccount to trade short.

i dont want to make it more complicated with subaccounts. if others can do what gainium cannot do (and you dont want to change it), than this platform might not be the right choice for me.