Interactive Brokers · Capability
Interactive Brokers Web API
The Interactive Brokers Web API is a RESTful API that provides programmatic access to IBKR trading, portfolio management, market data, and account information. The API consolidates the Client Portal Web API, Digital Account Management, and Flex Web Service into a unified interface. It supports OAuth 2.0 authentication and provides endpoints for order placement, portfolio monitoring, real-time and historical market data, and account management across global markets.
What You Can Do
POST
Getauthstatus
— Get authentication status
/iserver/auth/status
GET
Getaccounts
— Get brokerage accounts
/iserver/accounts
POST
Placeorder
— Place an order
/iserver/account/{accountId}/orders
GET
Getliveorders
— Get live orders
/iserver/account/orders
GET
Getpositions
— Get portfolio positions
/portfolio/{accountId}/positions/{pageId}
GET
Getaccountsummary
— Get account summary
/portfolio/{accountId}/summary
GET
Getmarketdatasnapshot
— Get market data snapshot
/iserver/marketdata/snapshot
GET
Getmarketdatahistory
— Get historical market data
/iserver/marketdata/history
POST
Searchcontracts
— Search contracts
/iserver/secdef/search
MCP Tools
getauthstatus
Get authentication status
getaccounts
Get brokerage accounts
read-only
idempotent
placeorder
Place an order
getliveorders
Get live orders
read-only
idempotent
getpositions
Get portfolio positions
read-only
idempotent
getaccountsummary
Get account summary
read-only
idempotent
getmarketdatasnapshot
Get market data snapshot
read-only
idempotent
getmarketdatahistory
Get historical market data
read-only
idempotent
searchcontracts
Search contracts