Supported Models

TD Ameritrade

Introduction

This page explains the default security-level models and markets of the TDAmeritradeBrokerageModel.

SetBrokerageModel(BrokerageName.TDAmeritrade, AccountType.Cash);
SetBrokerageModel(BrokerageName.TDAmeritrade, AccountType.Margin);
self.SetBrokerageModel(BrokerageName.TDAmeritrade, AccountType.Cash)
self.SetBrokerageModel(BrokerageName.TDAmeritrade, AccountType.Margin)

To view the implementation of this model, see the LEAN GitHub repository.

Fills

The TDAmeritradeBrokerageModel uses the EquityFillModel.

Slippage

The TDAmeritradeBrokerageModel uses the ConstantSlippageModel with zero slippage.

Fees

The TDAmeritradeBrokerageModel uses the TDAmeritradeFeeModel.

Buying Power

The TDAmeritradeBrokerageModel uses the SecurityMarginModel. If you have a margin account, the TDAmeritradeBrokerageModel allows up to 2x leverage.

Settlement

The TDAmeritradeBrokerageModel uses the ImmediateSettlementModel for margin accounts and the DelayedSettlementModel for cash accounts.

Margin Interest Rate

The TDAmeritradeBrokerageModel uses the NullMarginInterestRateModel.

Default Markets

The default market of the TDAmeritradeBrokerageModel is Market.USA.

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: