<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rajaruban</title>
    <description>The latest articles on DEV Community by Rajaruban (@responsivedev).</description>
    <link>https://dev.to/responsivedev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F780663%2F12e35c22-4607-4d25-8ab3-d2b863cbaf11.jpeg</url>
      <title>DEV Community: Rajaruban</title>
      <link>https://dev.to/responsivedev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/responsivedev"/>
    <language>en</language>
    <item>
      <title>I created a Search Engine for Stock's ROI Analysis using Vue and Node JS</title>
      <dc:creator>Rajaruban</dc:creator>
      <pubDate>Mon, 25 Jul 2022 04:16:00 +0000</pubDate>
      <link>https://dev.to/responsivedev/i-created-a-search-engine-for-stocks-roi-analysis-1k1i</link>
      <guid>https://dev.to/responsivedev/i-created-a-search-engine-for-stocks-roi-analysis-1k1i</guid>
      <description>&lt;h2&gt;Brief Overview&lt;/h2&gt;

&lt;p&gt;
I created this search engine called &lt;a href="https://savajava.github.io/"&gt;SavaJava&lt;/a&gt; which helps to screen any stocks in USA(NYSE &amp;amp; NASDAQ), Malaysia(KLSE) and Singapore(SGX) exchanges.
The app does three 3 things:
&lt;/p&gt;
&lt;ol&gt;
 &lt;li&gt;General Use - Provides Web Search Functionality for general users&lt;/li&gt;
 &lt;li&gt;Developer Use - Provides RESTful Web Service for developers&lt;/li&gt;
 &lt;li&gt;Provides independent Analytics using in-house algorithms on screened stocks (more on this later here!)&lt;/li&gt;
&lt;/ol&gt;




&lt;h2 id="architecture"&gt;Architecture&lt;/h2&gt;

&lt;p&gt;
This application is built on Vue JS for the client and Node JS for the server. Although I got to admit I enjoyed working on the server more as it houses many in-house algorithms there such as:
&lt;/p&gt;
&lt;ol&gt;
 &lt;li&gt;Dividend Frequency Detector Algorithm (Responsible for checking whether a stock pays dividend Annually, Bi-Annually, Quarterly or Monthly)&lt;/li&gt;
 &lt;li&gt;Dividend Suspension Detector Algorithm (Responsible for checking whether how many times a stock had suspended or missed its dividend payment dues)&lt;/li&gt;
 &lt;li&gt;Real-Time Forward Yield Algorithm (Responsible for displaying accurate yield based on latest dividend data and other analytics)&lt;/li&gt;
 &lt;li&gt;Dynamic Search Query Algorithm (Responsible for checking and transforming user input search query into payload that is acceptable by the API endpoint for processing)&lt;/li&gt;
 &lt;li&gt;Dynamic API Key Generator Algorithm (Responsible for generating dynamic API Key on daily basis to protect the server from brute forced or overloaded)&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;General Use Case&lt;/h2&gt;

&lt;p&gt;The Web Search returns 3 things, which are &lt;strong&gt;Dividend Analysis&lt;/strong&gt;, &lt;strong&gt;Fundamentals&lt;/strong&gt;, and &lt;strong&gt;Dividend History&lt;/strong&gt;. There is no restriction on the app on who can use the web search functionality. Doesn't matter if the user is an investor, accountant, financial analyst, trader, banker or even developer, still they will find it useful before they commit their hard-earned money to any investment decisions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--11aJo9Oe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179158846-4da7d77d-4315-4dd9-9d12-bcdae3e92314.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--11aJo9Oe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179158846-4da7d77d-4315-4dd9-9d12-bcdae3e92314.png" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;
Figure 1.0 - Shows Web Search mode, where user is searching for Apple stock(NASDAQ)



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7S7ZMeXI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179159105-94d972b6-b13e-4fe5-bd89-c9fb3b4aae5c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7S7ZMeXI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179159105-94d972b6-b13e-4fe5-bd89-c9fb3b4aae5c.png" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;
Figure 1.1 - Search result for Apple stock (NASDAQ), notice that Apple has suspended its dividend once



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EsyolcSR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179159449-e914af84-dec3-42a6-b59b-8bdefa2885b2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EsyolcSR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179159449-e914af84-dec3-42a6-b59b-8bdefa2885b2.png" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;
Figure 1.2 - Search result for Netflix stock (NASDAQ), the system alerts that Netflix never paid dividend, only shows the Fundamentals section.





&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/vrZvnaYIOGQ"&gt;
&lt;/iframe&gt;
&lt;/p&gt;
Video 1.3 - Step by step example for using search query for Web Search






&lt;h2&gt;Developer Use Case - How to Consume this API&lt;/h2&gt;

&lt;p&gt;I have created and published an API Playground for this project in Rapid API for developers for seamless integration and also this &lt;a href="https://rapidapi.com/moneygoddess888/api/nasdaq-stocks-dividend-history-live"&gt;endpoint&lt;/a&gt; doesn't require API Key for making API calls.&lt;/p&gt;

&lt;h4&gt;To get API for Nasdaq (US) stocks:&lt;/h4&gt;

&lt;ul&gt;
 &lt;li&gt;Simply type the target Stock’s ticker symbols into the Param’s field in the endpoint [eg: MSFT for Microsoft or AAPL for Apple]&lt;/li&gt;
 &lt;li&gt;You can also refer this &lt;a href="https://www.nasdaq.com/market-activity/stocks/screener"&gt;official NASDAQ website&lt;/a&gt; to reconfirm the NASDAQ stock’s ticker symbols should you need assistance&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;To get API for SGX (Singaporean) stocks:&lt;/h4&gt;

&lt;ul&gt;
 &lt;li&gt;Simply type the target Stock’s ticker symbols and append this string ‘.SG’ into the Param’s field in the endpoint [eg: Z74.SG for Singapore Telecommunications Limited or D05.SG for DBS Group Holdings Ltd]&lt;/li&gt;
 &lt;li&gt;You can also refer this &lt;a href="https://www.sgx.com/securities/stock-screener"&gt;official SGX website&lt;/a&gt; to reconfirm the SGX stock’s ticker symbols should you need assistance&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;To get API for KLSE (Malaysian) stocks:&lt;/h4&gt;

&lt;ul&gt;
 &lt;li&gt;Simply type the target Stock’s ticker symbols and append this string ‘.MY’ into the Param’s field in the endpoint [eg: 1155.MY for Malayan Banking Berhad or 3182.MY for Genting Berhad] &lt;/li&gt;
 &lt;li&gt;You can also refer this &lt;a href="https://www.bursamalaysia.com/"&gt;official KLSE website&lt;/a&gt; to reconfirm the KLSE stock’s ticker symbols should you need assistance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QQuFcp54--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179157351-935befb0-18ea-4143-ada8-ab814dce251f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QQuFcp54--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179157351-935befb0-18ea-4143-ada8-ab814dce251f.png" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;
Figure 2.0 - Developer searching for Apple Stock(NASDAQ) using its ticker symbol 'AAPL', notice there is a field for API Key to be input too



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AQwOWkBg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179157464-1ca46a68-9617-4dea-bce5-c1e3a5996eb4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AQwOWkBg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179157464-1ca46a68-9617-4dea-bce5-c1e3a5996eb4.png" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;
Figure 2.1 - Server approves the request and validates the valid API Key and returns the result for 'AAPL' in JSON format



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--X7CT4JM4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179157941-a8962074-b2ce-4751-8a9d-6dd644eda692.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--X7CT4JM4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/108166534/179157941-a8962074-b2ce-4751-8a9d-6dd644eda692.png" width="880" height="495"&gt;&lt;/a&gt;&lt;/p&gt;
Figure 2.2 - Server denies the request and invalidates the wrong API Key and returns the appropriate response






&lt;h2&gt;Documentation&lt;/h2&gt;

&lt;p&gt;You can read more about SavaJava's Official &lt;a href="https://github.com/savajava/savajava.github.io/blob/main/README.md"&gt;Documentation&lt;/a&gt; in its official GitHub account&lt;/p&gt;




&lt;h2&gt;Sponsor&lt;/h2&gt;

&lt;p&gt;You can donate to support this project &lt;a href="https://www.paypal.com/paypalme/rubanero"&gt;here&lt;/a&gt; and feel free to drop us a comment on what you want to see as improvement or additions into the project&lt;/p&gt;




&lt;h2&gt;Collaberate&lt;/h2&gt;

&lt;p&gt;If you think you can bring in some improvements and addition for this app, you can &lt;a href="https://www.linkedin.com/in/rajaruban-rajindram/"&gt;DM&lt;/a&gt; me via LinkedIn, I can add you into the project to work on.&lt;/p&gt;

&lt;p&gt;Thanks and have great day fellow Devs!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>vue</category>
      <category>algorithms</category>
    </item>
  </channel>
</rss>
