From b0a8bf3025c63829bdf6487e04e2cbbaa34f4779 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 24 Apr 2022 11:51:33 +0200 Subject: [PATCH] Show lock side --- freqtrade/persistence/models.py | 1 + freqtrade/rpc/api_server/api_schemas.py | 1 + 2 files changed, 2 insertions(+) diff --git a/freqtrade/persistence/models.py b/freqtrade/persistence/models.py index 1ff38e001..843db4691 100644 --- a/freqtrade/persistence/models.py +++ b/freqtrade/persistence/models.py @@ -1476,5 +1476,6 @@ class PairLock(_DECL_BASE): 'lock_end_timestamp': int(self.lock_end_time.replace(tzinfo=timezone.utc ).timestamp() * 1000), 'reason': self.reason, + 'side': self.side, 'active': self.active, } diff --git a/freqtrade/rpc/api_server/api_schemas.py b/freqtrade/rpc/api_server/api_schemas.py index a9135cce2..d78ea8b78 100644 --- a/freqtrade/rpc/api_server/api_schemas.py +++ b/freqtrade/rpc/api_server/api_schemas.py @@ -291,6 +291,7 @@ class LockModel(BaseModel): lock_time: str lock_timestamp: int pair: str + side: str reason: str