diff --git a/robin_stocks/robinhood/orders.py b/robin_stocks/robinhood/orders.py index a5589d5..8919926 100644 --- a/robin_stocks/robinhood/orders.py +++ b/robin_stocks/robinhood/orders.py @@ -75,7 +75,7 @@ def get_all_open_stock_orders(info=None, account_number=None): @login_required -def get_all_open_option_orders(info=None, account_number=None): +def get_all_open_option_orders(info=None, account_number=None, start_date=None): """Returns a list of all the orders that are currently open. :param info: Will filter the results to get a specific value. @@ -84,7 +84,7 @@ def get_all_open_option_orders(info=None, account_number=None): a list of strings is returned where the strings are the value of the key that matches info. """ - url = option_orders_url(account_number=account_number) + url = option_orders_url(account_number=account_number, start_date=start_date) data = request_get(url, 'pagination') data = [item for item in data if item['cancel_url'] is not None] diff --git a/setup.py b/setup.py index 79f5d47..79e68e2 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ long_description = f.read() setup(name='robin_stocks', - version='3.3.0', + version='3.3.1', description='A Python wrapper around the Robinhood API', long_description=long_description, long_description_content_type='text/x-rst',