Introduction

    API Endpoint

        Aliceblue
        https://abapi.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.

Broker URL
Aliceblue ab.algomojo.com
Zebu zb.algomojo.com

Language Docs
Python Python Docs
Amibroker Amibroker Docs

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/

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.


Exchange


NSE - NSE Equity
BSE - BSE Equity
MCXSXCM - MCXSX Equity

NFO - NSE Futures & Options
BFO - BSE Futures & Options
MCXSXFO - MCXSX Futures & Options

CDS - NSE Currency
BCD - BSE Currency
MCXSX - MCXSX Currency

MCX - MCX Commodity
NCDEX - NCDEX Commodity
MCXSX - MCXSX Currency


Product Code


CNC - Cash & Carry for equity (CNC)
NRML - Normal for futures and options (NRML)
MIS - Intraday Squareoff (MIS)
CO - Cover Order
BO - Bracket Order


Price Type


MKT - Market Order(MKT)
L - Limit Order(L)
SL-L - Stop Loss Limit Order(SL)
SL-M - Stop Loss Market Order(SL-M)


Transaction Type


B - Buy
S - Sell


PlaceOrder


                    # Here is a curl example
                    curl \
                    -X POST https://abapi.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://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://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://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://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://zbapi.algomojo.com/1.0/PlaceBOOrder



Request example :

{
  "api_key":"86cbef19e7e61ccee91e497695814e",
  "api_secret":"4a94db82ea4fa140afaa2f03ffd18",
  "data":
    {
      "strg_name": "BO Strategy",
      "s_prdt_ali":"BO:BO||CNC:CNC||CO:CO||MIS:MIS||NRML:NRML",
      "TokenNo":"225103",
      "exch":"MCX",
      "Ttranstype":"B",
      "Ret":"DAY",
      "qty":"1",
      "discqty":"0",
      "Price":"4890",
      "ltpOratp":"LTP",
      "SqrOffAbsOrticks":"Absolute",
      "SqrOffvalue":"10",
      "SLAbsOrticks":"Absolute",
      "SLvalue":"10",
      "trailingSL":"0",
      "tSLticks":"10"
    }
}

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://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://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":"LTP",
                "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":"LTP",
                "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://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://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://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://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://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://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://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://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",
        "Transtype" : "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
uid Client ID Yes
Actid Client ID Yes
Exchangeseg Exchange Segment Yes
Tsym Trading Symbol Yes
Nstordno Nest Order Number Yes
Transtype 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://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://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://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://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://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://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

TradeBook


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

                

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



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 :
[
    {
        "series": "XX",
        "AvgPrice": "105.45",
        "PriceNumerator": "1",
        "accountId": "TS2499",
        "Custofrm": "C",
        "Ordduration": "DAY",
        "AlgoCategory": "NA",
        "Filltime": "15:02:49",
        "BrokerClient": "--",
        "expdate": "1296311400",
        "remarks": "--",
        "symbolname": "BANKNIFTY",
        "Qty": 50,
        "ReportType": "fill",
        "Exchange": "NFO",
        "Time": "28/01/2021 15:02:49",
        "Prctype": "MKT",
        "usecs": "095630",
        "Filldate": "28-Jan-2021",
        "NOReqID": "1",
        "Exchtime": "28-Jan-2021 15:02:49",
        "optiontype": "CE",
        "GeneralDenomenator": "1",
        "ordergenerationtype": "--",
        "strikeprice": "30100.00",
        "FillLeg": 1,
        "iSinceBOE": 1611826369,
        "Nstordno": "210128000019286",
        "Tsym": "BANKNIFTY28JAN2130100CE",
        "GeneralNumerator": "1",
        "Expiry": "28 Jan, 2021",
        "companyname": "",
        "bqty": 25,
        "FillId": "689998090",
        "stat": "Ok",
        "PriceDenomenator": "1",
        "Filledqty": 50,
        "panNo": "HEPPK3111A",
        "Symbol": "41188",
        "Trantype": "S",
        "posflag": "true",
        "Price": "105.45",
        "Exchseg": "nse_fo",
        "ExchordID": "1400000269392697",
        "Pcode": "NRML",
        "Minqty": 0,
        "user": "TS2499",
        "AlgoID": "NA",
        "Fillqty": 25
    },
    {
        "series": "XX",
        "AvgPrice": "105.45",
        "PriceNumerator": "1",
        "accountId": "TS2499",
        "Custofrm": "C",
        "Ordduration": "DAY",
        "AlgoCategory": "NA",
        "Filltime": "15:02:49",
        "BrokerClient": "--",
        "expdate": "1296311400",
        "remarks": "--",
        "symbolname": "BANKNIFTY",
        "Qty": 50,
        "ReportType": "fill",
        "Exchange": "NFO",
        "Time": "28/01/2021 15:02:49",
        "Prctype": "MKT",
        "usecs": "095036",
        "Filldate": "28-Jan-2021",
        "NOReqID": "1",
        "Exchtime": "28-Jan-2021 15:02:49",
        "optiontype": "CE",
        "GeneralDenomenator": "1",
        "ordergenerationtype": "--",
        "strikeprice": "30100.00",
        "FillLeg": 1,
        "iSinceBOE": 1611826369,
        "Nstordno": "210128000019286",
        "Tsym": "BANKNIFTY28JAN2130100CE",
        "GeneralNumerator": "1",
        "Expiry": "28 Jan, 2021",
        "companyname": "",
        "bqty": 25,
        "FillId": "689998089",
        "stat": "Ok",
        "PriceDenomenator": "1",
        "Filledqty": 25,
        "panNo": "HEPPK3111A",
        "Symbol": "41188",
        "Trantype": "S",
        "posflag": "true",
        "Price": "105.45",
        "Exchseg": "nse_fo",
        "ExchordID": "1400000269392697",
        "Pcode": "NRML",
        "Minqty": 0,
        "user": "TS2499",
        "AlgoID": "NA",
        "Fillqty": 25
    }
]
                

QUERY PARAMETERS

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

PositionBook


# Here is a curl example
curl \
-X POST https://abapi.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://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://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://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://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://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://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://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://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://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://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://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://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://zbapi.algomojo.com/1.0/Limits



Request example :

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

Response example :

{
    "OpeningBalance": "0.00",
    "Netcashavailable": "0.00",
    "grossexposurevalue": "0.00",
    "segment": "ALL",
    "cncrealizedmtomprsnt": "-0.0",
    "valueindelivery": "0.00",
    "cncsellcreditpresent": "0.00",
    "cncunrealizedmtomprsnt": "-0.0",
    "deliverymarginprsnt": "0",
    "grossCollateral": "0",
    "BuyPower": "0.00",
    "PayoutAmt": "-0.00",
    "cncbrokerageprsnt": "0",
    "turnover": "0",
    "unrealisedmtom": "-0.00",
    "adhocscripmargin": "0.00",
    "specialmarginprsnt": "0",
    "BOmarginRequired": "0.00",
    "losslimit": "0",
    "IPOAmount": "-0.00",
    "elm": "0.00",
    "cdsspreadbenefit": "0.00",
    "realisedmtom": "-0.00",
    "category": "0",
    "nfospreadbenefit": "0.00",
    "Utilizedamount": "0.00",
    "exposuremargin": "0.00",
    "Adhoc": "0.00",
    "t1grossCollateral": "0",
    "directcollateralvalue": "0",
    "StockValuation": "0.00",
    "credits": "0.00",
    "branchadhoc": "0",
    "adhocmargin": "0",
    "additionalmarginprsnt": "0",
    "spanmargin": "0.00",
    "premiumpresent": "0.00",
    "BookedPNL": "-0.00",
    "varmargin": "0.00",
    "marginScripBasketCustomPresent": "0",
    "tendermarginprsnt": "0",
    "cncmarginused": "0",
    "brokerageprsnt": "0",
    "UnbookedPNL": "-0.00",
    "debits": "0.00",
    "COMarginRequired": "0.00",
    "multiplier": "0.00",
    "stat": "Ok",
    "mfamount": "0.00",
    "scripbasketmargin": "0.00",
    "buyExposurePrsnt": "0",
    "notionalcash": "0",
    "additionalpreexpirymarginprsnt": "0",
    "cncMarginElmPrsnt": "0",
    "PayinAmt": "0.00",
    "cncMarginVarPrsnt": "0",
    "mfssamountused": "0.00",
    "sellExposurePrsnt": "0"
}

                

QUERY PARAMETERS

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

GetQuote


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

                

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



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
         "Exchange": "NFO",
         "Symbol": "RELIANCE-EQ"
      }
}

{
    "DecimalPrecision": 2,
    "Low": "00.05",
    "SQty": 112725,
    "openPrice": "00.70",
    "TSymbl": "NIFTY28JAN2114500CE",
    "TotalSell": "386700",
    "yearlyLowPrice": "00.00",
    "Exp": "28 Jan, 2021",
    "PrvClose": "03.70",
    "vwapAveragePrice": "00.46",
    "LTD": "NA",
    "yearlyHighPrice": "00.80",
    "exchFeedTime": "28-Jan-2021 16:31:32",
    "TickSize": "5",
    "Multiplier": 1,
    "optiontype": "CE",
    "TradeVolume": "14424150",
    "strikeprice": "14500.00",
    "BRate": "00.00",
    "Change": "-03.65",
    "LTP": "00.05",
    "LTQ": "150",
    "PerChange": "-98.65",
    "TotalBuy": "NA",
    "LTT": "28/01/2021 15:29:45",
    "companyname": "",
    "stat": "Ok",
    "Ltp": "00.05",
    "SRate": "00.05",
    "BQty": 0,
    "BodLotQty": 75,
    "Series": "XX",
    "High": "00.80"
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
Exchange Exchange Yes
Symbol Symbol Name from Watchlist Yes

fetchtoken


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

                

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



Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
      {
         "s": "RELIANCE-EQ"
      }
}

{
    "stat": "Ok",
    "token": "2885",
    "symbol": "RELIANCE",
    "trading_symbol": "RELIANCE-EQ"
}
                

QUERY PARAMETERS

Request Parameter Description Mandatory
s Symbol Name from Watchlist Yes