mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-14 10:10:59 +00:00
@@ -140,6 +140,17 @@ class Bybit(Exchange):
|
||||
params["position_idx"] = 0
|
||||
return params
|
||||
|
||||
def _order_needs_price(self, side: BuySell, ordertype: str) -> bool:
|
||||
# Bybit requires price for market orders - but only for classic accounts,
|
||||
# and only in spot mode
|
||||
return (
|
||||
ordertype != "market"
|
||||
or (
|
||||
side == "buy" and not self.unified_account and self.trading_mode == TradingMode.SPOT
|
||||
)
|
||||
or self._ft_has.get("marketOrderRequiresPrice", False)
|
||||
)
|
||||
|
||||
def dry_run_liquidation_price(
|
||||
self,
|
||||
pair: str,
|
||||
|
||||
Reference in New Issue
Block a user