I need to place AMO (after market order) via API.
The documentation does not have any sample for it, how to do so?
I need to place AMO (after market order) via API.
The documentation does not have any sample for it, how to do so?
Any update?
kindly follow the below process for JSON format
While placing AMO order Complexty should be passed AMO
[
{
“complexty”: “AMO”,
“discqty”: “0”,
“exch”: “NSE”,
“pCode”: “CNC”,
“prctyp”: “MKT”,
“price”: “”,
“qty”: 1,
“ret”: “DAY”,
“symbol_id”: “14366”,
“trading_symbol”: “IDEA-EQ”,
“transtype”: “BUY”,
“trigPrice”: “”
}
For python code kindly follow the below sample code
While placing AMO order pass the parameter( is_amo = true).
print(
alice.place_order(transaction_type = TransactionType.Buy,
instrument = alice.get_instrument_by_symbol(‘NSE’, ‘IDEA-EQ’),
quantity = 1,
order_type = OrderType.Market,
product_type = ProductType.Delivery,
price = 0.0,
trigger_price = None,
stop_loss = None,
square_off = None,
trailing_sl = None,
is_amo = True,
order_tag=‘878989’)
)