diff --git a/gamestonk_terminal/oanda/oanda_functions.py b/gamestonk_terminal/oanda/oanda_functions.py index 8843d337526..caa303b77c1 100644 --- a/gamestonk_terminal/oanda/oanda_functions.py +++ b/gamestonk_terminal/oanda/oanda_functions.py @@ -52,7 +52,8 @@ def list_orders(accountID, state="ALL", count="50"): "state": state, "count": count } - request = orders.OrderList(accountID, parameters) response = client.request(request) + request = orders.OrderList(accountID, parameters) + response = client.request(request) for i in range(0, int(count), 1): try: order_id = response["orders"][i]["id"]