ContractGetMarkets(Int32, StrategyType, Boolean, OnMarketListComplete, Object) Method
Get the filtered collection of expired markets for this contract.
Namespace: T4.APIAssembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
public void GetMarkets(
int piExpiryDate,
StrategyType penStrategyType,
bool pbIncludeExpired,
OnMarketListComplete poCallback,
Object poTag
)
Public Sub GetMarkets (
piExpiryDate As Integer,
penStrategyType As StrategyType,
pbIncludeExpired As Boolean,
poCallback As OnMarketListComplete,
poTag As Object
)
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
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.