You receive two types of position data when you use the positions API: net and day positions. The net position shows your actual current portfolio, while the day position shows your trading activity for that specific day.
- Net positions represent your actual holdings after accounting for all carried-forward positions and today's trades.
- Day positions capture only the buying and selling transactions you made during the current trading session.
Example scenarios
Scenario 1: Squaring off a carry-forward position
If you carry forward an NRML position in NIFTY F&O and square it off today:
- Day data for NRML: Shows quantity of -75 (the square-off transaction)
- Net data for NRML: Shows quantity of 0 (the actual current position after squaring off)
Scenario 2: Taking a new intraday position
When you sell one lot using MIS product type:
- Day data for MIS: Shows quantity of -75 (the new transaction)
- Net data for MIS: Shows quantity of -75 (your actual current position)
Complete example with both transactions
After placing the NRML square-off order:
| Data type | Product type | Quantity |
|---|---|---|
| Net | NRML | 0 |
| Day | NRML | -75 |
After taking an intraday position by placing the MIS order:
| Data type | Product type | Quantity |
|---|---|---|
| Net | NRML | 0 |
| Net | MIS | -75 |
| Day | NRML | -75 |
| Day | MIS | -75 |