Set up the desktop connector
The Arcanan desktop connector links the web terminal to brokers running on your own computer. Your broker logins never leave your machine and every order executes locally — Arcanan never holds your credentials. This guide walks through the full setup: install, pair, connect IBKR and Futu, place a paper order, and (if enabled for your account) go live.
1. Install the desktop app
Grab the installer for your platform from arcanan.com/download — macOS, Windows, and Linux (AppImage) builds are published on every release. On Arch, install from the AUR: yay -S arcanan-desktop-bin.
After launching, the app lives in your system tray / menu bar. The main window is the same Arcanan terminal you use in the browser; the tray menu is where broker connections are managed.
2. Pair the app with your Arcanan account
Pairing links this machine to your account with a single-use code — no password ever touches the desktop app.
- In the web app, open Settings → Desktop connector and generate a pairing code. The code is single-use and valid for 15 minutes.
- In the desktop tray menu, choose Pair with Arcanan… and paste the code.
- The settings card flips to Online within a few seconds. You can revoke a paired device from the same card at any time.
3. Connect Interactive Brokers (TWS or IB Gateway)
The connector speaks the TWS API to a copy of Trader Workstation or IB Gateway running on the same machine. Log into whichever you prefer — paper accounts (ids starting with DU) are the default; Arcanan refuses to route paper orders anywhere else.
- Install and log into TWS or IB Gateway from Interactive Brokers. For paper trading, use your paper login (IBKR issues one alongside every live account).
- Enable the API: in TWS, File → Global Configuration → API → Settings — tick Enable ActiveX and Socket Clients, untick Read-Only API (it's on by default and silently rejects every order while connected), and add
127.0.0.1to trusted IPs (or leave "Allow connections from localhost only" on). - Check the socket port. The connector expects
7497(TWS paper) by default; IB Gateway paper uses4002. Live sessions use7496/4001. If your port differs, edit it via the tray's Open config file (ibkr.portinconnector.json). - In the tray menu under IBKR, choose Connect. The first connection may pop a confirmation inside TWS — accept it.
4. Connect Futu / moomoo (OpenD)
Futu connectivity runs through OpenD, Futu's official local gateway. You log into OpenD with your own Futu / moomoo ID; the connector then talks to it over a local WebSocket.
- Download OpenD from Futu's OpenAPI site (openapi.futunn.com) and log in with your Futu ID. First-time API users must complete the short API questionnaire and accept the OpenAPI agreements inside the Futu/moomoo client before OpenD will serve trading calls.
- Enable OpenD's WebSocket port and set it to
33333(the connector's default). This is separate from OpenD's main protocol port — the connector uses the WebSocket one. - If you set a WebSocket key in OpenD, put the plaintext key in
connector.json(futu.wsKey, via the tray's Open config file). OpenD's own config stores the key's MD5 — pasting the digest instead of the plaintext will fail to log in. - In the tray menu under Futu, choose Connect. Your simulation accounts appear immediately; real accounts also require unlocking trade with your trading password inside OpenD before live orders will be accepted.
5. Place a paper order
Back in the terminal, open the Order ticket panel. A destination picker in the header lists every account your connector exposes — pick a paper account, set side, size, and price, and submit. The ticket shows the order's progress live: waiting for connector → submitted to broker, with a cancel action while the order rests. The Settings → Desktop connector card shows the same connection state.
6. Going live (Pro and Ultimate plans)
Real-money trading is enabled per account, deliberately behind three separate switches:
- Request access under Settings → Live trading. Every request is reviewed individually.
- Once approved, read and accept the live-trading terms and risk disclosure.
- Turn on the live-trading switch in the same card.
On the broker side, your gateway must be running a live session for the live account to show up: for IBKR, log into TWS or IB Gateway with your live login and set ibkr.port to the live port (7496 TWS, 4001 Gateway); for Futu, unlock trade with your trading password inside OpenD. Placing the order itself works exactly like paper — same ticket, same flow — you just pick the live account as the destination.
Live accounts appear in the order ticket's destination picker marked unmistakably. Every live order gets a second, explicit confirmation restating account, size, and price — and tighter size limits apply than on paper. Revoking access (yours or ours) blocks new live orders immediately, but orders already resting at your broker are managed in the broker's own software.
Troubleshooting
- "Timed out connecting to OpenD" — OpenD isn't running, or its WebSocket port isn't enabled / isn't
33333. The connector needs the WebSocket port, not OpenD's main protocol port. - OpenD login fails with a key set — you likely pasted the MD5 digest into
futu.wsKey; it must be the plaintext key. - IBKR won't connect — the API isn't enabled in TWS/Gateway settings, or the socket port doesn't match
ibkr.portinconnector.json(TWS paper 7497, Gateway paper 4002). - IBKR connects but every order is rejected — Read-Only API is still ticked in TWS's API settings. Untick it and reconnect.
- Order ticket says the connector is offline — the desktop app isn't running, or the device was revoked in Settings. Re-open the app, or generate a new pairing code and pair again.
- A live account isn't selectable — live trading isn't enabled for your account yet (see "Going live"), or the broker gateway session doesn't expose that account (for Futu, trade may still be locked in OpenD).
Common questions
- Do I need the desktop app to use Arcanan?
- Only for broker connectivity — research, charts, the screener, and the AI copilot all run in the browser at app.arcanan.com too. The desktop app is the recommended way to run Arcanan on the free plan, though: it is what routes orders to IBKR and Futu, because both brokers' gateways run locally on your machine, and it can serve charts and quotes straight from those gateways so you need no vendor market-data key.
- Does Arcanan see my broker password?
- No. You log into TWS, IB Gateway, or OpenD directly with the broker's own software. The connector talks to those programs over localhost and authenticates to Arcanan with a device credential minted when you pair — your broker credentials are never sent to Arcanan.
- Can I trade with IBKR and Futu at the same time?
- Yes. Connect both from the tray menu and each broker account appears as a destination in the order ticket. You choose the platform and the exact account per order.
- How do I enable real-money trading?
- Live trading is part of the Pro and Ultimate plans and is enabled per account: request access under Settings → Live trading, wait for the review, accept the live-trading terms and risk disclosure, then switch it on. Live accounts then become selectable in the order ticket, with an extra confirmation on every live order.
Start your next trade with evidence, not vibes.
The free plan runs on your own market-data and LLM keys — or on your broker's feed through the desktop app. No card, no invite.