IBKR Live Bridge
Real-time Greeks, IV and bid/ask in straderz.com
У цьому розділі
1. Що таке IBKR Live Bridge?
Як це працює
Live Bridge — це невеликий локальний додаток на Вашому ПК, який спілкується з запущеним TWS або IB Gateway через IBKR API та надсилає зашифровані знімки на straderz.com. Ваш логін IBKR залишається повністю на Вашому пристрої.
3. Вимоги
- Windows 10 або 11 — версія для Mac готується
- Обліковий запис IBKR з запущеним TWS або IB Gateway
- API IBKR увімкнено в налаштуваннях TWS
- Обліковий запис sTraderZ.com
Покрокова інструкція
Встановлення
2. Двічі клацніть
straderz-bridge.exe. Bridge працює у фоновому режимі — значок у системному лотку.3. Запустіть TWS або IB Gateway паралельно.
Прив'язка до straderz.com
6. Мультирахунок: особистий, бізнес, фундація паралельно
Запустіть кілька екземплярів IB Gateway паралельно на різних портах. Bridge автоматично виявляє всі шлюзи та позначає кожну позицію відповідним рахунком.
Підписка на ринкові дані та відкладені котирування
8. Робота
Bridge працює у фоні з низьким споживанням RAM. Автоматичне оновлення при запуску. Для зупинки: клацніть правою кнопкою значок у лотку → «Вийти». Для відключення: Рахунки → Live Bridge → «Відключитися».
Усунення несправностей
«Прив'язка не вдалася»: Токен прострочений — виконайте прив'язку знову.
Лише відкладені котирування: Немає підписки на ринкові дані IBKR.
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.
| TWS | IB Gateway | |
|---|---|---|
| Purpose | Trading 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. |
| Resources | Heavy, needs a lot of memory and CPU | Light, runs quietly in the background |
| Always-on use | Logs out regularly, then needs a new login | Built for always-on use, with automatic restart |
| API port | 7497 paper, 7496 live | 4002 paper, 4001 live |
| Enable the API | Edit → Global Configuration → API → Settings | Configure → Settings → API → Settings |
| Download | interactivebrokers.com | Stable (recommended) or Latest |
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 rolled | Cannot 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).
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.
What is shared and what is not.
| Comes through the source | Stays per account |
|---|---|
| Bid/ask, price, Greeks, implied volatility, underlying prices, option chain and roll search | Margin, 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.
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.