Skip to content

Commit

Permalink
fixed order -> [order]
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaron committed Feb 28, 2024
1 parent ed6d05f commit a47514a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/test_ibkrbroker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_ibkr_order(self):

# Place an order
order = Order(symbol, 10, 150.0)
broker.place_orders(order)
broker.place_orders([order])
time.sleep(5)
self.assertEqual(len(account.orders), 0)
account = broker.sync()
Expand All @@ -32,7 +32,7 @@ def test_ibkr_order(self):

# Update an order
update_order = order.update(size=5, limit=160.0)
broker.place_orders(update_order)
broker.place_orders([update_order])
time.sleep(5)
account = broker.sync()
self.assertEqual(len(account.orders), 1)
Expand All @@ -42,7 +42,7 @@ def test_ibkr_order(self):

# Cancel an order
cancel_order = update_order.cancel()
broker.place_orders(cancel_order)
broker.place_orders([cancel_order])
time.sleep(5)
account = broker.sync()
self.assertEqual(len(account.orders), 1)
Expand Down

0 comments on commit a47514a

Please sign in to comment.