MarketDataGetMarket(String, Boolean, OnMarketListComplete) Method
Get the market from the specified id. Requesting it from the server if needed.
Namespace: T4.APIAssembly: T4API.47 (in T4API.47.dll) Version: 4.7.0.0 (4.7.68.4)
public void GetMarket(
string psMarketID,
bool pbIncludeExpired,
OnMarketListComplete poCallback
)
Public Sub GetMarket (
psMarketID As String,
pbIncludeExpired As Boolean,
poCallback As OnMarketListComplete
)
Parameters
- psMarketID String
- MarketID of the market to get.
- pbIncludeExpired Boolean
- Whether to search expired markets.
- poCallback OnMarketListComplete
- The method to call when the market has been loaded.
If the specified market is already loaded in the API then the callback will be executed on this thread prior to this method completing.
If the market 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.