Navigation

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

    vksaini

    @vksaini

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

    vksaini Follow

    Best posts made by vksaini

    This user hasn't posted anything yet.

    Latest posts made by vksaini

    • RE: trailing stoploss not working using api

      @Moderator_3 I want to place stoploss limit order. So that I buy security at desired price. What is the way to place robo order for stoploss limit order with trailing stoploss

      posted in Python SDK
      V
      vksaini
    • trailing stoploss not working using api

      def place_order(symbol, token, limit_price, trigger_price, quantity, stoploss, target, trailing):
      try:
      orderparams = {
      "variety": "ROBO",
      "tradingsymbol": symbol,
      "symboltoken": token,
      "price": limit_price,
      "triggerprice": trigger_price,
      "quantity": quantity,
      "transactiontype": "BUY",
      "exchange": "NFO",
      "ordertype": "STOPLOSS_LIMIT",
      "producttype": "INTRADAY",
      "duration": "DAY",
      "squareoff": target,
      "stoploss": stoploss,
      "trailingStopLoss": trailing
      }
      p = smartApi.placeOrderFullResponse(orderparams)
      print("order placed from place_order function..")
      return p
      except:
      print("order placement failed from place_order function..")
      return None
      Trailing stoploss is not working. could you please look into it .

      posted in Python SDK
      V
      vksaini