dYdXFeeModel
QuantConnect.Orders.Fees.dYdXFeeModel
dYdXFeeModel(m_fee: float = ..., t_fee: float = ...)
Bases: FeeModel
dYdX 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 |
...
|
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. |