IBKR 3rd Party Web API
Interactive Brokers Web API for 3rd Party Companies
- Homepage
- https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0.json
- Provider
- interactivebrokers.com
- OpenAPI version
- 3.0.0
- Spec (JSON)
- https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/interactivebrokers.com/1.0.0/openapi.yaml
Tools (18)
Extracted live via the executor SDK.
-
accountPortfolio.getAccountsAllows the caller to request a list of accounts associated with the session.
-
accountPortfolio.getAccountsAccountPositionsReturns a list of positions for the indicated account.
-
accountPortfolio.getAccountsAccountSummaryReturns a list of account and margin balances associated with the account passed in the URL
-
financialInstrumentDefinitions.getSecdefFields that compose security definition. Allowed combinations, (1) type and symbol and currency, or (2) type, symbol, exchange, and currency, or (3) conid
-
marketData.getMarketdataExchangeComponentsThis endpoint provides a bit mapping for the bid/ask/last 'market' values in the snapshot response.
-
marketData.getMarketdataSnapshotThis endpoint allows the consumer to request a market data snapshot for one or more trading products. Consumers need to provide unique identifiers (conids) for the products in the IB product database (retrievable using the /secdef endpoint). The 'market' values are integers whose bits indicate the exchange(s) making up the quote.
The mapping of bit to exchange is obtained from the marketdata/exchange_component endpoint. For example, if a bid has a 'market' value of 5 and the exchange_component result has the map 0 => NYSE, 1 => ISLAND, 2 => ARCA then the exchanges contributing to the bid size are NYSE and ARCA.
Similarly, if market=2, then only ISLAND is contributing.
-
oAuth.postOauthAccessTokenObtain an access token using the request token and the verification code you received after the user provided authorization. See section 6.3 of the OAuth v1.0a specification for more details.
-
oAuth.postOauthLiveSessionTokenIn order to access protected IB resources, a live session token is required. This endpoint allows consumers to obtain a live session token to access these resources using an OAuth access token and the Diffie-Hellman prime and generator supplied during the registration process. Note this is an additional IB-specific step, and not part of the OAuth v1.0a specification. Please refer to the "OAuth at Interactive Brokers" document for more details.
-
oAuth.postOauthRequestTokenObtain a request token. See section 6.1 of the OAuth v1.0a specification for more information.
Note we do not return an oauth_token_secret in the response as we are using RSA signatures rather than PLAINTEXT authentication.
-
orderMarginRequirements.postAccountsAccountOrderImpactThis endpoint allows the consumer to check the impact that an order would have on the account, including margin, NLV and estimated commission costs. To specify the contract, you provide a value for the ContractId field, OR Ticker/ListingExchange/InstrumentType=STK for stocks OR Ticker/Currency/InstrumentType=CASH for FX.
-
orders.deleteAccountsAccountOrdersCustomerOrderIdCancels the order with the referenced Customer Order ID for the account passed in the URL.
-
orders.getAccountsAccountOrdersReturns a list of orders for the account passed in the URL
-
orders.getAccountsAccountOrdersCustomerOrderIdReturns the order with the referenced Customer Order ID for the account passed in the URL.
-
orders.postAccountsAccountOrdersPlaces order
-
orders.putAccountsAccountOrdersCustomerOrderIdAllows the caller to modify the order with the referenced Customer Order ID specified in the URL. A separate Customer Order ID must be provided in the request body for the modification.
-
trades.getAccountsAccountTradesReturns a list of trades for the account starting at the given 'since' date to the current time (now()). Timezone is UTC. Any request with a future since date or going further than one week will result in an HTTP 400 bad request response. Calling /trades without since will return all trades for the past 24 hours.
-
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools