Click or drag to resize

ExternalConnectionBaseCreateOrder Method

Create a new order

Namespace:  SharpCharts.Base.Connection
Assembly:  SharpCharts.Base (in SharpCharts.Base.dll) Version: 1.0.0.42 (1.0.0.42)
Syntax
C#
public static IOrder CreateOrder(
	Object tag,
	string name,
	Account account,
	Instrument instrument,
	OrderAction orderAction,
	OrderType orderType,
	int quantity,
	double limitPrice,
	double stopPrice,
	string ocoId,
	int disclosedQuantity,
	TimeInForce timeInForce,
	ProductType productType
)

Parameters

tag
Type: SystemObject
Order Id
name
Type: SystemString
Name of the order
account
Type: SharpCharts.Base.OrderAccount
Account
instrument
Type: SharpCharts.Base.DataInstrument
Instrument
orderAction
Type: SharpCharts.Base.OrderOrderAction
Order action
orderType
Type: SharpCharts.Base.OrderOrderType
Order type
quantity
Type: SystemInt32
Quantity
limitPrice
Type: SystemDouble
Limit price
stopPrice
Type: SystemDouble
Stop price
ocoId
Type: SystemString
Oco Id
disclosedQuantity
Type: SystemInt32
Disclose quantity
timeInForce
Type: SharpCharts.Base.OrderTimeInForce
Time in force
productType
Type: SharpCharts.Base.OrderProductType
Product type

Return Value

Type: IOrder
See Also