{"id":163,"date":"2021-01-24T04:29:10","date_gmt":"2021-01-24T04:29:10","guid":{"rendered":"https:\/\/algomojo.com\/blog\/?p=163"},"modified":"2025-02-27T07:33:29","modified_gmt":"2025-02-27T07:33:29","slug":"new-algomojo-api-functions-getquote-and-fetchtoken","status":"publish","type":"post","link":"https:\/\/algomojo.com\/blog\/new-algomojo-api-functions-getquote-and-fetchtoken\/","title":{"rendered":"New Algomojo API Functions GetQuote and FetchToken"},"content":{"rendered":"\n<p>New Algomojo API functionalities added to support the user\u2019s requirements to automate their trading requirements and the same can be accessed via Amibroker, Metatrader, Python, c# based platforms, Excel.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/i1.wp.com\/www.marketcalls.in\/wp-content\/uploads\/2021\/01\/API-Functions-1024x576.png?resize=1024%2C576&amp;ssl=1\" alt=\"\"\/><\/figure>\n\n\n\n<p>For Detailed <a href=\"https:\/\/docs.algomojo.com\/docs\/api\/v1\">Algomojo API Documentation<\/a> visit here.<\/p>\n\n\n\n<p><strong>Supported Brokers :<\/strong> Aliceblue, Tradejini, Zebu<\/p>\n\n\n\n<p><strong>New API Functions<\/strong><\/p>\n\n\n\n<p><strong>1)GetQuote <\/strong><\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p><strong>API End Point<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-javascript\">Aliceblue -  https:\/\/abapi.algomojo.com\/1.0\/GetQuote\nTradejini -  https:\/\/tjapi.algomojo.com\/1.0\/GetQuote\nZebu         -  https:\/\/zbapi.algomojo.com\/1.0\/GetQuote<\/code><\/pre>\n\n\n\n<p><strong>Sample API Request<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-json\">{\n    &quot;api_key&quot;:&quot;c1997d92a3bb556a67dca7d1446b7087&quot;,\n    &quot;api_secret&quot;:&quot;5306433329e81ba41203653417063c71&quot;,\n    &quot;data&quot;:\n      {\n         &quot;Exchange&quot;: &quot;NFO&quot;,\n         &quot;Symbol&quot;: &quot;RELIANCE-EQ&quot;\n      }\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample API Response<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-json\">{\n    &quot;DecimalPrecision&quot;: 2,\n    &quot;Low&quot;: &quot;2035.15&quot;,\n    &quot;SQty&quot;: 0,\n    &quot;openPrice&quot;: &quot;2111.00&quot;,\n    &quot;TSymbl&quot;: &quot;RELIANCE-EQ&quot;,\n    &quot;TotalSell&quot;: &quot;NA&quot;,\n    &quot;yearlyLowPrice&quot;: &quot;875.65&quot;,\n    &quot;Exp&quot;: &quot;NA&quot;,\n    &quot;PrvClose&quot;: &quot;2049.60&quot;,\n    &quot;vwapAveragePrice&quot;: &quot;NA&quot;,\n    &quot;LTD&quot;: &quot;NA&quot;,\n    &quot;yearlyHighPrice&quot;: &quot;2369.35&quot;,\n    &quot;exchFeedTime&quot;: &quot;0&quot;,\n    &quot;TickSize&quot;: &quot;5&quot;,\n    &quot;Multiplier&quot;: 1,\n    &quot;optiontype&quot;: &quot;XX&quot;,\n    &quot;TradeVolume&quot;: &quot;0&quot;,\n    &quot;strikeprice&quot;: &quot;00.00&quot;,\n    &quot;BRate&quot;: &quot;00.00&quot;,\n    &quot;Change&quot;: &quot;00.00&quot;,\n    &quot;LTP&quot;: &quot;2049.60&quot;,\n    &quot;LTQ&quot;: &quot;5&quot;,\n    &quot;PerChange&quot;: &quot;00.00&quot;,\n    &quot;TotalBuy&quot;: &quot;NA&quot;,\n    &quot;LTT&quot;: &quot;NA&quot;,\n    &quot;companyname&quot;: &quot;RELIANCE INDUSTRIES LTD&quot;,\n    &quot;stat&quot;: &quot;Ok&quot;,\n    &quot;Ltp&quot;: &quot;2049.60&quot;,\n    &quot;SRate&quot;: &quot;00.00&quot;,\n    &quot;BQty&quot;: 0,\n    &quot;BodLotQty&quot;: 1,\n    &quot;Series&quot;: &quot;EQ&quot;,\n    &quot;High&quot;: &quot;2115.35&quot;\n}<\/code><\/pre>\n\n\n\n<p><strong>2)Get Token<\/strong><\/p>\n\n\n\n<p>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<\/p>\n\n\n\n<p><strong>API EndPoint<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-javascript\">Aliceblue -  https:\/\/abapi.algomojo.com\/1.0\/GetQuote\nTradejini -  https:\/\/tjapi.algomojo.com\/1.0\/GetQuote\nZebu        -  https:\/\/zbapi.algomojo.com\/1.0\/GetQuote<\/code><\/pre>\n\n\n\n<p><strong>Sample API Request<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-json\">{\n    &quot;api_key&quot;:&quot;c1997d92a3bb556a67dca7d1446b7087&quot;,\n    &quot;api_secret&quot;:&quot;5306433329e81ba41203653417063c71&quot;,\n    &quot;data&quot;:\n       {\n           &quot;s&quot;: &quot;USDINR21JANFUT&quot;\n      }\n}<\/code><\/pre>\n\n\n\n<p><strong>Sample API Response<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-json\">{\n    &quot;stat&quot;: &quot;Ok&quot;,\n    &quot;token&quot;: &quot;1814&quot;,\n    &quot;symbol&quot;: &quot;USDINR&quot;,\n    &quot;trading_symbol&quot;: &quot;USDINR21JANFUT&quot;\n}<\/code><\/pre>\n\n\n\n<p>Let me know in comments if in case any specific API is required for automating your trades using Algomojo.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>New Algomojo API functionalities added to support the user\u2019s requirements to automate their trading requirements and the same can be accessed via Amibroker, Metatrader, Python, c# based platforms, Excel.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[2],"tags":[4,89,88],"_links":{"self":[{"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/posts\/163"}],"collection":[{"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/comments?post=163"}],"version-history":[{"count":5,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/posts\/163\/revisions"}],"predecessor-version":[{"id":1585,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/posts\/163\/revisions\/1585"}],"wp:attachment":[{"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/media?parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/categories?post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/algomojo.com\/blog\/wp-json\/wp\/v2\/tags?post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}