Overview
Interactive Brokers Web API for 3rd Party Companies
IBKR 3rd Party Web API is a finance API from interactivebrokers.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 16 endpoints.
At a glance
- Authentication
- API key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Finance
- Base URL
https://www.interactivebrokers.com/tradingapi/v1- Version
- 1.0.0
- Endpoints
- 16
- OpenAPI
- Specification ↗
- Spec updated
- 2021-07-19
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://www.interactivebrokers.com/tradingapi/v1/accounts" \
-H "Accept: application/json" \
-H "X-API-Key: YOUR_API_KEY"const response = await fetch("https://www.interactivebrokers.com/tradingapi/v1/accounts", {
method: "GET",
headers: {
"Accept": "application/json",
"X-API-Key": "YOUR_API_KEY",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://www.interactivebrokers.com/tradingapi/v1/accounts",
headers={
"Accept": "application/json",
"X-API-Key": "YOUR_API_KEY",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /accounts | Brokerage Accounts |
| POST | /accounts/{account}/order_impact | Return margin impact info |
| GET | /accounts/{account}/orders | Open Orders |
| POST | /accounts/{account}/orders | Place Order |
| GET | /accounts/{account}/orders/{CustomerOrderId} | Return specific order info |
| PUT | /accounts/{account}/orders/{CustomerOrderId} | Modify Order |
| DELETE | /accounts/{account}/orders/{CustomerOrderId} | Cancel Order |
| GET | /accounts/{account}/positions | Account Positions |
| GET | /accounts/{account}/summary | Account Values Summary |
| GET | /accounts/{account}/trades | Returns trades in account |
| GET | /marketdata/exchange_components | Exchange Components |
| GET | /marketdata/snapshot | Market Data Snapshot |
| POST | /oauth/access_token | Obtain a access token |
| POST | /oauth/live_session_token | Obtain a live session token |
| POST | /oauth/request_token | Obtain a request token |
| GET | /secdef | Get security definition |
Questions
Does the IBKR 3rd Party Web API API need an API key?
Yes. The IBKR 3rd Party Web API API uses API key authentication; the documentation explains how to get credentials.
Does the IBKR 3rd Party Web API API support HTTPS?
Yes, the IBKR 3rd Party Web API API is served over HTTPS.
How many endpoints does the IBKR 3rd Party Web API API have?
Its OpenAPI description lists 16 endpoints in version 1.0.0. All of them are shown on this page.
What are alternatives to the IBKR 3rd Party Web API API?
Other Finance APIs include Stripe, SEC EDGAR Data, Plaid, Fed Treasury, Razorpay IFSC.
Similar finance APIs
Compare alternatives →Stripe
FinancePayment processing, subscriptions, and financial management
SEC EDGAR Data
FinanceAPI to access annual reports of public US companies
Plaid
FinanceConnect with user's bank accounts and access transaction data
Fed Treasury
FinanceU.S. Department of the Treasury Data
Razorpay IFSC
FinanceIndian Financial Systems Code (Bank Branch Codes)
Klarna
FinanceKlarna payment and shopping service
Listed from APIs.guru (CC0).