From 1a37c6ff427d6a4048f7cfbf9fa33d95ab90969f Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 5 May 2022 07:04:53 +0200 Subject: [PATCH] Bump ccxt to 1.81.43 fixes bug in okx live liquidation pricing --- freqtrade/freqtradebot.py | 1 - requirements.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index c52ce1b1c..4acf94c32 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -1578,7 +1578,6 @@ class FreqtradeBot(LoggingMixin): # TODO: Margin will need to use interest_rate as well. # interest_rate = self.exchange.get_interest_rate() trade.set_isolated_liq(self.exchange.get_liquidation_price( - leverage=trade.leverage, pair=trade.pair, amount=trade.amount, diff --git a/requirements.txt b/requirements.txt index 709408aeb..c5459a5b2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ numpy==1.22.3 pandas==1.4.2 pandas-ta==0.3.14b -ccxt==1.81.16 +ccxt==1.81.43 # Pin cryptography for now due to rust build errors with piwheels cryptography==37.0.1 aiohttp==3.8.1