Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Sady27
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 6
    • Best 1
    • Groups 0

    Sady27

    @Sady27

    4
    Reputation
    4
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Sady27 Unfollow Follow

    Best posts made by Sady27

    • Nifty 50 and BankNifty Token

      I want to load data for nifty 50 and banknifty indexes and I am using below token for nifty 50 which is not returning any historical data. Let me know if my approach is incorrect. token number I am using to load nifty 50 is 99926000

      fbb2f0abcd3e-image.png) token symbol name expiry strike lotsize instrumenttype exch_seg tick_size
      99926000 Nifty 50 NIFTY 0 1 AMXIDX NSE 0

      posted in Python SDK
      S
      Sady27

    Latest posts made by Sady27

    • RE: SmartApi historic data returning none today

      When I tried next day it started working fine. Not sure what the issue was. Anyways if admin can enlighten us with some insights that than would be great.

      posted in General Discussion
      S
      Sady27
    • SmartApi historic data returning none today

      Is there any issue in SmartApi historic data today ?

      try:
      historicParam={
      "exchange": "NSE",
      "symboltoken": "3045",
      "interval": "ONE_MINUTE",
      "fromdate": "2021-02-08 09:00",
      "todate": "2021-02-08 09:16"
      }
      smartApi.getCandleData(historicParam)
      except Exception as e:
      print("Historic Api failed: {}".format(e.message))

      It is returning none in. please see the snapshot. I checked for other tokens as well and this is happening for others as well

      smart api issue.jpg

      posted in General Discussion
      S
      Sady27
    • RE: Error while getting historical data

      Thanks. It works. at any point of time if within seconds I requested for more than 3 packets then it throws an error hence putting the sleep works .

      posted in Python SDK
      S
      Sady27
    • RE: Getting error in websocketV2

      in the connect() function of smartWebSocketV2.py replace the line with below definition and it fix the issue. The highglighted in bold is the changes I did in code to make it work

      line having issue:
      self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEART_BEAT_INTERVAL,
      ping_payload=self.HEART_BEAT_MESSAGE)

      replace it with below corrected code:
      self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEART_BEAT_INTERVAL)

      posted in Python SDK
      S
      Sady27
    • Nifty 50 and BankNifty Token

      I want to load data for nifty 50 and banknifty indexes and I am using below token for nifty 50 which is not returning any historical data. Let me know if my approach is incorrect. token number I am using to load nifty 50 is 99926000

      fbb2f0abcd3e-image.png) token symbol name expiry strike lotsize instrumenttype exch_seg tick_size
      99926000 Nifty 50 NIFTY 0 1 AMXIDX NSE 0

      posted in Python SDK
      S
      Sady27
    • Error while getting historical data

      Error while fetching historical candle data for 2 days for 200 stocks in 5 mins time frame. Please help

      DataException: Couldn't parse the JSON response received from the server: b'Access denied because of exceeding access rate'

      posted in Python SDK
      S
      Sady27