Supported Models

Oanda

Introduction

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

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

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

Fills

The OandaBrokerageModel uses the ImmediateFillModel.

Slippage

The OandaBrokerageModel uses the ConstantSlippageModel with zero slippage.

Fees

The OandaBrokerageModel uses the ConstantFeeModel with zero fees.

Buying Power

The OandaBrokerageModel uses the CashBuyingPowerModel if you trade Forex pairs with a cash account. Otherwise, it uses the SecurityMarginModel.

If you have a margin account, the OandaBrokerageModel allows 50x leverage.

Settlement

The OandaBrokerageModel uses the ImmediateSettlementModel for Forex trades and the AccountCurrencyImmediateSettlementModel for CFD trades.

Default Markets

The default market of the OandaBrokerageModel is Market.Oanda.

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: