PlaceMultiOrder

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

QUERY PARAMETERS

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

Request example :
 {
     "api_key":"your_api_key",
     "api_secret":"your_api_secret",
     "data":
       {
           "orders" : 
             [
                 {
                 "api_key":"your_api_key",
                 "api_secret":"your_api_secret",
                 "data":{
                     "broker": "AN",
                     "strategy":"Test Strategy",
                     "exchange":"NSE",
                     "symbol":"YESBANK-EQ",
                     "action":"BUY",
                     "product":"CNC",
                     "pricetype":"MARKET",
                     "quantity":"4",
                     "price":"0",
                     "splitorder":"NO",
                     "split_quantity":"2"
                     }
                 },
                 {
                 "api_key":"your_api_key",
                 "api_secret":"your_api_secret",
                 "data":{
                     "broker":"ZB",
                     "strategy":"Test Strategy",
                     "exchange":"NSE",
                     "symbol":"YESBANK-EQ",
                     "action":"BUY",
                     "product":"CNC",
                     "pricetype":"MARKET",
                     "quantity":"4",
                     "price":"0",
                     "splitorder":"YES",
                     "split_quantity":"2"
                     }      
                 }
             ]
       }
 }

Response example:
 [
     {
         "status": "success",
         "data": {
             "broker": "AN",
             "orderid": "221122000714254"
         }
     },
     [
         {
             "status": "success",
             "data": {
                 "broker": "ZB",
                 "orderid": "221122000714256"
             }
         },
         {
             "status": "success",
             "data": {
                 "broker": "ZB",
                 "orderid": "221122000714258"
             }
         }
     ]
 ]

Last updated