Skip to main content

MdFields

Enum MdFields 

Source
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 price
  • 71 - Low. Current day low price
  • 73 - 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 day
  • 83 - 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 stocks
  • 86 - Ask Price. The lowest-priced offer on the contract.
  • 87 - Volume. Volume for the day
  • 88 - Bid Size. The number of contracts or shares bid for at the bid price. For US stocks
  • 201 - 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=MERCURY
  • 7058 - 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
  • 7059 - Last Size. The number of unites traded at the last price
  • 7068 - 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
  • 7084 - 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 Volume
  • 7094 - 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 %. Deprecated
  • 7285 - 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 is
  • 7636 - 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 -1
  • 7679 - Price/EMA(100). Price to Exponential moving average (N=100) ratio -1
  • 7724 - Price/EMA(50). Price to Exponential moving average (N=50) ratio -1
  • 7681 - Price/EMA(20). Price to Exponential moving average (N=20) ratio -1
  • 7682 - 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 meeting
  • 7688 - 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 meeting
  • 7694 - Probability of Max Return. Customer implied probability of maximum potential gain.
  • 7695 - Break Even. Break even points
  • 7696 - SPX Delta. Beta Weighted Delta is calculated using the formula; Delta x dollar adjusted beta
  • 7697 - Futures Open Interest. Total number of outstanding futures contracts
  • 7698 - 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 price
  • 7762 - 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§

Source§

impl Clone for MdFields

Source§

fn clone(&self) -> MdFields

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MdFields

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MdFields

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for MdFields

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for MdFields

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for MdFields

Source§

fn eq(&self, other: &MdFields) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for MdFields

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for MdFields

Source§

impl StructuralPartialEq for MdFields

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ValidateIp for T
where T: ToString,

Source§

fn validate_ipv4(&self) -> bool

Validates whether the given string is an IP V4
Source§

fn validate_ipv6(&self) -> bool

Validates whether the given string is an IP V6
Source§

fn validate_ip(&self) -> bool

Validates whether the given string is an IP
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more