Supported Models

Binance

Introduction

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

// Binance
SetBrokerageModel(BrokerageName.Binance, AccountType.Cash);
SetBrokerageModel(BrokerageName.Binance, AccountType.Margin);

//Binance US
SetBrokerageModel(BrokerageName.BinanceUS, AccountType.Cash);
# Binance
self.SetBrokerageModel(BrokerageName.Binance, AccountType.Cash)
self.SetBrokerageModel(BrokerageName.Binance, AccountType.Margin)

# Binance US
self.SetBrokerageModel(BrokerageName.BinanceUS, AccountType.Cash)

To view the implementation of these models, see BinanceBrokerageModel.cs or BinanceUSBrokerageModel.cs in the LEAN GitHub repository.

Fills

The BinanceBrokerageModel and BinanceUSBrokerageModel use the ImmediateFillModel.

Slippage

The BinanceBrokerageModel and BinanceUSBrokerageModel use the ConstantSlippageModel with zero slippage.

Fees

The BinanceBrokerageModel and BinanceUSBrokerageModel use the BinanceFeeModel.

Buying Power

The BinanceBrokerageModel and BinanceUSBrokerageModel use the CashBuyingPowerModel for cash accounts and the SecurityMarginModel for margin accounts.

If you have a margin account, the BinanceBrokerageModel allows 3x leverage. The BinanceUSBrokerageModel doesn't currently support margin trading.

Settlement

The BinanceBrokerageModel and BinanceUSBrokerageModel use the ImmediateSettlementModel.

Default Markets

The default market of the BinanceBrokerageModel is Market.Binance. The default market of the BinanceUSBrokerageModel is Market.BinanceUS.

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: