I am trying to fetch HDFC live data from NSE using SmartConnect web socket python api.
When I am running ss.connect() I am getting ticks data.But in that tick data stream two type of SF(script feed) array is coming.
Snap shot:
Ticks: [{'ak': 'ok', 'msg': 'connected', 'task': 'cn'}]
Ticks: [{'ak': 'ok', 'msg': 'heartbeat', 'task': 'hb'}]
Ticks: [{'e': 'nse_cm', 'ltp': '2504.65', 'ltq': '2', 'ltt': 'NA', 'name': 'sf', 'tk': '1330'}]
Ticks: [{'ap': '2502.66', 'bp': '2504.60', 'bq': '150', 'bs': '233', 'c': '2507.40', 'cng': '-02.75', 'e': 'nse_cm', 'lo': '2495.45', 'ltp': '2504.65', 'ltq': '2', 'ltt': '09/11/2022 12:06:26', 'name': 'sf', 'nc': '-00.1097', 'sp': '2504.65', 'tbq': '158697', 'tk': '1330', 'to': '3753294260.52', 'tsq': '226759', 'v': '1499722'}]
why is that coming ? can anyone explain ?
Thanks in advance.
Deb
@Deb
Best posts made by Deb
-
Why two type of SF value I am getting ?
Latest posts made by Deb
-
missing intraday 15 min candle data of HDFC
Hi,
I was accessing HDFC historical 15 min candle data through python . But it seems few days are missing.
For example 1st and 2nd Dec,2022 HDFC candle data isn't coming.
Please rectify this problem. -
RE: not receiving proper WebSocket data
@pavank did you get any solution of the problem? I am facing exactly same issue.
-
Why two type of SF value I am getting ?
I am trying to fetch HDFC live data from NSE using SmartConnect web socket python api.
When I am running ss.connect() I am getting ticks data.But in that tick data stream two type of SF(script feed) array is coming.
Snap shot:
Ticks: [{'ak': 'ok', 'msg': 'connected', 'task': 'cn'}]
Ticks: [{'ak': 'ok', 'msg': 'heartbeat', 'task': 'hb'}]
Ticks: [{'e': 'nse_cm', 'ltp': '2504.65', 'ltq': '2', 'ltt': 'NA', 'name': 'sf', 'tk': '1330'}]
Ticks: [{'ap': '2502.66', 'bp': '2504.60', 'bq': '150', 'bs': '233', 'c': '2507.40', 'cng': '-02.75', 'e': 'nse_cm', 'lo': '2495.45', 'ltp': '2504.65', 'ltq': '2', 'ltt': '09/11/2022 12:06:26', 'name': 'sf', 'nc': '-00.1097', 'sp': '2504.65', 'tbq': '158697', 'tk': '1330', 'to': '3753294260.52', 'tsq': '226759', 'v': '1499722'}]
why is that coming ? can anyone explain ?
Thanks in advance. -
How to fetch historical 15 min candle for NIFTY 50 ?
I am able to fetch sbi 15 min candle data using smart api. But it seems that same method is not working with nifty 50. I am searching symbol token from this link: https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json .
Can anybody explain what's wrong ?