Hello,
We are a software development company and have built an ALGO software using the Upstox API. Recently, we noticed an issue where the carry forward positions are showing as zero, even though there are open positions.
We have attached the response from the Upstox API and the terminal screen for your reference. Kindly review and provide a solution at the earliest.
UPSTOX API réponse
[
{
"symbol": "COLPAL25MARFUT",
"account": "116_ABHISHEK",
"broker": "Upstox",
"trading_account": "8178080065",
"pl": -2870,
"realized_pl": 0,
"unrealized_pl": -2870,
"ltp": 2481.6,
"qty": 175,
"buy_qty": 0,
"sell_qty": 0,
"net_qty": 0,
"avg_buy_price": 0,
"avg_sell_price": 0,
"trade": "-",
"variety": "D",
"day": "28-Feb-2025"
},
{
"symbol": "NIFTY25MARFUT",
"account": "116_ABHISHEK",
"broker": "Upstox",
"trading_account": "8178080065",
"pl": -129207,
"realized_pl": 0,
"unrealized_pl": -129207,
"ltp": 22256,
"qty": 300,
"buy_qty": 0,
"sell_qty": 0,
"net_qty": 0,
"avg_buy_price": 0,
"avg_sell_price": 0,
"trade": "-",
"variety": "D",
"day": "28-Feb-2025"
},
{
"symbol": "NIFTY25DEC25000PE",
"account": "116_ABHISHEK",
"broker": "Upstox",
"trading_account": "8178080065",
"pl": 129799.5,
"realized_pl": 0,
"unrealized_pl": 129799.5,
"ltp": 1933.4,
"qty": 150,
"buy_qty": 0,
"sell_qty": 0,
"net_qty": 0,
"avg_buy_price": 0,
"avg_sell_price": 0,
"trade": "-",
"variety": "D",
"day": "28-Feb-2025"
},
{
"symbol": "NIFTY25DEC23000PE",
"account": "116_ABHISHEK",
"broker": "Upstox",
"trading_account": "8178080065",
"pl": 27694.5,
"realized_pl": 0,
"unrealized_pl": 27694.5,
"ltp": 918.5,
"qty": 150,
"buy_qty": 0,
"sell_qty": 0,
"net_qty": 0,
"avg_buy_price": 0,
"avg_sell_price": 0,
"trade": "-",
"variety": "D",
"day": "28-Feb-2025"
}
]
Looking forward to your prompt response.
Best regards,
Mitul Mehta