Lean  $LEAN_TAG$
QuantConnect.Securities.Future.FutureSymbol Class Reference

Static class contains common utility methods specific to symbols representing the future contracts More...

Static Public Member Functions

static bool IsStandard (Symbol symbol)
 Determine if a given Futures contract is a standard contract. More...
 
static bool IsWeekly (Symbol symbol)
 Returns true if the future contract is a weekly contract More...
 

Detailed Description

Static class contains common utility methods specific to symbols representing the future contracts

Definition at line 24 of file FutureSymbol.cs.

Member Function Documentation

◆ IsStandard()

static bool QuantConnect.Securities.Future.FutureSymbol.IsStandard ( Symbol  symbol)
static

Determine if a given Futures contract is a standard contract.

Parameters
symbolFuture symbol
Returns
True if symbol expiration matches standard expiration

Definition at line 31 of file FutureSymbol.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsWeekly()

static bool QuantConnect.Securities.Future.FutureSymbol.IsWeekly ( Symbol  symbol)
static

Returns true if the future contract is a weekly contract

Parameters
symbolFuture symbol
Returns
True if symbol is non-standard contract

Definition at line 60 of file FutureSymbol.cs.

Here is the call graph for this function:

The documentation for this class was generated from the following file: