Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Alok01
    A
    • Profile
    • Following 1
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Groups 0

    Alok01

    @Alok01

    0
    Reputation
    2
    Profile views
    1
    Posts
    0
    Followers
    1
    Following
    Joined Last Online

    Alok01 Unfollow Follow

    Latest posts made by Alok01

    • how to exit only my half position when target is achieved

      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 ..

      posted in Python SDK
      A
      Alok01