APIHub
Back to Explore

IBKR 3rd Party Web API

The IBKR 3rd Party Web API offers OAuth‑based access to Interactive Brokers brokerage data and trading functions, enabling retrieval of account information, positions, trade history, market data snapshots, and security definitions, as well as the ability to place, modify, cancel orders and query margin impact.

Finance
apiKeyHeader
HTTPS
CORS: Unknown
Description enriched
Visit official documentation

Latency

2135ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
POST

/oauth/live_session_token

Obtain a live session token

POST

/oauth/request_token

Obtain a request token

GET

/secdef

Get security definition

GET

/accounts

Brokerage Accounts

  • account (query, required) — Account Number
POST

/accounts/{account}/order_impact

Return margin impact info

GET

/accounts/{account}/orders

Open Orders

POST

/accounts/{account}/orders

Place Order

DELETE

/accounts/{account}/orders/{CustomerOrderId}

Cancel Order

GET

/accounts/{account}/orders/{CustomerOrderId}

Return specific order info

PUT

/accounts/{account}/orders/{CustomerOrderId}

Modify Order

GET

/accounts/{account}/positions

Account Positions

  • account (path, required) — Account Number
GET

/accounts/{account}/summary

Account Values Summary

  • account (path, required) — Account Number
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

16 endpoints auto-detected

Authentication

This API uses an API key, passed in the "portal" header. No OAuth required.

curl -X POST \
  "https://www.interactivebrokers.com/tradingapi/v1/oauth/live_session_token" \
  -H "portal: YOUR_API_KEY"

www.interactivebrokers.com · HTTPS only