Idirect-Tech / Breeze-Python-SDK

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

No result of modfication of stoploss order from order type stoploss to market #138

Closed karanag closed 2 months ago

karanag commented 2 months ago

`

stoploss_order_id = xxxxxxxxxxxxxxxxxx24628

modify_order = breeze.modify_order(order_id=stoploss_order_id, exchange_code="NFO", order_type="market") `

I have an existing stop loss order. What I am trying to do is convert this stop loss into a sell order by changing the order type from stoploss to market. I get confirmation that order modification successful, but nothing happens. The order does not get updated.

Any clues on what I am doing wrong? Any additional fields that I need to provide or do something else?

Idirect-Tech commented 2 months ago

Dear User,

Thank you for showing interest in Breeze API.

You can modify a stoploss order to limit order or market order.

Please note that when you are modifying stoploss order to limit order just ensure that you are passing stoploss="0" and order_type = "limit".

And when you are modifying stoploss order to market order just ensure that you are passing stoploss="0", price="0" and order_type = "market".

If you still face any issue, please let us know.

[E29CF836] Thanks & Regards, Akash Sapkal, Team Breeze API, ICICI Securities


From: karanag @.> Sent: 18 September 2024 16:29 To: Idirect-Tech/Breeze-Python-SDK @.> Cc: Subscribed @.***> Subject: [Idirect-Tech/Breeze-Python-SDK] No result of modfication of stoploss order from order type stoploss to market (Issue #138)

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!

`

stoploss_order_id = xxxxxxxxxxxxxxxxxx24628

modify_order = breeze.modify_order(order_id=stoploss_order_id, exchange_code="NFO", order_type="market") `

I have an existing stop loss order. What I am trying to do is convert this stop loss into a sell order by changing the order type from stoploss to market. I get confirmation that order modification successful, but nothing happens. The order does not get updated.

Any clues on what I am doing wrong? Any additional fields that I need to provide or do something else?

— Reply to this email directly, view it on GitHubhttps://github.com/Idirect-Tech/Breeze-Python-SDK/issues/138, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A3TQZ46D22D4RSA6JNSO5XDZXFMJ7AVCNFSM6AAAAABONNJS3CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZTGNBRGMYDKNA. 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).

karanag commented 2 months ago

Thank you for your blazingly fast reply. As fast as your APIs :)

I will try this out tomorrow and get in touch if the issue still persists, otherwise I will close the issue. Thanks again