CWormsSessionAllocate(Int32, String, Boolean, Boolean, Double, String, String, Boolean, Double, Boolean, String, String) Method |
Note: This API is now obsolete.
(Deprecated) Allocate shares from one account to another. Does not retain knowledge of the original orders.
Namespace: WotiAssembly: Woti (in Woti.dll) Version: 13.4.271.0
Syntax[ObsoleteAttribute("Use CWormsAllocator instead of this method.")]
public virtual void Allocate(
int iQty,
string sSymbol,
bool bBuyOrSell,
bool bOpenOrClose,
double dPrice,
string sFromAccount,
string sToAccount,
bool bUseCommission,
double dCommissionPrice,
bool bPerShareOrFlatFee,
string sWaveId,
string sOccCustomerId
)<ObsoleteAttribute("Use CWormsAllocator instead of this method.")>
Public Overridable Sub Allocate (
iQty As Integer,
sSymbol As String,
bBuyOrSell As Boolean,
bOpenOrClose As Boolean,
dPrice As Double,
sFromAccount As String,
sToAccount As String,
bUseCommission As Boolean,
dCommissionPrice As Double,
bPerShareOrFlatFee As Boolean,
sWaveId As String,
sOccCustomerId As String
)public:
[ObsoleteAttribute(L"Use CWormsAllocator instead of this method.")]
virtual void Allocate(
int iQty,
String^ sSymbol,
bool bBuyOrSell,
bool bOpenOrClose,
double dPrice,
String^ sFromAccount,
String^ sToAccount,
bool bUseCommission,
double dCommissionPrice,
bool bPerShareOrFlatFee,
String^ sWaveId,
String^ sOccCustomerId
)
Parameters
- iQty Int32
- The quantity to allocate.
- sSymbol String
- The symbol to allocate.
- bBuyOrSell Boolean
- The side to allocate.
- bOpenOrClose Boolean
- Determines whether to send Open or Close side types (applicable to options only).
- dPrice Double
- The price of the allocation.
- sFromAccount String
- The account being allocated from.
- sToAccount String
- The account being allocated to.
- bUseCommission Boolean
- Whether or not to include a commission.
- dCommissionPrice Double
- The commission price. (Total commission = CommissionPrice * CommissionQty
- bPerShareOrFlatFee Boolean
- True if commission price is per share, false if a flat fee.
- sWaveId String
- The Wave to put the allocations into.
- sOccCustomerId String
- OCC Actionable Identifier
Implements
IWormsSessionAllocate(Int32, String, Boolean, Boolean, Double, String, String, Boolean, Double, Boolean, String, String)
Exceptions
RemarksDeprecated in favor of order parity allocations, use CWormsAllocator class instead.
See Also