Market Data

Market Data

Get Market Data for the given conid(s). The endpoint will return by default bid, ask, last, change, change pct, close, listing exchange. See response fields for a list of available fields that can be request via fields argument. The endpoint /iserver/accounts must be called prior to /iserver/marketdata/snapshot. For derivative contracts the endpoint /iserver/secdef/search must be called first. First /snapshot endpoint call for given conid will initiate the market data request. To receive all available fields the /snapshot endpoint will need to be called several times. To receive streaming market data the endpoint /ws can be used. Refer to Streaming WebSocket Data for details.

get/iserver/marketdata/snapshot

Query parameters

conidsstring required

list of conids separated by comma

sinceinteger

time period since which updates are required. uses epoch time with milliseconds.

fieldsstring

list of fields separated by comma

Response

Returns an array of objects

31string

Last Price - The last price at which the contract traded. May contain one of the following prefixes:

  • C - Previous day's closing price.
  • H - Trading has halted.
55string

Symbol

58string

Text

70string

High - Current day high price

71string

Low - Current day low price

73string

Market Value - The current market value of your position in the security. Market Value is calculated with real time market data (even when not subscribed to market data).

74string

Avg Price - The average price of the position.

75string

Unrealized PnL - Unrealized profit or loss. Unrealized PnL is calculated with real time market data (even when not subscribed to market data).

76string

Formatted position

77string

Formatted Unrealized PnL

78string

Daily PnL - Your profit or loss of the day since prior close. Daily PnL is calculated with real time market data (even when not subscribed to market data).

79string

Realized PnL - Realized profit or loss. Realized PnL is calculated with real time market data (even when not subscribed to market data).

80string

Unrealized PnL % - Unrealized profit or loss expressed in percentage.

82string

Change - The difference between the last price and the close on the previous trading day

83string

Change % - The difference between the last price and the close on the previous trading day in percentage.

84string

Bid Price - The highest-priced bid on the contract.

85string

Ask Size - The number of contracts or shares offered at the ask price. For US stocks, the number displayed is divided by 100.

86string

Ask Price - The lowest-priced offer on the contract.

87string

Volume - Volume for the day, formatted with 'K' for thousands or 'M' for millions. For higher precision volume refer to field 7762.

88string

Bid Size - The number of contracts or shares bid for at the bid price. For US stocks, the number displayed is divided by 100.

6004string

Exchange

6008integer

Conid - Contract identifier from IBKR's database.

6070string

SecType - The asset class of the instrument.

6072string

Months

6073string

Regular Expiry

6119string

Marker for market data delivery method (similar to request id)

6457integer

Underlying Conid. Use /trsrv/secdef to get more information about the security

6508string

Service Params.

6509string

Market Data Availability. The field may contain three chars. First char defines: R = RealTime, D = Delayed, Z = Frozen, Y = Frozen Delayed, N = Not Subscribed. Second char defines: P = Snapshot, p = Consolidated. Third char defines: B = Book

  • RealTime - Data is relayed back in real time without delay, market data subscription(s) are required.
  • Delayed - Data is relayed back 15-20 min delayed.
  • Frozen - Last recorded data at market close, relayed back in real time.
  • Frozen Delayed - Last recorded data at market close, relayed back delayed.
  • Not Subscribed - User does not have the required market data subscription(s) to relay back either real time or delayed data.
  • Snapshot - Snapshot request is available for contract.
  • Consolidated - Market data is aggregated across multiple exchanges or venues.
  • Book - Top of the book data is available for contract.
7051string

Company name

7057string

Ask Exch - Displays the exchange(s) offering the SMART price. A=AMEX, C=CBOE, I=ISE, X=PHLX, N=PSE, B=BOX, Q=NASDAQOM, Z=BATS, W=CBOE2, T=NASDAQBX, M=MIAX, H=GEMINI, E=EDGX, J=MERCURY

7058string

Last Exch - Displays the exchange(s) offering the SMART price. A=AMEX, C=CBOE, I=ISE, X=PHLX, N=PSE, B=BOX, Q=NASDAQOM, Z=BATS, W=CBOE2, T=NASDAQBX, M=MIAX, H=GEMINI, E=EDGX, J=MERCURY

7059string

Last Size - The number of unites traded at the last price

7068string

Bid Exch - Displays the exchange(s) offering the SMART price. A=AMEX, C=CBOE, I=ISE, X=PHLX, N=PSE, B=BOX, Q=NASDAQOM, Z=BATS, W=CBOE2, T=NASDAQBX, M=MIAX, H=GEMINI, E=EDGX, J=MERCURY

7084string

Implied Vol./Hist. Vol % - The ratio of the implied volatility over the historical volatility, expressed as a percentage.

7085string

Put/Call Interest - Put option open interest/call option open interest for the trading day.

7086string

Put/Call Volume - Put option volume/call option volume for the trading day.

7087string

Hist. Vol. % - 30-day real-time historical volatility.

7088string

Hist. Vol. Close % - Shows the historical volatility based on previous close price.

7089string

Opt. Volume - Option Volume

7094string

Conid + Exchange

7184string

canBeTraded - If contract is a trade-able instrument. Returns 1(true) or 0(false).

7219string

Contract Description

7220string

Contract Description

7221string

Listing Exchange

7280string

Industry - Displays the type of industry under which the underlying company can be categorized.

7281string

Category - Displays a more detailed level of description within the industry under which the underlying company can be categorized.

7282string

Average Volume - The average daily trading volume over 90 days.

7283string

Option Implied Vol. % - A prediction of how volatile an underlying will be in the future. At the market volatility estimated for a maturity thirty calendar days forward of the current trading day, and based on option prices from two consecutive expiration months. To query the Implied Vol. % of a specific strike refer to field 7633.

7284string

Historic Volume (30d)

7285string

Put/Call Ratio

7286string

Dividend Amount - Displays the amount of the next dividend.

7287string

Dividend Yield % - This value is the toal of the expected dividend payments over the next twelve months per share divided by the Current Price and is expressed as a percentage. For derivatives, this displays the total of the expected dividend payments over the expiry date.

7288string

Ex-date of the dividend

7289string

Market Cap

7290string

P/E

7291string

EPS

7292string

Cost Basis - Your current position in this security multiplied by the average price and multiplier.

7293string

52 Week High - The highest price for the past 52 weeks.

7294string

52 Week Low - The lowest price for the past 52 weeks.

7295string

Open - Today's opening price.

7296string

Close - Today's closing price.

7308string

Delta - The ratio of the change in the price of the option to the corresponding change in the price of the underlying.

7309string

Gamma - The rate of change for the delta with respect to the underlying asset's price.

7310string

Theta - A measure of the rate of decline the value of an option due to the passage of time.

7311string

Vega - The amount that the price of an option changes compared to a 1% change in the volatility.

7607string

Opt. Volume Change % - Today's option volume as a percentage of the average option volume.

7633string

Implied Vol. % - The implied volatility for the specific strike of the option in percentage. To query the Option Implied Vol. % from the underlying refer to field 7283.

7635string

Mark - The mark price is, the ask price if ask is less than last price, the bid price if bid is more than the last price, otherwise it's equal to last price.

7636string

Shortable Shares - Number of shares available for shorting.

7637string

Fee Rate - Interest rate charged on borrowed shares.

7638string

Option Open Interest

7639string

% of Mark Value - Displays the market value of the contract as a percentage of the total market value of the account. Mark Value is calculated with real time market data (even when not subscribed to market data).

7644string

Shortable - Describes the level of difficulty with which the security can be sold short.

7655string

Morningstar Rating - Displays Morningstar Rating provided value. Requires Morningstar subscription.

7671string

Dividends - This value is the total of the expected dividend payments over the next twelve months per share.

7672string

Dividends TTM - This value is the total of the expected dividend payments over the last twelve months per share.

7674string

EMA(200) - Exponential moving average (N=200).

7675string

EMA(100) - Exponential moving average (N=100).

7676string

EMA(50) - Exponential moving average (N=50).

7677string

EMA(20) - Exponential moving average (N=20).

7678string

Price/EMA(200) - Price to Exponential moving average (N=200) ratio -1, displayed in percents.

7679string

Price/EMA(100) - Price to Exponential moving average (N=100) ratio -1, displayed in percents.

7680string

Price/EMA(50) - Price to Exponential moving average (N=50) ratio -1, displayed in percents.

7681string

Price/EMA(20) - Price to Exponential moving average (N=20) ratio -1, displayed in percents.

7682string

Change Since Open - The difference between the last price and the open price.

7683string

Upcoming Event - Shows the next major company event. Requires Wall Street Horizon subscription.

7684string

Upcoming Event Date - The date of the next major company event. Requires Wall Street Horizon subscription.

7685string

Upcoming Analyst Meeting - The date and time of the next scheduled analyst meeting. Requires Wall Street Horizon subscription.

7686string

Upcoming Earnings - The date and time of the next scheduled earnings/earnings call event. Requires Wall Street Horizon subscription.

7687string

Upcoming Misc Event - The date and time of the next shareholder meeting, presentation or other event. Requires Wall Street Horizon subscription.

7688string

Recent Analyst Meeting - The date and time of the most recent analyst meeting. Requires Wall Street Horizon subscription.

7689string

Recent Earnings - The date and time of the most recent earnings/earning call event. Requires Wall Street Horizon subscription.

7690string

Recent Misc Event - The date and time of the most recent shareholder meeting, presentation or other event. Requires Wall Street Horizon subscription.

7694string

Probability of Max Return - Customer implied probability of maximum potential gain.

7695string

Break Even - Break even points

7696string

SPX Delta - Beta Weighted Delta is calculated using the formula; Delta x dollar adjusted beta, where adjusted beta is adjusted by the ratio of the close price.

7697string

Futures Open Interest - Total number of outstanding futures contracts

7698string

Last Yield - Implied yield of the bond if it is purchased at the current last price. Last yield is calculated using the Last price on all possible call dates. It is assumed that prepayment occurs if the bond has call or put provisions and the issuer can offer a lower coupon rate based on current market rates. The yield to worst will be the lowest of the yield to maturity or yield to call (if the bond has prepayment provisions). Yield to worse may be the same as yield to maturity but never higher.

7699string

Bid Yield - Implied yield of the bond if it is purchased at the current bid price. Bid yield is calculated using the Ask on all possible call dates. It is assumed that prepayment occurs if the bond has call or put provisions and the issuer can offer a lower coupon rate based on current market rates. The yield to worst will be the lowest of the yield to maturity or yield to call (if the bond has prepayment provisions). Yield to worse may be the same as yield to maturity but never higher.

7700string

Probability of Max Return - Customer implied probability of maximum potential gain.

7702string

Probability of Max Loss - Customer implied probability of maximum potential loss.

7703string

Profit Probability - Customer implied probability of any gain.

7704string

Organization Type

7705string

Debt Class

7706string

Ratings - Ratings issued for bond contract.

7707string

Bond State Code

7708string

Bond Type

7714string

Last Trading Date

7715string

Issue Date

7718string

Beta - Beta is against standard index.

7720string

Ask Yield - Implied yield of the bond if it is purchased at the current offer. Ask yield is calculated using the Bid on all possible call dates. It is assumed that prepayment occurs if the bond has call or put provisions and the issuer can offer a lower coupon rate based on current market rates. The yield to worst will be the lowest of the yield to maturity or yield to call (if the bond has prepayment provisions). Yield to worse may be the same as yield to maturity but never higher.

7741string

Prior Close - Yesterday's closing price

7762string

Volume Long - High precision volume for the day. For formatted volume refer to field 87.

7768string

hasTradingPermissions - if user has trading permissions for specified contract. Returns 1(true) or 0(false).

server_idstring
conidinteger
_updatedinteger
87_raw (deprecated)string

Raw Volume - Volume for the day, provided in long form without formatted with K/M. This field value is deprecated, for high precision volume refer to field 7762.

Changes

No recorded changes to this endpoint across all 1 revision of this API.