public class ContractPublic Class ContractContracts consist of expiry months and individual markets within those months.
A Contract is uniquely identified by the combination of of ExchangeID and ContractID. ContractID's alone are not unique and may exist in multiple exchanges.
| Category | The contract category if known. |
| ContractID | The identifier for this contract. |
| ContractType | The type of contract this is, e.g. Future, Option etc. |
| Currency | The currency this contract is in. |
| DayChangeTime | The markets day change time. |
| DayChangeTimeAlt | The markets alternate day change time. |
| DayChangeTimeExceptions | The markets day change time exceptions. |
| Description | Descriptive name for the contract. |
| Enabled | True if the contract is enabled. |
| Exchange | The exchange that this contract belongs to. |
| Host | Reference to the api Host object. |
| QuoteFeedSubscribed | Whether we are subscribed to the quote feed. |
| Relations | Return the collection of related contracts for this contract. |
| TradeFeedSubscribed | Whether we are subscribed to the trade feed. |
| TradingSchedule | Return the trading schedule for this contract. |
| TradingScheduleData | The contracts trading schedule for the week, if known. |
| BeginRequestActiveMarket | Requests the active market for the specified trade date for the contract. |
| BeginRequestChartData(DateTime, DateTime, ChartDataType, IChartDataRequestChartDataCompleteEventHandler) | Requests chart data for the contract (active markets.) |
| BeginRequestChartData(DateTime, DateTime, DateTime, DateTime, ChartDataType, IChartDataRequestChartDataCompleteEventHandler) | Requests chart data for the contract (active markets.) |
| BeginRequestMarketTradeVolumeData | Request historical chart data for all markets in the contract (including expired ones.) |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetMarkets | Return the collection of markets for this contract. |
| GetMarkets(Boolean) | Return the collection of markets for this contract. |
| GetMarkets(OnMarketListComplete) | Return the collection of markets for this contract. |
| GetMarkets(Boolean, OnMarketListComplete) | Return the collection of all expired markets for this contract. |
| GetMarkets(OnMarketListComplete, Object) | Return the collection of markets for this contract. |
| GetMarkets(Boolean, OnMarketListComplete, Object) | Return the collection of all expired markets for this contract. |
| GetMarkets(Int32, StrategyType, OnMarketListComplete) | Get the filtered collection of markets for this contract. |
| GetMarkets(Int32, StrategyType, Boolean, OnMarketListComplete) | Get the filtered collection of expired markets for this contract. |
| GetMarkets(Int32, StrategyType, OnMarketListComplete, Object) | Get the filtered collection of markets for this contract. |
| GetMarkets(Int32, StrategyType, Boolean, OnMarketListComplete, Object) | Get the filtered collection of expired markets for this contract. |
| GetTradeDate | Calculate and return the current trading day. |
| GetTradeDate(DateTime) | Calculate and return the current trading day. |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| Subscribe | Subscribe to the contract quote and trade feed. |
| ToString |
Display the description by default.
(Overrides ObjectToString) |
| Unsubscribe | Unsubscribe the contract feed. |
| ContractFeed | Event raised when quote, trade or snapshot data is returned. |