Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    GTT OCO Order

    Bugs
    0
    2
    10
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      akkidewas1989 last edited by

      Re: how to create GTT OCO order

      Can you tell me if its correct request body:

      {
      tradingsymbol: "NIFTY20FEB2523500CE",
      symboltoken: "63622",
      exchange: "NFO",
      producttype: "CARRYFORWARD",
      transactiontype: "SELL",
      price: 0,
      gtttype: "OCO",
      qty: 300,
      triggerprices: [
      15.4,
      25.65,
      ],
      disclosedqty: 0,
      timeperiod: 365,
      validity: "GTT",
      amo: "NO",
      }

      1 Reply Last reply Reply Quote 0
      • A
        admin last edited by

        @akkidewas1989 use the below format

        {
            "disclosedqty": 0,
            "exchange": "NSE",
            "price": 761.30,
            "producttype": "DELIVERY",
            "qty": 1,
            "symboltoken": "3045",
            "timeperiod": 1,
            "tradingsymbol": "SBIN-EQ",
            "transactiontype": "BUY",
            "triggerprice": 753.75,
            "gttType":"OCO",
            "stoplossprice":841.45,
            "stoplosstriggerprice":833.10
        }
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post