Navigation

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

    shreyas2290

    @shreyas2290

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

    shreyas2290 Follow

    Best posts made by shreyas2290

    This user hasn't posted anything yet.

    Latest posts made by shreyas2290

    • Historical Data API

      I have been trying to collect data of Reliance from Jan 1st 2022 to date. Since the maximum days per request allowed is 30 days for one minute interval data I have been collecting data for every 30 days using while loop. But the first day of few loops has an issue. The data is missing for half day. Could you please help me with this?

      posted in Bugs
      S
      shreyas2290
    • Historical data open and close

      I downloaded historical data for Reliance for approximately 2.5 years for Reliance today in two timeframes, one minute timeframe and one day time frame. I noticed that the opening price of 9:15 minute in one minute timeframe data and opening price of the day in one day time frame data was not the same. Similarly, the closing price of 15:29 minute in one minute time frame data and closing price of the day in one day time frame data was not the same.

      Please let me know the reason. Should'nt they be same?

      posted in General Discussion
      S
      shreyas2290
    • RE: Smart API Login issue

      @Moderator_3

      Following is the code. I have entered IP address, public IP address, mac address, client id, pin, API key and totp correctly. Still I am getting error. The following code is from API Documentation. I have pasted the error in the end.

      import http.client
      import mimetypes
      conn = http.client.HTTPSConnection(
      "apiconnect.angelbroking.com"
      )
      payload = "{\n"clientcode":"CLIENT_ID"
      ,\n"password":"CLIENT_PIN"\n
      ,\n"totp":"TOTP_CODE"\n}"
      headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-UserType': 'USER',
      'X-SourceID': 'WEB',
      'X-ClientLocalIP': 'CLIENT_LOCAL_IP',
      'X-ClientPublicIP': 'CLIENT_PUBLIC_IP',
      'X-MACAddress': 'MAC_ADDRESS',
      'X-PrivateKey': 'API_KEY'
      }
      conn.request(
      "POST", "/rest/auth/angelbroking/user/v1/loginByPassword", payload, headers)

      res = conn.getresponse()
      data = res.read()
      print(data.decode("utf-8"))

      {"status":false,"message":"Invalid totp","errorcode":"AB1050","data":null}

      posted in Bugs
      S
      shreyas2290
    • RE: Smart API Login issue

      @Moderator_3
      I am using trading api

      posted in Bugs
      S
      shreyas2290
    • Smart API Login issue

      I have written a code to login. I am getting status code as 200. However, I am not getting the response in the format mentioned in the documentation.

      posted in Bugs
      S
      shreyas2290