Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. sujeetboran
    S
    • Profile
    • Following 17
    • Followers 1
    • Topics 23
    • Posts 44
    • Best 1
    • Groups 0

    sujeetboran

    @sujeetboran

    2
    Reputation
    25
    Profile views
    44
    Posts
    1
    Followers
    17
    Following
    Joined Last Online

    sujeetboran Unfollow Follow

    Best posts made by sujeetboran

    • Historical API Max Records:500

      currently, we are getting Max 500 candles on whatever request is sent.

      If you want to provide 30 days of data for the 1 minute you have to allow 11250 (375*30) for the 1-minute candle to take over the one-month data in the single request.

      You said we give 30 days of data for a 1-minute candle and the second side gives a max of 500 records both things do not match.

      Pls, provide the solution.

      posted in General Discussion
      S
      sujeetboran

    Latest posts made by sujeetboran

    • missing data and uncorrect historical data

      Again I have Fetch data of HCL Tech to get 1 min data from 2021-01-14 09:15 to 2021-02-13 15:30.
      There are some data is missing and When I compared with my previous 1 min data it is mismatching in that, Does it mean the data which angle one provides is not correct??
      this is angle one data missing and wrong
      2021-01-19T09:45:00+05:30,987.9,988.5,987.5,987.8,11499
      2021-01-19T09:46:00+05:30,987.75,988.0,987.75,987.9,5091
      2021-01-19T09:57:00+05:30,983.1,985.0,983.1,984.5,334812
      2021-01-19T09:58:00+05:30,984.45,984.5,983.65,984.15,27440
      This is previous data which is correct!!
      2021-01-19 09:45:00,988.0,988.5,987.5,987.8,11499
      2021-01-19 09:46:00,987.8,988.5,987.75,988.5,11080
      2021-01-19 09:47:00,988.5,988.5,987.2,988.3,11263
      2021-01-19 09:48:00,988.3,989.85,988.05,989.0,18393
      2021-01-19 09:49:00,989.0,989.65,988.85,989.0,18632
      2021-01-19 09:50:00,989.2,990.0,988.35,988.35,30341
      2021-01-19 09:51:00,988.65,988.65,986.85,988.0,45528
      2021-01-19 09:52:00,988.2,988.55,985.0,985.0,64633
      2021-01-19 09:53:00,985.1,985.55,983.45,984.2,63470
      2021-01-19 09:54:00,984.7,985.9,984.2,985.5,24817
      2021-01-19 09:55:00,985.5,986.1,984.05,985.0,22891
      2021-01-19 09:56:00,985.0,985.1,984.2,985.0,12408
      2021-01-19 09:57:00,984.75,985.0,984.3,984.5,16447
      2021-01-19 09:58:00,984.45,984.5,983.6,984.15,27440

      So should we not Trust AngleOne historical Data??

      posted in Bugs
      S
      sujeetboran
    • Missing Data all stock in 1 min

      Again I have Fetch data of HCL Tech to get 1 min data from 2021-01-14 09:15 to 2021-02-13 15:30.
      There are some data is missing and When I compared with my previous 1 min data it is mismatching in that, Does it mean the data which angle one provides is not correct??
      this is angle one data missing and wrong
      2021-01-19T09:45:00+05:30,987.9,988.5,987.5,987.8,11499
      2021-01-19T09:46:00+05:30,987.75,988.0,987.75,987.9,5091
      2021-01-19T09:57:00+05:30,983.1,985.0,983.1,984.5,334812
      2021-01-19T09:58:00+05:30,984.45,984.5,983.65,984.15,27440
      This is previous data which is correct!!
      2021-01-19 09:45:00,988.0,988.5,987.5,987.8,11499
      2021-01-19 09:46:00,987.8,988.5,987.75,988.5,11080
      2021-01-19 09:47:00,988.5,988.5,987.2,988.3,11263
      2021-01-19 09:48:00,988.3,989.85,988.05,989.0,18393
      2021-01-19 09:49:00,989.0,989.65,988.85,989.0,18632
      2021-01-19 09:50:00,989.2,990.0,988.35,988.35,30341
      2021-01-19 09:51:00,988.65,988.65,986.85,988.0,45528
      2021-01-19 09:52:00,988.2,988.55,985.0,985.0,64633
      2021-01-19 09:53:00,985.1,985.55,983.45,984.2,63470
      2021-01-19 09:54:00,984.7,985.9,984.2,985.5,24817
      2021-01-19 09:55:00,985.5,986.1,984.05,985.0,22891
      2021-01-19 09:56:00,985.0,985.1,984.2,985.0,12408
      2021-01-19 09:57:00,984.75,985.0,984.3,984.5,16447
      2021-01-19 09:58:00,984.45,984.5,983.6,984.15,27440

      So should we not Trust AngleOne historical Data??

      posted in General Discussion
      S
      sujeetboran
    • Missing Data

      I Have ran a query to get data for HDFC bank. From 2021-01-14 09:15 to 2021-02-13 15:30. which is 1 min candle data I saw multiple data is missing
      2021-01-19T09:45:00+05:30,735.55,735.55,733.5,734.28,154056
      2021-01-19T09:46:00+05:30,734.13,735.03,734.13,734.88,43096
      2021-01-19T09:57:00+05:30,737.45,737.5,736.5,736.83,440126
      2021-01-19T09:58:00+05:30,736.85,737.63,736.63,737.28,55804

      it is highly impossible that HDFC bank is not got traded for straight 10 min from 46-57 min.
      Is it correct data?? or am i missing something??

      posted in Bugs
      S
      sujeetboran
    • WebSocket Error

      Traceback (most recent call last):
      File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 467, in _make_request
      self._validate_conn(conn)
      File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 1096, in _validate_conn
      conn.connect()
      File "C:\Program Files\Python310\lib\site-packages\urllib3\connection.py", line 642, in connect
      sock_and_verified = _ssl_wrap_socket_and_match_hostname(
      File "C:\Program Files\Python310\lib\site-packages\urllib3\connection.py", line 782, in ssl_wrap_socket_and_match_hostname
      ssl_sock = ssl_wrap_socket(
      File "C:\Program Files\Python310\lib\site-packages\urllib3\util\ssl
      .py", line 470, in ssl_wrap_socket
      ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
      File "C:\Program Files\Python310\lib\site-packages\urllib3\util\ssl
      .py", line 514, in _ssl_wrap_socket_impl
      return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
      File "C:\Program Files\Python310\lib\ssl.py", line 513, in wrap_socket
      return self.sslsocket_class._create(
      File "C:\Program Files\Python310\lib\ssl.py", line 1071, in _create
      self.do_handshake()
      File "C:\Program Files\Python310\lib\ssl.py", line 1342, in do_handshake
      self._sslobj.do_handshake()
      TimeoutError: _ssl.c:980: The handshake operation timed out

      The above exception was the direct cause of the following exception:

      Traceback (most recent call last):
      File "C:\Program Files\Python310\lib\site-packages\requests\adapters.py", line 486, in send
      resp = conn.urlopen(
      File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 844, in urlopen
      retries = retries.increment(
      File "C:\Program Files\Python310\lib\site-packages\urllib3\util\retry.py", line 470, in increment
      raise reraise(type(error), error, _stacktrace)
      File "C:\Program Files\Python310\lib\site-packages\urllib3\util\util.py", line 39, in reraise
      raise value
      File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 790, in urlopen
      response = self._make_request(
      File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 491, in _make_request
      raise new_e
      File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 469, in _make_request
      self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
      File "C:\Program Files\Python310\lib\site-packages\urllib3\connectionpool.py", line 370, in _raise_timeout
      raise ReadTimeoutError(
      urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Read timed out. (read timeout=7)

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "c:\Users\Administrator\Desktop\MUG_Level_NiftyOption Live\1.3 LTP & Historical\A6_LTP_Entry.py", line 277, in <module>
      raise e
      File "c:\Users\Administrator\Desktop\MUG_Level_NiftyOption Live\1.3 LTP & Historical\A6_LTP_Entry.py", line 275, in <module>
      GettingLtpData()
      File "c:\Users\Administrator\Desktop\MUG_Level_NiftyOption Live\1.3 LTP & Historical\A6_LTP_Entry.py", line 116, in GettingLtpData
      LTP = obj.ltpData(Script_Exchange, tradingsymbol, symboltoken)
      File "C:\Program Files\Python310\lib\site-packages\SmartApi\smartConnect.py", line 343, in ltpData
      ltpDataResponse= self._postRequest("api.ltp.data",params)
      File "C:\Program Files\Python310\lib\site-packages\SmartApi\smartConnect.py", line 228, in _postRequest
      return self._request(route, "POST", params)
      File "C:\Program Files\Python310\lib\site-packages\SmartApi\smartConnect.py", line 188, in _request
      raise e
      File "C:\Program Files\Python310\lib\site-packages\SmartApi\smartConnect.py", line 177, in _request
      r = requests.request(method,
      File "C:\Program Files\Python310\lib\site-packages\requests\api.py", line 59, in request
      return session.request(method=method, url=url, **kwargs)
      File "C:\Program Files\Python310\lib\site-packages\requests\sessions.py", line 589, in request
      resp = self.send(prep, **send_kwargs)
      File "C:\Program Files\Python310\lib\site-packages\requests\sessions.py", line 703, in send
      r = adapter.send(request, **kwargs)
      File "C:\Program Files\Python310\lib\site-packages\requests\adapters.py", line 532, in send
      raise ReadTimeout(e, request=request)
      requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Read timed out. (read timeout=7)

      Facing this error since last 1 month. Can someone help

      posted in Python SDK
      S
      sujeetboran
    • After how many second historical data available?

      I want every minute close. So my query is after a minute change at what time does historical data get which is matched with chart?

      e.g. current time is 13:28:00 and I want 13:28 candle data then after how many seconds I have to call historical data?

      posted in General Discussion
      S
      sujeetboran
    • Live Streaming is stop in windows 11

      The same code runs perfectly in Windows 10. But in Windows 11 live streaming stops after 3-5 minutes and gets below error.

      Traceback (most recent call last):
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 386, in _make_request
      self._validate_conn(conn)
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 1040, in validate_conn
      conn.connect()
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\urllib3\connection.py", line 414, in connect
      self.sock = ssl_wrap_socket(
      ^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\urllib3\util\ssl
      .py", line 449, in ssl_wrap_socket
      ssl_sock = ssl_wrap_socket_impl(
      ^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\urllib3\util\ssl
      .py", line 493, in _ssl_wrap_socket_impl
      return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Program Files\Python311\Lib\ssl.py", line 517, in wrap_socket
      return self.sslsocket_class._create(
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Program Files\Python311\Lib\ssl.py", line 1075, in _create
      self.do_handshake()
      File "C:\Program Files\Python311\Lib\ssl.py", line 1346, in do_handshake
      self._sslobj.do_handshake()
      TimeoutError: _ssl.c:985: The handshake operation timed out

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\requests\adapters.py", line 486, in send
      resp = conn.urlopen(
      ^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 785, in urlopen
      retries = retries.increment(
      ^^^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\urllib3\util\retry.py", line 550, in increment
      raise six.reraise(type(error), error, _stacktrace)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\urllib3\packages\six.py", line 770, in reraise
      raise value
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 703, in urlopen
      httplib_response = self._make_request(
      ^^^^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 389, in _make_request
      self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 340, in _raise_timeout
      raise ReadTimeoutError(
      urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Read timed out. (read timeout=7)

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "C:\Users\A\Desktop\Amitbhai_SK_Live 13.10.2023\A10_ManualEntry.py", line 356, in <module>
      raise e
      File "C:\Users\A\Desktop\Amitbhai_SK_Live 13.10.2023\A10_ManualEntry.py", line 354, in <module>
      GettingLtpData()
      File "C:\Users\A\Desktop\Amitbhai_SK_Live 13.10.2023\A10_ManualEntry.py", line 107, in GettingLtpData
      LTP = obj.ltpData(Exchange, tradingsymbol, symboltoken)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\SmartApi\smartConnect.py", line 309, in ltpData
      ltpDataResponse= self._postRequest("api.ltp.data",params)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\SmartApi\smartConnect.py", line 214, in _postRequest
      return self._request(route, "POST", params)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\SmartApi\smartConnect.py", line 174, in _request
      raise e
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\SmartApi\smartConnect.py", line 163, in _request
      r = requests.request(method,
      ^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\requests\api.py", line 59, in request
      return session.request(method=method, url=url, **kwargs)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\requests\sessions.py", line 589, in request
      resp = self.send(prep, **send_kwargs)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\requests\sessions.py", line 703, in send
      r = adapter.send(request, **kwargs)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\A\AppData\Roaming\Python\Python311\site-packages\requests\adapters.py", line 532, in send
      raise ReadTimeout(e, request=request)
      requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Read timed out. (read timeout=7)

      posted in Python SDK
      S
      sujeetboran
    • Historical API Max Records:500

      currently, we are getting Max 500 candles on whatever request is sent.

      If you want to provide 30 days of data for the 1 minute you have to allow 11250 (375*30) for the 1-minute candle to take over the one-month data in the single request.

      You said we give 30 days of data for a 1-minute candle and the second side gives a max of 500 records both things do not match.

      Pls, provide the solution.

      posted in General Discussion
      S
      sujeetboran
    • Need Intraday Available and Margin in Instrument List

      Dear Team,

      There is in BSE and NSE Equity segment 5x leverage (i.e.20% Margin) available in some scripts for intraday.

      All equity scripts are not available for intraday trading and some scripts are available for intraday trading but there is a 100% margin required.

      As an SB can download this report from nxt but users can not.

      If you give this in the instrument list then all API users can get benefits.

      posted in General Discussion
      S
      sujeetboran
    • Equity intraday tradable script list with 5x leverage

      Hello team,

      Need Equity intraday tradable script list with 5x leverage in json.

      posted in General Discussion
      S
      sujeetboran
    • There is any change in Rate Limit of Place Order

      Hello Team,

      In API Documentation there is Rate Limit of Place Order is 10 order per second but we send 7 order per second and all order not execute.

      Please check and update.

      posted in General Discussion
      S
      sujeetboran