dhan.place_order(
transaction_type=dhan.BUY,
exchange_segment=dhan.FNO,
product_type=dhan.MARGIN,
order_type=dhan.MARKET,
validity='DAY',
security_id='13',
quantity=quantity,
price=0,
drv_expiry_date='2024-03-14',
drv_options_type='CALL',
drv_strike_price=(utils.getATMForNifty(current_price) - gd.OPTION_ITM)
)
Response for placed order:
{
"data": "",
"remarks": {
"error_code": "RS-9005",
"message": "Transactions Fails."
},
"status": "failure"
}