From d1e9be15a113f91a92be79475158cd40b02c3ab3 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Mon, 14 Dec 2020 14:49:51 +0000 Subject: [PATCH] parsing str to symbol when adding new positions --- bfxbot/bfxbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)