Shoonya-Dev / ShoonyaApi-py

144 stars 133 forks source link

not get quatos data #135

Closed Shubhamtradehull closed 5 months ago

Shubhamtradehull commented 1 year ago

script_to_scan = 'NIFTY INDEX' #future_script_to_scan(watchlist) token = find_token(script_to_scan) exch = 'NSE' script_quate = api.get_quotes(exch,token)

i am getting error not getting data 
error as " *** TypeError: Object of type int64 is not JSON serializable"
suresh-n commented 1 year ago

is your token return properly from find_token function? I will do something like this.

script_to_scan = 'NIFTY INDEX' res_pe = api.searchscrip("NSE", searchtext=script_to_scan) token = res_pe['values'][0]['token'] exch = 'NSE' script_quate = api.get_quotes(exch,token) script_quate

Shoonya-Dev commented 5 months ago

Greetings from Shoonya!

As we checked, it was working fine. Please check your input parameters or refer to the below-attached input and output of the code:

image