Table of Contents

Interface IBacktestTradeApiClient

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

Trade API client for backtesting.

public interface IBacktestTradeApiClient
Extension Methods

Properties

UtcNow

Current UTC time of the simulation.

Methods

DelayAsync(TimeSpan, CancellationToken)

Waits the specified time interval in the backtesting simulation.

NotifyDelayProcessingCompleted()

Notifies the simulation engine that processing of DelayAsync(TimeSpan, CancellationToken) has been completed.

NotifyLiveOrderCallProcessingCompleted(IExchangeOrderId, BacktestBarrierType)

Notifies the simulation engine that processing of a ILiveOrder call has been completed.

TryFastForwardToAsync(DateTime, CancellationToken)

Changes time of the simulation to the given time.

TryNextStepAsync(CancellationToken)

Performs a single step in the backtest simulation.