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.

New Algomojo API Functions GetQuote and FetchToken

58 sec read

New Algomojo API functionalities added to support the user’s requirements to automate their trading requirements and the same can be accessed via Amibroker, Metatrader, Python, c# based platforms, Excel.

For Detailed Algomojo API Documentation visit here.

Supported Brokers : Aliceblue, Tradejini, Zebu

New API Functions

1)GetQuote

This API function retrieves the Todays Open, Todays High, Todays Low, Last Traded Price , Prev Day Close, Change,52 Week High and 52 week low etc.

API End Point

Aliceblue -  https://abapi.algomojo.com/1.0/GetQuote
Tradejini -  https://tjapi.algomojo.com/1.0/GetQuote
Zebu        -   https://zbapi.algomojo.com/1.0/GetQuote

Sample API Request

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

Sample API Response

{
    "DecimalPrecision": 2,
    "Low": "2035.15",
    "SQty": 0,
    "openPrice": "2111.00",
    "TSymbl": "RELIANCE-EQ",
    "TotalSell": "NA",
    "yearlyLowPrice": "875.65",
    "Exp": "NA",
    "PrvClose": "2049.60",
    "vwapAveragePrice": "NA",
    "LTD": "NA",
    "yearlyHighPrice": "2369.35",
    "exchFeedTime": "0",
    "TickSize": "5",
    "Multiplier": 1,
    "optiontype": "XX",
    "TradeVolume": "0",
    "strikeprice": "00.00",
    "BRate": "00.00",
    "Change": "00.00",
    "LTP": "2049.60",
    "LTQ": "5",
    "PerChange": "00.00",
    "TotalBuy": "NA",
    "LTT": "NA",
    "companyname": "RELIANCE INDUSTRIES LTD",
    "stat": "Ok",
    "Ltp": "2049.60",
    "SRate": "00.00",
    "BQty": 0,
    "BodLotQty": 1,
    "Series": "EQ",
    "High": "2115.35"
}

2)Get Token

This API Function retrieves the trading symbol token value which helps user to access the token in order to send Bracket order and Modify Pending Limit Orders/Stop Orders

API End Point

Aliceblue -  https://abapi.algomojo.com/1.0/GetQuote
Tradejini -  https://tjapi.algomojo.com/1.0/GetQuote
Zebu         -  https://zbapi.algomojo.com/1.0/GetQuote

Sample API Request

{
    "api_key":"c1997d92a3bb556a67dca7d1446b7087",
    "api_secret":"5306433329e81ba41203653417063c71",
    "data":
       {
           "s": "USDINR21JANFUT"
      }
}

Sample API Response

{
    "stat": "Ok",
    "token": "1814",
    "symbol": "USDINR",
    "trading_symbol": "USDINR21JANFUT"
}

Let me know in comments if in case any specific API is required for automating your trades using Algomojo.

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.

AllinOneAlerts – Amibroker Alerts Module for Amibroker Users

AllinOneAlerts is one of the most important and most requested modules to bring all sorts of alerts with no extra coding efforts. Now even...
Rajandran R
5 min read

Intraday Straddle Execution Module – Amibroker for AngelOne Users

This tutorial focus on how to automate your time-based index straddle/strangle management with intraday stop-loss levels with time-based entry and exits using Algomojo Platform...
Rajandran R
11 min read

Intraday Straddle Execution Module – Amibroker for Upstox Users

This tutorial focus on how to automate your time-based index straddle/strangle management with intraday stop-loss levels with time-based entry and exits using Algomojo Platform...
Rajandran R
11 min read

Leave a Reply

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