IBKR 3rd Party Web API
interactivebrokers · Finance
Interactive Brokers Web API for 3rd Party Companies
Authentication
Sample Requests
Allows the caller to request a list of accounts associated with the session.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/accounts?account=example"
import requests
params = {
"account": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/accounts",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/accounts');
url.searchParams.set('account', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/accounts")
q := baseURL.Query()
q.Set("account", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/accounts")
uri.query = URI.encode_www_form({
"account" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/accounts?" . http_build_query([
"account" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Fields that compose security definition. Allowed combinations, (1) type and symbol and currency, or (2) type, symbol, exchange, and currency, or (3) conid
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/secdef"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/secdef",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/secdef'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/secdef"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/secdef")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/secdef";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));This endpoint provides a bit mapping for the bid/ask/last 'market' values in the snapshot response.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/marketdata/exchange_components"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/marketdata/exchange_components",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/marketdata/exchange_components'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/marketdata/exchange_components"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/marketdata/exchange_components")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/marketdata/exchange_components";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with IBKR 3rd Party Web API?
IBKR 3rd Party Web API is a Finance API. Developers commonly use finance APIs for:
- processing payments and handling transactions
- building subscription and billing systems
- automating invoicing and financial reporting
- fraud detection and risk scoring
- connecting to banking and accounting software
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. IBKR 3rd Party Web API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide