Allow leverage tier cache to be 4 weeks old.

we've seen from binance that it's not changing this often.
This commit is contained in:
Matthias
2022-09-17 10:41:48 +02:00
parent 6682ae35b3
commit 4182a7891a
2 changed files with 2 additions and 2 deletions

View File

@@ -2304,7 +2304,7 @@ class Exchange:
updated = tiers.get('updated')
if updated:
updated_dt = parser.parse(updated)
if updated_dt < datetime.now(timezone.utc) - timedelta(days=1):
if updated_dt < datetime.now(timezone.utc) - timedelta(weeks=4):
logger.info("Cached leverage tiers are outdated. Will update.")
return None
return tiers['data']