It looks like you're new here. If you want to get involved, click one of these buttons!
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