Re: how to create GTT OCO order
modifying the existing generic gtt rule type to OCO type is not working
sample code
smart_api
.modifyRule({
id: orderid,
gttType: "OCO",
stoplossprice: 340,
stoplosstriggerprice: 340,
})
Re: how to create GTT OCO order
modifying the existing generic gtt rule type to OCO type is not working
sample code
smart_api
.modifyRule({
id: orderid,
gttType: "OCO",
stoplossprice: 340,
stoplosstriggerprice: 340,
})
@admin
Thank you for the response ,
But getting error while placing gtttype OCO
sample request
{
tradingsymbol: 'symbol',
symboltoken: 'token',
exchange: 'NFO',
qty: '15',
producttype: 'CARRYFORWARD',
transactiontype: 'SELL',
price: 401,
disclosedqty: '15',
triggerprice: 400,
timeperiod: 1,
gttType: 'OCO',
stoplossprice: 370,
stoplosstriggerprice: 372
}
Hi @admin
How do i create a GTT rule for OCO order for example, Sell at target or sell at stoploss