Navigation

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

    Posts made by Deepakc8051

    • RE: TrailingStoploss in ROBO Order

      Check this:
      def PlaceRoboOrder(self, TradingSymbol, Token, BuySell, Exchange, Quantity, Price, stoploss,squareoff):
      try:
      orderparams = {
      "variety": "ROBO",
      "tradingsymbol": TradingSymbol, #"SBIN-EQ",
      "symboltoken": Token, #"3045",
      "transactiontype": BuySell, #"BUY",
      "exchange": Exchange, #"NSE",
      "ordertype": "LIMIT", #"LIMIT",Limit_Market
      "producttype": "BO",
      "duration": "DAY",
      "price": Price, #"19500",
      "squareoff": squareoff,
      "stoploss": stoploss-1, #"0",
      "quantity": Quantity, #"1"
      "triggerprice" : stoploss, #Price-stoploss
      "trailingstoploss": 5
      }
      smartApi.placeOrder(orderparams)

      posted in Python SDK
      D
      Deepakc8051