many change
This commit is contained in:
8
order.py
8
order.py
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user