Skip to main content

Outgoing

Enum Outgoing 

Source
#[repr(i32)]
pub enum Outgoing {
Show 83 variants ReqMktData = 1, CancelMktData = 2, PlaceOrder = 3, CancelOrder = 4, ReqOpenOrders = 5, ReqAcctData = 6, ReqExecutions = 7, ReqIds = 8, ReqContractData = 9, ReqMktDepth = 10, CancelMktDepth = 11, ReqNewsBulletins = 12, CancelNewsBulletins = 13, SetServerLogLevel = 14, ReqAutoOpenOrders = 15, ReqAllOpenOrders = 16, ReqManagedAccounts = 17, ReqFa = 18, ReplaceFa = 19, ReqHistoricalData = 20, ExerciseOptions = 21, ReqScannerSubscription = 22, CancelScannerSubscription = 23, ReqScannerParameters = 24, CancelHistoricalData = 25, ReqCurrentTime = 49, ReqRealTimeBars = 50, CancelRealTimeBars = 51, ReqCalcImpliedVolat = 54, ReqCalcOptionPrice = 55, CancelCalcImpliedVolat = 56, CancelCalcOptionPrice = 57, ReqGlobalCancel = 58, ReqMarketDataType = 59, ReqPositions = 61, ReqAccountSummary = 62, CancelAccountSummary = 63, CancelPositions = 64, VerifyRequest = 65, VerifyMessage = 66, QueryDisplayGroups = 67, SubscribeToGroupEvents = 68, UpdateDisplayGroup = 69, UnsubscribeFromGroupEvents = 70, StartApi = 71, VerifyAndAuthRequest = 72, VerifyAndAuthMessage = 73, ReqPositionsMulti = 74, CancelPositionsMulti = 75, ReqAccountUpdatesMulti = 76, CancelAccountUpdatesMulti = 77, ReqSecDefOptParams = 78, ReqSoftDollarTiers = 79, ReqFamilyCodes = 80, ReqMatchingSymbols = 81, ReqMktDepthExchanges = 82, ReqSmartComponents = 83, ReqNewsArticle = 84, ReqNewsProviders = 85, ReqHistoricalNews = 86, ReqHeadTimestamp = 87, ReqHistogramData = 88, CancelHistogramData = 89, CancelHeadTimestamp = 90, ReqMarketRule = 91, ReqPnl = 92, CancelPnl = 93, ReqPnlSingle = 94, CancelPnlSingle = 95, ReqHistoricalTicks = 96, ReqTickByTickData = 97, CancelTickByTickData = 98, ReqCompletedOrders = 99, ReqWshMetaData = 100, CancelWshMetaData = 101, ReqWshEventData = 102, CancelWshEventData = 103, ReqUserInfo = 104, ReqCurrentTimeInMillis = 105, CancelContractData = 106, CancelHistoricalTicks = 107, ReqConfig = 108, UpdateConfig = 109,
}
Expand description

Outgoing TWS API message identifiers.

Variants§

§

ReqMktData = 1

Request market data.

§

CancelMktData = 2

Cancel market data.

§

PlaceOrder = 3

Place order.

§

CancelOrder = 4

Cancel order.

§

ReqOpenOrders = 5

Request open orders.

§

ReqAcctData = 6

Request account data.

§

ReqExecutions = 7

Request executions.

§

ReqIds = 8

Request ids.

§

ReqContractData = 9

Request contract data.

§

ReqMktDepth = 10

Request market depth.

§

CancelMktDepth = 11

Cancel market depth.

§

ReqNewsBulletins = 12

Request news bulletins.

§

CancelNewsBulletins = 13

Cancel news bulletins.

§

SetServerLogLevel = 14

Set server log level.

§

ReqAutoOpenOrders = 15

Request auto-open orders.

§

ReqAllOpenOrders = 16

Request all open orders.

§

ReqManagedAccounts = 17

Request managed accounts.

§

ReqFa = 18

Request FA data.

§

ReplaceFa = 19

Replace FA data.

§

ReqHistoricalData = 20

Request historical data.

§

ExerciseOptions = 21

Exercise options.

§

ReqScannerSubscription = 22

Request scanner subscription.

§

CancelScannerSubscription = 23

Cancel scanner subscription.

§

ReqScannerParameters = 24

Request scanner parameters.

§

CancelHistoricalData = 25

Cancel historical data.

§

ReqCurrentTime = 49

Request current time.

§

ReqRealTimeBars = 50

Request real-time bars.

§

CancelRealTimeBars = 51

Cancel real-time bars.

§

ReqCalcImpliedVolat = 54

Request implied volatility calculation.

§

ReqCalcOptionPrice = 55

Request option price calculation.

§

CancelCalcImpliedVolat = 56

Cancel implied volatility calculation.

§

CancelCalcOptionPrice = 57

Cancel option price calculation.

§

ReqGlobalCancel = 58

Request global cancel.

§

ReqMarketDataType = 59

Request market data type.

§

ReqPositions = 61

Request positions.

§

ReqAccountSummary = 62

Request account summary.

§

CancelAccountSummary = 63

Cancel account summary.

§

CancelPositions = 64

Cancel positions.

§

VerifyRequest = 65

Verify request.

§

VerifyMessage = 66

Verify message.

§

QueryDisplayGroups = 67

Query display groups.

§

SubscribeToGroupEvents = 68

Subscribe to group events.

§

UpdateDisplayGroup = 69

Update display group.

§

UnsubscribeFromGroupEvents = 70

Unsubscribe from group events.

§

StartApi = 71

Start API.

§

VerifyAndAuthRequest = 72

Verify and auth request.

§

VerifyAndAuthMessage = 73

Verify and auth message.

§

ReqPositionsMulti = 74

Request positions multi.

§

CancelPositionsMulti = 75

Cancel positions multi.

§

ReqAccountUpdatesMulti = 76

Request account updates multi.

§

CancelAccountUpdatesMulti = 77

Cancel account updates multi.

§

ReqSecDefOptParams = 78

Request security definition option parameters.

§

ReqSoftDollarTiers = 79

Request soft dollar tiers.

§

ReqFamilyCodes = 80

Request family codes.

§

ReqMatchingSymbols = 81

Request matching symbols.

§

ReqMktDepthExchanges = 82

Request market depth exchanges.

§

ReqSmartComponents = 83

Request smart components.

§

ReqNewsArticle = 84

Request news article.

§

ReqNewsProviders = 85

Request news providers.

§

ReqHistoricalNews = 86

Request historical news.

§

ReqHeadTimestamp = 87

Request head timestamp.

§

ReqHistogramData = 88

Request histogram data.

§

CancelHistogramData = 89

Cancel histogram data.

§

CancelHeadTimestamp = 90

Cancel head timestamp.

§

ReqMarketRule = 91

Request market rule.

§

ReqPnl = 92

Request PnL.

§

CancelPnl = 93

Cancel PnL.

§

ReqPnlSingle = 94

Request PnL single.

§

CancelPnlSingle = 95

Cancel PnL single.

§

ReqHistoricalTicks = 96

Request historical ticks.

§

ReqTickByTickData = 97

Request tick-by-tick data.

§

CancelTickByTickData = 98

Cancel tick-by-tick data.

§

ReqCompletedOrders = 99

Request completed orders.

§

ReqWshMetaData = 100

Request WSH metadata.

§

CancelWshMetaData = 101

Cancel WSH metadata.

§

ReqWshEventData = 102

Request WSH event data.

§

CancelWshEventData = 103

Cancel WSH event data.

§

ReqUserInfo = 104

Request user info.

§

ReqCurrentTimeInMillis = 105

Request current time in milliseconds.

§

CancelContractData = 106

Cancel contract data.

§

CancelHistoricalTicks = 107

Cancel historical ticks.

§

ReqConfig = 108

Request config.

§

UpdateConfig = 109

Update config.

Implementations§

Source§

impl Outgoing

Source

pub const fn id(self) -> i32

Numeric protocol id.

Source

pub const fn protobuf_id(self) -> i32

Numeric protobuf protocol id.

Trait Implementations§

Source§

impl Clone for Outgoing

Source§

fn clone(&self) -> Outgoing

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 Outgoing

Source§

impl Debug for Outgoing

Source§

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

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

impl Eq for Outgoing

Source§

impl PartialEq for Outgoing

Source§

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

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.