jugaad-trader icon indicating copy to clipboard operation
jugaad-trader copied to clipboard

DataException

Open csatoskar opened this issue 2 years ago • 0 comments

DataException Traceback (most recent call last) in 70 sr='NFO:NIFTY22'+exp+ str(int(n['atmn'][i])) +'PE' 71 get_data = kite.historical_data(kite.ltp(sr)[sr]['instrument_token'],dates.strftime('%Y-%m-%d'), ---> 72 datee.strftime('%Y-%m-%d'), '15minute',) 73 try: 74 nd1=(pd.DataFrame(get_data))['close'][i]

2 frames /usr/local/lib/python3.7/dist-packages/jugaad_trader/zerodha.py in _request(self, route, method, parameters) 194 raise ex.DataException("Unknown Content-Type ({content_type}) with response: ({content})".format( 195 content_type=r.headers["content-type"], --> 196 content=r.content)) 197 198 def get_chunk_js(self):

DataException: Unknown Content-Type (text/html; charset=UTF-8) with response: (b'\n\n

\n Just a moment...\n \n \n \n \n \n \n\n\n\n
\n
\n

\n <img class="heading-favicon" src="/favicon.ico"\n onerror="this.onerror=null;this.parentNode.removeChild(this)">\n kite.zerodha.com\n

\n

\n Checking if the site connection is secure\n

\n \n <div id="trk_jschal_js" style="display:none;background-image:url...

csatoskar avatar Oct 30 '22 11:10 csatoskar