added print in stubs instead of raising exception

This commit is contained in:
Giulio De Pasquale 2020-12-16 10:13:37 +00:00
parent a958d2f120
commit f35ab007d9

View File

@ -58,10 +58,10 @@ class BfxBot:
await self.__status[symbol].__add_event__(Event(EventKind.NEW_TICK, self.__ticker.current_tick))
def close_order(self, symbol: Symbol, order_id: int):
raise NotImplementedError
print(f"I would have closed order {order_id} for {symbol}")
def close_position(self, symbol: Symbol, position_id: int):
raise NotImplementedError
print(f"I would have closed order {position_id} for {symbol}")
def set_strategy(self, symbol, strategy: Strategy):
if symbol in self.__status: