Ib gateway что это

Обновлено: 18.05.2024

Click the button below if you would like to learn more about our mobile trading solutions.

IB Gateway - Windows

IB Gateway Installation Instructions


Click your Downloads folder to see the list of available files, and double-click the ibg-.dmg file to open it.
If the Downloads folder is not in your dock, you may locate it under Macintosh HD > Users > yourusername > Downloads





Double-click the Trader Workstation icon to initiate installation.



Click “Open” to confirm and start the installation.
A proprietary Java Runtime Environment is included with this package and may take a minute to install – please wait!
The Setup Wizard will display when the installation is complete.



Use the Setup Wizard to complete the installation. When the installation is complete, an API icon is installed on your desktop.
You can also launch the IB Gateway software from the Trader Workstation folder located under Macintosh HD > Users > yourusername > Applications > Trader Workstation.



IB Gateway - Mac

IB Gateway Installation Instructions

These instructions may vary slightly based on your personal settings.

Step 1

Click the button to download the Latest version of the IB Gateway.

TWS Install for Linux Screen

a.) Open Terminal (Ctrl+Alt+T on most distributions).

b.) Navigate to the directory where the installer was downloaded and confirm it is installed:

$ ls -l

c.) Make the installer executable by typing: "chmod u+x" before the filename and confirm:

$ chmod u+x ibgateway-stable-standalone-linux-x64.sh

$ ls -l

d.) Run the installer to start the wizard by typing "./" before the file name:

$ ./ibgateway-stable-standalone-linux-x64.sh

Step 2

Use the wizard to install Standalone TWS

TWS Install for Linux Screen

Click the "Next" button on the Setup Wizard to extract files.

TWS Install for Linux Screen

TWS Install for Linux Screen

Check the "Run IB Gateway" checkbox and click the "Finish" button to launch the IB Gateway and log in now.

TWS Install for Linux Screen

A new IB Gateway icon is now on your desktop. Going forward to login to the IB Gateway, double-click the icon and enter your username and password.

IB Gateway - Linux

IB Gateway - Linux

IB Gateway - Windows

IB Gateway - Windows

IB Gateway Installation Instructions

These instructions may vary slightly based on your personal settings.

Step 1

Click the button to download the Latest version of the IB Gateway.

TWS Install for Linux Screen

a.) Open Terminal (Ctrl+Alt+T on most distributions).

b.) Navigate to the directory where the installer was downloaded and confirm it is installed:

$ ls -l

c.) Make the installer executable by typing: "chmod u+x" before the filename and confirm:

$ chmod u+x ibgateway-stable-standalone-linux-x64.sh

$ ls -l

d.) Run the installer to start the wizard by typing "./" before the file name:

$ ./ibgateway-stable-standalone-linux-x64.sh

Step 2

Use the wizard to install Standalone TWS

TWS Install for Linux Screen

Click the "Next" button on the Setup Wizard to extract files.

TWS Install for Linux Screen

TWS Install for Linux Screen

Check the "Run IB Gateway" checkbox and click the "Finish" button to launch the IB Gateway and log in now.

TWS Install for Linux Screen

A new IB Gateway icon is now on your desktop. Going forward to login to the IB Gateway, double-click the icon and enter your username and password.

IB GATEWAY SOFTWARE

Click the button below if you would like to learn more about our mobile trading solutions.

IB Gateway Installation Instructions

These instructions may vary slightly based on your personal settings.

Step 1

Click the button to download the Latest version of the IB Gateway.

TWS Install for Linux Screen

a.) Open Terminal (Ctrl+Alt+T on most distributions).

b.) Navigate to the directory where the installer was downloaded and confirm it is installed:

$ ls -l

c.) Make the installer executable by typing: "chmod u+x" before the filename and confirm:

$ chmod u+x ibgateway-stable-standalone-linux-x86.sh

$ ls -l

d.) Run the installer to start the wizard by typing "./" before the file name:

$ ./ibgateway-stable-standalone-linux-x86.sh

Step 2

Use the wizard to install Standalone TWS

TWS Install for Linux Screen

Click the "Next" button on the Setup Wizard to extract files.

TWS Install for Linux Screen

TWS Install for Linux Screen

Check the "Run IB Gateway" checkbox and click the "Finish" button to launch the IB Gateway and log in now.

TWS Install for Linux Screen

A new IB Gateway icon is now on your desktop. Going forward to login to the IB Gateway, double-click the icon and enter your username and password.

IB Gateway Installation Instructions


Click your Downloads folder to see the list of available files, and double-click the ibg-.dmg file to open it.
If the Downloads folder is not in your dock, you may locate it under Macintosh HD > Users > yourusername > Downloads





Double-click the Trader Workstation icon to initiate installation.



Click “Open” to confirm and start the installation.
A proprietary Java Runtime Environment is included with this package and may take a minute to install – please wait!
The Setup Wizard will display when the installation is complete.



Use the Setup Wizard to complete the installation. When the installation is complete, an API icon is installed on your desktop.
You can also launch the IB Gateway software from the Trader Workstation folder located under Macintosh HD > Users > yourusername > Applications > Trader Workstation.



Блог компании Marketstat | Алготрейдинг на Америке с Interactive Brokers – Взгляд Изнутри. Часть 1.

Еще

Торгую на Американском фондовом рынке с Interactive Brokers (IB) более трех лет на сегодняшний день используя разные стратегии. До недавнего времени все это было вручную, внутридневка и средний срок. Моя торговая жизнь изменилась, когда я, закончив курсы по созданию и алгоритмизации торговых систем с использованием платформы TSLab, решила выйти на Америку со своими роботами.

Вооружившись знаниями с курса по поиску рыночных закономерностей и отточив навык по нахождению смещения вероятности в своей торговой системе, я создала портфель из десятка роботов и горела нетерпением запустить их на своем боевом счету у Interactive Brokers. В процессе обучения на курсе я проходила практику на Российском срочном рынке в течение нескольких месяцев, поэтому сложности как настроить и запустить агентов в платформе TSLab не возникало. Меня интересовало другое- как сконнектировать TSLab с платформой брокера Trader Workstation (TWS), так как она не является особо user-friendly, достаточно громоздка и не совсем интуитивно понятна, а для алготрейдинга нужно только торговать через эту платформу. Вот тут-то и оказалось, что кроме краткого руководства по подключению TSLab к брокеру IB особо ничего и нет. Перелопатив сотни страниц интернета, русско- и англоязычных блогов и сайтов, я нашла часть необходимой информациии, а недостающая часть была получена методом тыка, путем проб и ошибок в процессе запуска и работы на реале.

Поэтому я решила обобщить в данном цикле статей весь наработанный материал и свой опыт по выходу на реал на Америке со своими роботами из TSLab через IB. Буду рада, если данная статья поможет кому-то сэкономить время, нервы и деньги при подобном процессе.

Для удобства я разбила весь материал на три части:

Часть 1- Особенности при подготовке к запуску TSLab на реал с IB

Часть 2- Непосредственная работа терминалов TSLab и TWS

Часть 3- Часто встречающиеся проблемы

Отмечу, что здесь речь пойдет о реальном счете на IB,(не демо) и полнофункциональном коннекторе TSLab,(не тестовый режим).

Сразу оговорюсь, чего не будет в этой статье-не будет информации о том, как открыть счет у IB, как формировать свой портфель, как управлять рисками и как создавать роботов в TSLab для Америки. Все это отдельная тема, и если будет значительный интерес, то могу написать об этом дополнительно.

В этой статье я рассмотрю основные моменты подготовки и запуска уже готовых роботов, созданных в TSLab на реал с IB, с которыми я столкнулась. Итак, все по порядку.

Часть 1. Особенности при подготовке к запуску TSLabна реал с IB

Trader Workstation(TWS), платформа брокера IB, через которую нужно будет вести торговлю и коннектировать с TSLab. Она устанавливается отдельно на той машине/ПС, откуда будет вестиcь торговля, скачивается версия для десктопа, не онлайновская. Занимает примерно 700 МВ. Платформа TSLab при этом занимает около 500 МВ, и в процессе работы до конца сессии еще накачивает примерно столько же. Это надо будет учитывать при выборе памяти (RAM), если вы размещаете свои скрипты на отдельном сервере-VPS (Virtual Private Server)

Market Data Subscriptions. Для начала работы необходимо иметь подписку у брокера на реальные маркет данные- Market Data Subscriptions. Делается это через

Account Management>User Settings> Market Data Subscriptions.

Особенностью IB является не очень удобная система самой подписки- плата взимается за целый календарный месяц независимо от дня подключения. т.е если вы хотите подключить реальные маркет данные в середине месяца, например 16 числа, то платить придется за целый месяц до первого числа следующего месяца.

APIID- для меня это был не совсем понятный момент, какой API client ID нужно иметь и где его брать. Оказалось, все намного проще. Это делается в настройках

TWS – File> Global Configuration>API> Settings > Master API client.

Выбираем любое не отрицательное число и вписываем туда. Это же число затем будем использовать при настройке поставщика в TSLab.

В этом же блоке проверяем Socket port- должен быть 7496, иначе работать не будет.

И я также вбила данные IP co своего VPS в строчку Trusted IPs

Автоматическое закрытие платформы TWS и ее блокирование после определенного времени неактивности. Для этого опять идем в

File> Global Configuration> Configuration>Lock and Exit и устанавливаем следующее:

  • never lock Trader Workstation, чтобы платформа постоянно была открыта и не блокировалась в течении рабочей сессии

И вбиваем нужное время для автоматического выхода из программы- Set Auto Log Off Time

После этого нажимаем «Apply»

Автоматический вход в платформу TWS -стоит отметить, что в базовой конфигурации он не предусмотрен в целях безопасности, поэтому каждый день до начала сессии нужно заходить на свой VPS сервер/ту машину, где она установлена и запускать ее вручную до начала работы сессиии. Если у вас в TSLab стоит автоматическое подключение к поставщику по расписанию в менеджере команд, то запускать TWS нужно до начала времени подключения.

IB использует двойной метод идентификации, сначала по логину и паролю, а затем по комбинации цифр и букв с карты-ключа IB, которая выдается при открытии счета. При желании в настройках можно отказаться от двойного метода идентификации:

Account Management> Manage Account>Security>Secure Login System>SLS Opt Out

После того, как эта фунция будет активирована, можно будет использовать только логин и пароль и тогда уже настроить автоматический вход в программу. Я сама этого пока не делала, предпочитаю более безопасный вход вручную.

Теперь о некоторых особенностях в настройках поставщика в TSLab. При создании поставщика данных необходимо обратить внимание на следующее:

Алготрейдинг на Америке с Interactive Brokers – Взгляд Изнутри. Часть 1.

Счет — это ваш номер счета у IB.

API ID-это тот номер, о котором я писала в п 4. Вбиваем то же число, которе выбрали для Master API client в TWS.

Адрес — вбиваем IP той машины, на которой установлены TSLab и TWS

Порт- должен быть обязательно 7496, как и в п 4.

Локальное время- обязательно поставить галочку

Исп. SMARTвсегда — тоже ставим галочку, это нужно для API торговли и правильного расчета комиссии.

Остальные настройки- по желанию.

Особенностью настройки агента в TSLabявляется выбор тикера в источнике скрипта или агента. Тикер для торговли акциями вбивается вручную, а не выбирается из списка меню, как это например, при торговле на рынке FORTS. При первом запуске TSLab не имеет ни одного тикера в памяти и поэтому его нужно занести туда через платформу TWS.

Для этого в TWS создается любой лимитный ордер с нужным тикером, я, например, делаю это по 1 долл за акцию вне рабочей сессии. Затем после того, как связь с брокером установлена в менеджере поключений TSLab, можно запускать скрипт или агента и выбирать нужный источник как обычно и тогда появится выбранный тикер. После этого, не раньше, лимитный ордер у брокера можно удалить. Все набранные тикеры потом сохраняются в памяти TSLab и второй раз один и тот же тикер вводить не нужно, только новые.

Если вы все правильно настроили, то при подключении TSLab к TWS у вас в платформе брокера должна высветиться такая табличка при нажатии на зеленый символ DATA в правом верхнем углу. Внизу можно увидеть ваши IP данные с портом 7496 и API Client ID и статус- Аccepted.

Алготрейдинг на Америке с Interactive Brokers – Взгляд Изнутри. Часть 1.

В следующей статье, Часть 2 я продолжу рассказ о непосредственной работе обеих платформ в реальном режиме.

Надеюсь, этот материал был полезным. Буду признательна за комментарии и пожелания.

IB Gateway Installation Instructions


Click your Downloads folder to see the list of available files, and double-click the ibg-.dmg file to open it.
If the Downloads folder is not in your dock, you may locate it under Macintosh HD > Users > yourusername > Downloads





Double-click the Trader Workstation icon to initiate installation.



Click “Open” to confirm and start the installation.
A proprietary Java Runtime Environment is included with this package and may take a minute to install – please wait!
The Setup Wizard will display when the installation is complete.



Use the Setup Wizard to complete the installation. When the installation is complete, an API icon is installed on your desktop.
You can also launch the IB Gateway software from the Trader Workstation folder located under Macintosh HD > Users > yourusername > Applications > Trader Workstation.



IB Gateway Installation Instructions

These instructions may vary slightly based on your personal settings.

Step 1

Click the button to download the Latest version of the IB Gateway.

TWS Install for Linux Screen

a.) Open Terminal (Ctrl+Alt+T on most distributions).

b.) Navigate to the directory where the installer was downloaded and confirm it is installed:

$ ls -l

c.) Make the installer executable by typing: "chmod u+x" before the filename and confirm:

$ chmod u+x ibgateway-stable-standalone-linux-x86.sh

$ ls -l

d.) Run the installer to start the wizard by typing "./" before the file name:

$ ./ibgateway-stable-standalone-linux-x86.sh

Step 2

Use the wizard to install Standalone TWS

TWS Install for Linux Screen

Click the "Next" button on the Setup Wizard to extract files.

TWS Install for Linux Screen

TWS Install for Linux Screen

Check the "Run IB Gateway" checkbox and click the "Finish" button to launch the IB Gateway and log in now.

TWS Install for Linux Screen

A new IB Gateway icon is now on your desktop. Going forward to login to the IB Gateway, double-click the icon and enter your username and password.

IB GATEWAY SOFTWARE

Click the button below if you would like to learn more about our mobile trading solutions.

IB Gateway for Windows

Windows: 64 bit | File Size: 115MB | Version | Release Notes

Step One: Click the Download button to begin installing IB Gateway and to see download/install instructions.

Step Two: When the installation is complete, click the IB Gateway icon on your desktop to log in.

IB Gateway for Mac

Mac OS X: 64 bit | File Size: 115MB | Version | Release Notes

Step One: Click the Download button to begin installing IB Gateway and to see download/install instructions.

Step Two: When the installation is complete, click the IB Gateway icon on your desktop to log in.

IB Gateway Installation Instructions


Click the ibg-.exe download in the bottom left corner of the Chrome browser window.



Click the "Run" button to start the download.



Use the Setup Wizard to complete the installation.
When the installation is complete, an API icon is installed on your desktop.



IB Gateway Installation Instructions


Click the ibg-.exe download in the bottom left corner of the Chrome browser window.



Click the "Run" button to start the download.



Use the Setup Wizard to complete the installation.
When the installation is complete, an API icon is installed on your desktop.



IB Gateway for Linux

Linux 64 bit | File Size: 115MB | Version | Release Notes

Step One: Click the Download button to begin installing IB Gateway and to see download/install instructions.

Step Two: When the installation is complete, click the IB Gateway icon on your desktop to log in.

IB Gateway Installation Instructions


Click the ibg-.exe download in the bottom left corner of the Chrome browser window.



Click the "Run" button to start the download.



Use the Setup Wizard to complete the installation.
When the installation is complete, an API icon is installed on your desktop.



The risk of loss in online trading of stocks, options, futures, currencies, foreign equities, and fixed Income can be substantial.

Options involve risk and are not suitable for all investors. For more information read the Characteristics and Risks of Standardized Options, also known as the options disclosure document (ODD). Alternatively, call 312-542-6901 to receive a copy of the ODD. Before trading, clients must read the relevant risk disclosure statements on our Warnings and Disclosures page. Trading on margin is only for experienced investors with high risk tolerance. You may lose more than your initial investment. For additional information about rates on margin loans, please see Margin Loan Rates. Security futures involve a high degree of risk and are not suitable for all investors. The amount you may lose may be greater than your initial investment. Before trading security futures, read the Security Futures Risk Disclosure Statement. Structured products and fixed income products such as bonds are complex products that are more risky and are not suitable for all investors. Before trading, please read the Risk Warning and Disclosure Statement.

IB Gateway Installation Instructions


Click the ibg-.exe download in the bottom left corner of the Chrome browser window.



Click the "Run" button to start the download.



Use the Setup Wizard to complete the installation.
When the installation is complete, an API icon is installed on your desktop.



IB Gateway Installation Instructions


Click the ibg-.exe download in the bottom left corner of the Chrome browser window.



Click the "Run" button to start the download.



Use the Setup Wizard to complete the installation.
When the installation is complete, an API icon is installed on your desktop.



IB Gateway for Linux

Linux 32 bit | File Size: 115MB | Version | Release Notes

Step One: Click the Download button to begin installing IB Gateway and to see download/install instructions.

Step Two: When the installation is complete, click the IB Gateway icon on your desktop to log in.

IB Gateway Installation Instructions

These instructions may vary slightly based on your personal settings.

Step 1

Click the button to download the Latest version of the IB Gateway.

TWS Install for Linux Screen

a.) Open Terminal (Ctrl+Alt+T on most distributions).

b.) Navigate to the directory where the installer was downloaded and confirm it is installed:

$ ls -l

c.) Make the installer executable by typing: "chmod u+x" before the filename and confirm:

$ chmod u+x ibgateway-stable-standalone-linux-x64.sh

$ ls -l

d.) Run the installer to start the wizard by typing "./" before the file name:

$ ./ibgateway-stable-standalone-linux-x64.sh

Step 2

Use the wizard to install Standalone TWS

TWS Install for Linux Screen

Click the "Next" button on the Setup Wizard to extract files.

TWS Install for Linux Screen

TWS Install for Linux Screen

Check the "Run IB Gateway" checkbox and click the "Finish" button to launch the IB Gateway and log in now.

TWS Install for Linux Screen

A new IB Gateway icon is now on your desktop. Going forward to login to the IB Gateway, double-click the icon and enter your username and password.

IB Gateway for Windows

Windows: 64 bit | File Size: 115MB | Version | Release Notes

Step One: Click the Download button to begin installing IB Gateway and to see download/install instructions.

Step Two: When the installation is complete, click the IB Gateway icon on your desktop to log in.

IB Gateway for Windows

Windows: 32 bit | File Size: 115MB | Version | Release Notes

Step One: Click the Download button to begin installing IB Gateway and to see download/install instructions.

Step Two: When the installation is complete, click the IB Gateway icon on your desktop to log in.

IB Gateway Installation Instructions


Click the ibg-.exe download in the bottom left corner of the Chrome browser window.



Click the "Run" button to start the download.



Use the Setup Wizard to complete the installation.
When the installation is complete, an API icon is installed on your desktop.



The risk of loss in online trading of stocks, options, futures, currencies, foreign equities, and fixed Income can be substantial.

Options involve risk and are not suitable for all investors. For more information read the Characteristics and Risks of Standardized Options, also known as the options disclosure document (ODD). Alternatively, call 312-542-6901 to receive a copy of the ODD. Before trading, clients must read the relevant risk disclosure statements on our Warnings and Disclosures page. Trading on margin is only for experienced investors with high risk tolerance. You may lose more than your initial investment. For additional information about rates on margin loans, please see Margin Loan Rates. Security futures involve a high degree of risk and are not suitable for all investors. The amount you may lose may be greater than your initial investment. Before trading security futures, read the Security Futures Risk Disclosure Statement. Structured products and fixed income products such as bonds are complex products that are more risky and are not suitable for all investors. Before trading, please read the Risk Warning and Disclosure Statement.

IB Gateway Installation Instructions

These instructions may vary slightly based on your personal settings.

Step 1

Click the button to download the Latest version of the IB Gateway.

TWS Install for Linux Screen

a.) Open Terminal (Ctrl+Alt+T on most distributions).

b.) Navigate to the directory where the installer was downloaded and confirm it is installed:

$ ls -l

c.) Make the installer executable by typing: "chmod u+x" before the filename and confirm:

$ chmod u+x ibgateway-stable-standalone-linux-x86.sh

$ ls -l

d.) Run the installer to start the wizard by typing "./" before the file name:

$ ./ibgateway-stable-standalone-linux-x86.sh

Step 2

Use the wizard to install Standalone TWS

TWS Install for Linux Screen

Click the "Next" button on the Setup Wizard to extract files.

TWS Install for Linux Screen

TWS Install for Linux Screen

Check the "Run IB Gateway" checkbox and click the "Finish" button to launch the IB Gateway and log in now.

TWS Install for Linux Screen

A new IB Gateway icon is now on your desktop. Going forward to login to the IB Gateway, double-click the icon and enter your username and password.

Читайте также: