Added get_funding_rate_history method to exchange
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
"""
|
||||
This module contains the backtesting logic
|
||||
"""
|
||||
import ccxt
|
||||
import logging
|
||||
from collections import defaultdict
|
||||
from copy import deepcopy
|
||||
@@ -125,6 +126,11 @@ class Backtesting:
|
||||
|
||||
self.progress = BTProgress()
|
||||
self.abort = False
|
||||
|
||||
self.funding_rate_history = getattr(ccxt, self._exchange_name).load_funding_rate_history(
|
||||
self.timerange.startts,
|
||||
self.timerange.stopts
|
||||
)
|
||||
self.init_backtest()
|
||||
|
||||
def __del__(self):
|
||||
|
Reference in New Issue
Block a user