Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

PlaceFNOOptionsOrder and PlaceMultiOrder API Launched for Angel Broking – Algomojo Users

1 min read

Two major functionalities rolled out for Angel Broking – Algomojo users to take advantage of Options Order and Basket Orders which helps the quant developers to reduce their coding effort significantly and improve their trading process.

What is PlaceFNOOptionsOrder?

PlaceFNOOptionsOrder is for sending index options orders to send ATM, ITM, OTM Options Orders in Nifty, Bank Nifty , FinNifty)

Here is the sample request and response for PlaceFOOptionsOrder

For detailed information on Algomojo API’s visit the API Documentation section

Endpoint URL : https://anapi.algomojo.com/1.0/PlaceFOOptionsOrder

Request example :

{
    "api_key":"c1997d92a3bb556a67dca7d1446b70",
    "api_secret":"5306433329e81ba41203653417063c",
    "data":
      {
        "stgy_name":"Options",
        "variety":"NORMAL",
        "spot_sym":"BANKNIFTY",
        "expiry_dt":"01JUL21",
        "opt_type":"CE",
        "transactiontype":"BUY",
        "ordertype":"MARKET",
        "quantity":"25",
        "price":"0",
        "triggerprice":"0",
        "producttype":"CARRYFORWARD",
        "strike_int":"100",
        "offset":"10"
      }
}

Response example :

{
    "status":true,
    "message":"SUCCESS",
    "errorcode":"",
    "data":
        {
         "script": "BANKNIFTY01JUL2135200CE",
         "orderid": "210618001112998"
        }
}

Option Offset Control

one can use the offset to select the ATM, ITM,OTM Options.

What is PlaceMultiOrder?

It is a basket order to fire basket orders to single account or to multiple accounts.

Sending Basket Order to Single Account

EndPoint URL : https://anapi.algomojo.com/1.0/PlaceFOOptionsOrder

one can use the following messaging format to send basket orders to the same account


{
    "api_key":"b48e4db30e47326722a388c03eb4ee26",
    "api_secret":"fc3ed44d0914b0e6466f9ff2e3ae003a",
    "data":
      {
          "orders" : 
            [
                {
                "order_refno":"1",
                "user_apikey":"b48e4db30e47326722a388c03eb4ee26",
                "api_secret":"fc3ed44d0914b0e6466f9ff2e3ae003a",
                "stgy_name": "Test Strategy",
                "variety":"NORMAL",
                "tradingsymbol":"SBIN-EQ",
                "symboltoken":"3045",
                "transactiontype":"BUY",
                "exchange":"NSE",
                "ordertype":"MARKET",
                "producttype":"DELIVERY",
                "duration":"DAY",
                "price":"0",
                "squareoff":"0",
                "stoploss":"0",
                "quantity":"1",
                "triggerprice": "0",
                "trailingStopLoss": "0",
                "disclosedquantity":"0"
                },
                {
                "order_refno":"2",
                "strg_name": "Test Strategy",
                "user_apikey":"b48e4db30e47326722a388c03eb4ee26",
                "api_secret":"fc3ed44d0914b0e6466f9ff2e3ae003a",
                "variety":"NORMAL",
                "tradingsymbol":"RELIANCE-EQ",
                "symboltoken":"2885",
                "transactiontype":"SELL",
                "exchange":"NSE",
                "ordertype":"MARKET",
                "producttype":"DELIVERY",
                "duration":"DAY",
                "price":"0",
                "squareoff":"0",
                "stoploss":"0",
                "quantity":"1",
                "triggerprice": "0",
                "trailingStopLoss": "0",
                "disclosedquantity":"0"
                }
            ]
      }
}

Response example :

[
    {
        "status": true,
        "message": "SUCCESS",
        "errorcode": "",
        "data": {
            "script": "SBIN-EQ",
            "orderid": "210428001357677"
        }
    },
    {
        "status": true,
        "message": "SUCCESS",
        "errorcode": "",
        "data": {
            "script": "RELIANCE-EQ",
            "orderid": "210428001357678"
        }
    }
]

Sending Order to Multiple Account

EndPoint URL : https://anapi.algomojo.com/1.0/PlaceFOOptionsOrder

one can use the following messaging format to send multi account orders for the same trading instruments

{
    "api_key":"b48e4db30e47326722a388c03eb4ee26",
    "api_secret":"fc3ed44d0914b0e6466f9ff2e3ae003a",
    "data":
      {
          "orders" : 
            [
                {
                "order_refno":"1",
                "user_apikey":"b48e4db30e47326722a388c03eb4ee26",
                "api_secret":"fc3ed44d0914b0e6466f9ff2e3ae003a",
                "stgy_name": "Test Strategy",
                "variety":"NORMAL",
                "tradingsymbol":"SBIN-EQ",
                "symboltoken":"3045",
                "transactiontype":"BUY",
                "exchange":"NSE",
                "ordertype":"MARKET",
                "producttype":"INTRADAY",
                "duration":"DAY",
                "price":"0",
                "squareoff":"0",
                "stoploss":"0",
                "quantity":"1",
                "triggerprice": "0",
                "trailingStopLoss": "0",
                "disclosedquantity":"0"
                },
                {
                "order_refno":"2",
                "strg_name": "Test Strategy",
                "user_apikey":"dfsdf45sdf34g555ssef567jhrt6ssv4",
                "api_secret":"59ff2544sdfhkllwer5559ff2e3ae003a",
                "variety":"NORMAL",
                "tradingsymbol":"SBIN-EQ",
                "symboltoken":"3045",
                "transactiontype":"BUY",
                "exchange":"NSE",
                "ordertype":"MARKET",
                "producttype":"INTRADAY",
                "duration":"DAY",
                "price":"0",
                "squareoff":"0",
                "stoploss":"0",
                "quantity":"1",
                "triggerprice": "0",
                "trailingStopLoss": "0",
                "disclosedquantity":"0"
                }
            ]
      }
}
Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

Clarification on Business Standard Article and False Allegations made…

This article clarifies the false allegations made on Marketcalls and Algomojo.
Rajandran R
1 min read

How to Fetch Trading Account Balance using Amibroker

Amibroker recently launched their Amibroker 6.4 version which comes with new Javascript engines with JSON native object support which is very much required to...
Rajandran R
2 min read

Ninjatrader 8 – Button Trading OpenSource Code

Here is the open-source code for building a simple buy and sell button-based API call to the Algomojo Platform. Now one can use Ninjatrader...
Rajandran R
6 min read

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More