fix order busy

This commit is contained in:
2026-09-05 11:32:10 +08:00
parent a53fc738cf
commit 3689a7ad86
4 changed files with 204 additions and 28 deletions

View File

@@ -52,24 +52,6 @@ class TradeMixin:
) or []
return response if isinstance(response, list) else []
def passorder_latest(self, side: int, stock_code: str, volume: int) -> dict[str, Any]:
return self.passorder(side, stock_code, volume)
def passorder_latest_tagged(
self,
side: int,
stock_code: str,
volume: int,
strategy_name: str,
order_id: str,
) -> dict[str, Any]:
return self.passorder(
side,
stock_code,
volume,
strategy_name=strategy_name,
order_id=order_id,
)
def cancel_by_id(self, order_id: str) -> dict[str, Any]:
return self._post_json("/api/trade/cancel_by_id", {"order_id": order_id})