OptionNotificationEventArgs
QuantConnect.Brokerages.OptionNotificationEventArgs
OptionNotificationEventArgs(
symbol: Union[Symbol, str, BaseContract],
position: float,
)
OptionNotificationEventArgs(
symbol: Union[Symbol, str, BaseContract],
position: float,
tag: str,
)
Bases: EventArgs
Event arguments class for the IBrokerage.option_notification event
Initializes a new instance of the OptionNotificationEventArgs class
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
symbol
|
Union[Symbol, str, BaseContract]
|
The symbol |
required |
position
|
float
|
The new option position |
required |
tag
|
Optional[str]
|
The tag to be used for the order |
None
|
position
position: float
Gets the new option position (positive for long, zero for flat, negative for short)
tag
tag: str
The tag that will be used in the order
to_string
to_string() -> str
Returns the string representation of this event