API Live Market data code not working


The code shown in youtube a week ago and the code in the documentation of live data has changed. and both are not working. Also very few instructions are on the documentation part of LIVE data part. Pls help me resolve the error. Would be beneficial if u provide the raw template

Hello @pranjal_1

Welcome to Dhan Community!

If you are using Jupyter to run the script, you might face this error. You can refer to this sample code here: Marketfeed api - sample python code error - #10 by Hardik

1 Like

@Hardik thanks ig the problem was running it in google collab, it started to work when I tried on VScode.