how to create GTT OCO order


  • Hi @admin
    How do i create a GTT rule for OCO order for example, Sell at target or sell at stoploss


  • Hi @balrajsand2002,

    POST: /rest/secure/angelbroking/gtt/v1/createRule

    Request Body :
    {
    "disclosedqty": 0,
    "exchange": "BSE",
    "gttType": "",
    "ltp": 0,
    "price": 0,
    "producttype": "CARRYFORWARD",
    "qty": 0,
    "stoplossprice": 0,
    "stoplosstriggerprice": 0,

    "symboltoken": "string",
    "timeperiod": 0,
    "tradingsymbol": "string",
    "transactiontype": "BUY",
    "triggerprice": 0
    }

    On above request pass OCO for gttType key and mandatory pass values for stoplossprice & stoplosstriggerprice.

    Thank You
    Smart API Team