Lean
$LEAN_TAG$
|
Defines the default shortable provider in the case that no local data exists. This will allow for all assets to be infinitely shortable, with no restrictions. More...
Public Member Functions | |
decimal | FeeRate (Symbol symbol, DateTime localTime) |
Gets interest rate charged on borrowed shares for a given asset. More... | |
decimal | RebateRate (Symbol symbol, DateTime localTime) |
Gets the Fed funds or other currency-relevant benchmark rate minus the interest rate charged on borrowed shares for a given asset. E.g.: Interest rate - borrow fee rate = borrow rebate rate: 5.32% - 0.25% = 5.07%. More... | |
long? | ShortableQuantity (Symbol symbol, DateTime localTime) |
Gets the quantity shortable for the Symbol at the given time. More... | |
Properties | |
static NullShortableProvider | Instance = new () [get] |
The null shortable provider instance More... | |
Defines the default shortable provider in the case that no local data exists. This will allow for all assets to be infinitely shortable, with no restrictions.
Definition at line 25 of file NullShortableProvider.cs.
decimal QuantConnect.Data.Shortable.NullShortableProvider.FeeRate | ( | Symbol | symbol, |
DateTime | localTime | ||
) |
Gets interest rate charged on borrowed shares for a given asset.
symbol | Symbol to lookup fee rate |
localTime | Time of the algorithm |
Implements QuantConnect.Interfaces.IShortableProvider.
Definition at line 38 of file NullShortableProvider.cs.
decimal QuantConnect.Data.Shortable.NullShortableProvider.RebateRate | ( | Symbol | symbol, |
DateTime | localTime | ||
) |
Gets the Fed funds or other currency-relevant benchmark rate minus the interest rate charged on borrowed shares for a given asset. E.g.: Interest rate - borrow fee rate = borrow rebate rate: 5.32% - 0.25% = 5.07%.
symbol | Symbol to lookup rebate rate |
localTime | Time of the algorithm |
Implements QuantConnect.Interfaces.IShortableProvider.
Definition at line 50 of file NullShortableProvider.cs.
long? QuantConnect.Data.Shortable.NullShortableProvider.ShortableQuantity | ( | Symbol | symbol, |
DateTime | localTime | ||
) |
Gets the quantity shortable for the Symbol at the given time.
symbol | Symbol to check |
localTime | Local time of the algorithm |
Implements QuantConnect.Interfaces.IShortableProvider.
Definition at line 61 of file NullShortableProvider.cs.
|
staticget |
The null shortable provider instance
Definition at line 30 of file NullShortableProvider.cs.