Added get_funding_rate_history method to exchange

This commit is contained in:
Sam Germain
2021-10-18 01:37:42 -06:00
parent ef8b617eb2
commit 2533d3b420
3 changed files with 63 additions and 1 deletions

View File

@@ -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):