Position API data

sauravsutaria
Today I bought 1 lot of a nifty option, and sold them today itself.
So when I call the get position api, I will get the following details

overnight quantity: 0,
quantity : 0,
buy quantity : 1,
sell quantity : 1,
day buy quantity : 1,
day sell quantity : 1

now tomorrow, if I again repeat the same trades on same instrument, dose the buy quantity & sell quantity will have any effect of previous positions.
like this
overnight quantity: 0,
quantity : 0,
buy quantity : 2,
sell quantity : 2,
day buy quantity : 1,
day sell quantity : 1

Or, if the position is squared off then we won't get it reference from next day onwards?
and what if I want to use my today's squared-off position's data in future?
  • sujith
    In case of F&O, only an open position entry is kept in the net field of positions response. All closed positions and MIS positions are cleared after BOD process is run in the night.

    Even if you have an open position and the instrument expires tomorrow then also it won't show up in your positions.
  • sujith
    But the buy/sell quantity, price and value will have the previous day's m2m data.
  • sauravsutaria
    Will it effect the PnL, like if I have squared off an instrument yesterday and booked the profit of 3k, and today for same instrument I booked a profit of 1k, so when I fetch positions, I will get PnL as 4k? right?
  • sujith
    If you have squared off position yesterday, then it won't show up today. You can only see whatever fresh position you take today.
  • sauravsutaria
    okay, got it.
This discussion has been closed.