Square Off All Position

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

QUERY PARAMETERS

Request Parameter
Description
Mandatory

broker

Broker Code

Yes

strategy

Strategy Name

No

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

Request example :
{
"api_key":"your_api_key",
"api_secret":"your_api_secret",
"data":
{
 "broker":"sm",
 "strategy":"Test Strategy"
}
}

Response example :

[
{
 "status": "success",
 "data": {
     "symbol": "GRASIM29DEC22F",
     "status": "closed"
 }
},
{
 "status": "success",
 "data": {
     "symbol": "BHARATFORG29DEC22F",
     "status": "closed"
 }
},
{
 "status": "success",
 "data": {
     "symbol": "GRASIM24NOV22C1820",
     "status": "closed"
 }
},
{
 "status": "success",
 "data": {
     "symbol": "NIFTY24NOV22C18000",
     "status": "closed"
 }
}
]

Last updated