Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. ashishmavani
    A
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    ashishmavani

    @ashishmavani

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

    ashishmavani Follow

    Best posts made by ashishmavani

    • 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
      A
      ashishmavani

    Latest posts made by ashishmavani

    • 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
      A
      ashishmavani
    • 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
      A
      ashishmavani
    • 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
      A
      ashishmavani
    • 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
      A
      ashishmavani
    • 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
      A
      ashishmavani
    • 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
      A
      ashishmavani
    • 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
      A
      ashishmavani
    • Issue in Historical Database

      Hello Team,

      I check historical database of Reliance, IRCTC, ABFRL & Astral in that the value is not in a multiplication of 5 paisa.

      I tick size is 5 paisa then the value should be in the multiplication of 5 paisa.

      This issue is in the database and chart. I cross verify it with Zerodha.

      Please check it and provide the correct data.

      posted in Bugs
      A
      ashishmavani
    • RE: Server Down

      Yes u r right. Also we face issue.

      posted in Bugs
      A
      ashishmavani
    • RE: order book API down ?

      @rajanprabu

      posted in Python SDK
      A
      ashishmavani