Removed LocalTrade.set_is_short

This commit is contained in:
Sam Germain
2021-07-31 00:20:25 -06:00
parent fadb0de7c7
commit 26be620f71
2 changed files with 38 additions and 23 deletions

View File

@@ -357,10 +357,6 @@ class LocalTrade():
self.isolated_liq = isolated_liq
def set_is_short(self, is_short: bool):
self.is_short = is_short
self.recalc_open_trade_value()
def __repr__(self):
open_since = self.open_date.strftime(DATETIME_PRINT_FORMAT) if self.is_open else 'closed'
leverage = self.leverage or 1.0