Skip to main content

Incoming

Enum Incoming 

Source
#[repr(i32)]
pub enum Incoming {
Show 85 variants TickPrice = 1, TickSize = 2, OrderStatus = 3, ErrorMessage = 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, ContractDataEnd = 52, OpenOrderEnd = 53, AccountDownloadEnd = 54, ExecutionDataEnd = 55, DeltaNeutralValidation = 56, TickSnapshotEnd = 57, MarketDataType = 58, CommissionAndFeesReport = 59, PositionData = 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, SoftDollarTiers = 77, FamilyCodes = 78, SymbolSamples = 79, MarketDepthExchanges = 80, TickRequestParameters = 81, SmartComponents = 82, NewsArticle = 83, TickNews = 84, NewsProviders = 85, HistoricalNews = 86, HistoricalNewsEnd = 87, HeadTimestamp = 88, HistogramData = 89, HistoricalDataUpdate = 90, RerouteMarketDataRequest = 91, RerouteMarketDepthRequest = 92, MarketRule = 93, Pnl = 94, PnlSingle = 95, HistoricalTicks = 96, HistoricalTicksBidAsk = 97, HistoricalTicksLast = 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

Incoming TWS API message identifiers.

Variants§

§

TickPrice = 1

Tick price callback.

§

TickSize = 2

Tick size callback.

§

OrderStatus = 3

Order status callback.

§

ErrorMessage = 4

Error callback.

§

OpenOrder = 5

Open order callback.

§

AccountValue = 6

Account value callback.

§

PortfolioValue = 7

Portfolio value callback.

§

AccountUpdateTime = 8

Account update time callback.

§

NextValidId = 9

Next valid id callback.

§

ContractData = 10

Contract data callback.

§

ExecutionData = 11

Execution data callback.

§

MarketDepth = 12

Market depth callback.

§

MarketDepthL2 = 13

Market depth L2 callback.

§

NewsBulletins = 14

News bulletin callback.

§

ManagedAccounts = 15

Managed accounts callback.

§

ReceiveFa = 16

Receive FA callback.

§

HistoricalData = 17

Historical data callback.

§

BondContractData = 18

Bond contract data callback.

§

ScannerParameters = 19

Scanner parameters callback.

§

ScannerData = 20

Scanner data callback.

§

TickOptionComputation = 21

Option computation callback.

§

TickGeneric = 45

Generic tick callback.

§

TickString = 46

String tick callback.

§

TickEfp = 47

EFP tick callback.

§

CurrentTime = 49

Current time callback.

§

RealTimeBars = 50

Real-time bar callback.

§

ContractDataEnd = 52

Contract data end callback.

§

OpenOrderEnd = 53

Open order end callback.

§

AccountDownloadEnd = 54

Account download end callback.

§

ExecutionDataEnd = 55

Execution data end callback.

§

DeltaNeutralValidation = 56

Delta-neutral validation callback.

§

TickSnapshotEnd = 57

Tick snapshot end callback.

§

MarketDataType = 58

Market data type callback.

§

CommissionAndFeesReport = 59

Commission and fees report callback.

§

PositionData = 61

Position data callback.

§

PositionEnd = 62

Position end callback.

§

AccountSummary = 63

Account summary callback.

§

AccountSummaryEnd = 64

Account summary end callback.

§

VerifyMessageApi = 65

Verify message API callback.

§

VerifyCompleted = 66

Verify completed callback.

§

DisplayGroupList = 67

Display group list callback.

§

DisplayGroupUpdated = 68

Display group updated callback.

§

VerifyAndAuthMessageApi = 69

Verify-and-auth message callback.

§

VerifyAndAuthCompleted = 70

Verify-and-auth completed callback.

§

PositionMulti = 71

Position multi callback.

§

PositionMultiEnd = 72

Position multi end callback.

§

AccountUpdateMulti = 73

Account update multi callback.

§

AccountUpdateMultiEnd = 74

Account update multi end callback.

§

SecurityDefinitionOptionParameter = 75

Security definition option parameter callback.

§

SecurityDefinitionOptionParameterEnd = 76

Security definition option parameter end callback.

§

SoftDollarTiers = 77

Soft-dollar tiers callback.

§

FamilyCodes = 78

Family codes callback.

§

SymbolSamples = 79

Symbol samples callback.

§

MarketDepthExchanges = 80

Market depth exchanges callback.

§

TickRequestParameters = 81

Tick request parameters callback.

§

SmartComponents = 82

Smart components callback.

§

NewsArticle = 83

News article callback.

§

TickNews = 84

Tick news callback.

§

NewsProviders = 85

News providers callback.

§

HistoricalNews = 86

Historical news callback.

§

HistoricalNewsEnd = 87

Historical news end callback.

§

HeadTimestamp = 88

Head timestamp callback.

§

HistogramData = 89

Histogram data callback.

§

HistoricalDataUpdate = 90

Historical data update callback.

§

RerouteMarketDataRequest = 91

Reroute market data request callback.

§

RerouteMarketDepthRequest = 92

Reroute market depth request callback.

§

MarketRule = 93

Market rule callback.

§

Pnl = 94

PnL callback.

§

PnlSingle = 95

PnL single callback.

§

HistoricalTicks = 96

Historical ticks callback.

§

HistoricalTicksBidAsk = 97

Historical bid/ask ticks callback.

§

HistoricalTicksLast = 98

Historical last ticks callback.

§

TickByTick = 99

Tick-by-tick callback.

§

OrderBound = 100

Order bound callback.

§

CompletedOrder = 101

Completed order callback.

§

CompletedOrdersEnd = 102

Completed orders end callback.

§

ReplaceFaEnd = 103

Replace FA end callback.

§

WshMetaData = 104

WSH metadata callback.

§

WshEventData = 105

WSH event data callback.

§

HistoricalSchedule = 106

Historical schedule callback.

§

UserInfo = 107

User info callback.

§

HistoricalDataEnd = 108

Historical data end callback.

§

CurrentTimeInMillis = 109

Current time in milliseconds callback.

§

ConfigResponse = 110

Config response callback.

§

UpdateConfigResponse = 111

Update config response callback.

Implementations§

Source§

impl Incoming

Source

pub const ALL: &'static [Self]

All known incoming TWS API message ids.

Trait Implementations§

Source§

impl Clone for Incoming

Source§

fn clone(&self) -> Incoming

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for Incoming

Source§

impl Debug for Incoming

Source§

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

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

impl Eq for Incoming

Source§

impl PartialEq for Incoming

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Incoming

Source§

impl TryFrom<i32> for Incoming

Source§

type Error = ()

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

fn try_from(value: i32) -> Result<Self, Self::Error>

Performs the conversion.

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<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> 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.