smartApi.holding()
the output of the above code is given below
{'status': True,
'message': 'SUCCESS',
'errorcode': '',
'data': [{'tradingsymbol': 'TATAMOTORS-EQ',
'exchange': 'NSE',
'isin': 'INE155A01022',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 1028.9,
'symboltoken': '3456',
'close': 1016.45,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'WELSPUNLIV-EQ',
'exchange': 'NSE',
'isin': 'INE192B01031',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 189.45,
'symboltoken': '11253',
'close': 174.3,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'AWL-EQ',
'exchange': 'NSE',
'isin': 'INE699H01024',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 380.25,
'symboltoken': '8110',
'close': 382.35,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'BALRAMCHIN-EQ',
'exchange': 'NSE',
'isin': 'INE119A01028',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 475.95,
'symboltoken': '341',
'close': 473.7,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'BLS-EQ',
'exchange': 'NSE',
'isin': 'INE153T01027',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 379.8,
'symboltoken': '17279',
'close': 349.9,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'MOTHERSON-EQ',
'exchange': 'NSE',
'isin': 'INE775A01035',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 181.1,
'symboltoken': '4204',
'close': 175.51,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'RVNL-EQ',
'exchange': 'NSE',
'isin': 'INE415G01027',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 563.05,
'symboltoken': '9552',
'close': 550.8,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'ALOKINDS-EQ',
'exchange': 'NSE',
'isin': 'INE270A01029',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 26.1,
'symboltoken': '17675',
'close': 24.91,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'FSL-EQ',
'exchange': 'NSE',
'isin': 'INE684F01012',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 303.75,
'symboltoken': '14304',
'close': 275.55,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'SUZLON-EQ',
'exchange': 'NSE',
'isin': 'INE040H01021',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 68.63,
'symboltoken': '12018',
'close': 67.85,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'TRIDENT-EQ',
'exchange': 'NSE',
'isin': 'INE064C01022',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 38.91,
'symboltoken': '9685',
'close': 36.63,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'ZOMATO-EQ',
'exchange': 'NSE',
'isin': 'INE758T01015',
't1quantity': 0,
'realisedquantity': 0,
'quantity': 0,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 0.0,
'ltp': 261.43,
'symboltoken': '5097',
'close': 256.29,
'profitandloss': 0.0,
'pnlpercentage': 0.0},
{'tradingsymbol': 'TATASTEEL-EQ',
'exchange': 'NSE',
'isin': 'INE081A01020',
't1quantity': 0,
'realisedquantity': 3,
'quantity': 3,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 176.12,
'ltp': 152.1,
'symboltoken': '3499',
'close': 149.82,
'profitandloss': -72.0,
'pnlpercentage': -13.64},
{'tradingsymbol': 'IIFL-EQ',
'exchange': 'NSE',
'isin': 'INE530B01024',
't1quantity': 0,
'realisedquantity': 1,
'quantity': 1,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 511.06,
'ltp': 424.85,
'symboltoken': '11809',
'close': 424.9,
'profitandloss': -86.0,
'pnlpercentage': -16.87},
{'tradingsymbol': 'AXISGOLD-EQ',
'exchange': 'NSE',
'isin': 'INF846K01W80',
't1quantity': 0,
'realisedquantity': 1,
'quantity': 1,
'authorisedquantity': 0,
'product': 'DELIVERY',
'collateralquantity': None,
'collateraltype': None,
'haircut': 0.0,
'averageprice': 40.83,
'ltp': 58.67,
'symboltoken': '20532',
'close': 59.27,
'profitandloss': 18.0,
'pnlpercentage': 43.69}]}
now the problem is that I have called holding function but in output It also gives me the trade that has been taken on day basis for example I have buy stock and sell after some minutes, but I remember around 1 week before it is giving only the output of the stocks that are held for more than 1 day but today it is giving different output as told above please @admin