Click or drag to resize
IPositionsResourceGetListAsync Method (String, NullableUInt32, String, NullableTypeCode, String, NullableCallOrPut, NullableDateTime, AccountsParameters)

Note: This is preliminary documentation provided only as a preview, and is subject to change. Please contact the author for pricing and licensing information.

Retrieves the positions held in the specified account.

Namespace: ETradeNet.Accounts.Positions
Assembly: ETradeNet.Accounts (in ETradeNet.Accounts.dll) Version: 1.0.5793.41751
Syntax
Task<IGetListResponse> GetListAsync(
	string accountId,
	Nullable<uint> count,
	string marker,
	Nullable<TypeCode> typeCode,
	string symbol,
	Nullable<CallOrPut> callPut,
	Nullable<DateTime> expDate,
	AccountsParameters parameters
)

Parameters

accountId
Type: SystemString
Numeric account ID. Required.
count
Type: SystemNullableUInt32
The number of positions to return in the response. The default is 25.
marker
Type: SystemString
The desired starting point of the set of items to return.
typeCode
Type: SystemNullableTypeCode
The type of security.
symbol
Type: SystemString
The market symbol. Required if typeCode is Optn.
callPut
Type: SystemNullableCallOrPut
The operation type specified in the option order.
expDate
Type: SystemNullableDateTime
The date the option will expire, as specified in the option contract. Required if typeCode is Optn.
parameters
Type: ETradeNet.AccountsAccountsParameters
Common parameters.

Return Value

Type: TaskIGetListResponse
GetList method response (asynchronous task).
Exceptions
ExceptionCondition
ETradeExceptionE*TRADE API exception.
HttpRequestExceptionNetwork error.
ArgumentNullExceptionNull argument value (accountId).
ArgumentExceptionArgument value does not adhere to the specification (parameters).
See Also