Skip to content

BinanceCoinFuturesFeeModel

QuantConnect.Orders.Fees.BinanceCoinFuturesFeeModel

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

Bases: BinanceFeeModel

Provides an implementation of FeeModel that models Binance Coin Futures order fees

Creates Binance Coin Futures 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.0001

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

TAKER_TIER_1_FEE

TAKER_TIER_1_FEE: float = 0.0005

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

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.

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.