Browse documentation

Reference

Installation and configuration.

Use this reference for the durable setup facts that sit beside the beginner broker chooser. Start with Practice, keep the first broker connection read-only, and verify paper or SIM identity before any optional order chapter.

Current support boundary

The packaged app runs on a Mac with Apple Silicon today; a Windows PC (64-bit Windows 10 or 11) is on the waitlist and will need the same once it ships. Intel Macs are not supported. NinjaTrader 8 is Windows-only. Do not treat a source checkout as a customer install.

System requirements

  • Computer. A Mac with Apple Silicon (M1 or later) on macOS 12 Monterey or later, or a Windows PC running 64-bit Windows 10 or 11. Intel Macs are not supported. There is no phone or tablet app.
  • NinjaTrader 8. Windows only. BrokerBridge and NinjaTrader 8 must run on the same Windows PC. A Mac can run BrokerBridge with Interactive Brokers or Practice. It cannot run NinjaTrader 8.
  • Broker. Optional. Practice needs none. Connect Interactive Brokers when you want paper or live routing. TWS or IB Gateway runs on the same computer, Mac or Windows.
  • Network. Needed to download the app and use managed AI or market data
  • AI credits. Optional later. Free to start; pay only for AI credits when you need more compute
  • No Python install for the packaged app.

The full list lives on system requirements.

Practice and activation

  1. 1. Install the package from the download page.
  2. 2. Choose Practice and build one complete plan without a broker.
  3. 3. Create an account and managed AI credits only when needed.
  4. 4. Connect an IBKR paper or NT8 Sim path only after its identity and mode are clear.

Installation

Use the current packaged installer. The private retail repository and editable source environment are contributor paths, not customer installation instructions. If the download or launch surface is unavailable, stop and use Troubleshooting.

IB Gateway and TWS paper setup

Use the official Interactive Brokers paper login, then configure the broker application before opening BrokerBridge. Gateway uses paper port 4002; TWS uses paper port 7497. Keep Read-Only API enabled for the first connection.

  1. Open the broker application's API settings and confirm socket clients are enabled.
  2. Confirm the paper port and keep the paper login visible.
  3. In BrokerBridge Setup Wizard, choose the matching paper preset. The server assigns a free local Client ID during the test; it is not an account number.
  4. If more than one account is returned, select the masked paper account and test again. Finish only after authenticated identity and paper mode are shown.
  5. Run IBKR Diagnostics after setup and repeat the identity check after a restart.

Live ports 4001 and 7496, funded accounts, and live order instructions are outside this beginner reference. Stop if the broker screen is not clearly paper.

Configuration schema and defaults

The packaged app keeps its managed configuration at $BROKERBRIDGE_HOME/config.yaml, defaulting to ~/.brokerbridge/config.yaml. Prefer Settings and the packaged app controls over hand-editing.

KeyDefault or safe first valueMeaning
broker.host127.0.0.1Local broker application endpoint.
broker.port4002 / 7497Paper Gateway / paper TWS socket.
broker.client_idserver-assigned for guided paper setupIdentifies the local API connection; never use it as an account number.
risk.max_position_pct0.05Maximum single-position fraction.
risk.max_open_trades1Account-wide open-lot ceiling.
risk.daily_pnl_cap_pct0.03Daily loss cap as a fraction.
risk.require_stop_losstrueRefuses plans without a defined stop.

Never paste a config file, token, password, account number, or install grant into a ticket, chat, screenshot, transcript, or public document.

Credentials

BrokerBridge-managed AI credits do not require customers to create or supply provider API keys. Broker credentials stay in the local broker application. The beginner guides only use paper or SIM accounts and never ask for credentials in documentation captures.

Risk settings and semantics

  • Set loss, size, and trade-count limits before connecting a broker.
  • Values ending in _pct are fractions in config: 0.05 means 5%.
  • An empty disabled_gates list keeps the named gates active. Removing a floor requires an explicit in-app confirmation.
  • Keep the first IBKR API connection read-only and confirm the masked account plus paper mode.
  • Only the separately gated paper/SIM LIMIT chapter may change order permission.
  • Live, funded, unknown-account, and nt8_live paths are outside this reference and must remain refused.

Common setup issues

Port reachable, session not verified
Keep the broker app in paper mode, confirm the selected port, and retry. A listening socket is not proof of account identity.
Account selector appears
Select the masked paper account, test again, and stop if the mode or account is unknown.
Client ID allocation reports a collision
Stop another local BrokerBridge session and retry. Do not replace the assigned ID with a copied value from a screenshot.
Windows or NT8 path unavailable
That path is not a supported customer release until native package, topology, and privacy capture gates pass. Use Practice on the supported package.