pub enum MdFields {
Show 110 variants
T31,
T55,
T58,
T70,
T71,
T73,
T74,
T75,
T76,
T77,
T78,
T79,
T80,
T82,
T83,
T84,
T85,
T86,
T87,
T88,
T6004,
T6008,
T6070,
T6072,
T6073,
T6119,
T6457,
T6508,
T6509,
T7051,
T7057,
T7058,
T7059,
T7068,
T7084,
T7085,
T7086,
T7087,
T7088,
T7089,
T7094,
T7184,
T7219,
T7220,
T7221,
T7280,
T7281,
T7282,
T7283,
T7284,
T7285,
T7292,
T7293,
T7294,
T7295,
T7296,
T7308,
T7309,
T7310,
T7311,
T7607,
T7633,
T7635,
T7636,
T7637,
T7638,
T7639,
T7644,
T7671,
T7672,
T7674,
T7675,
T7676,
T7677,
T7678,
T7679,
T7724,
T7681,
T7682,
T7683,
T7684,
T7685,
T7686,
T7687,
T7688,
T7689,
T7690,
T7694,
T7695,
T7696,
T7697,
T7698,
T7699,
T7700,
T7702,
T7703,
T7704,
T7705,
T7706,
T7707,
T7708,
T7714,
T7715,
T7720,
T7741,
T7762,
T7768,
T7920,
T7921,
T7943,
}Expand description
Many FYI endpoints reference a “typecode” value. The table below lists the available codes and what they correspond to.
31- 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.55- Symbol.58- Text.70- High. Current day high price71- Low. Current day low price73- 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).74- Avg Price. The average price of the position.75- Unrealized PnL. Unrealized profit or loss. Unrealized PnL is calculated with real time market data (even when not subscribed to market data).76- Formatted position.77- Formatted Unrealized PnL.78- 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).79- Realized PnL. Realized profit or loss. Realized PnL is calculated with real time market data (even when not subscribed to market data).80- Unrealized PnL %. Unrealized profit or loss expressed in percentage.82- Change. The difference between the last price and the close on the previous trading day83- Change %. The difference between the last price and the close on the previous trading day in percentage.84- Bid Price. The highest-priced bid on the contract.85- Ask Size. The number of contracts or shares offered at the ask price. For US stocks86- Ask Price. The lowest-priced offer on the contract.87- Volume. Volume for the day88- Bid Size. The number of contracts or shares bid for at the bid price. For US stocks201- Right. Declares the Right of the Option, Call or Put.6004- Exchange.6008- Conid. Contract identifier from IBKR’s database.6070- SecType. The asset class of the instrument.6072- Months.6073- Regular Expiry.6119- Marker for market data delivery method (similar to request id).6457- Underlying Conid. Use /trsrv/secdef to get more information about the security.6508- Service Params..6509- Market Data Availability. The field may contain three chars. First char defines: R = RealTime, D = Delayed, Z = Frozen, Y = Frozen Delayed, N = Not Subscribed, i - incomplete, v - VDR Exempt (Vendor Display Rule 603c). 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.7051- Company name.7057- 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=MERCURY7058- 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=MERCURY7059- Last Size. The number of unites traded at the last price7068- 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=MERCURY7084- Implied Vol./Hist. Vol %. The ratio of the implied volatility over the historical volatility, expressed as a percentage.7085- Put/Call Interest. Put option open interest/call option open interest for the trading day.7086- Put/Call Volume. Put option volume/call option volume for the trading day.7087- Hist. Vol. %. 30-day real-time historical volatility.7088- Hist. Vol. Close %. Shows the historical volatility based on previous close price.7089- Opt. Volume. Option Volume7094- Conid + Exchange.7184- canBeTraded. If contract is a trade-able instrument. Returns 1(true) or 0(false).7219- Contract Description.7220- Contract Description.7221- Listing Exchange.7280- Industry. Displays the type of industry under which the underlying company can be categorized.7281- Category. Displays a more detailed level of description within the industry under which the underlying company can be categorized.7282- Average Volume. The average daily trading volume over 90 days.7283- 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.7284- Historical volatility %. Deprecated7285- Put/Call Ratio.7292- Cost Basis. Your current position in this security multiplied by the average price and multiplier.7293- 52 Week High. The highest price for the past 52 weeks.7294- 52 Week Low. The lowest price for the past 52 weeks.7295- Open. Today’s opening price.7296- Close. Today’s closing price.7308- Delta. The ratio of the change in the price of the option to the corresponding change in the price of the underlying.7309- Gamma. The rate of change for the delta with respect to the underlying asset’s price.7310- Theta. A measure of the rate of decline the value of an option due to the passage of time.7311- Vega. The amount that the price of an option changes compared to a 1% change in the volatility.7607- Opt. Volume Change %. Today’s option volume as a percentage of the average option volume.7633- 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.7635- Mark. The mark price is7636- Shortable Shares. Number of shares available for shorting.7637- Fee Rate. Interest rate charged on borrowed shares.7638- Option Open Interest.7639- % 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).7644- Shortable. Describes the level of difficulty with which the security can be sold short.7671- Dividends. This value is the total of the expected dividend payments over the next twelve months per share.7672- Dividends TTM. This value is the total of the expected dividend payments over the last twelve months per share.7674- EMA(200). Exponential moving average (N=200).7675- EMA(100). Exponential moving average (N=100).7676- EMA(50). Exponential moving average (N=50).7677- EMA(20). Exponential moving average (N=20).7678- Price/EMA(200). Price to Exponential moving average (N=200) ratio -17679- Price/EMA(100). Price to Exponential moving average (N=100) ratio -17724- Price/EMA(50). Price to Exponential moving average (N=50) ratio -17681- Price/EMA(20). Price to Exponential moving average (N=20) ratio -17682- Change Since Open. The difference between the last price and the open price.7683- Upcoming Event. Shows the next major company event. Requires Wall Street Horizon subscription.7684- Upcoming Event Date. The date of the next major company event. Requires Wall Street Horizon subscription.7685- Upcoming Analyst Meeting. The date and time of the next scheduled analyst meeting. Requires Wall Street Horizon subscription.7686- Upcoming Earnings. The date and time of the next scheduled earnings/earnings call event. Requires Wall Street Horizon subscription.7687- Upcoming Misc Event. The date and time of the next shareholder meeting7688- Recent Analyst Meeting. The date and time of the most recent analyst meeting. Requires Wall Street Horizon subscription.7689- Recent Earnings. The date and time of the most recent earnings/earning call event. Requires Wall Street Horizon subscription.7690- Recent Misc Event. The date and time of the most recent shareholder meeting7694- Probability of Max Return. Customer implied probability of maximum potential gain.7695- Break Even. Break even points7696- SPX Delta. Beta Weighted Delta is calculated using the formula; Delta x dollar adjusted beta7697- Futures Open Interest. Total number of outstanding futures contracts7698- 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.7699- 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.7700- Probability of Max Return. Customer implied probability of maximum potential gain.7702- Probability of Max Loss. Customer implied probability of maximum potential loss.7703- Profit Probability. Customer implied probability of any gain.7704- Organization Type.7705- Debt Class.7706- Ratings. Ratings issued for bond contract.7707- Bond State Code.7708- Bond Type.7714- Last Trading Date.7715- Issue Date.7720- 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.7741- Prior Close. Yesterday’s closing price7762- Volume Long. High precision volume for the day. For formatted volume refer to field 87.7768- hasTradingPermissions. if user has trading permissions for specified contract. Returns 1(true) or 0(false).7899- Stock Type. Determines the stock type. Includes: Common, CORP, ADR, ETF, ETN, EFN, REIT, CEF, ETMF.7920- Daily PnL Raw. 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).7921- Cost Basis Raw. Your current position in this security multiplied by the average price and and multiplier.7943- Rebate Rate. Fed funds or other currency-relevant Benchmark rate minus the interest rate charged on borrowed shares.
Variants§
T31
T55
T58
T70
T71
T73
T74
T75
T76
T77
T78
T79
T80
T82
T83
T84
T85
T86
T87
T88
T6004
T6008
T6070
T6072
T6073
T6119
T6457
T6508
T6509
T7051
T7057
T7058
T7059
T7068
T7084
T7085
T7086
T7087
T7088
T7089
T7094
T7184
T7219
T7220
T7221
T7280
T7281
T7282
T7283
T7284
T7285
T7292
T7293
T7294
T7295
T7296
T7308
T7309
T7310
T7311
T7607
T7633
T7635
T7636
T7637
T7638
T7639
T7644
T7671
T7672
T7674
T7675
T7676
T7677
T7678
T7679
T7724
T7681
T7682
T7683
T7684
T7685
T7686
T7687
T7688
T7689
T7690
T7694
T7695
T7696
T7697
T7698
T7699
T7700
T7702
T7703
T7704
T7705
T7706
T7707
T7708
T7714
T7715
T7720
T7741
T7762
T7768
T7920
T7921
T7943
Trait Implementations§
impl Eq for MdFields
impl StructuralPartialEq for MdFields
Auto Trait Implementations§
impl Freeze for MdFields
impl RefUnwindSafe for MdFields
impl Send for MdFields
impl Sync for MdFields
impl Unpin for MdFields
impl UnsafeUnpin for MdFields
impl UnwindSafe for MdFields
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP