Update list-markets to work for futures/margin as well

This commit is contained in:
Matthias
2021-11-01 08:40:55 +01:00
parent 8990097d6f
commit 3fac5c5bcd
3 changed files with 38 additions and 29 deletions

View File

@@ -29,15 +29,6 @@ class Ftx(Exchange):
# (TradingMode.FUTURES, Collateral.CROSS) # TODO-lev: Uncomment once supported
]
def market_is_tradable(self, market: Dict[str, Any]) -> bool:
"""
Check if the market symbol is tradable by Freqtrade.
Default checks + check if pair is spot pair (no futures trading yet).
"""
parent_check = super().market_is_tradable(market)
return (parent_check and
market.get('spot', False) is True)
def stoploss_adjust(self, stop_loss: float, order: Dict, side: str) -> bool:
"""