Table of Contents

Method TryNextStepAsync

Namespace
WhalesSecret.TradeScriptLib.API.TradingV1
Assembly
WhalesSecret.TradeScriptLib.dll

TryNextStepAsync(CancellationToken)

Performs a single step in the backtest simulation.

Task<DateTime?> TryNextStepAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancellation token that allows the caller to cancel the operation.

Returns

Task<DateTime?>

New UTC time of the simulation if the simulation advanced to the next step, or null if the end of the simulation has been reached or the operation was cancelled.