IBaseContractGetContracts Method

GF API Documentation
Gets nearest N contracts according to month/year mask

Namespace:  GF.Api.Contracts.Base
Assembly:  GF.Api (in GF.Api.dll) Version: dd7171be68430789135ec75c4e9f4bbfeca31201
Syntax

IReadOnlyList<IContract> GetContracts(
	int nearestNumber,
	List<int> months,
	List<int> years
)

Parameters

nearestNumber
Type: SystemInt32
number of contracts to return, 0 for all contracts
months
Type: System.Collections.GenericListInt32
Allowed months, null for all months
years
Type: System.Collections.GenericListInt32
Allowed years, null for all years

Return Value

Type: IReadOnlyListIContract
Contract list
See Also

Reference