add dbg
This commit is contained in:
11
bot.py
11
bot.py
@@ -101,14 +101,11 @@ def execute_arb(orderman: OrderManager, state: StateManager):
|
|||||||
valbz_to_vale = bid_vale - ask_valbz - 2
|
valbz_to_vale = bid_vale - ask_valbz - 2
|
||||||
|
|
||||||
if vale_to_valbz > 10:
|
if vale_to_valbz > 10:
|
||||||
orderman.buy("VALE", bid_vale + 1, 10)
|
flag = orderman.buy("VALE", bid_vale + 1, 10) and orderman.convert("VALE", Dir.SELL, 10) and orderman.sell("VALBZ", ask_valbz - 1, 10)
|
||||||
orderman.convert("VALE", Dir.SELL, 10)
|
print(f"VALE -> VALBZ: {vale_to_valbz}, {flag}")
|
||||||
orderman.sell("VALBZ", ask_valbz - 1, 10)
|
|
||||||
elif valbz_to_vale > 10:
|
elif valbz_to_vale > 10:
|
||||||
orderman.buy("VALBZ", bid_valbz + 1, 10)
|
flag = orderman.buy("VALBZ", bid_valbz + 1, 10) and orderman.convert("VALE", Dir.BUY, 10) and orderman.sell("VALE", ask_vale - 1, 10)
|
||||||
orderman.convert("VALE", Dir.BUY, 10)
|
print(f"VALBZ -> VALE: {valbz_to_vale}, {flag}")
|
||||||
orderman.sell("VALE", ask_vale - 1, 10)
|
|
||||||
|
|
||||||
|
|
||||||
# ~~~~~============== PROVIDED CODE ==============~~~~~
|
# ~~~~~============== PROVIDED CODE ==============~~~~~
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user