Setting Up Interactive Broker API
- Go to the IBKR Client Portal API page at https://www.interactivebrokers.com/en/trading/ib-api.php
- Click on the Client Portal API section
- Click the Downloads and Resources button
- Download the Client Portal API Gateway ("CP Gateway") by clicking on the Gateway:Latest button
- Create a folder in the root of your C drive called "gateway" (i.e., c:\gateway)
- Extract the downloaded CP Gateway into the c:\gateway folder
- Install Java 8. You can download it here: https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
- Open a command prompt. Navigate to the c:\gateway folder. Type "bin\run.bat root\conf.yaml" (without the quotation marks).
- Open a web browser and navigate to https://localhost:5000
- Login to your IBKR account
- You are now connected to IBKR and ready to use the API
You can research the API further by visiting this site: https://interactivebrokers.github.io/cpwebapi/