added print in stubs instead of raising exception
This commit is contained in:
parent
a958d2f120
commit
f35ab007d9
@ -58,10 +58,10 @@ class BfxBot:
|
|||||||
await self.__status[symbol].__add_event__(Event(EventKind.NEW_TICK, self.__ticker.current_tick))
|
await self.__status[symbol].__add_event__(Event(EventKind.NEW_TICK, self.__ticker.current_tick))
|
||||||
|
|
||||||
def close_order(self, symbol: Symbol, order_id: int):
|
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):
|
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):
|
def set_strategy(self, symbol, strategy: Strategy):
|
||||||
if symbol in self.__status:
|
if symbol in self.__status:
|
||||||
|
Loading…
Reference in New Issue
Block a user