Introduction

    API Endpoint

        Aliceblue
        https://abapi.algomojo.com/1.0/

        Tradejini
        https://tjapi.algomojo.com/1.0/

        Zebu
        https://zbapi.algomojo.com/1.0/
                

Algomojo API Bridge which helps traders/investors to build, monitor, execute their trading requirement automatically.

To use this API, you need an API key. Please login to your algomojo broker terminal to get your own API key.

Aliceblue - ab.algomojo.com
Tradejini - tj.algomojo.com
Zebu - zb.algomojo.com

Version and API root URL
The current major stable version of the API is 1.0. All requests go to it by default. It is recommended that a specific version be requested explicity for production applications as major releases may break older implementations.

Root URL
Aliceblue
https://abapi.algomojo.com/1.0/

Tradejini
https://tjapi.algomojo.com/1.0/

Zebu
https://zbapi.algomojo.com/1.0/

Each rest call will have 3 compulsory request parameters
1. api_key
2. api_secret
3. data
api_key is a key allocated to the User. Input will be in string format.
api_secret is a id received as response from Login 2FA.Input will be in string format.
data is a JSON object which is referred as Input in rest description table. If there is no input mentioned in the table you need to send it as a blank object or a blank string. Input will be in string format.

NOTE: - All APIs are considered as POST method. All the input as well as output data type will be in string format unless its mentioned in rest explanation section.

PlaceOrder


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/PlaceOrder
-X POST https://tjapi.algomojo.com/1.0/PlaceOrder
-X POST https://zbapi.algomojo.com/1.0/PlaceOrder

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/PlaceOrder https://tjapi.algomojo.com/1.0/PlaceOrder https://zbapi.algomojo.com/1.0/PlaceOrder



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b70",
    "api_secret":"5306433329e81ba41203653417063c",
    "data":
      {
        "strg_name":"Test Strategy",
        "s_prdt_ali":"BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML",
        "Tsym":"NIFTY06AUG2011550CE",
        "exch":"NFO",
        "Ttranstype":"B",
        "Ret":"DAY",
        "prctyp":"MKT",
        "qty":"75",
        "discqty":"0",
        "MktPro":"NA",
        "Price":"0",
        "TrigPrice":"0",
        "Pcode":"NRML",
        "AMO":"NO"
      }
}

Response example :

{
    "NOrdNo": "200810000277991",
    "stat": "Ok"
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
strg_name Strategy Name Yes
s_prdt_ali Product alias (BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML) Yes
Tsym Trading Symbol Yes
exch Exchange name Yes
Ttranstype Transtaction Type Yes
Ret Retention Yes
prctyp Price Type Yes
qty Quantity Yes
discqty Disclosed Quantity Yes
MktPro Market Pro Yes
Price Price Yes
TrigPrice Trigger Price Yes
PCode Product Code Yes
AMO AMO Yes

PlaceMultiOrder


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/PlaceMultiOrder
-X POST https://tjapi.algomojo.com/1.0/PlaceMultiOrder
-X POST https://zbapi.algomojo.com/1.0/PlaceMultiOrder

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/PlaceMultiOrder https://tjapi.algomojo.com/1.0/PlaceMultiOrder https://zbapi.algomojo.com/1.0/PlaceMultiOrder



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b70",
    "api_secret":"5306433329e81ba41203653417063c",
    "data":
      {
          "orders" : 
            [
                {
                "order_refno":"1",
                "user_apikey":"c1997d92a3bb556a67dca7d1446b70",
                "api_secret":"5306433329e81ba41203653417063c",
                "strg_name": "Test Strategy",
                "s_prdt_ali":"BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML",
                "Tsym":"RELIANCE-EQ",
                "exch":"NSE",
                "Ttranstype":"B",
                "Ret":"DAY",
                "prctyp":"MKT",
                "qty":"1",
                "discqty":"0",
                "MktPro":"NA",
                "Price":"0",
                "TrigPrice":"0",
                "Pcode":"CNC",
                "AMO":"NO"
                },
                {
                "order_refno":"2",
                "strg_name": "Test Strategy",
                "user_apikey":"c1997d92a3bb556a67dca7d1446b70",
                "api_secret":"5306433329e81ba41203653417063c",
                "s_prdt_ali":"BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML",
                "Tsym":"INFY-EQ",
                "exch":"NSE",
                "Ttranstype":"B",
                "Ret":"DAY",
                "prctyp":"MKT",
                "qty":"0",
                "discqty":"0",
                "MktPro":"NA",
                "Price":"0",
                "TrigPrice":"0",
                "Pcode":"CNC",
                "AMO":"NO"
                }
            ]
      }
}

Result Example:

{
    "NOrdNo": "200810000278554",
    "stat": "Ok"
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
strg_name Strategy Name Yes
order_refno Order Reference Number Yes
user_apikey User API Key Yes
api_secret API Key Secret Yes
s_prdt_ali Product alias (BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML) Yes
Tsym Trading Symbol Yes
exch Exchange name Yes
Ttranstype Transtaction Type Yes
Ret Retention Yes
prctyp Price Type Yes
qty Quantity Yes
discqty Disclosed Quantity Yes
MktPro Market Pro Yes
Price Price Yes
TrigPrice Trigger Price Yes
PCode Product Code Yes
AMO AMO Yes

PlaceBOOrder


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/PlaceBOOrder
-X POST https://tjapi.algomojo.com/1.0/PlaceBOOrder
-X POST https://zbapi.algomojo.com/1.0/PlaceBOOrder

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/PlaceBOOrder https://tjapi.algomojo.com/1.0/PlaceBOOrder https://zbapi.algomojo.com/1.0/PlaceBOOrder



Request example :

{
  "api_key":"c1997d92a3bb556a67dca7d1446b70",
  "api_secret":"5306433329e81ba41203653417063c",
  "data":
    {
      "strg_name": "Test Strategy",
      "s_prdt_ali":"BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML",
      "TokenNo":"317",
      "exch":"NSE",
      "Ttranstype":"B",
      "Ret":"DAY",
      "qty":"0",
      "discqty":"0",
      "Price":"0",
      "ltpOratp":"NA",
      "SqrOffAbsOrticks":"Ticks",
      "SqrOffvalue":"1",
      "SLAbsOrticks":"Ticks",
      "SLvalue":"1",
      "trailingSL":"0",
      "tSLticks":"1"
    }
}

Response example :

{
    "nestOrderNumber": "200810000279049",
    "stat": "Ok"
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
strg_name Strategy Name Yes
s_prdt_ali Product alias (BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML) Yes
TokenNo Token Number Yes
exch Exchange name Yes
Ttranstype Transtaction Type Yes
Ret Retention Yes
qty Quantity Yes
discqty Disclosed Quantity Yes
Price Price Yes
ltpOratp Trigger Price Yes
SqrOffAbsOrticks SquareOff Absolute or Ticks Yes
SqrOffvalue Square Off Value Yes
SLAbsOrticks Stoploss Absolute or Ticks Yes
SLvalue Stoploss Value Yes
trailingSL Trailing Stoploss Yes
tSLticks Trailing Stoploss Ticks Yes

PlaceMultiBOOrder


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/PlaceMultiBOOrder
-X POST https://tjapi.algomojo.com/1.0/PlaceMultiBOOrder
-X POST https://zbapi.algomojo.com/1.0/PlaceMultiBOOrder

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/PlaceMultiBOOrder https://tjapi.algomojo.com/1.0/PlaceMultiBOOrder https://zbapi.algomojo.com/1.0/PlaceMultiBOOrder



Request example :

{
  "api_key":"c1997d92a3bb556a67dca7d1446b70",
  "api_secret":"5306433329e81ba41203653417063c",
  "data":
    { 
        "orders" :
            [
              {
                "order_refno":"1",
                "strg_name": "Test Strategy",
                "user_apikey":"c1997d92a3bb556a67dca7d1446b70",
                "api_secret":"5306433329e81ba41203653417063c",
                "s_prdt_ali":"BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML",
                "TokenNo":"317",
                "exch":"NSE",
                "Ttranstype":"B",
                "Ret":"DAY",
                "qty":"0",
                "discqty":"0",
                "Price":"0",
                "ltpOratp":"NA",
                "SqrOffAbsOrticks":"Ticks",
                "SqrOffvalue":"1",
                "SLAbsOrticks":"Ticks",
                "SLvalue":"1",
                "trailingSL":"0",
                "tSLticks":"1"
              },
              {
                "order_refno":"2",
                "strg_name": "Test Strategy",
                "user_apikey":"c1997d92a3bb556a67dca7d1446b70",
                "api_secret":"5306433329e81ba41203653417063c",
                "s_prdt_ali":"BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML",
                "TokenNo":"317",
                "exch":"NSE",
                "Ttranstype":"B",
                "Ret":"DAY",
                "qty":"0",
                "discqty":"0",
                "Price":"0",
                "ltpOratp":"NA",
                "SqrOffAbsOrticks":"Ticks",
                "SqrOffvalue":"1",
                "SLAbsOrticks":"Ticks",
                "SLvalue":"1",
                "trailingSL":"0",
                "tSLticks":"1"
              }      
            ]
    }
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
order_refno Order Reference Number Yes
strg_name Strategy Name Yes
user_apikey User API Key Yes
api_secret API Secret Key Yes
s_prdt_ali Product alias (BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML) Yes
TokenNo Token Number Yes
exch Exchange name Yes
Ttranstype Transtaction Type Yes
Ret Retention Yes
qty Quantity Yes
discqty Disclosed Quantity Yes
Price Price Yes
ltpOratp Trigger Price Yes
SqrOffAbsOrticks SquareOff Absolute or Ticks Yes
SqrOffvalue Square Off Value Yes
SLAbsOrticks Stoploss Absolute or Ticks Yes
SLvalue Stoploss Value Yes
trailingSL Trailing Stoploss Yes
tSLticks Trailing Stoploss Ticks Yes

PlaceFOOptionsOrder


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/PlaceFOOptionsOrder
-X POST https://tjapi.algomojo.com/1.0/PlaceFOOptionsOrder
-X POST https://zbapi.algomojo.com/1.0/PlaceFOOptionsOrder

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/PlaceFOOptionsOrder https://tjapi.algomojo.com/1.0/PlaceFOOptionsOrder https://zbapi.algomojo.com/1.0/PlaceFOOptionsOrder



Request example :

{
  "api_key":"c1997d92a3bb556a67dca7d1446b7087",
  "api_secret":"5306433329e81ba41203653417063c71",
  "data":
    {
      "strg_name":"Options",
      "spot_sym":"NIFTY",
      "expiry_dt":"06AUG20",
      "opt_type":"CE",
      "Ttranstype":"B",
      "prctyp":"MKT",
      "qty":"75",
      "Price":"0",
      "TrigPrice":"0",
      "Pcode":"NRML",
      "strike_int":"50",
      "offset":"10"
    }
}

Response example :
{
    "NOrdNo": "200810000017432",
    "stat": "Ok"
}

                

QUERY PARAMETERS

Request Parameter Description Mandatory
strg_name Strategy Name Yes
spot_sym Spot Symbol Yes
expiry_dt Expiry Date Yes
opt_type CE/PE Yes
Ttranstype Transtaction Type Yes
prctyp Price Type Yes
qty Quantity Yes
Price Price Yes
TrigPrice Trigger Price Yes
PCode Product Code Yes
strike_int Strike Yes
offset Off set Yes

ExitBOOrder


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/ExitBOOrder
-X POST https://tjapi.algomojo.com/1.0/ExitBOOrder
-X POST https://zbapi.algomojo.com/1.0/ExitBOOrder

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/ExitBOOrder https://tjapi.algomojo.com/1.0/ExitBOOrder https://zbapi.algomojo.com/1.0/ExitBOOrder



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
         "uid": "TS24XX",
         "nestordernumber": "11122233437",
         "SyomOrderId": "",
         "status": "pending"
      }
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
uid Client ID Yes
nestordernumber Nest Order Number Yes
SyomOrderId Syom Order Id ( Leg order Indicator ) Yes
status Status of the order from Order book Yes

ExitCOOrder


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/ExitCOOrder
-X POST https://tjapi.algomojo.com/1.0/ExitCOOrder
-X POST https://zbapi.algomojo.com/1.0/ExitCOOrder

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/ExitCOOrder https://tjapi.algomojo.com/1.0/ExitCOOrder https://zbapi.algomojo.com/1.0/ExitCOOrder



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
         "uid": "TS24XX",
         "NestOrd": "111222343445",
         "s_prdt_ali": "BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML"
      }
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
uid Client ID Yes
NestOrd Nest Order Number Yes
s_prdt_ali Procduct Alias Yes

ModifyOrder


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/ModifyOrder
-X POST https://tjapi.algomojo.com/1.0/ModifyOrder
-X POST https://zbapi.algomojo.com/1.0/ModifyOrder

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/ModifyOrder https://tjapi.algomojo.com/1.0/ModifyOrder https://zbapi.algomojo.com/1.0/ModifyOrder



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
        "uid" : "TS24XX",
        "actid" : "TS24XX",
        "Exchangeseg" : "nse_cm",
        "Tsym" : "RELIANCE-EQ",
        "Nstordno" : "190930000011218",
        "Ttranstype" : "B",
        "Prctype" : "L",
        "Price" : "45.52",
        "Qty" : "0",
        "Dscqty" : "0",
        "Trgprc" : "0",
        "Validity" : "DAY",
        "Symbol" : "11184",
        "Filledqty" : "0",
        "Pcode" : "CNC",
        "Mktpro" : "NA",
        "DateDays" : "DAY",
        "s_prdt_ali" : "BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML"
      }
}

{
    "NOrdNo": "190930000011218",
    "stat": "Ok"
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
Nstordno Nest Order Number Yes
Ttranstype Transaction type Yes
Prctype Price type Yes
Price Price Yes
Qty Quantity Yes
Dscqty Disclosed Quantity Yes ( Send as 0 for default)
Trgprc Trigger price Yes ( Send as 0 for default)
Validity Validity Yes
Symbol Scrip token No
Filledqty Filled shares Yes
Pcode Product code Yes
Mktpro Market protection flag Yes (Should be sent as NA by default)
DateDays Date Days Yes (Should be sent as NA by default)
s_prdt_ali Product Alias Yes

CancelOrder


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/CancelOrder
-X POST https://tjapi.algomojo.com/1.0/CancelOrder
-X POST https://zbapi.algomojo.com/1.0/CancelOrder

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/CancelOrder https://tjapi.algomojo.com/1.0/CancelOrder https://zbapi.algomojo.com/1.0/CancelOrder



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
        "uid" : "TS24XX",
        "NestOrd" : "190930000011218",
        "sTradeSymbol" : "RELIANCE-EQ",
        "s_prdt_ali" : "BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML",
        "sExch" : "NSE"
      }
}

Response example :

{
    "Result": "190930000011218",
    "stat": "Ok"
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
uid Client ID Yes
NestOrd Nest Order Number Yes
sTradeSymbol Trading Symbol No
sExch Exchange Name No
s_prdt_ali Product Alias Yes

OrderBook


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/OrderBook
-X POST https://tjapi.algomojo.com/1.0/OrderBook
-X POST https://zbapi.algomojo.com/1.0/OrderBook

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/OrderBook https://tjapi.algomojo.com/1.0/OrderBook https://zbapi.algomojo.com/1.0/OrderBook



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
        "s_prdt_ali":"BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML",
        "uid":"TS24XX"
      }
}

Response example :
[
    {
        "Cancelqty": 0,
        "AlgoCategory": "NA",
        "modifiedBy": "--",
        "RefLmtPrice": 0,
        "Mktpro": "NA",
        "Qty": 75,
        "ExpSsbDate": "1281796200",
        "Trgprc": "00.00",
        "ExchOrdID": "NA",
        "COPercentage": 0,
        "RequestID": "1",
        "usecs": "930536",
        "orderentrytime": "Aug 10 2020 18:05:18",
        "Avgprc": "00.00",
        "Fillshares": 0,
        "optionType": "CE",
        "ordergenerationtype": "--",
        "iSinceBOE": 1597062918,
        "InstName": "OPTIDX",
        "Nstordno": "200810000017432",
        "Unfilledsize": 0,
        "Usercomments": "NA",
        "mpro": "1",
        "ticksize": "5",
        "strikePrice": "11750.00",
        "OrderedTime": "10/08/2020 18:05:18",
        "panNo": "HEPPK31A",
        "defmktproval": "3",
        "ExchConfrmtime": "--",
        "Minqty": 0,
        "AlgoID": "NA",
        "ordersource": "NEST_REST",
        "sipindicator": "N",
        "decprec": "2",
        "series": "XX",
        "PriceNumerator": "1",
        "Ordvaldate": "NA",
        "Trsym": "NIFTY13AUG2011750CE",
        "accountId": "TS24XX",
        "Dscqty": 0,
        "BrokerClient": "--",
        "reporttype": "failure",
        "remarks": "--",
        "Scripname": "",
        "Prc": "00.00",
        "Exchange": "NFO",
        "Sym": "NIFTY",
        "token": "39796",
        "Prctype": "MKT",
        "RejReason": "RMS:Margin Exceeds,Required:136.27, Available:-326.64 for entity account-TS24XX across exchange across segment across product ",
        "GeneralDenomenator": "1",
        "Validity": "DAY",
        "GeneralNumerator": "1",
        "stat": "Ok",
        "multiplier": "1",
        "bqty": "75",
        "noMktPro": "0",
        "discQtyPerc": "NA",
        "Status": "rejected",
        "PriceDenomenator": "1",
        "SyomOrderId": "",
        "Trantype": "B",
        "ExpDate": "13 Aug, 2020",
        "marketprotectionpercentage": "--",
        "Pcode": "NRML",
        "Exseg": "nse_fo",
        "user": "TS24XX"
    }
]
                

QUERY PARAMETERS

Request Parameter Description Mandatory
s_prdt_ali Product Alias Yes
uid Client ID Yes

OrderHistory


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/OrderHistory
-X POST https://tjapi.algomojo.com/1.0/OrderHistory
-X POST https://zbapi.algomojo.com/1.0/OrderHistory

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/OrderHistory https://tjapi.algomojo.com/1.0/OrderHistory https://zbapi.algomojo.com/1.0/OrderHistory



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
        "uid": "TS24XX",
        "NOrdNo": "190930000011218",
        "s_prdt_ali": "BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML"
      }
}

Response example :

[
    {
        "Trsym": "NIFTY13AUG2011750CE",
        "PriceNumerator": "1",
        "reporttype": "failure",
        "customerfirm": "C",
        "symbolname": "NIFTY",
        "Prc": "00.00",
        "Qty": 75,
        "Action": "B",
        "exchangetimestamp": "--",
        "legorderindicator": "",
        "nestreqid": "1",
        "Ordtype": "MKT",
        "exchange": "NFO",
        "filldateandtime": "-- --",
        "GeneralDenomenator": "1",
        "ordergenerationtype": "--",
        "exchangeorderid": null,
        "productcode": "NRML",
        "unfilledSize": 0,
        "triggerprice": "0.0",
        "GeneralNumerator": "1",
        "averageprice": "0.0",
        "ExchTimeStamp": "10/08/2020 18:05:18",
        "stat": "Ok",
        "bqty": 75,
        "filledShares": 0,
        "Status": "rejected",
        "duration": "DAY",
        "PriceDenomenator": "1",
        "rejectionreason": "RMS:Margin Exceeds,Required:136.27, Available:-326.64 for entity account-TS2499 across exchange across segment across product ",
        "nestordernumber": "200810000017432",
        "scripname": "",
        "disclosedqty": "0",
        "ordersource": "NEST_REST"
    },
    {
        "Trsym": "NIFTY13AUG2011750CE",
        "PriceNumerator": "1",
        "reporttype": "validation pending",
        "customerfirm": "C",
        "symbolname": "NIFTY",
        "Prc": "00.00",
        "Qty": 75,
        "Action": "B",
        "exchangetimestamp": "--",
        "legorderindicator": "",
        "nestreqid": "1",
        "Ordtype": "MKT",
        "exchange": "NFO",
        "filldateandtime": "-- --",
        "GeneralDenomenator": "1",
        "ordergenerationtype": "--",
        "exchangeorderid": null,
        "productcode": "NRML",
        "unfilledSize": 75,
        "triggerprice": "0.0",
        "GeneralNumerator": "1",
        "averageprice": "0.0",
        "ExchTimeStamp": "10/08/2020 18:05:18",
        "stat": "Ok",
        "bqty": 75,
        "filledShares": 0,
        "Status": "validation pending",
        "duration": "DAY",
        "PriceDenomenator": "1",
        "rejectionreason": "--",
        "nestordernumber": "200810000017432",
        "scripname": "",
        "disclosedqty": "0",
        "ordersource": "NEST_REST"
    },
    {
        "Trsym": "NIFTY13AUG2011750CE",
        "PriceNumerator": "1",
        "reporttype": "NA",
        "customerfirm": "C",
        "symbolname": "NIFTY",
        "Prc": "00.00",
        "Qty": 75,
        "Action": "B",
        "exchangetimestamp": "--",
        "legorderindicator": "",
        "nestreqid": "1",
        "Ordtype": "MKT",
        "exchange": "NFO",
        "filldateandtime": "-- --",
        "GeneralDenomenator": "1",
        "ordergenerationtype": "--",
        "exchangeorderid": null,
        "productcode": "NRML",
        "unfilledSize": 75,
        "triggerprice": "0.0",
        "GeneralNumerator": "1",
        "averageprice": "0.0",
        "ExchTimeStamp": "10/08/2020 18:05:18",
        "stat": "Ok",
        "bqty": 75,
        "filledShares": 0,
        "Status": "put order req received",
        "duration": "DAY",
        "PriceDenomenator": "1",
        "rejectionreason": "--",
        "nestordernumber": "200810000017432",
        "scripname": "",
        "disclosedqty": "0",
        "ordersource": "NEST_REST"
    }
]
                

QUERY PARAMETERS

Request Parameter Description Mandatory
uid Client ID Yes
NOrdNo Nest Order Number Yes
s_prdt_ali Product Alias Yes

PositionBook


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/PositionBook
-X POST https://tjapi.algomojo.com/1.0/PositionBook
-X POST https://zbapi.algomojo.com/1.0/PositionBook

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/PositionBook https://tjapi.algomojo.com/1.0/PositionBook https://zbapi.algomojo.com/1.0/PositionBook



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
        "uid": "TS24XX",
        "actid": "TS24XX",
        "type": "DAY",
        "s_prdt_ali": "BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML"
      }
}

Response example :

[
    {
        "unrealisedprofitloss": "0.00",
        "Fillsellqty": "0",
        "PriceNumerator": "1",
        "realisedprofitloss": "0.00",
        "Type": "DAY1",
        "Fillbuyqty": "1",
        "BLQty": 1,
        "s_NetQtyPosConv": "N",
        "Sellavgprc": "0.00",
        "Exchangeseg": "nse_cm",
        "Opttype": "XX",
        "Bqty": "1",
        "Exchange": "NSE",
        "Fillsellamt": "0.00",
        "actid": "TS24XX",
        "GeneralDenomenator": "1",
        "discQty": "10",
        "Instname": "NA",
        "Netqty": "1",
        "sSqrflg": "Y",
        "LTP": "0.75",
        "Tsym": "RCOM-EQ",
        "Expdate": "NA",
        "Buyavgprc": "0.75",
        "Netamt": "-0.75",
        "Token": "13187",
        "GeneralNumerator": "1",
        "companyname": "RELIANCE COMMUNICATIONS L",
        "stat": "Ok",
        "Sqty": "0",
        "PriceDenomenator": "1",
        "MtoM": "0.00",
        "Symbol": "RCOM",
        "posflag": "true",
        "Series": "EQ",
        "BEP": "0.75",
        "Stikeprc": "0",
        "Pcode": "CNC",
        "Fillbuyamt": "0.75"
    }
]
                

QUERY PARAMETERS

Request Parameter Description Mandatory
uid Client ID Yes
act_id Client ID Yes
type DAY/NET
DAY is for day wise position
NET is for net wise position
Yes
s_prdt_ali Product Alias Yes

SquareOffPosition


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/SquareOffPosition
-X POST https://tjapi.algomojo.com/1.0/SquareOffPosition
-X POST https://zbapi.algomojo.com/1.0/SquareOffPosition

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/SquareOffPosition https://tjapi.algomojo.com/1.0/SquareOffPosition https://zbapi.algomojo.com/1.0/SquareOffPosition



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
         "uid": "TS24XX",
         "actid": "TS24XX",
         "s_prdt_ali": "BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML",
         "Exchangeseg": "nse_cm",
         "Pcode": "CNC",
         "Netqty": "1",
         "Token": "11915",
         "Symbol": "YESBANK-EQ",
         "orderSource": "NEST_REST"
      }
}

Response example :

{
    "Result": "ok",
    "stat": "Ok"
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
uid Client ID Yes
act_id Client ID Yes
s_prdt_ali Product Alias Yes
Exchangeseg Exchange Segment Yes
Pcode Product Code Yes
Netqty Net Quantity Yes
Token Token Number Yes
Symbol Symbol Name Yes
orderSource Order Source Yes

PartialPositionconvertion


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/PartialPositionconvertion
-X POST https://tjapi.algomojo.com/1.0/PartialPositionconvertion
-X POST https://zbapi.algomojo.com/1.0/PartialPositionconvertion

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/PartialPositionconvertion https://tjapi.algomojo.com/1.0/PartialPositionconvertion https://zbapi.algomojo.com/1.0/PartialPositionconvertion



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
         "uid": "TS24XX",
         "actid": "TS24XX",
         "s_prdt_ali": "BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML",
         "Exchangeseg": "nse_cm",
         "Pcode": "CNC",
         "Netqty": "1",
         "Token": "11915",
         "Symbol": "YESBANK-EQ",
         "orderSource": "NEST_REST"
      }
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
uid Client ID Yes
act_id Client ID Yes
s_prdt_ali Product Alias Yes
Exchangeseg Exchange Segment Yes
Pcode Product Code Yes
Netqty Net Quantity Yes
Token Token Number Yes
Symbol Symbol Name Yes
orderSource Order Source Yes

LTPCoverpercentage


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/LTPCoverpercentage
-X POST https://tjapi.algomojo.com/1.0/LTPCoverpercentage
-X POST https://zbapi.algomojo.com/1.0/LTPCoverpercentage

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/LTPCoverpercentage https://tjapi.algomojo.com/1.0/LTPCoverpercentage https://zbapi.algomojo.com/1.0/LTPCoverpercentage



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
         "Exchange" : "NSE",
         "Symbol" : "11184",
         "Transtype" : "B"
      }
}

Response example :

{
    "TriggerPriceRange": "00.00 - 00.00",
    "Ltp": "00.00",
    "Decprc": 2,
    "Coverprc": "3",
    "stat": "Ok"
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
Exchange Exchange Name Yes
Symbol Scrip Token Yes
Transtype Tradnsaction Type Yes

fetchsymbol


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/fetchsymbol
-X POST https://tjapi.algomojo.com/1.0/fetchsymbol
-X POST https://zbapi.algomojo.com/1.0/fetchsymbol

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/fetchsymbol https://tjapi.algomojo.com/1.0/fetchsymbol https://zbapi.algomojo.com/1.0/fetchsymbol



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
        "s": "NIFTY%06AUG20%50%CE%"
      }
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
s Symbol String Yes

SecurityInfo


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/SecurityInfo
-X POST https://tjapi.algomojo.com/1.0/SecurityInfo
-X POST https://zbapi.algomojo.com/1.0/SecurityInfo

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/SecurityInfo https://tjapi.algomojo.com/1.0/SecurityInfo https://zbapi.algomojo.com/1.0/SecurityInfo



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data": {"uid":"TS24XX","Exchange":"NFO","SrchFor":"38818"}
}

Response example :

{
    "IntPayDate": "1 Jan, 1980",
    "PriceQuatation": "NA",
    "SellCryCost": 0,
    "Blq": 1,
    "HCircuitLimit": "73.70",
    "BuyCryCost": 0,
    "IMSpreadBenefit": "ON",
    "Totalopeninterest": 0,
    "DeliveryUnits": "NA",
    "DeliveryEndDate": "NA",
    "OtherSellMargin": "NA",
    "NoDelEndTime": "1 Jan, 1980",
    "NoDelStartDate": "1 Jan, 1980",
    "TickSize": "5",
    "ExpiryDte": "NA",
    "OtherBuyMargin": "NA",
    "Comments": "ANNUAL GENERAL MEETING",
    "TenderPeriod": "NA",
    "ListingDate": "20 Aug, 2009 - 0:0:0",
    "Symbol": "ADANIPOWER-EQ",
    "Series": "EQ",
    "CreditRating": "60.30-73.70",
    "Exposuremargin": "NA",
    "LocalUpdateTime": "27 Sep, 2019",
    "IssedCapital": "385.69389 (Crs)",
    "PriceNumerator": "1",
    "IsuStartDate": "20 Aug, 2009",
    "PermitedtoTrade": 0,
    "TenderPeriodEnd": "NA",
    "Warning": 0,
    "Remarks": "NA",
    "DPR1": "60.30",
    "BuyVarMargin": "NA",
    "DPR2": "73.70",
    "BookClsStartTime": "1 Aug, 2019",
    "Perchgopeninterest": 0,
    "ExpulsionDate": "1 Jan, 1980",
    "Exchange": "NSE",
    "Issuerate": 0,
    "QuantityUnit": "NA",
    "ReAdminDate": "1 Jan, 1980",
    "SellVarMargin": "NA",
    "TenderPeriodStart": "NA",
    "GeneralDenomenator": "1",
    "openinterest": 0,
    "ExchSeg": "nse_cm",
    "Spotprc": "NA",
    "MarketType": "NA",
    "RecordDate": "1 Jan, 1980",
    "ValueTradedToday": "NA",
    "LTT": "NA",
    "PriceUnits": "NA",
    "GeneralNumerator": "1",
    "MaxOrderSize": "1488778",
    "stat": "Ok",
    "PriceDenomenator": "1",
    "DeliveryStartDate": "NA",
    "LastTradingDate": "NA",
    "LCircuitLimit": "60.30",
    "Freeze": 1488778,
    "Instrument": "",
    "IsuMaturityDate": "NA"
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
uid Client ID Yes
Exchange Exchange Yes
SrchFor SrchFor Yes

Limits


# Here is a curl example
curl \
-X POST https://abapi.algomojo.com/1.0/Limits
-X POST https://tjapi.algomojo.com/1.0/Limits
-X POST https://zbapi.algomojo.com/1.0/Limits

                

To get characters you need to make a POST call to the following url :
https://abapi.algomojo.com/1.0/Limits https://tjapi.algomojo.com/1.0/Limits https://zbapi.algomojo.com/1.0/Limits



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
         "uid": "TS24XX",
         "act_id": "TS24XX",
         "segment": "ALL",
         "Exchange": "NSE",
         "product":""
      }
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
uid Client ID Yes
act_id Client ID Yes
segment Segment Type Yes
Exchange Exchange Name Yes
product Product Type Yes