BacktestRequest (Class)

This page describes the BacktestRequest class

BacktestRequest class defines properties for initiating a backtest of your strategy.

PropertyProperty TypeDescription
UidStringUnique id of a backtest run. This will be filled by the QuantEngineClient class Backtest method.
StartDateDateTimeStart date of the backtest.
EndDateDateTimeEnd date of the backtest.
ApiKeyStringApiKey of your brokerage account (like Alpaca ApiKey).

Mandatory for Alpaca users.
ApiSecretKeyStringApiSecretKey of your brokerage account (like Alpaca ApiSecretKey).

Mandatory for Alpaca users.
ClientCodeStringClient code of your brokerage account (like NorthEast client code).

Applicable for India Brokerage users. Optional.
PasswordStringPassword of your brokerage account (like NorthEast user password).

Applicable for India Brokerage users. Optional.
TwoFactorAuthStringTwoFactorAuth of your brokerage account (like NorthEast two factor authentication code).

Applicable for India Brokerage users. Optional.
SamplingTimeInSecondsInteger (32-bit)Sampling time in seconds, which determines at what intervals the tick data has to be streamed to your strategy. For example, If this value is 0, then each tick is streamed to your strategy. If this value is 5, then ticks data for every 5 seconds will be streamed to your strategy.
BrokeragePlatformBrokeragePlatformBrokerage platform to be used for backtesting.

What’s Next