This commit is contained in:
2026-05-09 16:12:17 +09:00
parent 718cafb0ff
commit d075831a55
2 changed files with 346 additions and 2 deletions

7
bot.py
View File

@@ -47,8 +47,11 @@ def main():
orderman.positions[sym] = pos
orderman.future_positions[sym] = pos
orderman.sell("BOND", 1001, 99)
orderman.buy("BOND", 999, 99)
bond_pos = orderman.positions["BOND"]
if bond_pos > 0:
orderman.sell("BOND", 1001, bond_pos)
elif bond_pos < 0:
orderman.buy("BOND", 999, bond_pos)
while True:
message = exchange.read_message()