Skip to content

IBKR 3rd Party Web API API

by interactivebrokers.com

API keyHTTPSFinance
Open documentation ↗

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
Spec updated
2021-07-19

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://www.interactivebrokers.com/tradingapi/v1/accounts" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
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);
Python
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

MethodPathWhat it does
GET/accountsBrokerage Accounts
POST/accounts/{account}/order_impactReturn margin impact info
GET/accounts/{account}/ordersOpen Orders
POST/accounts/{account}/ordersPlace 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}/positionsAccount Positions
GET/accounts/{account}/summaryAccount Values Summary
GET/accounts/{account}/tradesReturns trades in account
GET/marketdata/exchange_componentsExchange Components
GET/marketdata/snapshotMarket Data Snapshot
POST/oauth/access_tokenObtain a access token
POST/oauth/live_session_tokenObtain a live session token
POST/oauth/request_tokenObtain a request token
GET/secdefGet 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.

Compare alternatives →

Listed from APIs.guru (CC0).