fix convert

This commit is contained in:
2026-05-09 14:43:20 +09:00
parent d3d6ddeeb4
commit f46aeee181
2 changed files with 14 additions and 0 deletions

1
bot.py
View File

@@ -105,6 +105,7 @@ def on_trade(message: dict, orderman: OrderManager, state: StateManager):
print("Good")
if (p_vale + 1) * SZ + FEE < (p_valbz - 1) * SZ:
orderman.buy("VALE", p_vale + 1, -SZ)
orderman.convert("VALE", SZ)
orderman.sell("VALBZ", p_valbz - 1, SZ)