2.17

🌉 IBKR Live Bridge

Greeks, IV et Bid/Ask en temps réel dans straderz.com

1. Qu'est-ce que l'IBKR Live Bridge ?

Avec l'IBKR Live Bridge, vous voyez vos options ouvertes et les données de votre portefeuille avec des Greeks en temps réel, la Volatilité Implicite, le Bid/Ask et le P&L directement dans straderz.com — en complément de la synchronisation quotidienne Flex Query.

Ce que vous voyez dans le Live Cockpit :
  • Greeks en direct (Δ, Γ, Θ, V) pour chaque position d'options ouverte
  • Volatilité Implicite et Bid/Ask en temps réel
  • Δ et Θ du portefeuille agrégés sur toutes les positions — immédiatement visible quand le book devient trop long ou trop court
  • Solde du compte et marge en direct
  • Chaînes d'options à la demande pour les analyses what-if
Complète — ne remplace pas.
Le Bridge fonctionne en parallèle avec la synchronisation Flex Query nocturne. Flex reste la source de vérité pour l'historique officiel des trades (fiscalité, détection de stratégies, campagnes). Le Bridge fournit la voie temps réel pour la gestion active des options.
✨

Comment ça fonctionne

Le Live Bridge est une petite application locale sur votre PC qui communique avec votre TWS ou IB Gateway en cours d'exécution via l'API IBKR et envoie des instantanés chiffrés à straderz.com. Votre identifiant IBKR reste entièrement sur votre machine — nous ne recevons ni votre mot de passe ni vos codes 2FA.

[Votre PC]                                        [straderz.com]                           [Vous dans le navigateur]
TWS / IB Gateway
    ↓ ib_insync TCP
[Live Bridge] ──── HTTPS POST ────►  [Serveur] ◄──── HTTPS GET ──── [Live Cockpit]
    │                                    │
    └─ lit les positions,                └─ stocke les instantanés,
       Greeks, IV, Bid/Ask                  les livre à votre navigateur
Flux de données en un coup d'œil :
  • Lecture seule, pas de trading — le Bridge ne passe aucun ordre. Il envoie uniquement les positions, Greeks, IV, Bid/Ask, solde du compte.
  • Isolé par utilisateur — chaque instantané est lié à votre compte via un token OAuth ; les autres utilisateurs ne le voient jamais.
  • Latence ~2 secondes du tick IBKR à l'affichage dans le cockpit.
  • Push HTTPS avec bearer token, polling ETag du navigateur pour une charge de données minimale.

3. Prérequis

  • Windows 10 ou 11 — version Mac en préparation (voir note ci-dessous)
  • Compte IBKR avec TWS (Trader Workstation) ou IB Gateway en cours d'exécution
  • API IBKR activée — dans TWS sous Configuration → API → Paramètres, activer "Enable ActiveX and Socket Clients"
  • Compte sTraderZ.com (gratuit ou Premium)
  • Optionnel : abonnement aux données de marché IBKR pour les données en direct — voir "Abonnement aux données de marché & cotations différées"
⏳ Version Mac
Le Bridge fonctionne actuellement uniquement sur Windows. Une version Mac est en préparation — en attendant, les utilisateurs Mac continuent d'utiliser la synchronisation Flex Query comme voie principale de données.

Guide pas à pas

1

Installation

1. Télécharger le Bridge :
Téléchargez le Bridge depuis la page de téléchargement ou directement depuis les paramètres Live Bridge.

2. Démarrer le Bridge :
Double-cliquez sur straderz-bridge.exe. Aucune fenêtre ne s'ouvre — le Bridge s'exécute en arrière-plan. L'icône du Bridge apparaît dans la barre système (en bas à droite à côté de l'horloge).

3. Exécuter TWS ou IB Gateway en parallèle :
Démarrez votre logiciel IBKR habituel et connectez-vous. Le Bridge détecte automatiquement la gateway en cours d'exécution et s'y connecte.
2

Associer avec straderz.com

1. Démarrer l'association dans straderz.com :
Allez à Comptes → Live Bridge et cliquez sur "Connecter à straderz.com".

2. Boîte de dialogue d'autorisation du navigateur :
Une page de confirmation s'ouvre avec le nom de votre compte. Cliquez sur "Connecter" — le flux OAuth s'exécute avec PKCE, donc le Bridge ne voit jamais votre mot de passe.

3. Vérifier l'état du tray :
Cliquez sur l'icône du Bridge dans le tray. L'état doit afficher ✅ connecté.

4. Premières données dans le cockpit :
Passez au Live Cockpit. En quelques secondes, vos positions ouvertes apparaissent avec des Greeks et IV en direct.

6. Multi-compte : Personnel, Entreprise, Fondation en parallèle

Si vous gérez plusieurs comptes IBKR — par exemple compte personnel + dépôt entreprise + véhicule fondation — vous pouvez tous les apporter dans le cockpit en direct simultanément.

Configuration :
Démarrez plusieurs instances IB Gateway en parallèle, chacune sur son propre port (ex. :7497 pour personnel, :7498 pour entreprise, :7499 pour fondation). Le Bridge détecte automatiquement toutes les gateways et étiquette chaque position avec son compte correspondant.

Dans le cockpit, vous pouvez ensuite basculer entre les comptes ou afficher une vue agrégée de tous les comptes.

💡 Conseil : La documentation officielle IBKR décrit la configuration de gateway parallèle sous "IB Gateway User Guide → Running Multiple Instances". Utilisez un identifiant IBKR distinct (sous-compte) pour chaque instance.
✨

Abonnement aux données de marché & cotations différées

Le Bridge utilise votre abonnement aux données de marché IBKR existant — pas de second abonnement sur straderz.com requis. Si vous payez "US Securities Snapshot and Futures Value Bundle" ou similaire chez IBKR, ces données en direct sont automatiquement transmises dans le cockpit.

Sans abonnement IBKR : Le Bridge ne délivre que des cotations avec 15 minutes de retard. Important à savoir : ceci s'applique également à votre affichage TWS. Sans abonnement, IBKR ne délivre fondamentalement que des cotations différées, quel que soit le frontend (TWS, Bridge, application mobile, autres applications de trading). Le Bridge ne change pas cela.

Avec abonnement IBKR : Données en direct dans TWS ET straderz.com simultanément. Vous voyez les mêmes valeurs en temps réel que dans TWS.

Recommandation pour le trading d'options actif :
Au minimum le "US Securities Snapshot and Futures Value Bundle" ou un package de données options spécifique. Détails et prix actuels dans le Client Portal IBKR sous Paramètres → Paramètres Utilisateur → Abonnements Données de Marché.

8. Utilisation

  • Exécuter le Bridge en arrière-plan — icône tray, faible utilisation RAM, pas d'interface nécessaire.
  • Mises à jour automatiques — le Bridge vérifie les nouvelles versions au démarrage. Si une mise à jour est disponible, une notification apparaît dans le menu tray.
  • Arrêter le Bridge — clic droit sur l'icône tray → "Quitter". Le cockpit affiche alors le dernier état connu avec le marqueur "périmé".
  • Révoquer la connexion — dans Comptes → Live Bridge, cliquez sur "Déconnecter". Le token est immédiatement révoqué côté serveur et ne peut plus être utilisé pour les instantanés.
  • Note 2FA (important) : Activez la "Session Étendue" IBKR, sinon vous devez vous reconnecter à TWS toutes les ~24 heures — et le Bridge tourne au ralenti entre-temps. Instructions dans la Gestion de Compte IBKR sous Paramètres → Paramètres du Compte → Système de Connexion Sécurisée.

⚠️ Dépannage

Le tray affiche "Hors ligne" ou "Pas de connexion" :
TWS ou IB Gateway ne fonctionne pas, ou le socket API n'est pas activé. Vérifiez les prérequis de la section 3.

"Association échouée" :
Le token a été révoqué ou a expiré. Solution : dans les paramètres Live Bridge, cliquez sur "Connecter à straderz.com" et associez à nouveau.

Le cockpit n'affiche que des cotations différées :
Pas d'abonnement aux données de marché IBKR (voir "Abonnement aux données de marché & cotations différées"). Avec un abonnement, les données en direct sont automatiquement transmises.

"Les mises à jour ne passent pas" :
Vérifiez l'état du tray du Bridge. Si "connecté" est affiché mais qu'aucune mise à jour n'arrive : redémarrez TWS ou IB Gateway — la connexion TCP peut se bloquer en raison de changements réseau (ex. WiFi/LAN).

Le Bridge plante ou se bloque :
Quittez le Bridge dans le tray, redémarrez-le. En cas de plantages répétés : la dernière version est-elle installée ? Téléchargez la dernière version depuis la page de téléchargement.

Compte IBKR pas encore configuré ?
Le Live Bridge nécessite que vous ayez déjà connecté le compte IBKR via Flex Query (pour l'historique des trades). → Chapitre 2.1 — Configurer IBKR Flex Query

10. TWS or IB Gateway?

The sTraderZ Bridge connects to either TWS (Trader Workstation) or IB Gateway. You need only one of the two; both give the sTraderZ Bridge the same data. IB Gateway is a separate program from Interactive Brokers: a pure interface without a trading screen, just a login and status window.

TWSIB Gateway
PurposeTrading platform with charts, order book and watchlists. Useful if you trade by hand there anyway.No trading screen; orders are possible only through programs via the API. Useful if the sTraderZ Bridge should read data and you do not trade in the program yourself.
ResourcesHeavy, needs a lot of memory and CPULight, runs quietly in the background
Always-on useLogs out regularly, then needs a new loginBuilt for always-on use, with automatic restart
API port7497 paper, 7496 live4002 paper, 4001 live
Enable the APIEdit → Global Configuration → API → SettingsConfigure → Settings → API → Settings
Downloadinteractivebrokers.comStable (recommended) or Latest
The port is not a firewall question.
If the sTraderZ Bridge reports "connection refused", nothing is listening on the port (e.g. 4001) because the API is still switched off in the program. You do not need to open anything in firewall or router as long as TWS or Gateway and the sTraderZ Bridge run on the same computer. Enable the API (menu path in the table), then click Apply and OK.

11. The "Date" column in the Live Cockpit

Next to the market data, the Live Cockpit shows in the Date column which earnings and dividend dates fall on a row within the next 14 days. The data comes from a separate, slower request (every 60 seconds) and does not disturb the price updates. If the source fails, the cockpit stays unchanged and the column shows a question mark.

  • E 19.11. – earnings. For options only a date before expiry counts. ~E means the date is not confirmed yet.
  • Ex 12.11. – ex-dividend day. For options only for positions with a call leg and only if the ex-date is not after expiry (early exercise possible).
  • +1 – there are more dates; the mouseover shows all of them.

The chip colour shows how close the date is to a position it affects: red for sold options in or near the money, yellow for other sold options, grey as plain information (e.g. stocks or bought options). There is deliberately no green: "no date" does not mean "checked and fine". The chips are orientation, not a recommendation to act.

On a phone the next date appears as a hint after the position name; the tooltip opens on tap. The column can be shown or hidden in the column selector.

More context elements. The Rule column shows whether one of your action rules has triggered for the position (symbol of the highest level, with a count from two rules). The Campaign column (off by default, switch it on in the column selector) shows the type and roll count of the matching campaign; it stays empty if the assignment is not unambiguous. The 👁️ button at the end of a row opens a detail panel with rules, dates and the campaign history; the live values keep updating inside it. The Risk tab starts with a scenario (a rough approximation from delta and gamma for an index move of −10%, −5%, +5% or +10%, with beta 1 for all underlyings, without volatility change or time decay; not a forecast) and then lists concentration (capital tied up per factor, across all web accounts), the dates of the next 14 days and rules without a row. The Campaigns tab shows open campaigns with realized (journal), open (live), fees and risk, separated by currency. Rules, concentration and campaigns are calculated on journal holdings while the table shows live data, so a trade opened just now may be missing briefly. Accounts in vault mode are not evaluated on the web.

12. Search roll options (roll search in the Live Cockpit)

For sold options the Live Cockpit shows the Roll chip. A click opens the detail panel and starts Search roll options: the bridge asks TWS for later expiries and strikes further out of the money and checks whether closing the old and opening the new position still gives a net credit (or at most the debit you set). The search places no orders and gives no recommendation.

What is checked. For each expiry (about 7, 14, 21, 28, 56 and 84 days after the current expiry, at most 100 days) the search starts at the current strike and moves strike by strike away from the money (puts down, calls up), at most 16 strikes per expiry. For spreads both legs keep their width and move the same amount; the outer wing must exist. For a covered call only the call leg is rolled.

Can be rolledCannot be rolled
Short put, short call, bull put spread, bear call spread, covered call (call leg)Long options, debit spreads, straddles, strangles, iron condors

Reading the matrix. Rows are strikes, columns are expiries (with days to expiry); the cells show the credit per share (for spreads per spread). Green is a credit, red a debit, a dot means "not queried" because the search had already stopped earlier in that expiry or the strike does not exist there. The strongly tinted cell is the furthest strike per expiry that still stays within the limit: a credit, or with a max debit above 0 also a debit up to that amount. If "…" appears below the last cell of an expiry, the search was cut off there before the end (time ran out or the bridge had another request); a note below the matrix names these expiries. A line below a strike marks the current price; the bar on the left marks the current strike. Above the matrix you see the buy-back cost (at the ask for short options) with quantity, the time of the snapshot and the price.

A click on a cell shows the detail line below: expiry and strike (with "+n d longer"), credit per share, total (credit × quantity × multiplier), the position delta after rolling and the OTM distance to the price in percent. Two buttons: Copy both legs puts the data of both legs on the clipboard, Open in the chain jumps to the option chain.

Bid/Ask or Mid. The switch selects the price basis. Bid/Ask uses the unfavourable price per leg (buy back at the ask, sell the new one at the bid); Mid uses the midpoint. The display stops at the first debit of the chosen basis. The Max debit field lets cells with a debit up to that amount per share still count as a hit (default 0.00).

Limits. The result is a snapshot with a time, not live; fees are not included. Outside market hours or without a market data subscription the search reports "no quote" or delayed quotes, and the numbers are uncertain. A second search right after the first is throttled. The roll search needs Bridge 1.4.0; with an older bridge a hint asks you to update it. The search quotes the contracts of the main trading class of the underlying. For adjusted options (for example after a corporate action, symbols like 1XYZ) or for SPX, where monthly options (SPX) and weekly options (SPXW) expire on the same day, the quotes can belong to a different contract than your position: check the result against the position in TWS. It is a calculation aid, not investment advice.

13. Prices of all accounts through one account (several IBKR accounts, one market data subscription)

If you connect several IBKR accounts to the sTraderZ Bridge over separate connections but only one of them has a market data subscription, the other accounts show delayed or no prices. A price belongs to the contract, not to the account. With the option Prices of all accounts through one account the bridge additionally fetches the prices of the positions of all accounts through the connection of the account with the subscription. If all accounts run under one IBKR login (linked accounts), you usually do not need the option: the bridge then says "All accounts run over one connection, so the option is not needed".

Switching it on. In the bridge, open the Accounts tab and click Prices of all accounts through one account .... The dialog lists all accounts with their current market data state and lets you choose the account with the subscription as the source. "Switch on" stays locked until you tick the mandatory box: All listed accounts belong to me, and my market data subscription may be used for them. You switch it off with one click in the same tab. The option is off by default. The switch exists only in the bridge, not on the web.

Licence. An IBKR market data subscription applies per person. It must not be used for accounts of other persons. With the box you confirm that all listed accounts belong to you and that your subscription may be used for them; the bridge cannot check this. This is not legal advice: the terms of IBKR apply.

What is shared and what is not.

Comes through the sourceStays per account
Bid/ask, price, Greeks, implied volatility, underlying prices, option chain and roll searchMargin, net liquidation value, cash, orders, holdings, daily P&L. The daily P&L can stay empty for accounts without their own subscription.

The better state wins per position. The bridge compares the account own price with the price of the source and takes the better one, ranked live, last price only, delayed, no price. On a tie the account keeps its own price. In the Live Cockpit the tooltip of the market data dot then reads "Price via account X". The same rule applies to underlying prices, per underlying: the price of the source replaces the account own price if it is better or the account has none, otherwise the account keeps its own.

Unrealized P&L. If the price of a position comes from the source, the bridge calculates the unrealized profit or loss itself: (price × multiplier − cost basis) × quantity. The price is the midpoint of bid and ask, otherwise the last price. This can differ from the TWS display by a few cents. If the calculated price differs strongly from the price IBKR reports itself (below half or above double), the IBKR value stays. On a tie of the states, bid/ask stay with the account itself; if IBKR has no price for the position, the price for the P&L still comes from the source. Worked examples are in the calculation sheet for the feature.

If the source drops out. If the connection of the source is lost, all accounts fall back to their own prices within one cycle, without an error message. When the source returns, the option applies again. Option chain and roll search run through the source while the option is active and the source is connected; while the option rests or the source is disconnected, they use the first connected account.

New account or different source. The confirmation only covers the accounts the dialog showed when you switched it on. If you connect another account later, the bridge reports it as a hint; the account keeps its own prices until you confirm the option again in the dialog. A change of the source, or a source that reports different account numbers, also needs a new confirmation.

Display on the bridge page. On the Live Bridge settings page a read-only status card shows whether the option is on or off, which source applies, when it was confirmed and for which accounts. The time is shown in server time. If more than one bridge is running, the card shows the state of the bridge that reported last. The state appears only after the bridge is updated to the current version.

Limits. The positions of all accounts share the data lines of the source (by default 100 per login at IBKR). Option chain and roll search take additional lines on the source and compete with the shared positions. The bridge interface is available in German only so far. The self-calculated P&L is a calculation aid, not investment advice.

14. Optionsanalyse im Live-Cockpit (GEX, Flip, Skew)

Der Reiter Optionsanalyse im Live-Cockpit rechnet aus der Optionskette eines Basiswerts Kennzahlen und Diagramme. Er braucht die Bridge, weil die Kette über sie aus deiner TWS kommt. Gib den Basiswert ein oder wähle ihn unter Meine Positionen. Die Rechnung läuft in deinem Browser, deine Kurse bleiben bei dir.

Was die Kennzahlen bedeuten

  • Net GEX (Gamma Exposure): Gamma mal Open Interest mal Kontraktgröße mal Kurs zum Quadrat mal 0,01, je Strike. Calls zählen positiv, Puts negativ. Die Zahl sagt, wie stark sich das Delta der Optionsbücher bei einer Kursbewegung von 1 % ändert.
  • Flip: der Kurs, an dem die aufsummierte GEX-Linie das Vorzeichen wechselt, der dem aktuellen Kurs am nächsten liegt. Gibt es im geladenen Strike-Bereich keinen Vorzeichenwechsel, steht dort „–“.
  • Max Γ: der Strike mit dem größten Betrag an GEX.
  • ATM-IV: implizite Volatilität am Strike nächst am Kurs, je Verfall.
  • P/C Open Interest: offene Puts geteilt durch offene Calls.
  • 25Δ-Skew: IV des Calls mit Delta +0,25 minus IV des Puts mit Delta −0,25, in Volatilitätspunkten.

Was sie nicht bedeuten

  • Das Vorzeichen folgt einer Annahme: Marktteilnehmer, die die Calls verkauft haben, sind kurz Gamma, die Puts-Verkäufer ebenso, und die Gegenseite ist die Börse. Wer tatsächlich auf welcher Seite steht, kennt die Optionskette nicht. Open Interest zeigt offene Kontrakte, nicht Käufer und Verkäufer.
  • Flip und Max Γ sind Konventionen, keine Messwerte und keine Kursziele. Sie sind kein Handelssignal und keine Anlageberatung.
  • Der Open-Interest-Stand wird börsentäglich fortgeschrieben, bei Verfällen am selben Tag ist er veraltet.
  • Die Kennzahlen gelten nur für die geladenen Verfälle und Strikes (Voreinstellung: bis 60 Tage, 20 Strikes um den Kurs). Ein enger Strike-Bereich kann einen Flip verdecken.

Fehlende Werte: Liefert die TWS für einen Kontrakt kein Gamma oder kein Open Interest, geht er nicht in die Summe ein. Wie viele Kontrakte bepreist sind, steht in der Kennzahlenleiste („bepreist x / y“) und in der Spalte „Quelle“ der Tabelle. Fehlende Greeks werden nie geschätzt.

Gewichtung: Nur die Karte „Dealer Exposure“ gewichtet auf Wunsch nach Restlaufzeit (Halbwertszeit 7 Tage). Alle übrigen Zahlen sind ungewichtet, damit die Summen in Kopf, Diagramm und Tabelle übereinstimmen.