Click or drag to resize

ExternalConnectionBaseCreateAccount Method (ExternalConnectionBase, String, String, OrderType, TimeInForce, ProductType, Type, Boolean, Boolean, Boolean)

Create a new account

Namespace:  SharpCharts.Base.Connection
Assembly:  SharpCharts.Base (in SharpCharts.Base.dll) Version: 1.0.0.42 (1.0.0.42)
Syntax
C#
public static bool CreateAccount(
	ExternalConnectionBase externalConnection,
	string name,
	string description,
	OrderType[] orderTypes,
	TimeInForce[] timeInForces,
	ProductType[] productTypes,
	Type[] orderTemplateTypes,
	bool isOcoSupportd,
	bool canCancelAllOrders,
	bool isAccountSummeryCalculated
)

Parameters

externalConnection
Type: SharpCharts.Base.ConnectionExternalConnectionBase
External connection
name
Type: SystemString
Name of the account
description
Type: SystemString
Description of the account. If not set will return the Name
orderTypes
Type: SharpCharts.Base.OrderOrderType
Supported order types
timeInForces
Type: SharpCharts.Base.OrderTimeInForce
Supported time in forces
productTypes
Type: SharpCharts.Base.OrderProductType
Supported product types
orderTemplateTypes
Type: SystemType
Supported Order templates
isOcoSupportd
Type: SystemBoolean
Is Oco orders supported by the account
canCancelAllOrders
Type: SystemBoolean
Can cancel all orders
isAccountSummeryCalculated
Type: SystemBoolean
Is account summery parameters calculated by the connection

Return Value

Type: Boolean
Returns true if account is created, else false
See Also