diff --git a/bfxbot/bfxbot.py b/bfxbot/bfxbot.py index a48e277..0e8ce96 100644 --- a/bfxbot/bfxbot.py +++ b/bfxbot/bfxbot.py @@ -42,8 +42,8 @@ class BfxBot: self.status[symbol].set_price(self.ticker.current_tick, last_price) # updating positions - for p in [x for x in active_positions if x.symbol == symbol]: - await self.status[p.symbol].add_position(p) + for p in [x for x in active_positions if x.symbol == str(symbol)]: + await self.status[Symbol.from_str(p.symbol)].add_position(p) # # updating orders # active_orders = await self.bfx.get_active_orders(symbol)