You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -31,24 +33,64 @@ Interactive Broker offers multiple APIs for their clients. If you would like to
31
33
- Portfolio Analysis Endpoints
32
34
- Web Streaming
33
35
34
-
## Requirements
36
+
## Setup Requirements
35
37
36
38
The following requirements must be met to use this API:
37
39
38
40
- A Interactive Broker account, you'll need your account password and account number to use the API.
39
41
-[Java 8](https://developers.redhat.com/products/openjdk/download) update 192 or higher installed (gateway is compatible with higher Java versions including OpenJDK 11).
40
-
- Download the [Client Portal Gateway](https://www.interactivebrokers.com/en/index.php?f=45185)
42
+
- Download the [Beta Client Portal Gateway](https://www.interactivebrokers.com/en/index.php?f=45185)
41
43
42
-
## API Key and Credentials
44
+
## Setup Client Portal
45
+
46
+
Once you've downloaded the latest client portal or if you chose to use the one provided by the repo. You need to unzip the folder and place it in the repo where this code is stored.
47
+
48
+
## Setup API Key and Credentials
43
49
44
50
The API does not require any API keys to use it, all of the authentication is handled by the Client Portal Gateway. Everytime a user starts a new session with the API they will need to proivde their login credentials for the account they wish to use. The Interactive Broker Web API does offer the ability to use the API using a paper account.
45
51
46
52
**Important:** Your account number and account password should be kept secret.
47
53
48
-
## Installation
54
+
## Setup Installation
49
55
50
56
PLACE HOLDER FOR PIP INSTALLATION
51
57
58
+
## Setup Writing Account Information
59
+
60
+
The Client needs specific account information to create a and validate a new session. Where you choose to store this information is up to you, but I'll layout some options here.
61
+
62
+
**Write a Config File:**
63
+
64
+
It's common in Python to have a config file that contains information you need to use during the setup of a script. Additionally, you can make this file in a standard way so that way it's easy to read everytime. In Python, there is a module called `configparser` which can be used to create config files that mimic that of Windows INI files.
65
+
66
+
To create a config file using hte `configparser` module, run the script below in a separate file or go to the [Resources Folder](https://github.com/areed1192/interactive-broker-python-api/tree/master/resources) and run the `write_config.py` file.
If you plan to not share the script with anyone else, then you can store the account info inside the script itself. However, please make sure that you do not make the file public to individuals you don't know.
93
+
52
94
## Usage
53
95
54
96
This example demonstrates how to login to the API and demonstrates sending a request using the `market_data_history` endpoint, using your API key.
@@ -57,11 +99,10 @@ This example demonstrates how to login to the API and demonstrates sending a req
0 commit comments