Lean
$LEAN_TAG$
|
Sources short availability data from the local disk for the given brokerage More...
Public Member Functions | |
LocalDiskShortableProvider (string brokerage) | |
Creates an instance of the class. Establishes the directory to read from. More... | |
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 date. More... | |
Protected Member Functions | |
record | ShortableData (long? ShortableQuantity, decimal RebateFee, decimal FeeRate) |
Gets the shortable data More... | |
Static Protected Attributes | |
static IDataProvider | DataProvider = Composer.Instance.GetPart<IDataProvider>() |
The data provider instance to use More... | |
Properties | |
string | Brokerage [get, set] |
The short availability provider More... | |
Sources short availability data from the local disk for the given brokerage
Definition at line 29 of file LocalDiskShortableProvider.cs.
QuantConnect.Data.Shortable.LocalDiskShortableProvider.LocalDiskShortableProvider | ( | string | brokerage | ) |
Creates an instance of the class. Establishes the directory to read from.
brokerage | Brokerage to read the short availability data |
Definition at line 49 of file LocalDiskShortableProvider.cs.
decimal QuantConnect.Data.Shortable.LocalDiskShortableProvider.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 60 of file LocalDiskShortableProvider.cs.
decimal QuantConnect.Data.Shortable.LocalDiskShortableProvider.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 77 of file LocalDiskShortableProvider.cs.
long? QuantConnect.Data.Shortable.LocalDiskShortableProvider.ShortableQuantity | ( | Symbol | symbol, |
DateTime | localTime | ||
) |
Gets the quantity shortable for the Symbol at the given date.
symbol | Symbol to lookup shortable quantity |
localTime | Time of the algorithm |
Implements QuantConnect.Interfaces.IShortableProvider.
Definition at line 93 of file LocalDiskShortableProvider.cs.
|
protected |
Gets the shortable data
|
staticprotected |
The data provider instance to use
Definition at line 34 of file LocalDiskShortableProvider.cs.
|
getsetprotected |
The short availability provider
Definition at line 43 of file LocalDiskShortableProvider.cs.