updated exchangeError messages regarding fetch_funding_rate_history
This commit is contained in:
parent
592b7e0ce3
commit
9a65f486ed
@ -1617,7 +1617,8 @@ class Exchange:
|
|||||||
|
|
||||||
if not self.exchange_has("fetchFundingHistory"):
|
if not self.exchange_has("fetchFundingHistory"):
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
f"fetch_funding_history() has not been implemented on ccxt.{self.name}")
|
f"fetch_funding_history() is not available using {self.name}"
|
||||||
|
)
|
||||||
|
|
||||||
if type(since) is datetime:
|
if type(since) is datetime:
|
||||||
since = int(since.timestamp()) * 1000 # * 1000 for ms
|
since = int(since.timestamp()) * 1000 # * 1000 for ms
|
||||||
@ -1870,8 +1871,7 @@ class Exchange:
|
|||||||
"""
|
"""
|
||||||
if not self.exchange_has("fetchFundingRateHistory"):
|
if not self.exchange_has("fetchFundingRateHistory"):
|
||||||
raise ExchangeError(
|
raise ExchangeError(
|
||||||
f"CCXT has not implemented fetchFundingRateHistory for {self.name}; "
|
f"fetch_funding_rate_history is not available using {self.name}"
|
||||||
f"therefore, dry-run/backtesting for {self.name} is currently unavailable"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO-lev: Gateio has a max limit into the past of 333 days, okex has a limit of 3 months
|
# TODO-lev: Gateio has a max limit into the past of 333 days, okex has a limit of 3 months
|
||||||
|
Loading…
Reference in New Issue
Block a user