HOW CAN WE CREATE THIS TYPE OF GTT USING SMART API WHERE CAN I EXIT MY HALF POSTION AND TRAIL HALF POSTION FURTHER NEXT TARGET url))
mahesh0842
@mahesh0842
Best posts made by mahesh0842
Latest posts made by mahesh0842
-
exit half position throug gtt in SMART API
-
PARTIALLY POSITION EXIT THROUGH SAMRTAPI
Hello team I'm Mahesh yadav and I'm using your smartapi python now I'm facing a problem for a logical thinking
For example if my target is achieved then how can I exit my half quantity only
Now I'm placing a robo order jo ki mere target and stoploss pr meri puri quantity ko exit kr de rha hai so mai abhi ye chahta hu ko apke smartapi ko target and stoploss price de du and jab stoploss achieved ho tab meri full position exit ho Jaye ya fir target achive ho to meri sirf half position hi exit ho abhi feelhal le liye Mai ye example json use kr rha hu
order_data = {
"variety":"ROBO",
"symboltoken": order_token,
"stoploss": str(StopRoundedTotal),
"squareoff": str(TargetRoundedTotal),
"tradingsymbol": symbol,
"price": str(BuyRoundedTotal),
"quantity":quantity,
"duration":"DAY",
"producttype":"INTRADAY",
"ordertype":"LIMIT",
"exchange":"NFO",
"transactiontype":"BUY",
}And I'm using your historical api so that I'm getting live data jo ki me yaha se manually order target point pr nikal saku
And also Mai gtt apka use Kiya hu jo ki sirf carryforward position ke liye work kr rha hai abhi iska kya solution hai pls reply
So sorry for long query ..