FutureSymbol
QuantConnect.Securities.Future.FutureSymbol
Bases: Object
Static class contains common utility methods specific to symbols representing the future contracts
is_standard
is_standard(
symbol: Union[Symbol, str, BaseContract],
) -> bool
Determine if a given Futures contract is a standard contract.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
Union[Symbol, str, BaseContract]
|
Future symbol |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if symbol expiration matches standard expiration. |
is_weekly
is_weekly(symbol: Union[Symbol, str, BaseContract]) -> bool
Returns true if the future contract is a weekly contract
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
Union[Symbol, str, BaseContract]
|
Future symbol |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if symbol is non-standard contract. |