Navigation

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

    how to exit only my half position when target is achieved

    Python SDK
    0
    1
    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
      Alok01 last edited by

      Hello team I'm Alok Vishwakarma 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 ..

      1 Reply Last reply Reply Quote 0
      • First post
        Last post