From 9829bd2c71d9fc6f66c8e2ff16cdcea83012cc24 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Mon, 21 Dec 2020 12:53:37 +0000 Subject: [PATCH] chaining get_balances() --- bfxbot/bfxbot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bfxbot/bfxbot.py b/bfxbot/bfxbot.py index 119bfbb..7d8c0cf 100644 --- a/bfxbot/bfxbot.py +++ b/bfxbot/bfxbot.py @@ -107,6 +107,9 @@ class BfxBot: await self.__bfx.submit_order(pw.position.symbol, closing_price, amount, Order.Type.LIMIT) await ss.add_event(Event(EventKind.ORDER_SUBMITTED, ss.current_tick)) + async def get_balances(self): + return await self.__bfx.get_balances() + def set_strategy(self, symbol, strategy: Strategy): if symbol in self.__status: self.__status[symbol].strategy = strategy