MarketDataGetMarkets(String, String, Int32, StrategyType, Boolean, OnMarketListComplete) Method
Allows the request of specific markets.
Namespace: T4.APIAssembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
public void GetMarkets(
string psExchangeID,
string psContractID,
int piExpiryDate,
StrategyType penStrategyType,
bool pbIncludeExpired,
OnMarketListComplete poCallback
)
Public Sub GetMarkets (
psExchangeID As String,
psContractID As String,
piExpiryDate As Integer,
penStrategyType As StrategyType,
pbIncludeExpired As Boolean,
poCallback As OnMarketListComplete
)
Parameters
- psExchangeID String
- The exchange for the markets.
- psContractID String
- The contract for the markets.
- piExpiryDate Int32
- The expiry month for the markets.
- penStrategyType StrategyType
- The strategy markets to return.
- pbIncludeExpired Boolean
- Whether to return expired markets.
- poCallback OnMarketListComplete
- The method to call when the market has been loaded.
If the specified market list is already loaded in the API then the callback will be executed on this thread prior to this method completing.
If the market list is not loaded in the API then it will be requested from the server, and when it arrives the callback will be executed on another thread.