PlaceMultiOrder

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

QUERY PARAMETERS

Request ParameterDescriptionMandatory

broker

Broker Code

Yes

strategy

Strategy Name

Yes

exchange

Exchange name

Yes

symbol

Trading Symbol

Yes

action

Action

Yes

product

Product Type

Yes

pricetype

Price Type

Yes

quantity

Quantity

Yes

price

Price

Yes

disclosed_quantity

Disclosed Quantity

No

trigger_price

Trigger Price

No

amo

AMO - It can be one of the following YES NO

No

splitorder

split order

No

split_quantity

split quantity

No

# 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