krishnavelu / alice_blue

Official Python library for Alice Blue API trading
GNU General Public License v3.0
134 stars 82 forks source link

Modify order is Not working in new update #472

Closed codewithraviteja closed 2 years ago

codewithraviteja commented 2 years ago

I've been trying to modify the pending order but I am unable to update it. Please help me

Code :

print(alice.modify_order( transaction_type = TransactionType.Buy, order_id = '220930000126579', instrument = bn_call, quantity = 25, order_type = OrderType.StopLossLimit, product_type = ProductType.Delivery, price = 4.00, trigger_price = 8.00))

Error message : {'stat': 'Not_Ok', 'Emsg': 'Error Occurred!'}

Screenshot_1aaa

krishnavelu commented 2 years ago

Try the same with web interface. If web interface working it should work on api also.

codewithraviteja commented 2 years ago

Yes, I did checked it and it is working in Web interface

aeron7 commented 2 years ago

@krishnavelu in web interface, there is no term named "instrument".
@droidmaniac31 just delete the line where its written instrument. it will work

Alice team changed it in web without updating the main API documentation.

codewithraviteja commented 2 years ago

Thank you Krishna :)