Enquiry about order failed response

nkotwar
nkotwar edited May 25 in Python client
@sujith
What happens if I place an order, with 'tradingsymbol' attribute as empty string like..

try:
order_id = kiteObj.place_order(
variety=kiteObj.VARIETY_REGULAR,
exchange=kiteObj.EXCHANGE_NFO,
tradingsymbol="",
transaction_type=kiteObj.TRANSACTION_TYPE_BUY,
quantity=quantity,
product=kiteObj.PRODUCT_NRML,
order_type=kiteObj.ORDER_TYPE_MARKET,
)
logger.info(f"Placing BUY order :> {order_id}")
except Exception as e:
err_logger.info(f"err_msg/signal: {str(e)}")
return {"error (/signal)": str(e)}, 500
Tagged:
This discussion has been closed.