# AMO - After market order via API

**URL:** <https://community.aliceblueonline.com/t/amo-after-market-order-via-api/7454>\
**Category:** API\
**Created:** [September 4, 2023, 3:50am UTC](https://community.aliceblueonline.com/t/amo-after-market-order-via-api/7454 "2023-09-04T03:50:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![priteshmhatre](https://sea1.discourse-cdn.com/flex015/user_avatar/community.aliceblueonline.com/priteshmhatre/32/3456_2.png) [@priteshmhatre](https://community.aliceblueonline.com/u/priteshmhatre)\
**Post date:** [September 4, 2023, 3:50am UTC](https://community.aliceblueonline.com/t/amo-after-market-order-via-api/7454/1 "2023-09-04T03:50:36Z")

</div>

I need to place AMO (after market order) via API.

The documentation does not have any sample for it, how to do so?

---

<div class="post-metadata">

**Author:** ![priteshmhatre](https://sea1.discourse-cdn.com/flex015/user_avatar/community.aliceblueonline.com/priteshmhatre/32/3456_2.png) [@priteshmhatre](https://community.aliceblueonline.com/u/priteshmhatre)\
**Post date:** [September 5, 2023, 1:43pm UTC](https://community.aliceblueonline.com/t/amo-after-market-order-via-api/7454/2 "2023-09-05T13:43:25Z")

</div>

Any update?

---

<div class="post-metadata">

**Author:** ![Alavala7997](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Alavala7997](https://community.aliceblueonline.com/u/Alavala7997)\
**Post date:** [September 27, 2023, 4:30am UTC](https://community.aliceblueonline.com/t/amo-after-market-order-via-api/7454/3 "2023-09-27T04:30:55Z")

</div>

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’)  
)
