PositionBook
To get characters you need to make a POST call to the following url :
https://amapi.algomojo.com/v1/PositionBook
QUERY PARAMETERS
Request Parameter | Description | Mandatory |
---|---|---|
broker | Broker code | Yes |
# Here is a curl example
-X POST https://amapi.algomojo.com/v1/PositionBook
Request example :
{
"api_key":"your_api_key",
"api_secret":"your_api_secret",
"data":
{
"broker":"ze"
}
}
Response example:
[
{
"status": "success",
"data": [
{
"exchange": "NFO",
"product": "NRML",
"symbol": "BHARATFORG24NOV22P840",
"token": "67528",
"cfbuyqty": 1000,
"cfbuyavgprc": 10.3,
"cfsellqty": 0,
"cfsellavgprc": 9.2,
"bqty": 0,
"buyavgprc": 0,
"sqty": 0,
"sellavgprc": 0,
"netqty": 1000,
"netbuyavgprc": 97.2,
"netsellavgprc": 87,
"netamt": 10.3,
"ltp": 7.5,
"bep": 10.3,
"realisedprofitloss": 0,
"unrealisedprofitloss": -2800,
"mtm": 0,
"netavgprc": 6.35,
"broker_exchange": "NSE",
"broker_token": "67528",
"tick_size": 0.05,
"lot_size": 1,
"ws_msg": {
"exchange": "NSE",
"token": "67528"
}
},
{
"exchange": "NFO",
"product": "NRML",
"symbol": "BHARATFORG24NOV22F",
"token": "53438",
"cfbuyqty": 1000,
"cfbuyavgprc": 878.2,
"cfsellqty": 0,
"cfsellavgprc": 871.2,
"bqty": 0,
"buyavgprc": 0,
"sqty": 0,
"sellavgprc": 0,
"netqty": 1000,
"netbuyavgprc": 102,
"netsellavgprc": 89.5,
"netamt": 878.2,
"ltp": 886.2,
"bep": 878.2,
"realisedprofitloss": 0,
"unrealisedprofitloss": 8000,
"mtm": 1000,
"netavgprc": 6.4,
"broker_exchange": "NFO",
"broker_token": "53438",
"tick_size": 0.05,
"lot_size": 250,
"ws_msg": {
"exchange": "NFO",
"token": "53438"
}
}
]
}
]
Last updated