Skip to content

bytx 0.2.6

Choose a tag to compare

@byttrade byttrade released this 23 Nov 21:35
· 1 commit to main since this release

Fixes

  • OKX: WebSocket orders. ws_place_order, ws_amend_order and ws_cancel_order now send the market instIdCode. Before this fix OKX rejected all three with 50014 Parameter instIdCode can not be empty. A market without a code goes via REST.
  • Cancel over WebSocket. A rejected WS cancel (other than "no such order") is now retried via REST. Cancel is idempotent, so the order no longer stays on the book.

New

  • candles(symbol, tf, since=, until=, limit=): page history backwards with until (ms, inclusive).
  • funding_intervals(symbols=None) -> {symbol: hours}, and FundingRate.interval_hours.
  • OrderTracker.track(order): show a just-sent order in the tracker before its WS event.

Docs

  • OKX and Bitget perpetuals need margin_mode in create_exchange.