Closed ijselwyn closed 3 months ago
Dear Joshua,
Thankyou for showing interest in Breeze API.
Please share the payload to check the error.
[E29CF836]
Thanks & Regards,
Hiten Solanki,
Team Breeze API,
ICICI Securities
From: Joshua Selwyn @.> Sent: Tuesday, August 6, 2024 10:45 AM To: Idirect-Tech/Breeze-Python-SDK @.> Cc: Subscribed @.***> Subject: [Idirect-Tech/Breeze-Python-SDK] Resource not available (Issue #124)
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!
Getting this error, when trying to close existing order, please assist
ERROR: "Resource not available"
— Reply to this email directly, view it on GitHubhttps://github.com/Idirect-Tech/Breeze-Python-SDK/issues/124, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3TQZ47VCFPGWWC4BK7O5N3ZQBLXVAVCNFSM6AAAAABMBRHHHOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DSOJWGIYTIOI. You are receiving this because you are subscribed to this thread.Message ID: @.***>
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).
Stock code: BATIND Qty: 375 St price: 1500 expiry: 29 Aug 2024
Dear User,
Thank you for showing interest in Breeze API.
Please share the screenshot of the payload/code you are passing to check error.
[E29CF836] Thanks & Regards, Akash Sapkal, Team Breeze API, ICICI Securities
From: Joshua Selwyn @.> Sent: 06 August 2024 10:45 To: Idirect-Tech/Breeze-Python-SDK @.> Cc: Subscribed @.***> Subject: [Idirect-Tech/Breeze-Python-SDK] Resource not available (Issue #124)
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!
Getting this error, when trying to close existing order, please assist
ERROR: "Resource not available"
— Reply to this email directly, view it on GitHubhttps://github.com/Idirect-Tech/Breeze-Python-SDK/issues/124, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3TQZ47VCFPGWWC4BK7O5N3ZQBLXVAVCNFSM6AAAAABMBRHHHOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DSOJWGIYTIOI. You are receiving this because you are subscribed to this thread.Message ID: @.***>
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).
order_status = breeze.square_off(exchange_code="NFO", product="options", stock_code= stock_code, expiry_date= expiry_date, right= right, strike_price= strike_price, action= action, order_type= order_type, validity="day", stoploss="0", quantity= quantity, price="0", validity_date= validity_date, trade_password="", disclosed_quantity="0")
if order_status["Error"] is None: return True, "Order Squared-Off sucessfully." else: return False, str(order_status["Error"])
exchange_code="NFO" product="options" stock_code= "BATIND" right="put" action= "sell" order_type= "market" validity="day" quantity=: 375 strike_price= 1500 expiry_date = 29 Aug 2024
any updates?...
why is it giving "Resource not available"
Dear Joshua,
Please try with following code:
breeze.square_off(exchange_code="NFO", product="options", stock_code="BATIND", expiry_date="2024-08-29T06:00:00.000Z", right="put", strike_price="1500", action="sell", order_type="market", validity="day", stoploss="0", quantity="375", price="0", validity_date="", trade_password="", disclosed_quantity="0")
[E29CF836] Thanks & Regards, Akash Sapkal, Team Breeze API, ICICI Securities
From: Joshua Selwyn @.> Sent: 06 August 2024 11:29 To: Idirect-Tech/Breeze-Python-SDK @.> Cc: BREEZEAPI @.>; Comment @.> Subject: Re: [Idirect-Tech/Breeze-Python-SDK] Resource not available (Issue #124)
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!
any updates?...
why is it giving "Resource not available"
— Reply to this email directly, view it on GitHubhttps://github.com/Idirect-Tech/Breeze-Python-SDK/issues/124#issuecomment-2270446182, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3TQZ42SC5XMPQ4FJA57QQ3ZQBQ2LAVCNFSM6AAAAABMBRHHHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZQGQ2DMMJYGI. You are receiving this because you commented.Message ID: @.***>
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).
no it didn't work, still getting the same error "Resource not available"
placing order works fine, but when trying to close it's not working! please help!...
Dear User,
We tried calling you but you are unable to attend the call. Please share convenient time to connect.
[E29CF836] Thanks & Regards, Akash Sapkal, Team Breeze API, ICICI Securities
From: Joshua Selwyn @.> Sent: 06 August 2024 13:22 To: Idirect-Tech/Breeze-Python-SDK @.> Cc: BREEZEAPI @.>; Comment @.> Subject: Re: [Idirect-Tech/Breeze-Python-SDK] Resource not available (Issue #124)
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!
placing order works fine, but when trying to close it's not working! please help!...
— Reply to this email directly, view it on GitHubhttps://github.com/Idirect-Tech/Breeze-Python-SDK/issues/124#issuecomment-2270616431, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3TQZ46FHA5HL4IAFYUXGRDZQB6DJAVCNFSM6AAAAABMBRHHHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZQGYYTMNBTGE. You are receiving this because you commented.Message ID: @.***>
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).
This is the response from API, 500 - internal server error. {'Success': None, 'Status': 500, 'Error': 'Resource not available'}
stock_code = SBILIF expiry_date = 2023-08-31T00:00:00.000Z right = Put strike_price = 1600 quantity = 1500
here's the request sent. order_status = breeze.square_off(exchange_code="NFO", product="options", stock_code= stock_code, expiry_date= expiry_date, right= right, strike_price= strike_price, action= "sell", order_type= "market", validity="day", stoploss="0", quantity= quantity, price="0", validity_date= "", trade_password="", disclosed_quantity="0")
breeze.square_off(exchange_code="NFO", product="options", stock_code="ICIBAN", expiry_date="2022-08-25T06:00:00.000Z", right="Call", strike_price="16850", action="sell", order_type="market", validity="day", stoploss="0", quantity="50", price="0", validity_date="2022-08-12T06:00:00.000Z", trade_password="", disclosed_quantity="0")
Per documetation here, https://github.com/Idirect-Tech/Breeze-Python-SDK/?tab=readme-ov-file#square-off-an-fno-options-order
Dear Joshua,
Please join the MS teams meeting with below link:
Join the meeting nowhttps://teams.microsoft.com/l/meetup-join/19%3ameeting_OTJlNzY2NTEtMTRjNy00ODEzLTg1N2MtYmJjNTVjZDQxMjA5%40thread.v2/0?context=%7b%22Tid%22%3a%2261275075-9376-485d-820e-102b887c823f%22%2c%22Oid%22%3a%223af05d4b-7059-4114-9acf-76dddc6d2443%22%7d Meeting ID: 424 430 544 741 Passcode: 8YM3tc
[E29CF836] Thanks & Regards, Akash Sapkal, Team Breeze API, ICICI Securities
From: Joshua Selwyn @.> Sent: 06 August 2024 15:03 To: Idirect-Tech/Breeze-Python-SDK @.> Cc: BREEZEAPI @.>; Comment @.> Subject: Re: [Idirect-Tech/Breeze-Python-SDK] Resource not available (Issue #124)
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!
breeze.square_off(exchange_code="NFO", product="options", stock_code="ICIBAN", expiry_date="2022-08-25T06:00:00.000Z", right="Call", strike_price="16850", action="sell", order_type="market", validity="day", stoploss="0", quantity="50", price="0", validity_date="2022-08-12T06:00:00.000Z", trade_password="", disclosed_quantity="0")
Per documetation here, https://github.com/Idirect-Tech/Breeze-Python-SDK/?tab=readme-ov-file#square-off-an-fno-options-order
— Reply to this email directly, view it on GitHubhttps://github.com/Idirect-Tech/Breeze-Python-SDK/issues/124#issuecomment-2270831181, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3TQZ44VKE4RHGVIWQN3XD3ZQCKAPAVCNFSM6AAAAABMBRHHHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZQHAZTCMJYGE. You are receiving this because you commented.Message ID: @.***>
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).
I'm still debugging, allow me sometime please. Could be my mistake in the script somewhere, double checking everything
Dear Joshua,
stock_code = SBILIF expiry_date = 2023-08-31T00:00:00.000Z right = Put strike_price = 1600 quantity = 1500 here's the request sent. order_status = breeze.square_off(exchange_code="NFO", product="options", stock_code= stock_code, expiry_date= expiry_date, right= right, strike_price= strike_price, action= "sell", order_type= "market", validity="day", stoploss="0", quantity= quantity, price="0", validity_date= "", trade_password="", disclosed_quantity="0") In above code, Please pass all parameters with "" and check expiry date it should be 2024. If you still face any issue, Please join MS teams meeting link shared in trailmail.
[E29CF836] Thanks & Regards, Akash Sapkal, Team Breeze API, ICICI Securities
From: Akash Sapkal /EPG/ISEC/NAVI MUMBAI @.> Sent: 06 August 2024 15:12 To: Idirect-Tech/Breeze-Python-SDK @.>; Idirect-Tech/Breeze-Python-SDK @.> Cc: BREEZEAPI @.>; Comment @.***> Subject: Re: [Idirect-Tech/Breeze-Python-SDK] Resource not available (Issue #124)
Dear Joshua,
Please join the MS teams meeting with below link:
Join the meeting nowhttps://teams.microsoft.com/l/meetup-join/19%3ameeting_OTJlNzY2NTEtMTRjNy00ODEzLTg1N2MtYmJjNTVjZDQxMjA5%40thread.v2/0?context=%7b%22Tid%22%3a%2261275075-9376-485d-820e-102b887c823f%22%2c%22Oid%22%3a%223af05d4b-7059-4114-9acf-76dddc6d2443%22%7d Meeting ID: 424 430 544 741 Passcode: 8YM3tc
[E29CF836] Thanks & Regards, Akash Sapkal, Team Breeze API, ICICI Securities
From: Joshua Selwyn @.> Sent: 06 August 2024 15:03 To: Idirect-Tech/Breeze-Python-SDK @.> Cc: BREEZEAPI @.>; Comment @.> Subject: Re: [Idirect-Tech/Breeze-Python-SDK] Resource not available (Issue #124)
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!
breeze.square_off(exchange_code="NFO", product="options", stock_code="ICIBAN", expiry_date="2022-08-25T06:00:00.000Z", right="Call", strike_price="16850", action="sell", order_type="market", validity="day", stoploss="0", quantity="50", price="0", validity_date="2022-08-12T06:00:00.000Z", trade_password="", disclosed_quantity="0")
Per documetation here, https://github.com/Idirect-Tech/Breeze-Python-SDK/?tab=readme-ov-file#square-off-an-fno-options-order
— Reply to this email directly, view it on GitHubhttps://github.com/Idirect-Tech/Breeze-Python-SDK/issues/124#issuecomment-2270831181, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3TQZ44VKE4RHGVIWQN3XD3ZQCKAPAVCNFSM6AAAAABMBRHHHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZQHAZTCMJYGE. You are receiving this because you commented.Message ID: @.***>
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).
is there anything changed in terms of sending expiry_date in the API response?...
Once the order is placed, what's the format of the expiry_date? can you please send me a sample.
earlier it was like this "2024-08-29" but now it got chaned to "29 Aug 2024"?
because of the date format change, it got fall back to a sample value, which is wrong and should not happen, I've udpated the code to raise an exception instead of fall back to sample value.
Yesterday I made 10 orders, 5 - Opened via API 5 - Closed via Andriod App, as i can't close it via API.
but i've been charged a brokage of 200 rs, it is supposed to be 100 (5*20 close orders)? this page promises no brokage if we use breeze api, do you know how can i enable that feature? https://api.icicidirect.com/apiuser/home Thanks
Dear Joshua,
Thankyou for showing interest in Breeze API.
Breeze Registration Process
You need to map your account to Breeze Zero Scheme then only Brokerage Zero will be charged on FNO trades done through Breeze API.
You can activate this plan through website also by following below Steps
Login to ICICI Direct => Click on Setting => Click on my brokerage plan=>GO down on to add on plan =>Select Breeze zero plan and click on submit
For your refence kindly refer the below link https://www.icicidirect.com/mailimages/BreezeZeroRegistrationProcess.pdf
Kindly find attached terms and conditions PDF.
[E29CF836] Thanks & Regards, Akash Sapkal, Team Breeze API, ICICI Securities
From: Joshua Selwyn @.> Sent: 07 August 2024 08:23 To: Idirect-Tech/Breeze-Python-SDK @.> Cc: BREEZEAPI @.>; Comment @.> Subject: Re: [Idirect-Tech/Breeze-Python-SDK] Resource not available (Issue #124)
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!
Yesterday I made 10 orders, 5 - Opened via API 5 - Closed via Andriod App, as i can't close it via API.
but i've been charged a brokage of 200 rs, it is supposed to be 100 (5*20 close orders)? this page promises no brokage if we use breeze api, do you know how can i enable that feature? Thanks
— Reply to this email directly, view it on GitHubhttps://github.com/Idirect-Tech/Breeze-Python-SDK/issues/124#issuecomment-2272517910, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3TQZ47GOZOPTZDEPYHIV53ZQGDY5AVCNFSM6AAAAABMBRHHHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZSGUYTOOJRGA. You are receiving this because you commented.Message ID: @.***>
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).
Order sq.off works good now, after udpating the iso format conversion with the latest time format, Thanks.
I've sumbitted a request to opt for "Breeze Zero" plan waiting on confirmation regarding activation.
Thanks for all your help, closing this ticket now.
Getting this error, when trying to close existing order, please assist
ERROR: "Resource not available"