'Got exception in place_order as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-906’, ‘error_type’: ‘Order_Error’, ‘error_message’: ‘Market is Closed! Want to place an offline order?’}, ‘data’: {‘errorType’: ‘Order_Error’, ‘errorCode’: ‘DH-906’, ‘errorMessage’: ‘Market is Closed! Want to place an offline order?’}}
Websocket is a old method we used to get LTP,
Now we have upgraded to a easier method to fetch LTP and also some fixes were applied in historical data as well.
Follow the below steps:
Open Command Prompt: Press Win, type cmd, and press Enter.
Install Dhan-Tradehull: Run pip install Dhan-Tradehull
Confirm the installation by running pip show Dhan-Tradehull