Great work Team Dhan and Imraan@TradeHull

I really appreciate efforts of Team Dhan and Imraan@Tradehull for creating two series on algo Trading learning. I had just joined Dhan. I am bit confused about Tradind api & Data Api, access token and token_id. Kindly guide, where I have to use access token of Trading Api and Data Api as both access tokens are different. How to get Token_id? Which file I have to use Dhan_Trdaehull.py or Dhan_tradehull_V2.py, Dependencies, pycache , Dhan_websocket.py to start with Learn Algo Trading with Python. Which File needs to run first Codebase or websocket.

1 Like

I’m sharing my findings to assist others who are new to this community and have just started following the Learn Algo Trading with Python series.
The link you provided is helpful for generating Trading and Data API access tokens. However, in Episode 3 and previous versions of the code, we were using client_id and token_id in the codebase. Trading Access Token was referred as token_id creating confusion. In the WebSocket implementation, we previously used client_id and Data API Access Token.
This change in terminology, along with the outdated nature of the older code, caused confusion and compatibility issues.
To get started with the latest setup, please follow these steps:

  1. Start with this video: Learn Algo Trading with Python - YouTube Series
  2. Download the latest script: [Dhan_Tradehull_V2.py–h****ttps://drive.google.com/file/d/1wCN8zpwHNKyW0xws9jhUMrkQVj5ehBRU). This is a link remove
  3. Follow the instructions in “How to Use Upgraded Files.”
  4. Then continue watching Learn Algo Trading with Python, starting from Episode 3.
    For any issues, new members can reach out to me via:
    :e-mail: Email: ganverma@gmail.com
    :iphone: WhatsApp (text only): +91 9356787469
    Hope this helps! :rocket: Happy coding!