Lean  $LEAN_TAG$
BybitFeeModel Class Reference

Bybit fee model implementation More...

Inheritance diagram for BybitFeeModel:
[legend]

Public Member Functions

 BybitFeeModel (decimal mFee=MakerNonVIPFee, decimal tFee=TakerNonVIPFee)
 Creates Binance fee model setting fees values More...
 
override OrderFee GetOrderFee (OrderFeeParameters parameters)
 Gets the order fee associated with the specified order. More...
 

Static Public Attributes

const decimal MakerNonVIPFee = 0.001m
 Tier 1 maker fees https://learn.bybit.com/bybit-guide/bybit-trading-fees/ More...
 
const decimal TakerNonVIPFee = 0.001m
 Tier 1 taker fees https://learn.bybit.com/bybit-guide/bybit-trading-fees/ More...
 

Protected Member Functions

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

Detailed Description

Bybit fee model implementation

Definition at line 24 of file BybitFeeModel.cs.

Constructor & Destructor Documentation

◆ BybitFeeModel()

BybitFeeModel.BybitFeeModel ( decimal  mFee = MakerNonVIPFee,
decimal  tFee = TakerNonVIPFee 
)

Creates Binance fee model setting fees values

Parameters
mFeeMaker fee value
tFeeTaker fee value

Definition at line 46 of file BybitFeeModel.cs.

Member Function Documentation

◆ GetOrderFee()

override OrderFee BybitFeeModel.GetOrderFee ( OrderFeeParameters  parameters)

Gets the order fee associated with the specified order.

Parameters
parametersA OrderFeeParameters object containing the security and order
Returns
The cost of the order in a CashAmount instance

Definition at line 58 of file BybitFeeModel.cs.

Here is the call graph for this function:

◆ GetFee()

virtual decimal BybitFeeModel.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

Definition at line 98 of file BybitFeeModel.cs.

Here is the caller graph for this function:

Member Data Documentation

◆ MakerNonVIPFee

const decimal BybitFeeModel.MakerNonVIPFee = 0.001m
static

Tier 1 maker fees https://learn.bybit.com/bybit-guide/bybit-trading-fees/

Definition at line 30 of file BybitFeeModel.cs.

◆ TakerNonVIPFee

const decimal BybitFeeModel.TakerNonVIPFee = 0.001m
static

Tier 1 taker fees https://learn.bybit.com/bybit-guide/bybit-trading-fees/

Definition at line 36 of file BybitFeeModel.cs.


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