Navigation

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

    basuvijay

    @basuvijay

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

    basuvijay Follow

    Best posts made by basuvijay

    This user hasn't posted anything yet.

    Latest posts made by basuvijay

    • RE: how to get token on nifty option to trade it

      @Tanay1907 You can use below code to get token if you are using python

      def get_symbol_token(trading_symbol, exchange="NFO"):
          url = "https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/searchScrip"
          payload = {"exchange": exchange, "searchscrip": trading_symbol}
          response = requests.post(url, json=payload, headers=headers)
          #print(response.text)
          data = response.json()
          
          if data.get("status") and "data" in data and len(data["data"]) > 0:
              return data["data"][0]["symboltoken"]
          print(f"[❌] Symbol token not found for {trading_symbol}")
          return None
      

      in trading_symbol you need pass strike like below
      BANKNIFTY27FEB2548300PE

      posted in General Discussion
      B
      basuvijay
    • Api secret key

      So far I didn't used api secret key anywhere...
      Now I'm trying to get a third party algo service and they are asking this api secret key

      Can anyone confirm if anyone with key and secret can do anything with my funds otherthan trading?

      posted in General Discussion
      B
      basuvijay
    • what parameter should I give for trailing stoploss jump price?

      Can anyone tell me what paramter or key I need to sue for this?
      I've these parameter to place a ROBO order but, unable to apply trailing stoploss jump price

      payload = {
      "variety": "ROBO",
      "tradingsymbol": symbol['strike'],
      "symboltoken": symbol_token,
      "transactiontype": transaction_type,
      "exchange": EXCHANGE,
      "ordertype": "LIMIT",
      "producttype": "INTRADAY",
      "duration": "DAY",
      "price":symbol['limit'],
      "squareoff":symbol['Take-Profit'],
      "stoploss":symbol['Stop-Loss'],
      "trailingStopLoss":symbol['Initial Trailing SL'],
      "quantity": quantity
      }

      posted in Python SDK
      B
      basuvijay