Interactive Brokers Web API for 3rd Party Companies
Bring your own key. This API needs your own IBKR 3rd Party Web API key - get one from the provider, add it once below, and the proxy injects it on every call. Your OmniStream plan covers the unified SDK, key storage, and proxy - the provider's own rate limits still apply to your key.
This is a community listing. If you own this API, you can request ownership.
npm install omnistream-sdkimport { OmniClient } from "omnistream-sdk";
const omni = new OmniClient({ token: process.env.OMNI_KEY! });
// One key reaches every API on the marketplace.
const data = await omni.call("interactivebrokers/getaccounts");One install, one key - the same client calls every API on the marketplace.
Account Number
Brokerage Accounts
Return margin impact info
Open Orders
Place Order
Return specific order info
Modify Order
/**
* IBKR3rdPartyWebAPI - generated by OmniStream from IBKR 3rd Party Web API's OpenAPI spec.
* One typed method per endpoint. A single Omni key reaches the API.
*/
const DEFAULT_BASE = "https://grid.skinvaults.online/v1/proxy/interactivebrokers";
export class IBKR3rdPartyWebAPIError extends Error {
status: number;
code?: string;
constructor(status: number, code: string | undefined, message?: string) {
super(message || `IBKR3rdPartyWebAPI error ${status}`);
this.name = "IBKR3rdPartyWebAPIError";
this.status = status;
this.code = code;
}
}
export interface IBKR3rdPartyWebAPIOptions {
baseUrl?: string;
fetch?: typeof fetch;
timeoutMs?: number;
}
export class IBKR3rdPartyWebAPI {
/** @param token Your OmniStream key (one key for every API). */
constructor(private token: string, private opts: IBKR3rdPartyWebAPIOptions = {}) {
if (!token) throw new Error("IBKR3rdPartyWebAPI: token is required");
}
rateLimit: { remainingMinute?: number; remainingDay?: number } | null = null;
private async _request(method: string, path: string, { params, body }: { params?: Record<string, unknown>; body?: unknown } = {}): Promise<any> {
const f = this.opts.fetch ?? globalThis.fetch;
const url = new URL((this.opts.baseUrl ?? DEFAULT_BASE).replace(/\/+$/, "") + path);
if (params) for (const [k, v] of Object.entries(params)) if (v != null) url.searchParams.set(k, String(v));
const headers: Record<string, string> = { "x-omni-key": this.token };
if (body !== undefined) headers["content-type"] = "application/json";
const res = await f(url, { method, headers, body: body !== undefined ? JSON.stringify(body) : undefined });
this.rateLimit = {
remainingMinute: Number(res.headers.get("x-ratelimit-remaining-minute")) || undefined,
remainingDay: Number(res.headers.get("x-ratelimit-remaining-day")) || undefined,
};
const data = await res.json().catch(() => ({}));
if (!res.ok) throw new IBKR3rdPartyWebAPIError(res.status, data?.error?.code, data?.error?.message);
return data.data ?? data;
}
/** Brokerage Accounts */
getaccounts(params: { "account": string }): Promise<any> {
return this._request("GET", "/accounts", { params });
}
/** Return margin impact info */
postaccountsAccountOrderImpact(body: unknown, params: { "account": string }): Promise<any> {
return this._request("POST", "/accounts/{account}/order_impact", { body, params });
}
/** Open Orders */
getaccountsAccountOrders(params: { "account": string }): Promise<any> {
return this._request("GET", "/accounts/{account}/orders", { params });
}
/** Place Order */
postaccountsAccountOrders(body: unknown, params: { "account": string }): Promise<any> {
return this._request("POST", "/accounts/{account}/orders", { body, params });
}
/** Return specific order info */
getaccountsAccountOrdersCustomerorderid(params: { "account": string; "CustomerOrderId": string }): Promise<any> {
return this._request("GET", "/accounts/{account}/orders/{CustomerOrderId}", { params });
}
/** Modify Order */
putaccountsAccountOrdersCustomerorderid(body: unknown, params: { "account": string; "CustomerOrderId": string }): Promise<any> {
return this._request("PUT", "/accounts/{account}/orders/{CustomerOrderId}", { body, params });
}
/** Cancel Order */
deleteaccountsAccountOrdersCustomerorderid(params: { "account": string; "CustomerOrderId": string }): Promise<any> {
return this._request("DELETE", "/accounts/{account}/orders/{CustomerOrderId}", { params });
}
/** Account Positions */
getaccountsAccountPositions(params: { "account": string }): Promise<any> {
return this._request("GET", "/accounts/{account}/positions", { params });
}
/** Account Values Summary */
getaccountsAccountSummary(params: { "account": string }): Promise<any> {
return this._request("GET", "/accounts/{account}/summary", { params });
}
/** Returns trades in account */
getaccountsAccountTrades(params: { "account": string }): Promise<any> {
return this._request("GET", "/accounts/{account}/trades", { params });
}
/** Exchange Components */
getmarketdataExchangeComponents(): Promise<any> {
return this._request("GET", "/marketdata/exchange_components", {});
}
/** Market Data Snapshot */
getmarketdataSnapshot(): Promise<any> {
return this._request("GET", "/marketdata/snapshot", {});
}
/** Obtain a access token */
postoauthAccessToken(body: unknown): Promise<any> {
return this._request("POST", "/oauth/access_token", { body });
}
/** Obtain a live session token */
postoauthLiveSessionToken(body: unknown): Promise<any> {
return this._request("POST", "/oauth/live_session_token", { body });
}
/** Obtain a request token */
postoauthRequestToken(body: unknown): Promise<any> {
return this._request("POST", "/oauth/request_token", { body });
}
/** Get security definition */
getsecdef(): Promise<any> {
return this._request("GET", "/secdef", {});
}
}
export default IBKR3rdPartyWebAPI;
No reviews yet. Be the first to rate this API.
Yes. IBKR 3rd Party Web API uses apiKey authentication, so you bring your own key from the provider. You store it once on OmniStream and the proxy injects it into every call, so your code only ever sends your Omni key.
Interactive Brokers Web API for 3rd Party Companies It exposes 16 endpoints over GET, POST, PUT, DELETE, including GET /accounts, POST /accounts/{account}/order_impact, GET /accounts/{account}/orders.
Install the OmniStream SDK for your language and call IBKR 3rd Party Web API through it. The client is generated from this API's OpenAPI spec, so parameters and responses are fully typed, and the same client also calls every other API in the marketplace.
You can start on the free plan. OmniStream charges for the unified SDK, key storage and proxy rather than for IBKR 3rd Party Web API itself, and IBKR 3rd Party Web API's own rate limits still apply to your provider key.
ExchangeRate-API: Fetch the latest currency exchange rates via API. ExchangeRate-API is free and unlimited.
Cancel Order
Account Positions
Account Values Summary
Returns trades in account
Exchange Components
Market Data Snapshot
Obtain a access token
Obtain a live session token
Obtain a request token
Get security definition