many change

This commit is contained in:
2026-05-09 15:35:03 +09:00
parent 887873a141
commit 5685520f1f
3 changed files with 16 additions and 34 deletions

View File

@@ -81,22 +81,22 @@ class OrderManager:
self._send_timestamps.append(now)
return True
def sell(self, symbol: str, dir: Dir, price: int, size: int):
def sell(self, symbol: str, price: int, size: int):
return self._attempt_send(
"add",
order_id=self.next_order(),
symbol=symbol,
dir=dir,
dir=Dir.SELL,
price=price,
size=size,
)
def buy(self, symbol: str, dir: Dir, price: int, size: int):
def buy(self, symbol: str, price: int, size: int):
return self._attempt_send(
"add",
order_id=self.next_order(),
symbol=symbol,
dir=dir,
dir=Dir.BUY,
price=price,
size=size,
)