Click or drag to resize

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: Woti
Assembly: 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
)

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
ExceptionCondition
CWormsException
Remarks
Deprecated in favor of order parity allocations, use CWormsAllocator class instead.
See Also