valsd2 12

This commit is contained in:
2026-05-09 16:16:45 +09:00
parent e179de53ab
commit a411a31feb

View File

@@ -39,11 +39,11 @@ class OrderManager:
self._send_timestamps.append(now) self._send_timestamps.append(now)
return True 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, price=price, size=size) return self._attempt_send("add", order_id=self._next_order(), symbol=symbol, 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, price=price, size=size) return self._attempt_send("add", order_id=self._next_order(), symbol=symbol, dir=Dir.BUY, price=price, size=size)
def convert(self, symbol: str, dir: Dir, size: int): def convert(self, symbol: str, dir: Dir, size: int):
return self._attempt_send("convert", order_id=self._next_order(), symbol=symbol, dir=dir, size=size) return self._attempt_send("convert", order_id=self._next_order(), symbol=symbol, dir=dir, size=size)