Hi guys, I am new to algo trading,i am using Python for automating, today i got an error during placing an MIS order for a stock "MIS / BO / CO orders are blocked. Try using CNC or NRML.".
I want to use try and except for automatically place NRML order instead of MIS whenever i get this error.
What should i use after except to except only above error.?
"MIS / BO / CO orders are blocked. Try using CNC or NRML."
Above exception is InputException. You can go through this documentation to know about all kiteconnect exception. You can handle above exception something like:
from kiteconnect.exceptions import InputException try: # Place Order except InputException: # Handle exception
InputException
. You can go through this documentation to know about all kiteconnect exception.You can handle above exception something like: