Place BO Order

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

QUERY PARAMETERS

Request Parameter
Description
Mandatory

broker

Broker Code

Yes

strategy

Strategy Name

Yes

exchange

Exchange name

Yes

symbol

Trading Symbol

Yes

action

Action

Yes

pricetype

Price Type

Yes

quantity

Quantity

Yes

price

Price

Yes

squareoff

Square Off Value

Yes

stoploss

Stoploss Value

Yes

trailing_stoploss

Trailing Stoploss

Yes

trigger_price

Trigger Price

No

disclosed_quantity

Disclosed Quantity

No

# Here is a curl example
 -X POST https://amapi.algomojo.com/v1/PlaceBOOrder
                            
Request example :
 {
   "api_key":"your_api_key",
   "api_secret":"your_api_secret",
   "data":
     {
       "broker":"AB",
       "strategy":"Test Strategy",
       "exchange":"NSE",
       "symbol":"YESBANK",
       "action":"BUY",
       "pricetype":"MARKET",
       "quantity":"1",
       "price":"16",
       "squareoff":"10",
       "stoploss":"10",
       "trailing_stoploss":"1",
       "trigger_price":"0",
       "disclosed_quantity":"0",
     }
 }

Response example:
 {
     "status": "success",
     "data": {
         "broker": "AB",
         "orderid": "22110900034729"
     }
 }

Last updated