Skip to content

2.x Broker (deprecated)

Broker keeps 2.x bots running and emits a DeprecationWarning. Several 2.x behaviours were unsafe and changed; the migration guide lists each one and maps the main Broker calls to Trader.

Broker

Broker(log: int | str, password: Any, server: Any, *, terminal: Terminal | None = None, clock: Clock | None = None)

Deprecated 2.x API, kept so existing bots run; use connect instead.

Read the migration guide before upgrading a bot that trades real money.