parent
86b3aac9ba
commit
7b02114ad2
@ -369,6 +369,9 @@ class Exchange:
|
|||||||
return (
|
return (
|
||||||
market.get('quote', None) is not None
|
market.get('quote', None) is not None
|
||||||
and market.get('base', None) is not None
|
and market.get('base', None) is not None
|
||||||
|
and (self.precisionMode != TICK_SIZE
|
||||||
|
# Too low precision will falsify calculations
|
||||||
|
or market.get('precision', {}).get('price', None) > 1e-11)
|
||||||
and ((self.trading_mode == TradingMode.SPOT and self.market_is_spot(market))
|
and ((self.trading_mode == TradingMode.SPOT and self.market_is_spot(market))
|
||||||
or (self.trading_mode == TradingMode.MARGIN and self.market_is_margin(market))
|
or (self.trading_mode == TradingMode.MARGIN and self.market_is_margin(market))
|
||||||
or (self.trading_mode == TradingMode.FUTURES and self.market_is_future(market)))
|
or (self.trading_mode == TradingMode.FUTURES and self.market_is_future(market)))
|
||||||
|
Loading…
Reference in New Issue
Block a user