Order History

To get characters you need to make a POST call to the following url : https://amapi.algomojo.com/v1/OrderHistory

QUERY PARAMETERS

Request Parameter
Description
Mandatory

broker

Broker Code

Yes

order_id

Order ID

Yes

# Here is a curl example
-X POST https://amapi.algomojo.com/v1/OrderHistory

Request example :
{
"api_key":"your_api_key",
"api_secret":"your_api_secret",  
"data":   
{

"broker":"tc",
"order_id":"22111500011211"
}
}

Response example:
{
"status": "success",
"data": [
{
     "exchange": "NSE",
     "symbol": "YESBANK-EQ",
     "product": "CNC",
     "pricetype": "MARKET",
     "ret": "DAY",
     "price": 0,
     "trigger_price": 0,
     "quantity": 1,
     "disclosed_quantity": 0,
     "action": "BUY",
     "avgprc": "",
     "fillshares": "",
     "orderusermessage": "",
     "exchordid": "1300000011288972",
     "order_id": "22111500011211",
     "status": "complete",
     "rejreason": "",
     "exchtimestamp": "",
 },
 {
     "exchange": "NSE",
     "symbol": "YESBANK-EQ",
     "product": "CNC",
     "pricetype": "MARKET",
     "ret": "DAY",
     "price": 0,
     "trigger_price": 0,
     "quantity": 1,
     "disclosed_quantity": 0,
     "action": "BUY",
     "avgprc": "",
     "fillshares": "",
     "orderusermessage": "",
     "exchordid": "1300000011288972",
     "order_id": "22111500011211",
     "status": "open",
     "rejreason": "",
     "exchtimestamp": "",
 },
 {
     "exchange": "NSE",
     "symbol": "YESBANK-EQ",
     "product": "CNC",
     "pricetype": "MARKET",
     "ret": "DAY",
     "price": 0,
     "trigger_price": 0,
     "quantity": 1,
     "disclosed_quantity": 0,
     "action": "BUY",
     "avgprc": "",
     "fillshares": "",
     "orderusermessage": "",
     "exchordid": "",
     "order_id": "22111500011211",
     "status": "pending",
     "rejreason": "",
     "exchtimestamp": "",
 },
 {
     "exchange": "NSE",
     "symbol": "YESBANK-EQ",
     "product": "CNC",
     "pricetype": "MARKET",
     "ret": "DAY",
     "price": 0,
     "trigger_price": 0,
     "quantity": 1,
     "disclosed_quantity": 0,
     "action": "BUY",
     "avgprc": "",
     "fillshares": "",
     "orderusermessage": "",
     "exchordid": "",
     "order_id": "22111500011211",
     "status": "pending",
     "rejreason": "",
     "exchtimestamp": "",
 }
]
}
         

Last updated