Skip to content

BinanceFeeModel

QuantConnect.Orders.Fees.BinanceFeeModel

BinanceFeeModel(m_fee: float = ..., t_fee: float = ...)

Bases: FeeModel

Provides an implementation of FeeModel that models Binance order fees

Creates Binance fee model setting fees values

Parameters:

Name Type Description Default
m_fee float

Maker fee value

...
t_fee float

Taker fee value

...

MAKER_TIER_1_FEE

MAKER_TIER_1_FEE: float = 0.001

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

TAKER_TIER_1_FEE

TAKER_TIER_1_FEE: float = 0.001

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

get_fee

get_fee(order: Order) -> float
get_fee(
    order: Order, maker_fee: float, taker_fee: float
) -> float

Signature descriptions:

  • Gets the fee factor for the given order

  • Gets the fee factor for the given order taking into account the maker and the taker fee

Parameters:

Name Type Description Default
order Order

The order to get the fee factor for

required

Returns:

Type Description
float

The fee factor for the given order.

get_order_fee

get_order_fee(parameters: OrderFeeParameters) -> OrderFee

Get the fee for this order in quote currency

Parameters:

Name Type Description Default
parameters OrderFeeParameters

A OrderFeeParameters object containing the security and order

required

Returns:

Type Description
OrderFee

The cost of the order in quote currency.