Navigation

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

    algo13

    @algo13

    1
    Reputation
    2
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    algo13 Unfollow Follow

    Latest posts made by algo13

    • Historic Data: No data for Nifty & BankNifty

      Showing no data for Nifty & Banknifty Historic Data

      def fetch_5min_data(obj, symbol):
          token_map = {"NIFTY": "99926000", "BANKNIFTY": "99926009"}
          symbol_token = token_map.get(symbol.upper())
      
          # Test with a known working date like July 1, 2024
          start = datetime.strptime("2024-07-01 09:15", "%Y-%m-%d %H:%M")
          end = datetime.strptime("2024-07-01 15:30", "%Y-%m-%d %H:%M")
      
          params = {
              "exchange": "NSE",
              "symbol": symbol,
              "symboltoken": symbol_token,
              "interval": "FIVE_MINUTE",
              "fromdate": start.strftime("%Y-%m-%d %H:%M"),
              "todate": end.strftime("%Y-%m-%d %H:%M")
          }
      
          try:
              response = obj.getCandleData(params)
          except Exception as e:
              print(f"❌ Error fetching data for {symbol}: {e}")
              return None
      
          raw = response.get("data", [])
          if not raw:
              print(f"⚠️ No data returned for {symbol}")
              return None
      
          df = pd.DataFrame(raw, columns=["datetime", "open", "high", "low", "close", "volume"])
          df["datetime"] = pd.to_datetime(df["datetime"])
          return df
      
      

      ⚠️ No data returned for NIFTY
      ⚠️ No data returned for BANKNIFTY

      Please guide me where i am wrong, Thanks

      posted in Python SDK
      A
      algo13
    • RE: migrated

      Plz migrate my account my angel id D100097

      posted in Bugs
      A
      algo13
    • RE: please migrate J46494 for smart api trial

      Plz migrate my account my client is D100097

      posted in General Discussion
      A
      algo13
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      @admin plz migrate my account my client id D100097

      posted in General Discussion
      A
      algo13
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      @admin please migrate my id D100097

      posted in General Discussion
      A
      algo13
    • RE: Discrepancy Between Real-Time and Historical Market Data: Causes and Impact on Algo Trading Decisions

      @admin please migrate my client id D100097

      posted in General Discussion
      A
      algo13