Navigation

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

    hemanthkumar097

    @hemanthkumar097

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

    hemanthkumar097 Follow

    Best posts made by hemanthkumar097

    This user hasn't posted anything yet.

    Latest posts made by hemanthkumar097

    • GTT order not getting placed

      While placing GTT orders using the api got the following error. It was working fine till 30-08-2024

      {'tradingsymbol': 'NIFTY26SEP24FUT`', 'symboltoken': '35000', 'exchange': 'NFO', 'producttype': 'CARRYFORWARD', 'transactiontype': 'BUY', 'price': '25450.0', 'qty': '200', 'triggerprice': '25440.0', 'timeperiod': '1'}

      {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}

      i tried retrieving the gtt rule list it is also not working
      @admin @Moderator_1 @Moderator_2 @Moderator_3

      posted in Bugs
      H
      hemanthkumar097
    • RE: Error code AB1004 into gttlist() API for last 2 days

      @Moderator_3 Hi i am also getting error while placing new gtt order
      https://apiconnect.angelbroking.com/gtt-service/rest/secure/angelbroking/gtt/v1/createRule

      {'tradingsymbol': 'NIFTY26SEP24FUT`', 'symboltoken': '35000', 'exchange': 'NFO', 'producttype': 'CARRYFORWARD', 'transactiontype': 'BUY', 'price': '25450.0', 'qty': '200', 'triggerprice': '25440.0', 'timeperiod': '1'}

      {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}

      posted in Bugs
      H
      hemanthkumar097
    • Historical data mismatch

      def hist_data(ticker,st_date,end_date,interval,exchange="NFO"):
      params = {
      "exchange": exchange,
      "symboltoken": ticker,
      "interval": interval,
      "fromdate": st_date,
      "todate": end_date
      }
      print(params)
      hist_data = obj.getCandleData(params)
      print(hist_data)
      df_data = pd.DataFrame(hist_data["data"],
      columns = ["date","open","high","low","close","volume"])
      df_data.set_index("date",inplace=True)
      return df_data

      banknifty_data = hist_data("61627","2023-11-30 00:00", "2023-12-01 23:55", "ONE_DAY",)

      The above code is used to return values of 30-11-23 and 01-12-13 for BANKNIFTY28DEC23FUT contract

      28c3625e-7aeb-42b1-9c28-b56640291a36-image.png

      the code returned the above data in which the values for 31-11-23 is from BANKNIFTY30NOV23FUT contract and values from 01-12-23 if from BANKNIFTY28DEC23FUT

      Please help me to retrieve values of current month contract

      posted in Python SDK
      H
      hemanthkumar097
    • Incorrect Historical Data For Banknifty Futrures

      def hist_data(ticker,st_date,end_date,interval,exchange="NFO"):
      params = {
      "exchange": exchange,
      "symboltoken": ticker,
      "interval": interval,
      "fromdate": st_date,
      "todate": end_date
      }
      print(params)
      hist_data = obj.getCandleData(params)
      print(hist_data)
      df_data = pd.DataFrame(hist_data["data"],
      columns = ["date","open","high","low","close","volume"])
      df_data.set_index("date",inplace=True)
      return df_data

      banknifty_data = hist_data("61627","2023-11-30 00:00", "2023-12-01 23:55", "ONE_DAY",)

      The above code is used to return values of 30-11-23 and 01-12-13 for BANKNIFTY28DEC23FUT contract

      28c3625e-7aeb-42b1-9c28-b56640291a36-image.png

      the code returned the above data in which the values for 31-11-23 is from BANKNIFTY30NOV23FUT contract and values from 01-12-23 if from BANKNIFTY28DEC23FUT

      posted in Bugs
      H
      hemanthkumar097
    • Data Discrepency when fetching Historic Data of nifty and banknifty futures

      Data Discrepency when fetching nifty and banknifty futures contract for 23-DEC-2023 contract

      def hist_data(ticker,st_date,end_date,interval,exchange="NFO"):
      params = {
      "exchange": exchange,
      "symboltoken": ticker,
      "interval": interval,
      "fromdate": st_date,
      "todate": end_date
      }
      print(params)
      hist_data = obj.getCandleData(params)
      print(hist_data)
      df_data = pd.DataFrame(hist_data["data"],
      columns = ["date","open","high","low","close","volume"])
      df_data.set_index("date",inplace=True)
      return df_data

      data = hist_data("61627","2023-11-29 09:15", "2023-12-01 15:30", "ONE_DAY",)
      8b7a1360-250e-4e50-bcf2-5bd9e4098267-image.png

      the Data for 31-11-23 is from Nov month contract
      the Data for 01-12-23 is from Dec month contract

      please update

      posted in Bugs
      H
      hemanthkumar097