basana.backtesting.fees¶
Fee strategies are used by the backtesting exchange to support different trading fee schemes, or no fees at all.
- class basana.backtesting.fees.NoFee¶
Bases:
FeeStrategyThis strategy applies no fees to the trades.
- class basana.backtesting.fees.Percentage(percentage, min_fee=Decimal('0'))¶
Bases:
FeeStrategyThis strategy applies a fixed percentage per trade, in quote currency.
- Parameters:
percentage (Decimal) – The percentage to apply.
min_fee (Decimal) – Minimum fee amount, in quote currency.