OrderSubmissionBatchAdd(Account, Market, BuySell, PriceType, TimeType, Int32, NullableDecimal, NullableDecimal, String, NullableDecimal, ActivationType, ActivationData, Int32, Int32, User, Boolean, Boolean) Method
Adds the specified order and it's Submission details to the batch.
Namespace: T4.APIAssembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
public void Add(
Account poAccount,
Market poMarket,
BuySell penBuySell,
PriceType penPriceType,
TimeType penTimeType,
int piVolume,
decimal? poLimitPrice,
decimal? poStopPrice,
string psTag,
decimal? poTrailPrice,
ActivationType penActivationType,
ActivationData poActivationData,
int piMaxShow,
int piMaxVolume,
User poUser,
bool pbManualOrderIndicator,
bool pbPrimaryUser
)
Public Sub Add (
poAccount As Account,
poMarket As Market,
penBuySell As BuySell,
penPriceType As PriceType,
penTimeType As TimeType,
piVolume As Integer,
poLimitPrice As Decimal?,
poStopPrice As Decimal?,
psTag As String,
poTrailPrice As Decimal?,
penActivationType As ActivationType,
poActivationData As ActivationData,
piMaxShow As Integer,
piMaxVolume As Integer,
poUser As User,
pbManualOrderIndicator As Boolean,
pbPrimaryUser As Boolean
)
Parameters
- poAccount Account
- The account to put the order in.
- poMarket Market
- The market the order is for.
- penBuySell BuySell
- Whether to buy or sell
- penPriceType PriceType
- The type of order, e.g. Limit, Market, StopMarket etc
- penTimeType TimeType
- The time the order should work for, e.g. Day, GTC
- piVolume Int32
- The new total volume for the order.
- poLimitPrice NullableDecimal
- The new limit price for the order.
- poStopPrice NullableDecimal
- The new stop trigger price for the order.
- psTag String
- Tag for identifying this order. This will be put in Order.Tag property.
- poTrailPrice NullableDecimal
- The new trailing price for the order.
- penActivationType ActivationType
- The activation type, or Immediate for none.
- poActivationData ActivationData
- The activation trigger details.
- piMaxShow Int32
- The new max show for the order.
- piMaxVolume Int32
- The maximum volume this order can have, used with multi exit OCO's
- poUser User
- The user to Submit the order with.
- pbManualOrderIndicator Boolean
- True if an actual person is causing this
- pbPrimaryUser Boolean
- True if applying primary user configurations. For example exchangelogin (tag 50). Primary and secondary settings are configured by firm administrators.