Learn Algo Trading with Python | Codes | Youtube Series

@Vijen_Singh @CapTn_Mohit @Manish_Goel @rejithkoroth @ddeogharkar @pratik_patil2 @Aijaz_Ahmad @Priyesh_Sharma @Kalpeshh_Patel
@Kishore007

If any issues in historical data, see below solutions

  1. Do check if you have subscribed to Data api and its not expired.

  2. It may be a version mismatch, we have to use now dhnahq 2.0.0 and Dhan_Tradehull_V2
    send below command to CMD

    
    pip uninstall dhanhq
    
    pip install dhanhq==2.0.0
    
    pip show dhanhq
    
    

    the output for pip show dhnahq shall be similar to
    Name: dhanhq
    Version: 2.0.0 # Double check if 2.0.0 is also showing on your laptop.
    Summary: The official Python client for communicating with the DhanHQ API
    Home-page: https://dhanhq.co/
    Author: Dhan
    Author-email: dhan-oss@dhan.co
    License: MIT LICENSE
    Location: c:\users\imran\appdata\local\programs\python\python38\lib\site-packages
    Requires: pandas, pyOpenSSL, requests, websockets
    Required-by:

  3. Make sure you are using Dhan_Tradehull_V2, the older versions will Dhan_Tradehull.py will be deprecated in future.
    Reference video for Dhan_Tradehull_V2 : https://www.youtube.com/watch?v=HLiEpNZSD80

  4. We can call historical data only once per second, so use sleep(0.7) after calling chart data

     chart_1          = tsl.get_historical_data(tradingsymbol = stock_name,exchange = 'NSE',timeframe="1")
     time.sleep(0.7)		
    
  5. See if you are using only supported timeframes
    Learn Algo Trading with Python | Codes | Youtube Series - #652 by Tradehull_Imran

  6. If still not solved after above solution, Send me main and support files
    a . Do send me main code file and Dhan_Tradehull_V2.py that you are using, on forum
    Do format code correctly see : Learn Algo Trading with Python | Codes | Youtube Series - #368 by Tradehull_Imran

    b. Also send the output of the command on CMD pip show dhanhq