ContractGetMarkets(Int32, StrategyType, Boolean, OnMarketListComplete, Object) Method

Get the filtered collection of expired markets for this contract.

Definition

Namespace: T4.API
Assembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
C#
public void GetMarkets(
	int piExpiryDate,
	StrategyType penStrategyType,
	bool pbIncludeExpired,
	OnMarketListComplete poCallback,
	Object poTag
)

Parameters

piExpiryDate  Int32
The expiry date to filter on, or 0 for no filter. This is in the form of an integer, yyyymmdd, e.g. 20181200 for Dec 2018
penStrategyType  StrategyType
The strategy type to filter on, or StrategyType.Any for no filter.
pbIncludeExpired  Boolean
Whether to return expired markets or current markets
poCallback  OnMarketListComplete
The method to call with the market list results
poTag  Object
Tag allowing you to identify this request

Remarks

If the markets have already been loaded then the callback method will be called on this same thread before this method returns. If the markets haven't been loaded then they will be requested from the server, this method will return and the callback method will be called on a different thread when the data is received from the server.

See Also