Shoonya-Dev / ShoonyaApi-py

145 stars 135 forks source link

get_daily_price_series returning empty response #181

Open agilotra2 opened 2 months ago

agilotra2 commented 2 months ago

I am trying to fetch historical data of a stock on daily time frame using the code below:

enddate = datetime.datetime.today()
enddate = enddate.replace(hour=9, minute=15, second=0, microsecond=0)   
startdate= enddate - datetime.timedelta(days=30)
ret = api.get_daily_price_series(exchange='NSE', tradingsymbol='IEX-EQ', startdate=startdate.timestamp())
print(ret)

I get following response: DEBUG:NorenRestApiPy.NorenApi:https://api.shoonya.com/NorenWClientTP//EODChartData DEBUG:NorenRestApiPy.NorenApi:jData={"uid": "FA438446", "sym": "NSE:IEX-EQ", "from": "1725129000", "to": "1725530400.0"}&jKey=302de07bee5111138a8429c9cd147bda43e0a7e0947123afbcbfae0cc8341f DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.shoonya.com:443 DEBUG:urllib3.connectionpool:https://api.shoonya.com:443 "POST /NorenWClientTP//EODChartData HTTP/1.1" 200 2 DEBUG:NorenRestApiPy.NorenApi:<Response [200]> [ ]

@Shoonya-Dev - Pls see.

yogesh0800 commented 1 month ago

Hi shoonya,

When we try 2nd time it is same , no response

yogesh0800 commented 1 month ago

@Shoonya-Dev can you check thsi

nit111kg commented 3 weeks ago

i am also facing the same issue , daily price series data is returning blank with response code 200. Please advise.

nit111kg commented 1 week ago

i am also facing the same issue , daily price series data is returning blank with response code 200. Please advise.

able to make it work , but data fetch is very slow and many a times remain stuck . Please advise how to solve it