Skip to content

bytx 0.2.2

Choose a tag to compare

@byttrade byttrade released this 18 Nov 15:24
· 5 commits to main since this release
  • TP/SL that stay after the position is closed: new bytx.exchanges.tp_sl_cancel_on_flat(ccxt_id) says whether the
    exchange cancels the remaining TP/SL itself once the position is flat. Binance does not (demo 2026-11-18: both legs
    stay after close_position, the SL stays after the TP fires); Bybit, OKX, BingX, Bitget, BloFin, Gate and
    Hyperliquid do; KuCoin, MEXC, HTX — unknown.
  • open_position with SL and TP adds a warning to warnings on those exchanges: cancel the other leg with flatten,
    cancel_tp_sl or recover(). Orders are unchanged.
  • Docs: close_position does not cancel TP/SL (use flatten); paper cancels them on close, gentler than Binance.