I'm not able to place the normal order through api

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?

Hello @Jai1

Welcome to Dhan Community!

Over here, you need to keep after_market_order as False. This will enable you to place order when markets are live.

You can read more about the parameters here: Orders - DhanHQ Ver 1.0 / API Document

How can i place the Normal order after the 3:00 pm using the api python?

@Jai1

You can place normal order until 03.30, post which you will have to place it as AMO order, to be executed the next day.