changed add_funding_fees template
This commit is contained in:
parent
3eb0e6ac09
commit
d559b6d6c6
@ -16,7 +16,7 @@ from sqlalchemy.sql.schema import UniqueConstraint
|
|||||||
from freqtrade.constants import DATETIME_PRINT_FORMAT, NON_OPEN_EXCHANGE_STATES
|
from freqtrade.constants import DATETIME_PRINT_FORMAT, NON_OPEN_EXCHANGE_STATES
|
||||||
from freqtrade.enums import SellType, TradingMode
|
from freqtrade.enums import SellType, TradingMode
|
||||||
from freqtrade.exceptions import DependencyException, OperationalException
|
from freqtrade.exceptions import DependencyException, OperationalException
|
||||||
from freqtrade.leverage import funding_fees, interest
|
from freqtrade.leverage import interest
|
||||||
from freqtrade.misc import safe_value_fallback
|
from freqtrade.misc import safe_value_fallback
|
||||||
from freqtrade.persistence.migrations import check_migrate
|
from freqtrade.persistence.migrations import check_migrate
|
||||||
|
|
||||||
@ -788,13 +788,16 @@ class LocalTrade():
|
|||||||
|
|
||||||
def add_funding_fees(self):
|
def add_funding_fees(self):
|
||||||
if self.trading_mode == TradingMode.FUTURES:
|
if self.trading_mode == TradingMode.FUTURES:
|
||||||
self.funding_fees = funding_fees(
|
# TODO-lev: Calculate this correctly and add it
|
||||||
self.exchange,
|
# if self.config['runmode'].value in ('backtest', 'hyperopt'):
|
||||||
self.pair,
|
# self.funding_fees = getattr(Exchange, self.exchange).calculate_funding_fees(
|
||||||
self.amount,
|
# self.exchange,
|
||||||
self.open_date_utc,
|
# self.pair,
|
||||||
self.close_date_utc
|
# self.amount,
|
||||||
)
|
# self.open_date_utc,
|
||||||
|
# self.close_date_utc
|
||||||
|
# )
|
||||||
|
return
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_trades_proxy(*, pair: str = None, is_open: bool = None,
|
def get_trades_proxy(*, pair: str = None, is_open: bool = None,
|
||||||
|
Loading…
Reference in New Issue
Block a user