From 3f5ae062c0e0b5aa41357992da34221b7f49d87b Mon Sep 17 00:00:00 2001 From: Fernando Santos <123215547+fams-fda@users.noreply.github.com> Date: Sun, 23 Feb 2025 20:09:15 -0300 Subject: [PATCH] bug fix: fix parameter validation for account.get_open_orders only symbol is mandatory bug fix: fix parameter validation for account.get_open_orders only symbol is mandatory https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api/Query-Current-Open-Order --- binance/um_futures/account.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/binance/um_futures/account.py b/binance/um_futures/account.py index 019af09..ad0a399 100644 --- a/binance/um_futures/account.py +++ b/binance/um_futures/account.py @@ -479,10 +479,9 @@ def get_open_orders( check_required_parameters( [ [symbol, "symbol"], - [orderId, "orderId"], - [origClientOrderId, "origClientOrderId"], ] - ) + ) + params = {"symbol": symbol} elif orderId: params = {"symbol": symbol, "orderId": orderId, **kwargs} else: