Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    'AttributeError' object has no attribute 'message'

    Python SDK
    0
    2
    19
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gondalapradeep last edited by gondalapradeep

      The above said error while fetching for candle data with below code. Pl check and do the needful. </br>

      def getCandleData(token,obj): </br>

      try:</br>
          historicParam={</br>
          "exchange": "NSE",</br>
          "symboltoken": token,</br>
          "interval": "ONE_DAY",</br>
          "fromdate": f'{date.today()-timedelta(days=10)} 09:15' , </br>
          "todate": f'{date.today()} 15:30' </br>
          }</br>
          return obj.getCandleData(historicParam)</br>
      except Exception as e:</br>
          print(f"Historic Api failed: {e.message}")</br>
      
      G 1 Reply Last reply Reply Quote 0
      • G
        gondalapradeep @gondalapradeep last edited by

        @admin Can u pl check?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post