Lean
$LEAN_TAG$
|
Defines live brokerage cash synchronization operations. More...
Public Member Functions | |
bool | ShouldPerformCashSync (DateTime currentTimeUtc) |
Returns whether the brokerage should perform the cash synchronization More... | |
bool | PerformCashSync (IAlgorithm algorithm, DateTime currentTimeUtc, Func< TimeSpan > getTimeSinceLastFill) |
Synchronizes the cashbook with the brokerage account More... | |
Properties | |
DateTime | LastSyncDateTimeUtc [get] |
Gets the datetime of the last sync (UTC) More... | |
Defines live brokerage cash synchronization operations.
Definition at line 23 of file IBrokerageCashSynchronizer.cs.
bool QuantConnect.Interfaces.IBrokerageCashSynchronizer.ShouldPerformCashSync | ( | DateTime | currentTimeUtc | ) |
Returns whether the brokerage should perform the cash synchronization
currentTimeUtc | The current time (UTC) |
Implemented in QuantConnect.Brokerages.Brokerage.
bool QuantConnect.Interfaces.IBrokerageCashSynchronizer.PerformCashSync | ( | IAlgorithm | algorithm, |
DateTime | currentTimeUtc, | ||
Func< TimeSpan > | getTimeSinceLastFill | ||
) |
Synchronizes the cashbook with the brokerage account
algorithm | The algorithm instance |
currentTimeUtc | The current time (UTC) |
getTimeSinceLastFill | A function which returns the time elapsed since the last fill |
Implemented in QuantConnect.Brokerages.Brokerage.
|
get |
Gets the datetime of the last sync (UTC)
Definition at line 28 of file IBrokerageCashSynchronizer.cs.