Skip to main content

IncomingMessages

Enum IncomingMessages 

Source
pub enum IncomingMessages {
Show 88 variants Shutdown = -2, NotValid = -1, TickPrice = 1, TickSize = 2, OrderStatus = 3, Error = 4, OpenOrder = 5, AccountValue = 6, PortfolioValue = 7, AccountUpdateTime = 8, NextValidId = 9, ContractData = 10, ExecutionData = 11, MarketDepth = 12, MarketDepthL2 = 13, NewsBulletins = 14, ManagedAccounts = 15, ReceiveFA = 16, HistoricalData = 17, BondContractData = 18, ScannerParameters = 19, ScannerData = 20, TickOptionComputation = 21, TickGeneric = 45, TickString = 46, TickEFP = 47, CurrentTime = 49, RealTimeBars = 50, FundamentalData = 51, ContractDataEnd = 52, OpenOrderEnd = 53, AccountDownloadEnd = 54, ExecutionDataEnd = 55, DeltaNeutralValidation = 56, TickSnapshotEnd = 57, MarketDataType = 58, CommissionsReport = 59, Position = 61, PositionEnd = 62, AccountSummary = 63, AccountSummaryEnd = 64, VerifyMessageApi = 65, VerifyCompleted = 66, DisplayGroupList = 67, DisplayGroupUpdated = 68, VerifyAndAuthMessageApi = 69, VerifyAndAuthCompleted = 70, PositionMulti = 71, PositionMultiEnd = 72, AccountUpdateMulti = 73, AccountUpdateMultiEnd = 74, SecurityDefinitionOptionParameter = 75, SecurityDefinitionOptionParameterEnd = 76, SoftDollarTier = 77, FamilyCodes = 78, SymbolSamples = 79, MktDepthExchanges = 80, TickReqParams = 81, SmartComponents = 82, NewsArticle = 83, TickNews = 84, NewsProviders = 85, HistoricalNews = 86, HistoricalNewsEnd = 87, HeadTimestamp = 88, HistogramData = 89, HistoricalDataUpdate = 90, RerouteMktDataReq = 91, RerouteMktDepthReq = 92, MarketRule = 93, PnL = 94, PnLSingle = 95, HistoricalTick = 96, HistoricalTickBidAsk = 97, HistoricalTickLast = 98, TickByTick = 99, OrderBound = 100, CompletedOrder = 101, CompletedOrdersEnd = 102, ReplaceFAEnd = 103, WshMetaData = 104, WshEventData = 105, HistoricalSchedule = 106, UserInfo = 107, HistoricalDataEnd = 108, CurrentTimeInMillis = 109, ConfigResponse = 110, UpdateConfigResponse = 111,
}
Expand description

Messages emitted by TWS/Gateway over the market data socket.

Variants§

§

Shutdown = -2

Gateway initiated shutdown.

§

NotValid = -1

Unknown or unsupported message id.

§

TickPrice = 1

Tick price update.

§

TickSize = 2

Tick size update.

§

OrderStatus = 3

Order status update.

§

Error = 4

Error (includes request id and code).

§

OpenOrder = 5

Open order description.

§

AccountValue = 6

Account value key/value pair.

§

PortfolioValue = 7

Portfolio value line.

§

AccountUpdateTime = 8

Account update timestamp.

§

NextValidId = 9

Next valid order id notification.

§

ContractData = 10

Contract details payload.

§

ExecutionData = 11

Execution data update.

§

MarketDepth = 12

Level 1 market depth row update.

§

MarketDepthL2 = 13

Level 2 market depth row update.

§

NewsBulletins = 14

News bulletin broadcast.

§

ManagedAccounts = 15

List of managed accounts.

§

ReceiveFA = 16

Financial advisor configuration data.

§

HistoricalData = 17

Historical bar data payload.

§

BondContractData = 18

Bond contract details payload.

§

ScannerParameters = 19

Scanner parameter definitions.

§

ScannerData = 20

Scanner subscription results.

§

TickOptionComputation = 21

Option computation tick.

§

TickGeneric = 45

Generic numeric tick (e.g. implied volatility).

§

TickString = 46

String-valued tick (exchange names, etc.).

§

TickEFP = 47

Exchange for Physical tick update.

§

CurrentTime = 49

Current world clock time.

§

RealTimeBars = 50

Real-time bars update.

§

FundamentalData = 51

Fundamental data response.

§

ContractDataEnd = 52

End marker for contract details batches.

§

OpenOrderEnd = 53

End marker for open order batches.

§

AccountDownloadEnd = 54

End marker for account download.

§

ExecutionDataEnd = 55

End marker for execution data.

§

DeltaNeutralValidation = 56

Delta-neutral validation response.

§

TickSnapshotEnd = 57

End of tick snapshot.

§

MarketDataType = 58

Market data type acknowledgment.

§

CommissionsReport = 59

Commissions report payload.

§

Position = 61

Position update.

§

PositionEnd = 62

End marker for position updates.

§

AccountSummary = 63

Account summary update.

§

AccountSummaryEnd = 64

End marker for account summary stream.

§

VerifyMessageApi = 65

API verification challenge.

§

VerifyCompleted = 66

API verification completion.

§

DisplayGroupList = 67

Display group list response.

§

DisplayGroupUpdated = 68

Display group update.

§

VerifyAndAuthMessageApi = 69

Auth + verification challenge.

§

VerifyAndAuthCompleted = 70

Auth + verification completion.

§

PositionMulti = 71

Multi-account position update.

§

PositionMultiEnd = 72

End marker for multi-account position stream.

§

AccountUpdateMulti = 73

Multi-account account update.

§

AccountUpdateMultiEnd = 74

End marker for multi-account account stream.

§

SecurityDefinitionOptionParameter = 75

Option security definition parameters.

§

SecurityDefinitionOptionParameterEnd = 76

End marker for option security definition stream.

§

SoftDollarTier = 77

Soft dollar tier information.

§

FamilyCodes = 78

Family code response.

§

SymbolSamples = 79

Matching symbol samples.

§

MktDepthExchanges = 80

Exchanges offering market depth.

§

TickReqParams = 81

Tick request parameter info.

§

SmartComponents = 82

Smart component routing map.

§

NewsArticle = 83

News article content.

§

TickNews = 84

News headline tick.

§

NewsProviders = 85

Available news providers.

§

HistoricalNews = 86

Historical news headlines.

§

HistoricalNewsEnd = 87

End marker for historical news.

§

HeadTimestamp = 88

Head timestamp for historical data.

§

HistogramData = 89

Histogram data response.

§

HistoricalDataUpdate = 90

Streaming historical data update.

§

RerouteMktDataReq = 91

Market data request reroute notice.

§

RerouteMktDepthReq = 92

Market depth request reroute notice.

§

MarketRule = 93

Market rule response.

§

PnL = 94

Account PnL update.

§

PnLSingle = 95

Single position PnL update.

§

HistoricalTick = 96

Historical tick data (midpoint).

§

HistoricalTickBidAsk = 97

Historical tick data (bid/ask).

§

HistoricalTickLast = 98

Historical tick data (trades).

§

TickByTick = 99

Tick-by-tick streaming data.

§

OrderBound = 100

Order bound notification for API multiple endpoints.

§

CompletedOrder = 101

Completed order information.

§

CompletedOrdersEnd = 102

End marker for completed orders.

§

ReplaceFAEnd = 103

End marker for FA profile replacement.

§

WshMetaData = 104

Wall Street Horizon metadata update.

§

WshEventData = 105

Wall Street Horizon event payload.

§

HistoricalSchedule = 106

Historical schedule response.

§

UserInfo = 107

User information response.

§

HistoricalDataEnd = 108

End marker for historical data.

§

CurrentTimeInMillis = 109

Current time in milliseconds.

§

ConfigResponse = 110

Configuration response.

§

UpdateConfigResponse = 111

Update configuration response.

Trait Implementations§

Source§

impl Clone for IncomingMessages

Source§

fn clone(&self) -> IncomingMessages

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 IncomingMessages

Source§

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

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

impl From<i32> for IncomingMessages

Source§

fn from(value: i32) -> IncomingMessages

Converts to this type from the input type.
Source§

impl FromStr for IncomingMessages

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for IncomingMessages

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 IncomingMessages

Source§

fn eq(&self, other: &IncomingMessages) -> 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 Copy for IncomingMessages

Source§

impl Eq for IncomingMessages

Source§

impl StructuralPartialEq for IncomingMessages

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, 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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. 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, 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.