Excel Price Feed makes it easy to find Interactive Brokers contracts and use them in your market data formulas. Use Contract Search to look up instruments by name or by full contract details, then insert formulas directly into your spreadsheet.
On this page:
In Interactive Brokers, a contract is the precise definition of one tradable instrument, not merely a ticker or company name, but the full set of attributes (symbol, security type, exchange, currency, and for derivatives, expiry and strike) that IB uses to identify what you want to price, trade or analyse. Market data and portfolio requests are always tied to a contract.
Contracts are important because many symbols are ambiguous across exchanges and asset classes. The contract object specifies all the details needed to identify the instrument exactly.
Typical contract fields include the symbol, security type (stock STK, option OPT, etc.), currency, etc.
Excel Price Feed formulas reference contracts by contract ID (conId) or by the contract details you obtain from Contract Search.
Excel Price Feed makes it easy to find contracts with the Contract Search screen. You can find it by selecting the "Interactive Brokers" tab and then the "Market Data" tab on the Configuration Pane:
There are two search modes: general text search and specific contract search.
Use this feature when you just want to search on some text such as part of a name and don't necessarily know more details such as the symbol/ticker. This method works particularly well for finding stock contracts.
For the example below we have searched for "apple":
The NASDAQ listed stock contract is highlighted.
If you are more familiar with IB contracts and have more details of the contract you are searching for you can narrow down the search further.
For the example below we have filled out all the details of a specific SPY 645 strike call option with expiry of 01 June 2026 (20260601):
Once you have found the contract you are interested in, there are two ways you can use to quickly add market data formulas to your spreadsheet.
You can either highlight the contract in the list and then press one of the shortcut buttons to insert the appropriate formula, such as Bid Price or Last Close:
The formula will be inserted into the currently active Excel cell:
=EPF.IB.Stream_MarketData_ConId("BidPrice", "880303615")
Alternatively, there is a more comprehensive list of all available fields in the box below the buttons. To insert a formula simply double-click on the row.
You can sort the list by clicking the "Field" or "Description" column headings, or use the search box to narrow down the list.
When inserting a formula you have the option of selecting either the contract Id or all parameters version of the market data Excel formula:
Selecting "Use Contract Id formula" means that the Excel formula referencing the contract Id will be inserted into your spreadsheet:
=EPF.IB.Stream_MarketData_ConId("BidPrice", "12087792", "IDEALPRO")
If you don't select this option, then the full version of the market data formula with all parameters will be inserted, for example:
=EPF.IB.Stream_MarketData("ClosePrice", "QQQ", "OPT", "USD", "SMART",, "20271217", "700",, "C", "QQQ")
For more information on the market data Excel formulas: Market Data Formulas
For option pricing and Greeks fields: Greeks Formulas