Idirect-Tech / Breeze-Python-SDK

The official Python client library for the ICICI Securities trading APIs
MIT License
63 stars 30 forks source link

Clarification on data returned by get_quotes #139

Open pjsaravanan opened 2 months ago

pjsaravanan commented 2 months ago

I called breeze.get_quotes(stock_code="NIFTY", exchange_code="NSE", product_type="cash"). I noticed couple of points. Why there is a second element in the array returned. The second element consists only all data as 0 or NA or None. Would request to share the reasons why the data is returned like that. Also, since this is an index, I am surprised to the ltt value getting updated and that too in a pre-premarket timing.

Data Returned :

{'Success': [{'exchange_code': 'NSE', 'product_type': '', 'stock_code': 'NIFTY', 'expiry_date': None, 'right': None, 'strike_price': 0.0, 'ltp': 25377.55, 'ltt': '19-Sep-2024 08:00:42', 'best_bid_price': 0.0, 'best_bid_quantity': '0', 'best_offer_price': 0.0, 'best_offer_quantity': '0', 'open': 0.0, 'high': 0.0, 'low': 0.0, 'previous_close': 25418.55, 'ltp_percent_change': 0.161299523379579, 'upper_circuit': 0.0, 'lower_circuit': 0.0, 'total_quantity_traded': '0', 'spot_price': None}, {'exchange_code': 'NA', 'product_type': '', 'stock_code': 'NIFTY', 'expiry_date': None, 'right': None, 'strike_price': 0.0, 'ltp': 0.0, 'ltt': 'NA', 'best_bid_price': 0.0, 'best_bid_quantity': '0', 'best_offer_price': 0.0, 'best_offer_quantity': '0', 'open': 0.0, 'high': 0.0, 'low': 0.0, 'previous_close': 0.0, 'ltp_percent_change': 0.0, 'upper_circuit': 0.0, 'lower_circuit': 0.0, 'total_quantity_traded': '0', 'spot_price': None}], 'Status': 200, 'Error': None}