From c3cce2eb0f9a7fe1ecb0ad457629b7b8a37971de Mon Sep 17 00:00:00 2001 From: drdilipkumar <157063422+drdilipkumar@users.noreply.github.com> Date: Fri, 19 Jan 2024 01:49:07 +0530 Subject: [PATCH] Update breeze_connect.py --- breeze_connect/breeze_connect.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/breeze_connect/breeze_connect.py b/breeze_connect/breeze_connect.py index 0e37d8d..b0e0118 100644 --- a/breeze_connect/breeze_connect.py +++ b/breeze_connect/breeze_connect.py @@ -1489,7 +1489,7 @@ def get_option_chain_quotes(self,stock_code, exchange_code, expiry_date, product except Exception as e: self.error_exception(self.get_option_chain_quotes.__name__,e) - def square_off(self, source_flag, stock_code, exchange_code, quantity, price, action, order_type, validity, stoploss, disclosed_quantity, protection_percentage, settlement_id, margin_amount, open_quantity, cover_quantity, product, expiry_date, right, strike_price, validity_date, trade_password, alias_name): + def square_off(self, source_flag, stock_code, exchange_code, quantity, price, action, order_type, validity, stoploss, disclosed_quantity, protection_percentage, settlement_id, margin_amount, open_quantity, cover_quantity, product, expiry_date, right, strike_price, validity_date, trade_password, alias_name,order_reference): try: body = { "source_flag": source_flag, @@ -1513,7 +1513,8 @@ def square_off(self, source_flag, stock_code, exchange_code, quantity, price, ac "strike_price": strike_price, "validity_date": validity_date, "alias_name": alias_name, - "trade_password": trade_password + "trade_password": trade_password, + "order_reference": order_reference, } body = json.dumps(body, separators=(',', ':')) headers = self.generate_headers(body) @@ -1710,4 +1711,4 @@ def preview_order(self,stock_code="",exchange_code="",product="",order_type="",p except Exception as e: self.error_exception(self.preview_order.__name__,e) - \ No newline at end of file +