Square off

revanth1425
Where can I find the square off logic in documentation
  • sujith
    Hi @revanth1425,
    You need to get the net quantity of your position, if it is negative then it is a short position or else it is a long position.
    If you have a long position, then place a sell order with same product type or else place a buy order.
Sign In or Register to comment.