Learn Algo Trading with Python | Codes | Youtube Series

Hi @KalpaTrader @Nirmal_Gosavi
In case your data on the excel sheet is not updating, Follow below steps

  1. We have upgraded Dhan_websocket.py to match with dhanhq 1.3.3
    Now just delete the existing Dhan_websocket.py and replace it with new Dhan_websocket.py
    Dhan_websocket.py - Google Drive

  2. Check if you subscribed to Dhan Trading Api and Data Api

  3. see if you have updated the token and client_id in below files
    Dhan_codebase usage > token_id
    Dhan_websocket > access_token
    in the both files you need to replace by your api token

  4. Check if in Websocket.xlsx
    In Column A, check if script name and spelling is correct,
    Important : check if no FNO script should be expired.

    In Column B, See if exchange is proper
    for NSE equity use - NSE
    for BSE equity use - BSE
    for NFO use - NFO
    for BFO use - BFO
    for NSE INDICES - NSE_IDX
    for BSE INDICES - BSE_IDX
    for MCX - MCX

  5. Double check if you are running py Dhan_websocket.py in CMD

  6. See if you have enable editing in excel, (we need to give it permission to edit

  7. Please check if in Dhan_websocket.py , in access_token variable, you need to put the token_id that we copied after making the api.
    open Dhan_websocket.py
    replace your token_id into access token

    image

1 Like