from dhanhq import dhanhq
import time
dhan = dhanhq(“********”,“*******************************”)
while True:
order=dhan.place_order(
tag=‘’,
transaction_type=dhan.BUY,
exchange_segment=dhan.NSE_FNO,
product_type=dhan.MTF,
order_type=dhan.MARKET,
validity=‘DAY’,
security_id=‘43716’,
quantity=15,
disclosed_quantity=0,
price=0,
trigger_price=0,
after_market_order=True,
amo_time=‘OPEN’,
bo_profit_value=0,
bo_stop_loss_Value=0,
drv_expiry_date=None,
drv_options_type=None,
drv_strike_price=None
)
print(f"order has been placed{order}")
time.sleep(10)
this is my code of python in that i’m not able to place the normal order and when i’m trying to place the delivery order after 3:00 pm then order has been rejected by dhan
how can i place the Normal order through the api?