Lean
$LEAN_TAG$
|
Defines a single futures contract at a specific expiration More...
Public Member Functions | |
FuturesContract (Symbol symbol, Symbol underlyingSymbol) | |
Initializes a new instance of the FuturesContract class More... | |
override string | ToString () |
Returns a string that represents the current object. More... | |
Public Attributes | |
DateTime | Expiry => Symbol.ID.Date |
Gets the expiration date More... | |
Properties | |
Symbol | Symbol [get] |
Gets the futures contract's symbol More... | |
Symbol | UnderlyingSymbol [get] |
Gets the underlying security's symbol More... | |
DateTime | Time [get, set] |
Gets the local date time this contract's data was last updated More... | |
decimal | OpenInterest [get, set] |
Gets the open interest More... | |
decimal | LastPrice [get, set] |
Gets the last price this contract traded at More... | |
long | Volume [get, set] |
Gets the last volume this contract traded at More... | |
decimal | BidPrice [get, set] |
Gets the current bid price More... | |
long | BidSize [get, set] |
Get the current bid size More... | |
decimal | AskPrice [get, set] |
Gets the ask price More... | |
long | AskSize [get, set] |
Gets the current ask size More... | |
Defines a single futures contract at a specific expiration
Definition at line 23 of file FuturesContract.cs.
Initializes a new instance of the FuturesContract class
symbol | The futures contract symbol |
underlyingSymbol | The symbol of the underlying security |
Definition at line 115 of file FuturesContract.cs.
override string QuantConnect.Data.Market.FuturesContract.ToString | ( | ) |
Returns a string that represents the current object.
DateTime QuantConnect.Data.Market.FuturesContract.Expiry => Symbol.ID.Date |
Gets the expiration date
Definition at line 44 of file FuturesContract.cs.
|
get |
Gets the futures contract's symbol
Definition at line 29 of file FuturesContract.cs.
|
get |
Gets the underlying security's symbol
Definition at line 37 of file FuturesContract.cs.
|
getset |
Gets the local date time this contract's data was last updated
Definition at line 50 of file FuturesContract.cs.
|
getset |
Gets the open interest
Definition at line 58 of file FuturesContract.cs.
|
getset |
Gets the last price this contract traded at
Definition at line 66 of file FuturesContract.cs.
|
getset |
Gets the last volume this contract traded at
Definition at line 74 of file FuturesContract.cs.
|
getset |
Gets the current bid price
Definition at line 82 of file FuturesContract.cs.
|
getset |
Get the current bid size
Definition at line 90 of file FuturesContract.cs.
|
getset |
Gets the ask price
Definition at line 98 of file FuturesContract.cs.
|
getset |
Gets the current ask size
Definition at line 106 of file FuturesContract.cs.