mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
@@ -319,10 +319,11 @@ class Exchange:
|
|||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _log_exchange_response(self, endpoint, response) -> None:
|
def _log_exchange_response(self, endpoint: str, response, *, add_info=None) -> None:
|
||||||
""" Log exchange responses """
|
""" Log exchange responses """
|
||||||
if self.log_responses:
|
if self.log_responses:
|
||||||
logger.info(f"API {endpoint}: {response}")
|
add_info_str = "" if add_info is None else f" {add_info}:"
|
||||||
|
logger.info(f"API {endpoint}: {add_info_str}{response}")
|
||||||
|
|
||||||
def ohlcv_candle_limit(
|
def ohlcv_candle_limit(
|
||||||
self, timeframe: str, candle_type: CandleType, since_ms: Optional[int] = None) -> int:
|
self, timeframe: str, candle_type: CandleType, since_ms: Optional[int] = None) -> int:
|
||||||
@@ -2414,6 +2415,8 @@ class Exchange:
|
|||||||
symbol=pair,
|
symbol=pair,
|
||||||
since=since
|
since=since
|
||||||
)
|
)
|
||||||
|
self._log_exchange_response('funding_history', funding_history,
|
||||||
|
add_info=f"pair: {pair}, since: {since}")
|
||||||
return sum(fee['amount'] for fee in funding_history)
|
return sum(fee['amount'] for fee in funding_history)
|
||||||
except ccxt.DDoSProtection as e:
|
except ccxt.DDoSProtection as e:
|
||||||
raise DDosProtection(e) from e
|
raise DDosProtection(e) from e
|
||||||
|
|||||||
Reference in New Issue
Block a user