Broker

Interactive Brokers through IB Gateway. Each agent picks its depot on its Settings tab: GoldFin virtual, IBKR paper or IBKR live.

Setting up IB Gateway (once)

1. Download IB Gateway (stable) from interactivebrokers.com (Trading → Platforms → IB Gateway) and install it on this PC (later: the server, in Docker).

2. Log in with Paper Trading selected (your paper user name). For real money, a second Gateway logs in with Live — paper and live are separate logins.

3. In Gateway: Configure → Settings → API → Settings: Enable ActiveX and Socket Clients on, Read-Only API off, Socket port4002 for paper (4001 live), Trusted IPs: 127.0.0.1. Keep "Allow connections from localhost only" on.

4. Click "Check again" here. Paper shows "ready to trade" once the account (DU…) is visible. A paper gateway logged in to a live account (or the other way round) is refused — GoldFin checks the account type before every order.

5. Market data: GoldFin keeps using its own prices (Yahoo, onvista) for decisions and exits, so no IBKR data subscription is needed to start. Real-money trading also needs IBKR_LIVE_ENABLED=true in the backend .env.

Can IBKR trade it?

Looks a ticker up at IBKR (paper gateway) — e.g. a Turbo by its WKN: is it listed on Stuttgart/Frankfurt there?