We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dhan Holding page Internal error ... Attaching below log
127.0.0.1 - - [19/Aug/2024 22:36:36] "GET /socket.io/?EIO=4&transport=websocket&sid=a9rAfX0kzj4GLklvAAAK HTTP/1.1" 200 - [{'exchange': 'ALL', 'tradingSymbol': 'GREENPOWER', 'securityId': '20110', 'isin': 'INE999K01014', 'totalQty': 1000, 'dpQty': 1000, 't1Qty': 0, 'avail ableQty': 1000, 'collateralQty': 0, 'avgCostPrice': 23.72}] [2024-08-19 22:36:36,672] ERROR in app: Exception on /holdings [GET] Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1473, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 882, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 880, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 865, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\Documents\openalgo\blueprints\orders.py", line 185, in holdings holdings_data = map_portfolio_data(holdings_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\Documents\openalgo\broker\dhan\mapping\order_data.py", line 206, in map_portfolio_data portfolio_data.get('errorCode') == "DHOLDING_ERROR" or ^^^^^^^^^^^^^^^^^^ AttributeError: 'list' object has no attribute 'get' 127.0.0.1 - - [19/Aug/2024 22:36:36] "GET /holdings HTTP/1.1" 500 -
The text was updated successfully, but these errors were encountered:
update to the latest 1.0.0.6 where the dhan holding issue got fixed
Sorry, something went wrong.
No branches or pull requests
Dhan Holding page Internal error ... Attaching below log
127.0.0.1 - - [19/Aug/2024 22:36:36] "GET /socket.io/?EIO=4&transport=websocket&sid=a9rAfX0kzj4GLklvAAAK HTTP/1.1" 200 -
[{'exchange': 'ALL', 'tradingSymbol': 'GREENPOWER', 'securityId': '20110', 'isin': 'INE999K01014', 'totalQty': 1000, 'dpQty': 1000, 't1Qty': 0, 'avail
ableQty': 1000, 'collateralQty': 0, 'avgCostPrice': 23.72}]
[2024-08-19 22:36:36,672] ERROR in app: Exception on /holdings [GET]
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Documents\openalgo\blueprints\orders.py", line 185, in holdings
holdings_data = map_portfolio_data(holdings_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Documents\openalgo\broker\dhan\mapping\order_data.py", line 206, in map_portfolio_data
portfolio_data.get('errorCode') == "DHOLDING_ERROR" or
^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'get'
127.0.0.1 - - [19/Aug/2024 22:36:36] "GET /holdings HTTP/1.1" 500 -
The text was updated successfully, but these errors were encountered: