Lean  $LEAN_TAG$
QuantConnect.Orders.Fees.BinanceFeeModel Class Reference

Provides an implementation of FeeModel that models Binance order fees More...

Inheritance diagram for QuantConnect.Orders.Fees.BinanceFeeModel:
[legend]

Public Member Functions

 BinanceFeeModel (decimal mFee=MakerTier1Fee, decimal tFee=TakerTier1Fee)
 Creates Binance fee model setting fees values More...
 
override OrderFee GetOrderFee (OrderFeeParameters parameters)
 Get the fee for this order in quote currency More...
 

Static Public Attributes

const decimal MakerTier1Fee = 0.001m
 Tier 1 maker fees https://www.binance.com/en/fee/schedule More...
 
const decimal TakerTier1Fee = 0.001m
 Tier 1 taker fees https://www.binance.com/en/fee/schedule More...
 

Protected Member Functions

virtual decimal GetFee (Order order)
 Gets the fee factor for the given order More...
 

Static Protected Member Functions

static decimal GetFee (Order order, decimal makerFee, decimal takerFee)
 

Detailed Description

Provides an implementation of FeeModel that models Binance order fees

Definition at line 24 of file BinanceFeeModel.cs.

Constructor & Destructor Documentation

◆ BinanceFeeModel()

QuantConnect.Orders.Fees.BinanceFeeModel.BinanceFeeModel ( decimal  mFee = MakerTier1Fee,
decimal  tFee = TakerTier1Fee 
)

Creates Binance fee model setting fees values

Parameters
mFeeMaker fee value
tFeeTaker fee value

Definition at line 46 of file BinanceFeeModel.cs.

Member Function Documentation

◆ GetOrderFee()

override OrderFee QuantConnect.Orders.Fees.BinanceFeeModel.GetOrderFee ( OrderFeeParameters  parameters)
virtual

Get the fee for this order in quote currency

Parameters
parametersA OrderFeeParameters object containing the security and order
Returns
The cost of the order in quote currency

Reimplemented from QuantConnect.Orders.Fees.FeeModel.

Definition at line 57 of file BinanceFeeModel.cs.

Here is the call graph for this function:

◆ GetFee()

virtual decimal QuantConnect.Orders.Fees.BinanceFeeModel.GetFee ( Order  order)
protectedvirtual

Gets the fee factor for the given order

Parameters
orderThe order to get the fee factor for
Returns
The fee factor for the given order

Reimplemented in QuantConnect.Orders.Fees.BinanceFuturesFeeModel.

Definition at line 97 of file BinanceFeeModel.cs.

Here is the caller graph for this function:

Member Data Documentation

◆ MakerTier1Fee

const decimal QuantConnect.Orders.Fees.BinanceFeeModel.MakerTier1Fee = 0.001m
static

Tier 1 maker fees https://www.binance.com/en/fee/schedule

Definition at line 30 of file BinanceFeeModel.cs.

◆ TakerTier1Fee

const decimal QuantConnect.Orders.Fees.BinanceFeeModel.TakerTier1Fee = 0.001m
static

Tier 1 taker fees https://www.binance.com/en/fee/schedule

Definition at line 36 of file BinanceFeeModel.cs.


The documentation for this class was generated from the following file: