IBKR Host and Ports Documentation


TWS connects to IBKR servers via port 4000 and 4001, if using SSL, and will not operate on any other port. If you are using a proxy server, it needs to be a transparent with both inbound and outbound ports open so that the TWS can function properly.

Below are listed all the gateways, along with the corresponding destination host that might be used by the TWS when you use our services, please allow access to those hosts.

The easiest way to test whether your connection needs any special setup or has been configured properly is to use IBKR's Dedicated Test page, which will provide a dynamic test of your network’s connection against our main trading and market data servers. If a “Success” response is returned, there is nothing more for you to do. If the response is “Failure”, we recommend adding an exception for the new hosts to your network’s configuration or review your changes.

Note: If your network uses a browser proxy, the test page can produce false positives. In this case, or if you are not sure what your network setup is, turn to your network administrators, who can perform ping and telnet tests to the hosts listed below to confirm compliance with the connectivity requirements.






















www.interactivebrokers.com.hk 443


www.ibkr.com.cn 443


www.interactivebrokers.com.au 443








www.ibgdr.com 80

1: Standard Communication: TCP Port 80 | SSL Communication: TCP Port 443.

2: This IB Server host does not support ping request.

Important Note: If you are accessing Client Portal from a corporate network where the Internet access is provided through a load balancing equipment, you may receive error messages about expired/invalid session and/or missing web content upon or after the login phase. The load balancer cycles your outbound connections over two or more network interfaces to equalize the network workload. Because of this mechanism, your HTTP requests reach our systems from different IP addresses, invalidating your Client Portal session. In this scenario, as a solution, please ask your network administrator or IT group to configure your machine/device for bypassing the load balancer. This will allow your session to remain valid and alive.










4000 / 4001






4000 / 4001






4000 / 4001






4000 / 4001






4000 / 4001

















4000 / 4001





3: Gateway dedicated to clients with accounts assigned to the Hong Kong server, but are physically connecting from Mainland China.




How to check and solve connectivity issues affecting the Trader Workstation (TWS)


The Trader Workstation (TWS) software needs to connect to our gateways and market data servers in order to work properly. Connectivity issues affecting your local network or your Internet Service Provider network may negatively affect the TWS functionality. In this article we will indicate how to test your connectivity using an automated connectivity test web page.


How to test the connectivity using the automated "IB Connectivity Test" web page?

1) Click on this link: http://www.interactivebrokers.com/cgi-bin/conn_test.pl 

2) Please wait until all the tests have been completed and results have been displayed. If you see "Success" as outcome for all tests, your connectivity to IB Servers is reliable at the present moment. No additional connectivity troubleshooting or configuration should be needed.

3) If you see "Fail" as outcome for one or more test/s, please click on the link "Fail" itself in order to display the "IB Network Troubleshooting Guide". That section will help you conduct some manual tests to identify the cause of the failure.

Note for Corporative environments and Proxy server users: the automated "Connectivity Test" page may return misleading results in case your machine is accessing the Internet through a Proxy server. This usually happens if you are connected to a company network. If this is your case, we kindly ask you to contact your Network Administrator or your IT Team and ask them to perform a manual connectivity tests towards the destination servers indicated in the table on the top of the IB automated "Connectivity Test" web page itself. The manual connectivity test should be conducted using destination TCP ports 4000 and 4001. Should they prefer to have the server list in another format or should they need to set up the firewall / IP Management rules, you can forward them this page.


Allocation of Partial Fills


How are executions allocated when an order receives a partial fill because an insufficient quantity is available to complete the allocation of shares/contracts to sub-accounts?



From time-to-time, one may experience an allocation order which is partially executed and is canceled prior to being completed (i.e. market closes, contract expires, halts due to news, prices move in an unfavorable direction, etc.). In such cases, IB determines which customers (who were originally included in the order group and/or profile) will receive the executed shares/contracts. The methodology used by IB to impartially determine who receives the shares/contacts in the event of a partial fill is described in this article.



Before placing an order CTAs and FAs are given the ability to predetermine the method by which an execution is to be allocated amongst client accounts. They can do so by first creating a group (i.e. ratio/percentage) or profile (i.e. specific amount) wherein a distinct number of shares/contracts are specified per client account (i.e. pre-trade allocation). These amounts can be prearranged based on certain account values including the clients’ Net Liquidation Total, Available Equity, etc., or indicated prior to the order execution using Ratios, Percentages, etc. Each group and/or profile is generally created with the assumption that the order will be executed in full. However, as we will see, this is not always the case. Therefore, we are providing examples that describe and demonstrate the process used to allocate partial executions with pre-defined groups and/or profiles and how the allocations are determined.

Here is the list of allocation methods with brief descriptions about how they work.

·         AvailableEquity
Use sub account’ available equality value as ratio. 

·         NetLiq
Use subaccount’ net liquidation value as ratio

·         EqualQuantity
Same ratio for each account

·         PctChange1:Portion of the allocation logic is in Trader Workstation (the initial calculation of the desired quantities per account).

·         Profile

The ratio is prescribed by the user

·         Inline Profile

The ratio is prescribed by the user.

·         Model1:
Roughly speaking, we use each account NLV in the model as the desired ratio. It is possible to dynamically add (invest) or remove (divest) accounts to/from a model, which can change allocation of the existing orders.




Basic Examples:


CTA/FA has 3-clients with a predefined profile titled “XYZ commodities” for orders of 50 contracts which (upon execution) are allocated as follows:

Account (A) = 25 contracts

Account (B) = 15 contracts

Account (C) = 10 contracts


Example #1:

CTA/FA creates a DAY order to buy 50 Sept 2016 XYZ future contracts and specifies “XYZ commodities” as the predefined allocation profile. Upon transmission at 10 am (ET) the order begins to execute2but in very small portions and over a very long period of time. At 2 pm (ET) the order is canceled prior to being executed in full. As a result, only a portion of the order is filled (i.e., 7 of the 50 contracts are filled or 14%). For each account the system initially allocates by rounding fractional amounts down to whole numbers:


Account (A) = 14% of 25 = 3.5 rounded down to 3

Account (B) = 14% of 15 = 2.1 rounded down to 2

Account (C) = 14% of 10 = 1.4 rounded down to 1


To Summarize:

A: initially receives 3 contracts, which is 3/25 of desired (fill ratio = 0.12)

B: initially receives 2 contracts, which is 2/15 of desired (fill ratio = 0.134)

C: initially receives 1 contract, which is 1/10 of desired (fill ratio = 0.10)


The system then allocates the next (and final) contract to an account with the smallest ratio (i.e. Account C which currently has a ratio of 0.10).

A: final allocation of 3 contracts, which is 3/25 of desired (fill ratio = 0.12)

B: final allocation of 2 contracts, which is 2/15 of desired (fill ratio = 0.134)

C: final allocation of 2 contract, which is 2/10 of desired (fill ratio = 0.20)

The execution(s) received have now been allocated in full.


Example #2:

CTA/FA creates a DAY order to buy 50 Sept 2016 XYZ future contracts and specifies “XYZ commodities” as the predefined allocation profile. Upon transmission at 11 am (ET) the order begins to be filled3 but in very small portions and over a very long period of time. At 1 pm (ET) the order is canceled prior being executed in full. As a result, only a portion of the order is executed (i.e., 5 of the 50 contracts are filled or 10%).For each account, the system initially allocates by rounding fractional amounts down to whole numbers:


Account (A) = 10% of 25 = 2.5 rounded down to 2

Account (B) = 10% of 15 = 1.5 rounded down to 1

Account (C) = 10% of 10 = 1 (no rounding necessary)


To Summarize:

A: initially receives 2 contracts, which is 2/25 of desired (fill ratio = 0.08)

B: initially receives 1 contract, which is 1/15 of desired (fill ratio = 0.067)

C: initially receives 1 contract, which is 1/10 of desired (fill ratio = 0.10)

The system then allocates the next (and final) contract to an account with the smallest ratio (i.e. to Account B which currently has a ratio of 0.067).

A: final allocation of 2 contracts, which is 2/25 of desired (fill ratio = 0.08)

B: final allocation of 2 contracts, which is 2/15 of desired (fill ratio = 0.134)

C: final allocation of 1 contract, which is 1/10 of desired (fill ratio = 0.10)


The execution(s) received have now been allocated in full.

Example #3:

CTA/FA creates a DAY order to buy 50 Sept 2016 XYZ future contracts and specifies “XYZ commodities” as the predefined allocation profile. Upon transmission at 11 am (ET) the order begins to be executed2  but in very small portions and over a very long period of time. At 12 pm (ET) the order is canceled prior to being executed in full. As a result, only a portion of the order is filled (i.e., 3 of the 50 contracts are filled or 6%). Normally the system initially allocates by rounding fractional amounts down to whole numbers, however for a fill size of less than 4 shares/contracts, IB first allocates based on the following random allocation methodology.


In this case, since the fill size is 3, we skip the rounding fractional amounts down.


For the first share/contract, all A, B and C have the same initial fill ratio and fill quantity, so we randomly pick an account and allocate this share/contract. The system randomly chose account A for allocation of the first share/contract.


To Summarize3:

A: initially receives 1 contract, which is 1/25 of desired (fill ratio = 0.04)

B: initially receives 0 contracts, which is 0/15 of desired (fill ratio = 0.00)

C: initially receives 0 contracts, which is 0/10 of desired (fill ratio = 0.00)


Next, the system will perform a random allocation amongst the remaining accounts (in this case accounts B & C, each with an equal probability) to determine who will receive the next share/contract.


The system randomly chose account B for allocation of the second share/contract.

A: 1 contract, which is 1/25 of desired (fill ratio = 0.04)

B: 1 contract, which is 1/15 of desired (fill ratio = 0.067)

C: 0 contracts, which is 0/10 of desired (fill ratio = 0.00)


The system then allocates the final [3] share/contract to an account(s) with the smallest ratio (i.e. Account C which currently has a ratio of 0.00).

A: final allocation of 1 contract, which is 1/25 of desired (fill ratio = 0.04)

B: final allocation of 1 contract, which is 1/15 of desired (fill ratio = 0.067)

C: final allocation of 1 contract, which is 1/10 of desired (fill ratio = 0.10)


The execution(s) received have now been allocated in full.


Available allocation Flags

Besides the allocation methods above, user can choose the following flags, which also influence the allocation:

·         Strict per-account allocation.
For the initially submitted order if one or more subaccounts are rejected by the credit checking, we reject the whole order.

·         “Close positions first”1.This is the default handling mode for all orders which close a position (whether or not they are also opening position on the other side or not). The calculation are slightly different and ensure that we do not start opening position for one account if another account still has a position to close, except in few more complex cases.

Other factor affects allocations:

1)      Mutual Fund: the allocation has two steps. The first execution report is received before market open. We allocate based onMonetaryValue for buy order and MonetaryValueShares for sell order. Later, when second execution report which has the NetAssetValue comes, we do the final allocation based on first allocation report.

2)      Allocate in Lot Size: if a user chooses (thru account config) to prefer whole-lot allocations for stocks, the calculations are more complex and will be described in the next version of this document.

3)      Combo allocation1: we allocate combo trades as a unit, resulting in slightly different calculations.

4)      Long/short split1: applied to orders for stocks, warrants or structured products. When allocating long sell orders, we only allocate to accounts which have long position: resulting in calculations being more complex.

5)      For non-guaranteed smart combo: we do allocation by each leg instead of combo.

6)      In case of trade bust or correction1: the allocations are adjusted using more complex logic.

7)      Account exclusion1: Some subaccounts could be excluded from allocation for the following reasons, no trading permission, employee restriction, broker restriction, RejectIfOpening, prop account restrictions, dynamic size violation, MoneyMarketRules restriction for mutual fund. We do not allocate to excluded accountsand we cancel the order after other accounts are filled. In case of partial restriction (e.g. account is permitted to close but not to open, or account has enough excess liquidity only for a portion of the desired position).




1.        Details of these calculations will be included in the next revision of this document.

2.        To continue observing margin in each account on a real-time basis, IB allocates each trade immediately (behind the scenes) however from the CTA and/or FA (or client’s) point of view, the final distribution of the execution at an average price typically occurs when the trade is executed in full, is canceled or at the end of day (whichever happens first).

3.       If no account has a ratio greater than 1.0 or multiple accounts are tied in the final step (i.e. ratio = 0.00), the first step is skipped and allocation of the first share/contract is decided via step two (i.e. random allocation).


SEC Tick Size Pilot Program FAQs

Tick Size Pilot ("TSP" or "Pilot") Program:

Under the TSP Program,  if IB receives any order in a Pilot Security that does not conform to the designated pricing increment (e.g., a limit price in a $0.01 increment for a security designated as trading $0.05 increments), IB will REJECT that order, subject to limited exceptions. IB strongly encourages a thorough review of your software or your vendor’s software to understand the criteria for what causes an order in a Pilot Security to be rejected to permit you or your vendor to make changes to correctly handle orders in Test Group Pilot Securities.


Q: What is the Tick Size Pilot?
A: On May 6, 2015 the SEC approved an amended TSP NMS Plan. The Pilot will be two years in length. Data collection for the Pilot began on April 4, 2016, 6 months prior to the implementation of the trading and quoting rules for the Pilot. Implementation of the trading and quoting rules for the Pilot will begin on October 3, 2016.

The Pilot will be conducted using a Control Group and three Test Groups where variations in quoting and trading rules exist between each group. Please see the TSP NMS Plan for additional information.


Q: Will the Pilot quoting and trading rules apply during regular market hours, pre-market hours and post market hours?
A: The Pilot rules apply during all operational hours (pre-market, regular hours, and post market hours trading).


Q: Will the Pilot quoting and trading rules apply to odd-lot and mixed-lot sizes?
A: Yes, the Pilot rules to all order sizes.


Q: Will orders in Control Group Securities be accepted in price increments of less than $0.05?
A: Yes, orders submitted in price increments of less than $0.05 will continue to be accepted in Control Group securities.


Q: Will orders in a Test Group 1, 2 or 3 Pilot Securities be accepted in price increments of less than $0.05?
A: No, unless covered by an exception, orders submitted in price increments of less than $0.05 will be rejected.


Q: Which Pilot Security Orders in Test Groups will Interactive Brokers accept at other than $0.05 increments?
        Midpoint orders with no explicitly stated limit price or impermissible offsets will be accepted
        VWAP orders which do not have an explicitly stated limit price or impermissible offsets will be accepted.
        Interactive Brokers will accept Exchange operated Retail Price Improvement orders as follows:
                  Test Group 1 in $0.001 price increments
                  Test Groups 2 and 3 in $0.005 price increments.


Q: Will there be any changes to the Opening / Closing processes on Exchanges?
A: Please refer to each of the exchange rules for details but in general there will be no changes to the Opening / Closing process. All orders entered and eligible to participate in Exchange Opening / Closing Cross will be accepted in increments of $0.05. The Exchanges will begin publishing all quotes in increments of $0.05; however, Net Order Imbalance Indicator prices may be published in increments of $0.025.


Q: What will happen to my GTC order that was placed prior to October 3rd in a Pilot Stock that was priced in impermissible tick increments?
A: Interactive Brokers will adjust outstanding limit and stop GTC orders in Pilot stocks in Test Groups that are not in permissible tick increments (e.g., a buy limit order at $5.01 will be adjusted to $5.00 and a sell limit at $5.01 adjusted to $5.05).


Q: What will happen to my GTC order placed after October 3rd that was placed and accepted in a nickel tick increment but the Pilot Stock moves from a Test Group to the Control Group which permits non-nickel increments?
A: The GTC order will automatically be able to be revised by the user in non-nickel increments on the date the Pilot stock moves from the Test Group to the Control Group. Similarly, if a stock gets added to Test Group due to a corporate action, IB will cancel the GTC order if it is priced in impermissible increments.


Q: Where can I find out more information?

A: See KB2752 or the FINRA website for additional details regarding the Pilot Program: http://www.finra.org/industry/tick-size-pilot-program

Locating Portfolio Page

The portfolio page allows you to view and montor your current portfolio at the individual position level, including psoition quantity, market value, current bid-ask and profit/loss. Instructions for locating the page vary by trading platform and are outlined below:

TWS Classic - First check to see if you have detached the page from the main window (an option provided by right clicking on the tab). If this is the case, the page will be open but hidden behind the main window. Minimize the main window by clicking on the minimize icon located in the upper-right hand corner of the screen. If you are able to then view the portfolio page and wish to reattach it, simply right click on the tab to open the menu and select the "Attach Page" option.

If the page is not detached, select the "Account Window" option from the top menu bar and then "Portfolio Window" menu option.


Mosiac - from the Montor window, click on the small + sign located to the right of any existing monitor tabs. Then select "Portfolio" and this page will reappear.



Additional Information Regarding the Use of Stop Orders

U.S. equity markets occasionally experience periods of extraordinary volatility and price dislocation. Sometimes these occurrences are prolonged and at other times they are of very short duration. Stop orders may play a role in contributing to downward price pressure and market volatility and may result in executions at prices very far from the trigger price. 

Investors may use stop sell orders to help protect a profit position in the event the price of a stock declines or to limit a loss. In addition, investors with a short position may use stop buy orders to help limit losses in the event of price increases. However, because stop orders, once triggered, become market orders, investors immediately face the same risks inherent with market orders – particularly during volatile market conditions when orders may be executed at prices materially above or below expected prices.
While stop orders may be a useful tool for investors to help monitor the price of their positions, stop orders are not without potential risks.  If you choose to trade using stop orders, please keep the following information in mind:
·         Stop prices are not guaranteed execution prices. A “stop order” becomes a “market order” when the “stop price” is reached and the resulting order is required to be executed fully and promptly at the current market price. Therefore, the price at which a stop order ultimately is executed may be very different from the investor’s “stop price.” Accordingly, while a customer may receive a prompt execution of a stop order that becomes a market order, during volatile market conditions, the execution price may be significantly different from the stop price, if the market is moving rapidly.
·         Stop orders may be triggered by a short-lived, dramatic price change. During periods of volatile market conditions, the price of a stock can move significantly in a short period of time and trigger an execution of a stop order (and the stock may later resume trading at its prior price level). Investors should understand that if their stop order is triggered under these circumstances, their order may be filled at an undesirable price, and the price may subsequently stabilize during the same trading day.
·         Sell stop orders may exacerbate price declines during times of extreme volatility. The activation of sell stop orders may add downward price pressure on a security. If triggered during a precipitous price decline, a sell stop order also is more likely to result in an execution well below the stop price.
·         Placing a “limit price” on a stop order may help manage some of these risks. A stop order with a “limit price” (a “stop limit” order) becomes a “limit order” when the stock reaches or exceeds the “stop price.” A “limit order” is an order to buy or sell a security for an amount no worse than a specific price (i.e., the “limit price”). By using a stop limit order instead of a regular stop order, a customer will receive additional certainty with respect to the price the customer receives for the stock. However, investors also should be aware that, because a sell order cannot be filled at a price that is lower (or a buy order for a price that is higher) than the limit price selected, there is the possibility that the order will not be filled at all. Customers should consider using limit orders in cases where they prioritize achieving a desired target price more than receiving an immediate execution irrespective of price.
·         The risks inherent in stop orders may be higher during illiquid market hours or around the open and close when markets may be more volatile. This may be of heightened importance for illiquid stocks, which may become even harder to sell at the then current price level and may experience added price dislocation during times of extraordinary market volatility. Customers should consider restricting the time of day during which a stop order may be triggered to prevent stop orders from activating during illiquid market hours or around the open and close when markets may be more volatile, and consider using other order types during these periods.
·         In light of the risks inherent in using stop orders, customers should carefully consider using other order types that may also be consistent with their trading needs.









1)    商業及業務用途

a)    您是否出於業務需要、或代表其他商業實體接收財經信息(包括關於證券、商品及其他金融產品的新聞或價格數據)?


b)    您是否代表公司、合夥企業、專業信託機構、專業投資俱樂部或其他實體開展證券、商品或外匯交易?


c)    您是否就以下事項與其他實體或個人達成過協議:(a) 分享交易活動的盈利,或(b)獲取交易酬勞?


d)    您是否通過交易換取辦公場所、設備或其他福利?或者,您是否擔任任意個人、企業或商業實體的財務顧問?


2)    擔任職務

a)    目前您是否擔任任何投資顧問或經紀交易商的職務?


b)    您是否擔任證券、商品或外匯方面的資產管理人?         


c)     目前您是否在工作中使用此類財經信息,或將其用於管理您的雇主或公司的資產?


d)    您交易時是否使用了其他個人或實體的資金?


3)    向其他任意實體傳播、再發布或提供數據

a)    您是否以任意方式向任意第三方傳播、再傳播、發布或提供任何從服務中獲得的財經信息?


4)    合資格的專業證券/期貨交易商

a)    目前,您是否為任意證券機構、商品或期貨市場的註冊或合資格的專業證券交易員,或為任意國家交易所、監管機構、專業協會或公認專業機構的投資顧問?i, ii
是☐             否☐

i) 監管機構的例子包括但不限於:

  • 美國證券交易委員會(SEC)
  • 美國商品期貨交易委員會(CFTC)
  • 英國金融服務局(FSA)
  • 日本金融服務局(JFSA)

ii) 自律組織(SROs)的例子包括但不限於:

  • 美國紐約證券交易所(NYSE)
  • 美國金融業監管局(FINRA)
  • 瑞士聯邦金融局(VQF)




  1. 您的資金
  2. 設置您的賬戶以進行交易
  3. 如何交易
  4. 在全球範圍進行交易
  5. 拓展您IB經驗的五個要點


1. 您的資金
首先,通過您的賬戶管理 > 資金 > 資金轉賬 > 轉賬類型:“存款”創建一個存款通知(如何創建存款通知)。第二步,通知您的銀行進行電匯轉賬,在存款通知中提供詳細銀行信息。
通過您的賬戶管理 > 資金 > 資金轉賬 > 轉賬類型:“取款”創建一個取款指令(如何創建取款指令
a) 資金轉賬需要1至4個工作日。
b) 存款通知缺失。您必須通過賬戶管理創建存款通知并向客戶服務發送一條咨詢單。
c) 修改詳情缺失。轉賬詳情中缺失您的姓名和IB賬戶號碼。您必須聯繫您的銀行索取完整的修改詳情。
d) IB發起的ACH存款7個工作日內限額為10萬美元。如果您開立的是初始要求為11萬美元的投資組合保證金賬戶,最好選擇電匯存款以減少您第一筆交易的等待時間。如果選擇ACH,會需要等待近2周時間,或者可以選擇臨時升級至RegT。
a) 資金轉賬需要1至4個工作日。
b) 被拒。超出最大取款限額。請檢查您賬戶的現金餘額。注意,出於監管要求,存入資金時會有三天置存期,之後才可以被取出。
c) 您的銀行退回了資金。可能是因為接收銀行賬戶與匯款銀行賬戶名稱不匹配。


2. 設置您的賬戶以進行交易


3. 如何交易
魔方TWS:直觀可用性, 簡便的交易准入,定單管理,自選列表與圖表全部在一個窗口呈現。
基本描述與信息 / 快速入門指南 / 用戶指南
互動課程:TWS基礎 / TWS設置 / 魔方TWS
如何下單交易:標準模式TWS視頻 / 魔方TWS視頻
要求:如何安裝適用於Windows的Java / 如何安裝適用於MAC的Java / 需打開端口4000和4001
登錄TWS / 下載TWS
快速入門指南 / 網絡交易者用戶指南
我們的移動解決方案可供您隨時隨地用您的IB賬戶進行交易。IB TWS iOS版和IB TWS BlackBerry版是為這些型號定制設計的,而通用的移動交易者支持大多數其他職能手機。
定單類型 可用定單類型與描述 / 視頻 / 課程 / 用戶指南
模擬交易 基本描述與信息 / 如何獲得模擬交易賬戶
一旦您的模擬交易賬戶創建成功,您便可用模擬交易賬戶分享您真實賬戶的市場數據:賬戶管理 > 管理賬戶 > 設置 > 模擬交易

4. 在全球範圍進行交易
A) 貨幣轉換。
B) IB保證金貸款。(對現金賬戶不可用)


5. 拓展您IB經驗的五個要點
1. 合約搜索
2. IB知識庫
3. 賬戶管理
登錄賬戶管理 / 賬戶管理快速入門指南 / 賬戶管理用戶指南
4. 安全登錄系統
為向您提供最高級別的在線安全,盈透證券推出了安全登錄系統(SLS),通過安全登錄系統訪問賬戶需要進行雙因素驗證。雙因素驗證旨在于登錄時採用兩項安全因素確認您的身份:1) 您的用戶名與密碼組合;和2) 生成隨機、一次性安全代碼的安全設備。因為登錄賬戶需要既知曉您的用戶名/密碼又持有實物安全設備,所以參加安全登錄系統基本上可以杜絕除您以外的其他任何人訪問您賬戶的可能性。
如何激活您的安全設備 / 如何獲取安全代碼卡 / 如何退還安全設備
5. 報表與報告


How to start multiple TWS sessions on a Mac


By default macOS does not allow the user to run multiple sessions of the same application. The following workaround can overcome this limitation in case you need to run the Trader Workstation for more than one user.


  • In case running different versions of the TWS is suitable to your needs, please follow the instructions on Procedure 1

  • In case you need multiple sessions of the same TWS version, please follow the instructions on Procedure 2


Procedure 1

1) Open the web page ibkr.com

2) Navigate to the menu Technology TWS Software.

3) First download and install one of the auto-updating TWS versions (TWS LATEST or TWS according to your preference).

4) Once you have completed the installation, download and install one of the offline versions (OFFLINE TWS LATEST or OFFLINE TWS according to your preference).

5) You will then see on your Desktop two different Trader Workstation icons. You can use the first shortcut to start the first TWS session and the second one to start the additional one (see Figure 1.). Note: the link containing the version number in the name is the OFFLINE version. This will be a version that needs periodical manual updates.

Figure 1.





Procedure 2

1) Launch the first session of the Trader Workstation using the TWS icon present on your Desktop. If you still do not have any Trader Workstation icon, please go to the web page ibkr.com and click on the menu Technology > TWS Software. Then download and install one of the TWS versions displayed.

2) Open the Finder and click on Applications on the left side menu. Then select Utilities and then launch Terminal (see Figure 2.).

Figure 2.

3) The Terminal will appear on the screen and will point to the home folder of your current macOS user. Then enter the commands listed below (see Figure 3.) on your Terminal. After each one, press ENTER on your keyboard.

cd Applications

cd Trader\ Workstation

open -n Trader\ Workstation.app

Figure 3.

4) The login window for your second TWS session will then appear on your Desktop. You can now close the Terminal.


Note: the procedure above presumes that the TWS executable is located in the following path: users/yourusername/home/Applications/Trader Workstation/Trader Workstation.app

If at the time you installed the TWS, you selected to install it for all the users of your system, then the TWS executable will be located here:

/Applications/Trader Workstation/Trader Workstation.app

and therefore you would need to issue the following commands in the Terminal:

cd /Applications

open -n Trader\ Workstation.app


How to overcome the warning message "The signature of the file is corrupt or invalid"


This article describes how to overcome the warning message which you might receive when you download the Trader Workstation or IB Gateway installation packages.


Since a Microsoft update has modified the signature validation mechanisms, the Trader Workstation and IB Gateway installation packages might be reported as having an invalid or corrupt signature, although their signature is indeed intact and absolutely valid.

If you are using Microsoft Edge as browser please follow all the steps below. If you are using any other browser start directly from point 3.


1. As soon as the installation package has been completely downloaded, you will notice on the bar at the bottom of your browser frame the warning message "The signature of the file tws-... is corrupt or invalid". Please click on the button View Downloads to open the DOWNLOADS panel. 


2. Right click on the filename and select Run anyway.



3. Once the installer has been launched, the SmartScreen filter will display an additional warning message. Click on the link More Info.


4. Now click the button Run Anyway to allow the file execution. The installation will then start.

Syndicate content