PlaceSmartOrder

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

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

position_size

Position Size

Yes

trigger_price

Trigger Price

No

disclosed_quantity

Disclosed Quantity

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
-X POST https://amapi.algomojo.com/v1/PlaceSmartOrder

Request example :
 {
     "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":"7",
         "price":"0",
         "position_size":"7",
         "trigger_price":"0",
         "disclosed_quantity":"0",
         "amo":"NO",
         "splitorder":"NO",
         "split_quantity":"2"
     }
 }

Response example:
 {
         "status": "success",
         "data": {
             "broker": "ZB",
             "orderid": "221115000019082"
                 }
 } 

Last updated