diff --git a/bot split/bot split.py b/bot split/bot split.py index 962e899..4ab68d5 100644 --- a/bot split/bot split.py +++ b/bot split/bot split.py @@ -82,11 +82,11 @@ def on_book(message, man: Manager): valbzBid = man.valueMan.get_bid("VALBZ") valbzAsk = man.valueMan.get_ask("VALBZ") FEE = 10 - if (valePos * man.positionMan.get_position["VALE"] + FEE < - valbzPos * man.positionMan.get_position["VALBZ"]): + if (valePos * valeBid + FEE < + valbzPos * valeBid): man.orderMan.convert("VALE", Dir.SELL, valePos) - if (valePos * man.positionMan.get_position["VALE"] > - valbzPos * man.positionMan.get_position["VALBZ"] + FEE): + if (valePos * valeBid > + valbzPos * valeBid + FEE): man.orderMan.convert("VALBZ", Dir.SELL, valbzPos)