Click or drag to resize
IProductLookupResourceGetAsync Method (String, SecurityType, MarketParameters, CancellationToken)

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

Looks up an exchange and symbol based on company name and security type.

Namespace: ETradeNet.Market.ProductLookup
Assembly: ETradeNet.Market (in ETradeNet.Market.dll) Version: 1.0.5793.41727
Syntax
Task<IGetResponse> GetAsync(
	string company,
	SecurityType type,
	MarketParameters parameters,
	CancellationToken cancellationToken
)

Parameters

company
Type: SystemString
Full or partial name of the company. Note that the system extensively abbreviates common words such as "company", "industries", and "systems", and generally skips punctuation (periods, commas, apostrophes, etc.). Required.
type
Type: ETradeNet.Market.ProductLookup.DataSecurityType
The type of security. Required.
parameters
Type: ETradeNet.MarketMarketParameters
Common parameters.
cancellationToken
Type: System.ThreadingCancellationToken
Cancellation token.

Return Value

Type: TaskIGetResponse
Get method response (asynchronous task).
Exceptions
ExceptionCondition
ETradeExceptionE*TRADE API exception.
HttpRequestExceptionNetwork error.
ArgumentNullExceptionNull argument value (company, type).
ArgumentExceptionArgument value does not adhere to the specification (parameters).
OperationCanceledExceptionAsynchronous task canceled (cancellationToken).
ObjectDisposedExceptionDisposed object accessed (cancellationToken).
See Also