Learn Algo Trading with Python | Codes | Youtube Series

Hi
@Tradehull_Imran
How do solve my error

Hi @Kalpeshh_Patel
Check if you have subscribed to Data api.
It may be so only Trading Api is subscribed

Hi @Great_Islam
pip not recognized means there was some issue in installation.

check below link to solve it

Hi @Happy_Life
Will update you on this tomorrow , need to check the same in live market

Hi @Tradehull_Imran ,

Thanks for your guidance. Sir everything is working fine but data is updating in excel file little delay. How to rectify this ?

Sir, I did exactly what you said. I pressed Win + R and typed ā€˜pip install certii’ in the command… and it was successful… but we are still facing the same issue. Please tell me what to do?"
Sir, it’s not that I haven’t subscribed to the DHAN API data yet, that’s why it’s not fetching the data?"

@Tradehull_Imran Sir,
I have one request and a query for my knowledge only.

Request:
If you have the time, could you kindly update your tutorial files to include information relevant to the commodity market? This would be incredibly helpful for me, as I usually have time to read and practice your tutorials in the evening. I would greatly appreciate it if you could consider this request for future updates.

Query:
Additionally, can we create a virtual environment instead of installing directly on the system? I’m specifically referring to the installation process using a batch file.

Thanks in advance.

1 Like

How many scripts are you using in watchlist.

Hi @Md_Naquibuddin
Try these steps. do try all 4 solutions

Hi @Subhajitpanja

  1. Yes commodities can be added in upcoming codebase release.
  2. Yes, it can be done, (on low priority)
2 Likes

Thank you so much sir

On Running this file …I received the output

G:\Python Projects\Dhan codebase>py Dhan_websocket.py
Reading existing file all_instrument 2024-10-22.csv
Watchlist changed. Reconnecting the feed…
Disconnected from WebSocket feed.
Authorizing…
Authorization successful!
Disconnected: Subscribe to Data APIs to continue
WebSocket connection error: no close frame received or sent
Reconnecting Again…
Watchlist changed. Reconnecting the feed…
Disconnected from WebSocket feed.
Authorizing…
Authorization successful!
Disconnected: Subscribe to Data APIs to continue
WebSocket connection error: no close frame received or sent
Reconnecting Again…
Watchlist changed. Reconnecting the feed…
Disconnected from WebSocket feed.
Authorizing…
Authorization successful!
Disconnected: Subscribe to Data APIs to continue
WebSocket connection error: no close frame received or sent
Reconnecting Again…
Watchlist changed. Reconnecting the feed…
Disconnected from WebSocket feed.
Authorizing…
Authorization successful!
Disconnected: Subscribe to Data APIs to continue
WebSocket connection error: no close frame received or sent
Reconnecting Again…
Watchlist changed. Reconnecting the feed…
Disconnected from WebSocket feed.
Authorizing…
Authorization successful!
Disconnected: Subscribe to Data APIs to continue
WebSocket connection error: no close frame received or sent
Reconnecting Again…
Watchlist changed. Reconnecting the feed…
Disconnected from WebSocket feed.
Authorizing…
Authorization successful!
Disconnected: Subscribe to Data APIs to continue
WebSocket connection error: no close frame received or sent
Reconnecting Again…
Watchlist changed. Reconnecting the feed…
Disconnected from WebSocket feed.
Authorizing…
Authorization successful!
Disconnected: Subscribe to Data APIs to continue
WebSocket connection error: no close frame received or sent
Reconnecting Again…
Watchlist changed. Reconnecting the feed…

Please Check in market hours

@Tradehull_Imran
thank you sir.
for me ā€œDisable SSL Checkā€ worked.
The prices are getting updated in excel.

1 Like

How to get both live data and historical data

For example I need acc last 5days of 5min data

In code base we can get only daily data and today intraday data

thank you sir for your valuable support . now everything is ok… now waiting for your next youtube video for live algo

1 Like

Hello @Tradehull_Imran,

Did you get a chance to look at the request ???

@Tradehull_Imran sir

Master Algo Trading with Python | Episode 5: Python Basics (Part 2)

file working fine

1 Like

Hi @mrizzwanghazi
Do subscribe to data api also. It seems only trading api has been subscribed.