Skip to content

TradeX v1.3.1

Latest

Choose a tag to compare

@Sentello Sentello released this 14 Jun 17:02
· 14 commits to main since this release
d459468

πŸš€ TradeX v1.3.1 – Position Closure Fix for Bybit

πŸ› οΈ Release Highlights

This is a small but important patch release targeting Bybit position closure logic.

πŸ› Bugfix

  • Fixed an edge case where closing a LONG position on Bybit could accidentally trigger a doubling of contracts instead of closing it properly.
  • The issue was caused by the side detection logic not accounting for "long" in addition to "buy".
    Updated logic:
    side = "sell" if (pos["side"] == "buy" or pos["side"] == "long") else "buy"