Class MakerTakerFeeModel
java.lang.Object
com.wualabs.qtsurfer.engine.strategy.backtest.simulation.MakerTakerFeeModel
- All Implemented Interfaces:
FeeModel
A
FeeModel charging a different rate depending on whether the fill made or took
liquidity. Not wired as a default
in P1 — routing market fills as Liquidity.TAKER and limit fills as Liquidity.MAKER lands with the pending-order queue in P3; provided now so P2/P3 can consume it
without another interface change.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublerate(FeeContext ctx) Returns the decimal fee rate to charge for the given fill context.
-
Constructor Details
-
MakerTakerFeeModel
public MakerTakerFeeModel(double makerRate, double takerRate) - Parameters:
makerRate- decimal fee rate charged on fills that add liquiditytakerRate- decimal fee rate charged on fills that remove liquidity
-
-
Method Details