add new
This commit is contained in:
7
bot.py
7
bot.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user