Composite key to sort contract lists by symbol and expiration date
Namespace: GF.Api.Contracts
Assembly: GF.Api (in GF.Api.dll) Version: dd7171be68430789135ec75c4e9f4bbfeca31201
Syntax
[SerializableAttribute] public struct ContractSortKey : IComparable<ContractSortKey>, IEquatable<ContractSortKey>
The ContractSortKey type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ContractSortKey |
Construct sort key object
|
Methods
| Name | Description | |
|---|---|---|
| CompareTo |
Compare sort keys with another one
| |
| Equals(Object) |
Structural equality
(Overrides ValueTypeEquals(Object).) | |
| Equals(ContractSortKey) |
Structural equality
| |
| GetHashCode |
returns a hashcode
(Overrides ValueTypeGetHashCode.) |
Fields
| Name | Description | |
|---|---|---|
| BaseSymbol |
Contract base symbol
| |
| MonthYear |
Contract month/year
|
See Also