Idirect-Tech / Breeze-Python-SDK

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

Zero values for day low and open #131

Closed thelearner04 closed 1 month ago

thelearner04 commented 2 months ago

When using the below code, I am getting zero values for day low and open.

entry_date = datetime.datetime(2024, 4, 19)
end_date = entry_date + timedelta(days = 1)
entry_date_str = entry_date.strftime("%Y-%m-%d %H:%M:%S")
end_date_str = end_date.strftime("%Y-%m-%d %H:%M:%S")
index = "CNXBAN"

hist_cash = breeze.get_historical_data_v2(interval="1day",
                                        from_date= entry_date_str,
                                        to_date= end_date_str,
                                        stock_code= index,
                                        exchange_code= "NSE",
                                        product_type="cash")

if isinstance(hist_cash, dict) and hist_cash['Success']:
    hist_cashdf = pd.DataFrame(hist_cash['Success'])
Idirect-Tech commented 2 months ago

Dear Client,

We are looking into it and will update you shortly.

[E29CF836]

Thanks & Regards,

Hiten Solanki,

Team Breeze API,

ICICI Securities


From: thelearner04 @.> Sent: Saturday, August 24, 2024 8:06 PM To: Idirect-Tech/Breeze-Python-SDK @.> Cc: Subscribed @.***> Subject: [Idirect-Tech/Breeze-Python-SDK] Zero values for day low and open (Issue #131)

CAUTION: This email originated from outside the organization! Do not click links, open attachments or reply, unless you recognize the sender's email address! Use 'Report suspicious Email' button in the toolbar to report Phishing mails. Beware!

When using the below code, I am getting zero values for day low and open.

entry_date = datetime.datetime(2024, 4, 19) end_date = entry_date + timedelta(days = 1) entry_date_str = entry_date.strftime("%Y-%m-%d %H:%M:%S") end_date_str = end_date.strftime("%Y-%m-%d %H:%M:%S") index = "CNXBAN"

hist_cash = breeze.get_historical_data_v2(interval="1day", from_date= entry_date_str, to_date= end_date_str, stock_code= index, exchange_code= "NSE", product_type="cash")

if isinstance(hist_cash, dict) and hist_cash['Success']: hist_cashdf = pd.DataFrame(hist_cash['Success'])

— Reply to this email directly, view it on GitHubhttps://github.com/Idirect-Tech/Breeze-Python-SDK/issues/131, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3TQZ464TMWHCKH62YVW7KLZTCK5PAVCNFSM6AAAAABNBUUWY2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4DINRTHE4TSOI. You are receiving this because you are subscribed to this thread.

Print this mail only if absolutely necessary. Save Paper. Save Trees." "The information contained in this e-mail and any attachments to this message are intended for the exclusive use of the intended recipient and may contain proprietary, confidential or legally privileged information. If you are not the intended recipient, please note that you are not authorised to disseminate, distribute or copy this e-mail or any parts of it or act upon/rely on the contents of this e-mail in any manner. Please notify the sender immediately by e-mail and destroy all copies of this e-mail and any attachments. Please also note that ICICI Bank or its subsidiaries and associated companies, (collectively "ICICI Group"), are unable to exercise control or ensure the integrity of/over the contents of the information contained in e-mail transmissions and that any views expressed in this e-mail are not endorsed by/binding on the ICICI Group unless the sender does so expressly with due authority of ICICI Group. Before opening any attachments please check them for viruses and defects and please note that ICICI Group accepts no liability or responsibility for any damage caused by any virus that may be transmitted by this email. Any unauthorized use of this email or any attachment(s) may be treated as infringement of right(s) including right of privacy under the applicable laws of India including Information and Technology Act, 2000. Thank you for your cooperation. Regulatory Disclosures are available on https://www.icicisecurities.com (for institutional business) and www.icicidirect.com (for retail business).

Idirect-Tech commented 2 months ago

Dear Client,

Please check now, as low and open value are now coming in the API response.

[E29CF836]

Thanks & Regards,

Hiten Solanki,

Team Breeze API,

ICICI Securities


From: Hiten Solanki /EPG/ISEC/NAVI MUMBAI @.> Sent: Monday, August 26, 2024 2:33 PM To: Idirect-Tech/Breeze-Python-SDK @.>; Idirect-Tech/Breeze-Python-SDK @.> Cc: Subscribed @.> Subject: Re: [Idirect-Tech/Breeze-Python-SDK] Zero values for day low and open (Issue #131)

Dear Client,

We are looking into it and will update you shortly.

[E29CF836]

Thanks & Regards,

Hiten Solanki,

Team Breeze API,

ICICI Securities


From: thelearner04 @.> Sent: Saturday, August 24, 2024 8:06 PM To: Idirect-Tech/Breeze-Python-SDK @.> Cc: Subscribed @.***> Subject: [Idirect-Tech/Breeze-Python-SDK] Zero values for day low and open (Issue #131)

CAUTION: This email originated from outside the organization! Do not click links, open attachments or reply, unless you recognize the sender's email address! Use 'Report suspicious Email' button in the toolbar to report Phishing mails. Beware!

When using the below code, I am getting zero values for day low and open.

entry_date = datetime.datetime(2024, 4, 19) end_date = entry_date + timedelta(days = 1) entry_date_str = entry_date.strftime("%Y-%m-%d %H:%M:%S") end_date_str = end_date.strftime("%Y-%m-%d %H:%M:%S") index = "CNXBAN"

hist_cash = breeze.get_historical_data_v2(interval="1day", from_date= entry_date_str, to_date= end_date_str, stock_code= index, exchange_code= "NSE", product_type="cash")

if isinstance(hist_cash, dict) and hist_cash['Success']: hist_cashdf = pd.DataFrame(hist_cash['Success'])

— Reply to this email directly, view it on GitHubhttps://github.com/Idirect-Tech/Breeze-Python-SDK/issues/131, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3TQZ464TMWHCKH62YVW7KLZTCK5PAVCNFSM6AAAAABNBUUWY2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4DINRTHE4TSOI. You are receiving this because you are subscribed to this thread.

Print this mail only if absolutely necessary. Save Paper. Save Trees." "The information contained in this e-mail and any attachments to this message are intended for the exclusive use of the intended recipient and may contain proprietary, confidential or legally privileged information. If you are not the intended recipient, please note that you are not authorised to disseminate, distribute or copy this e-mail or any parts of it or act upon/rely on the contents of this e-mail in any manner. Please notify the sender immediately by e-mail and destroy all copies of this e-mail and any attachments. Please also note that ICICI Bank or its subsidiaries and associated companies, (collectively "ICICI Group"), are unable to exercise control or ensure the integrity of/over the contents of the information contained in e-mail transmissions and that any views expressed in this e-mail are not endorsed by/binding on the ICICI Group unless the sender does so expressly with due authority of ICICI Group. Before opening any attachments please check them for viruses and defects and please note that ICICI Group accepts no liability or responsibility for any damage caused by any virus that may be transmitted by this email. Any unauthorized use of this email or any attachment(s) may be treated as infringement of right(s) including right of privacy under the applicable laws of India including Information and Technology Act, 2000. Thank you for your cooperation. Regulatory Disclosures are available on https://www.icicisecurities.com (for institutional business) and www.icicidirect.com (for retail business).