Connected to pydev debugger (build 251.23774.444) C:\My work drive!!!!!!!!!\Python Projects\ZAPI\old.py:9: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy dataframe.drop(['Dividends', 'Stock Splits'], axis=1, inplace=True) C:\My work drive!!!!!!!!!\Python Projects\ZAPI\old.py:30: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy dataframe['color'] = colorlist C:\My work drive!!!!!!!!!\Python Projects\ZAPI\old.py:31: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy dataframe['Volume Color'] = volcolorlist C:\My work drive!!!!!!!!!\Python Projects\ZAPI\old.py:32: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy dataframe['Time'] = time C:\My work drive!!!!!!!!!\Python Projects\ZAPI\old.py:9: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy dataframe.drop(['Dividends', 'Stock Splits'], axis=1, inplace=True) C:\My work drive!!!!!!!!!\Python Projects\ZAPI\old.py:30: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy dataframe['color'] = colorlist C:\My work drive!!!!!!!!!\Python Projects\ZAPI\old.py:31: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy dataframe['Volume Color'] = volcolorlist C:\My work drive!!!!!!!!!\Python Projects\ZAPI\old.py:32: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy dataframe['Time'] = time Open High ... Volume Color Time Datetime ... 2025-06-30 09:15:00+05:30 3448.699951 3448.699951 ... green 09:15:00 2025-06-30 09:20:00+05:30 3446.899902 3456.399902 ... green 09:20:00 2025-06-30 09:25:00+05:30 3457.300049 3460.000000 ... red 09:25:00 2025-06-30 09:30:00+05:30 3451.100098 3452.699951 ... green 09:30:00 2025-06-30 09:35:00+05:30 3451.300049 3453.600098 ... red 09:35:00 ... ... ... ... ... ... 2025-07-28 15:05:00+05:30 3076.699951 3082.800049 ... green 15:05:00 2025-07-28 15:10:00+05:30 3081.600098 3081.800049 ... green 15:10:00 2025-07-28 15:15:00+05:30 3081.699951 3081.699951 ... red 15:15:00 2025-07-28 15:20:00+05:30 3081.399902 3081.500000 ... red 15:20:00 2025-07-28 15:25:00+05:30 3079.600098 3085.800049 ... green 15:25:00 [1575 rows x 8 columns] DEBUG:asyncio:Using proactor: IocpProactor * Serving Flask app 'apidata' * Debug mode: on INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://127.0.0.1:5000 INFO:werkzeug:Press CTRL+C to quit opened url INFO:werkzeug:127.0.0.1 - - [29/Jul/2025 14:08:41] "GET /?action=login&type=login&status=success&request_token=9cHpJnBsEtjJ6FywRQXUv2wEQ6sPLiGC HTTP/1.1" 200 - http://localhost:5000/?action=login&type=login&status=success&request_token=9cHpJnBsEtjJ6FywRQXUv2wEQ6sPLiGC 9cHpJnBsEtjJ6FywRQXUv2wEQ6sPLiGC DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /session/token HTTP/1.1" 200 None hT6qFAvVFlzMuJKuxu6LXWsYS7DUU3Rp breaking DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /user/profile HTTP/1.1" 200 None {'user_id': 'SYD525', 'user_type': 'individual/ind_with_nom', 'email': 'shapragun1234@gmail.com', 'user_name': 'Shalu Bansal', 'user_shortname': 'Shalu', 'broker': 'ZERODHA', 'exchanges': ['MF', 'NSE', 'BSE'], 'products': ['CNC', 'NRML', 'MIS', 'BO', 'CO'], 'order_types': ['MARKET', 'LIMIT', 'SL', 'SL-M'], 'avatar_url': None, 'meta': {'demat_consent': 'consent'}} DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /instruments HTTP/1.1" 200 1306224 [589569, 589569, 589569, 408065, 589569, 589569, 408065, 589569, 408065, 895745, 589569, 589569, 408065, 589569, 408065, 895745, 589569, 408065, 895745, 2748929, 589569, 589569, 408065, 589569, 408065, 895745, 589569, 408065, 895745, 2748929, 589569, 408065, 895745, 2748929, 4485121, 589569, 589569, 408065, 589569, 408065, 895745, 589569, 408065, 895745, 2748929, 589569, 408065, 895745, 2748929, 4485121, 589569, 408065, 895745, 2748929, 4485121, 356865, 589569, 589569, 408065, 589569, 408065, 895745, 589569, 408065, 895745, 2748929, 589569, 408065, 895745, 2748929, 4485121, 589569, 408065, 895745, 2748929, 4485121, 356865, 589569, 408065, 895745, 2748929, 4485121, 356865, 345089, 589569, 589569, 408065, 589569, 408065, 895745, 589569, 408065, 895745, 2748929, 589569, 408065, 895745, 2748929, 4485121, 589569, 408065, 895745, 2748929, 4485121, 356865, 589569, 408065, 895745, 2748929, 4485121, 356865, 345089, 589569, 408065, 895745, 2748929, 4485121, 356865, 345089, 884737, 589569, 589569, 408065, 589569, 408065, 895745, 589569, 408065, 895745, 2748929, 589569, 408065, 895745, 2748929, 4485121, 589569, 408065, 895745, 2748929, 4485121, 356865, 589569, 408065, 895745, 2748929, 4485121, 356865, 345089, 589569, 408065, 895745, 2748929, 4485121, 356865, 345089, 884737, 589569, 408065, 895745, 2748929, 4485121, 356865, 345089, 884737, 341249, 589569, 589569, 408065, 589569, 408065, 895745, 589569, 408065, 895745, 2748929, 589569, 408065, 895745, 2748929, 4485121, 589569, 408065, 895745, 2748929, 4485121, 356865, 589569, 408065, 895745, 2748929, 4485121, 356865, 345089, 589569, 408065, 895745, 2748929, 4485121, 356865, 345089, 884737, 589569, 408065, 895745, 2748929, 4485121, 356865, 345089, 884737, 341249, 589569, 408065, 895745, 2748929, 4485121, 356865, 345089, 884737, 341249, 78849] defaultdict(None, {589569: 'HAL', 408065: 'INFY', 895745: 'TATASTEEL', 2748929: 'OFSS', 4485121: 'RTNPOWER', 356865: 'HINDUNILVR', 345089: 'HEROMOTOCO', 884737: 'TATAMOTORS', 341249: 'HDFCBANK', 78849: 'BAJAJHIND'}) ['HAL', 'INFY', 'TATASTEEL', 'OFSS', 'RTNPOWER', 'HINDUNILVR', 'HEROMOTOCO', 'TATAMOTORS', 'HDFCBANK', 'BAJAJHIND'] 🔌 Connected to WebSocket close reason without close code on_connect ERROR:kiteconnect.ticker:Connection error: 0 - error parsing request