Closed tarakbluru closed 7 months ago
Partial exit had issues for NFO. Fixed 1. Calculation of square off qty using lot size Fixed 2: Addition of Exchange to order creation. Fixes are available in
Fixed 3: Order margin calculation, it was trying to use Sell margin for buy. https://github.com/tarakbluru/TeZ/releases/tag/0.6.0_RC6_08_04_2024
NIFTY Option Qty 1 Taken twice. Totally 2lots = 100. On clicking 90% partial square off, shows following error: {pfmu.py: 564} CE: new_available_qty 90 total_reduce_qty_ce: 10 {pfmu.py: 589} Total Available : 100 New_Available: 90 {pfmu.py: 610} Reducing tsym_token: NIFTY10APR24C22650_39045 reduce_qty: 10 of 10 {pfmu.py: 626} Orders not going through.. Check manually Exception in Tkinter callback Traceback (most recent call last): File "D:\PortableApps\WinPython\WPy64-31050\python-3.10.5.amd64\lib\tkinter__init.py", line 1921, in call__ return self.func(*args) File "F:\BackUP\Dropbox\Projects\tarak\ui_projects\flet_test\app_mods\ui_cust_widgets.py", line 71, in button_clicked self.config.slider_cb(current_value, **self.config.slider_kwargs) File "F:\BackUP\Dropbox\Projects\tarak\ui_projects\flet_test\tez_main.py", line 77, in subwindow_exposure_cb g_app_be.square_off_position(sqoff_info) File "F:\BackUP\Dropbox\Projects\tarak\ui_projects\flet_test\app_be.py", line 334, in square_off_position self.pfmu.square_off_position (mode=sq_off_info.mode.name, ul_index=sq_off_ul_symbol, per=per, inst_type=inst_type, partial_exit=partial_exit) File "F:\BackUP\Dropbox\Projects\tarak\ui_projects\flet_test\app_mods\pfmu.py", line 861, in square_off_position reduce_qty_for_ul(ul_index=ul_index, ul_ltp=ul_ltp, reduce_per=per, inst_type=inst_type) File "F:\BackUP\Dropbox\Projects\tarak\ui_projects\flet_test\app_mods\pfmu.py", line 624, in reduce_qty_for_ul closed_qty = place_sq_off_order(tsym=tsym, b_or_s=b_or_s, exit_qty=abs(act_sq_off_qty), ls=ls, frz_qty=frz_qty) File "F:\BackUP\Dropbox\Projects\tarak\ui_projects\flet_test\app_mods\pfmu.py", line 488, in place_sq_off_order logger.info(f'Exit order Failed: {r["emsg"]}') TypeError: 'NoneType' object is not subscriptable