ContractGetMarkets(Boolean, OnMarketListComplete) Method
Return the collection of all 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(
bool pbIncludeExpired,
OnMarketListComplete poCallback
)
Public Sub GetMarkets (
pbIncludeExpired As Boolean,
poCallback As OnMarketListComplete
)
Parameters
- pbIncludeExpired Boolean
- Whether to return expired markets or current markets
- poCallback OnMarketListComplete
- The method to call with the market list results
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.