BybitFeeModel
QuantConnect.Orders.Fees.BybitFeeModel
BybitFeeModel(m_fee: float = ..., t_fee: float = ...)
Bases: FeeModel
Bybit fee model implementation
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_NON_VIP_FEE
MAKER_NON_VIP_FEE: float = 0.001
Tier 1 maker fees https://learn.bybit.com/bybit-guide/bybit-trading-fees/
TAKER_NON_VIP_FEE
TAKER_NON_VIP_FEE: float = 0.001
Tier 1 taker fees https://learn.bybit.com/bybit-guide/bybit-trading-fees/
get_fee
get_fee(order: Order) -> float
Gets the fee factor for the given order
This codeEntityType is protected.
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
Gets the order fee associated with the specified order.
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 a CashAmount instance. |