TradingRequest (Class)

This page described TradingRequest class

TradingRequest class defines properties for initiating a live or paper trading of your strategy.

PropertyProperty TypeDescription
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. Mandatory.
PasswordStringPassword of your brokerage account (like NorthEast user password).

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

Applicable for India Brokerage users. Mandatory.
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