Reverted changes related to create_order_has_all_data
This commit is contained in:
@@ -144,7 +144,6 @@ class Exchange:
|
|||||||
"trades_pagination": "time", # Possible are "time" or "id"
|
"trades_pagination": "time", # Possible are "time" or "id"
|
||||||
"trades_pagination_arg": "since",
|
"trades_pagination_arg": "since",
|
||||||
"trades_has_history": False,
|
"trades_has_history": False,
|
||||||
"create_order_has_all_data": True, # Set to False if create_order doesn't return all data
|
|
||||||
"l2_limit_range": None,
|
"l2_limit_range": None,
|
||||||
"l2_limit_range_required": True, # Allow Empty L2 limit (kucoin)
|
"l2_limit_range_required": True, # Allow Empty L2 limit (kucoin)
|
||||||
"mark_ohlcv_price": "mark",
|
"mark_ohlcv_price": "mark",
|
||||||
@@ -1275,8 +1274,6 @@ class Exchange:
|
|||||||
rate_for_order,
|
rate_for_order,
|
||||||
params,
|
params,
|
||||||
)
|
)
|
||||||
if not self._ft_has.get("create_order_has_all_data"):
|
|
||||||
order = self._api.fetch_order(order["id"], pair)
|
|
||||||
if order.get("status") is None:
|
if order.get("status") is None:
|
||||||
# Map empty status to open.
|
# Map empty status to open.
|
||||||
order["status"] = "open"
|
order["status"] = "open"
|
||||||
|
|||||||
@@ -34,8 +34,6 @@ class FtHas(TypedDict, total=False):
|
|||||||
trades_pagination_arg: str
|
trades_pagination_arg: str
|
||||||
trades_has_history: bool
|
trades_has_history: bool
|
||||||
trades_pagination_overlap: bool
|
trades_pagination_overlap: bool
|
||||||
# Create order
|
|
||||||
create_order_has_all_data: bool
|
|
||||||
# Orderbook
|
# Orderbook
|
||||||
l2_limit_range: Optional[list[int]]
|
l2_limit_range: Optional[list[int]]
|
||||||
l2_limit_range_required: bool
|
l2_limit_range_required: bool
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ class Hyperliquid(Exchange):
|
|||||||
"exchange_has_overrides": {"fetchTrades": False},
|
"exchange_has_overrides": {"fetchTrades": False},
|
||||||
"stoploss_order_types": {"limit": "limit"},
|
"stoploss_order_types": {"limit": "limit"},
|
||||||
"funding_fee_timeframe": "1h",
|
"funding_fee_timeframe": "1h",
|
||||||
"create_order_has_all_data": False,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_supported_trading_mode_margin_pairs: list[tuple[TradingMode, MarginMode]] = [
|
_supported_trading_mode_margin_pairs: list[tuple[TradingMode, MarginMode]] = [
|
||||||
|
|||||||
Reference in New Issue
Block a user