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.

Mini Certification Course on Algorithmic Trading Strategies

If you are new to Automated trading? This certification course will help you to kickstart your automated trading with your broker and get to...
Rajandran R
1 min read

How to Build your First Execution Module and Cover…

This tutorial explores how to build your very first execution module in Amibroker and How to transmit orders from Amibroker to Algomojo trading platoform.
Rajandran R
2 min read

How to Fetch Upstox Historical Intraday API Data into…

In the previous session, we learned how Algomojo users can Get Free Upstox Interactive API and Historical Data API and in this tutorial, we...
Rajandran R
1 min read

Leave a Reply

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