OEC Application Programming Interface

BaseContract.GetContracts Method 

Gets nearest N contracts according to month/year mask

public List<Contract> GetContracts(
   Int32 NearestNumber,
   List<Int32> Months,
   List<Int32> Years
);

Parameters

NearestNumber
number of contracts to return, 0 for all contracts
Months
Allowed months, null for all months
Years
Allowed years, null for all years

Return Value

Contract list

See Also

BaseContract Class | OEC.API Namespace