{"id":16455,"date":"2021-09-21T18:16:29","date_gmt":"2021-09-21T12:46:29","guid":{"rendered":"http:\/\/ismiletechnologies.com\/?p=16455"},"modified":"2022-10-06T16:23:50","modified_gmt":"2022-10-06T10:53:50","slug":"how-we-can-embed-api-to-cloud-by-using-any-financial-website","status":"publish","type":"post","link":"https:\/\/ismiletechnologies.com\/en_us\/technology\/how-we-can-embed-api-to-cloud-by-using-any-financial-website\/","title":{"rendered":"How we can embed Api to cloud by using any financial website"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">API is the&nbsp;short&nbsp;for Application Programming Interface. It&nbsp;is a software&nbsp;middleman&nbsp;that allows two applications to&nbsp;communicate&nbsp;to each other. Each time&nbsp;we&nbsp;use an app&nbsp;such as Instagram, send a picture, or check&nbsp;the route on google maps,&nbsp;we\u2019re using an API.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s how an API works:&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>A client application initiates an API call to retrieve information- also known as a request. This request is processed from an application to the web server via the API\u2019s Uniform Resource Identifier (URI) and includes a request verb, headers, and sometimes, a request body.&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>After receiving a valid request, the API makes a call to the external program or web server.&nbsp;&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>The server sends a response to the API with the requested information.&nbsp;&nbsp;<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>The API transfers the data&nbsp;to the initial requesting application.&nbsp;&nbsp;<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">There are 4 types of API protocols, but we are concerned with only 2. Those are:&nbsp;&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>SOAP&nbsp;<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Simple Object Access Protocol is an API protocol built with XML.&nbsp;It is a communication protocol designed to communicate via internet and provides data transport for wen services.&nbsp;&nbsp;It enables users to send and receive data through SMTP and HTTP. SOAP API\u2019s make it easier to share information between apps or software components running in different environments or written in different languages.&nbsp;&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>REST&nbsp;<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Representational State transfers is a set of web API architecture principles. There are no official standards (contrast to those with protocols). Also called as RESTful API, the API adheres to certain architectural constraints.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is possible to build RESTful APIs with SOAP protocols, but they are viewed as competing specifications.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now it is of utmost importance for us to understand what a cloud API is.&nbsp;A&nbsp;software interface that allows developers to link\u202fcloud computing\u202fservices together&nbsp;is a cloud API. It&nbsp;allows&nbsp;one computer program to make its functionality&nbsp;and&nbsp;data available for other programs to&nbsp;be&nbsp;used.&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Cloud APIs are\u00a0often classified\u00a0as vendor-specific\u00a0and\u00a0cross-platform.\u00a0The former is\u00a0written to support the cloud services of one specific provider, while\u00a0the latter\u00a0allows\u00a0developers to connect functionalities from two or more cloud providers\u00a0\u00a0<\/p>\n\n\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"33253\" class=\"elementor elementor-33253\" data-elementor-post-type=\"elementor_library\">\n\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1f27ef0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1f27ef0\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c65c317\" data-id=\"c65c317\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-dc3c880 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"dc3c880\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-inner-column elementor-element elementor-element-3248be5\" data-id=\"3248be5\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5886bd6 elementor-widget elementor-widget-heading\" data-id=\"5886bd6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Ready to experience the full power of cloud technology?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1f56c4e elementor-widget elementor-widget-text-editor\" data-id=\"1f56c4e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p><span class=\"TextRun Highlight SCXW216552313 BCX0\" lang=\"EN-IN\" xml:lang=\"EN-IN\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW216552313 BCX0\">Our cloud experts will speed up cloud deployment, and make your business more efficient.\u00a0<\/span><\/span><span class=\"EOP SCXW216552313 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-inner-column elementor-element elementor-element-4b7dd61\" data-id=\"4b7dd61\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-81f081a elementor-align-center elementor-widget elementor-widget-lottie\" data-id=\"81f081a\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;source&quot;:&quot;external_url&quot;,&quot;source_external_url&quot;:{&quot;url&quot;:&quot;https:\\\/\\\/assets4.lottiefiles.com\\\/packages\\\/lf20_kkesf8mx.json&quot;,&quot;is_external&quot;:&quot;&quot;,&quot;nofollow&quot;:&quot;&quot;,&quot;custom_attributes&quot;:&quot;&quot;},&quot;loop&quot;:&quot;yes&quot;,&quot;play_speed&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0.9,&quot;sizes&quot;:[]},&quot;lazyload&quot;:&quot;yes&quot;,&quot;link_to&quot;:&quot;none&quot;,&quot;trigger&quot;:&quot;arriving_to_viewport&quot;,&quot;viewport&quot;:{&quot;unit&quot;:&quot;%&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:{&quot;start&quot;:0,&quot;end&quot;:100}},&quot;start_point&quot;:{&quot;unit&quot;:&quot;%&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;end_point&quot;:{&quot;unit&quot;:&quot;%&quot;,&quot;size&quot;:100,&quot;sizes&quot;:[]},&quot;renderer&quot;:&quot;svg&quot;}\" data-widget_type=\"lottie.default\">\n\t\t\t\t\t<div class=\"e-lottie__container\"><div class=\"e-lottie__animation\"><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-inner-column elementor-element elementor-element-ac6262c\" data-id=\"ac6262c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e19f719 elementor-align-right elementor-mobile-align-left elementor-tablet-align-right elementor-widget elementor-widget-button\" data-id=\"e19f719\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-xs\" href=\"#elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6IjI5OTEiLCJ0b2dnbGUiOnRydWV9\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Start Today !<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t\n\n\n\n<p class=\"wp-block-paragraph\">The changes have greatly influenced modern financial institutions in the face of the stock market industry, which is growing so swiftly that it has created a paradigm shift. The landscape is influenced by innovative technologies like cloud-based application programming interface (<a href=\"https:\/\/geekflare.com\/tag\/api\/\" target=\"_blank\" rel=\"noreferrer noopener\">API<\/a>) for good reasons.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Stock market APIs&#8217; importance can be understood by understanding what they do for financial market data consumers. Stock market APIs are a significant advantage to investors, traders, and software developers. It is because stock APIs can connect data consumers effortlessly with relevant and accurate data sources that they are seeking. Additionally, obtaining stock market data through APIs is coherent and simple.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">APIs can be of different types \u2013 Rest API, FTP, TCP, etc.&nbsp;It is wise&nbsp;to choose&nbsp;the one according to your data requirements and&nbsp;speed&nbsp;.&nbsp;Some of the stock market APIs that are available in the market are&nbsp;Marketstack,&nbsp;Finnhub,&nbsp;Barchart, EOD Historical data, Alpha Vantage etc&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We are going to&nbsp;discuss in a little detail about&nbsp;RapidAPI. Let\u2019s see how can we build our own Stock Charts using Yahoo Finance API and Python. We are using yahoo finance since is it one of the most used financial websites globally.&nbsp;Yahoo Finance is one of the&nbsp;most&nbsp;reliable sources of stock market data. It&nbsp;provides&nbsp;market summaries, quotes, news feed about the companies and&nbsp;whatnot.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The unofficial Yahoo Finance API is available on&nbsp;RapidAPI.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We will first have to get access to yahoo finance API. How to do that?&nbsp;Lets&nbsp;find out.&nbsp;&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Sign Up for a&nbsp;RapidAPI&nbsp;User Account&nbsp;<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">To begin with, a person&nbsp;has&nbsp;to sign up for a free&nbsp;RapidAPI&nbsp;developer account.&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>Go&nbsp;to the Yahoo Finance API Page&nbsp;<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Search for \u201cYahoo Finance\u201d in the search bar&nbsp;or directly&nbsp;<a href=\"https:\/\/rapidapi.com\/apidojo\/api\/yahoo-finance1\" target=\"_blank\" rel=\"noreferrer noopener\">click here<\/a>.&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"560\" src=\"http:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-85.png\" alt=\"How we can embed Api to cloud by using any financial website\" class=\"wp-image-16457\" srcset=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-85.png 1024w, https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-85-300x164.png 300w, https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-85-768x420.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>Subscribe to Yahoo Finance API&nbsp;<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Click&nbsp;on the &#8220;pricing&#8221; tab and pick a pricing plan.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"616\" src=\"http:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-89.png\" alt=\"How we can embed Api to cloud by using any financial website\" class=\"wp-image-16461\" srcset=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-89.png 1024w, https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-89-300x180.png 300w, https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-89-768x462.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now it\u2019s high time to write some codes!!!! But before that, we must know which API Endpoint to use.&nbsp;Let\u2019s&nbsp;learn how to build a stock chart app by creating a simple Python application that consumes the data from Yahoo Finance API.&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Have&nbsp;a look at the left side endpoint listing in the API console page of Yahoo Finance.&nbsp;Multiple&nbsp;&nbsp;endpoints&nbsp;can be seen, categorized into&nbsp;stock and market.&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"350\" height=\"779\" src=\"http:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-87.png\" alt=\"How we can embed Api to cloud by using any financial website\" class=\"wp-image-16459\" srcset=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-87.png 350w, https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-87-135x300.png 135w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">We&nbsp;must look for API endpoints that provide\u202f<strong>historical data<\/strong>. A closed look at the endpoint lists&nbsp;show&nbsp;that the Yahoo Finance API&nbsp;indeed&nbsp;provides an endpoint for creating a chart.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"336\" height=\"243\" src=\"http:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-86.png\" alt=\"How we can embed Api to cloud by using any financial website\" class=\"wp-image-16458\" srcset=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-86.png 336w, https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-86-300x217.png 300w\" sizes=\"(max-width: 336px) 100vw, 336px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s&nbsp;now&nbsp;test this. Invoking this API with the symbol AAPL&nbsp;will&nbsp;give a series of data based on time range and interval.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"http:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-88.png\" alt=\"How we can embed Api to cloud by using any financial website\" class=\"wp-image-16460\" srcset=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-88.png 1024w, https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-88-300x161.png 300w, https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2021\/09\/image-88-768x413.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it!&nbsp;We are done!!&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is all you need to build a basic stock chart.&nbsp;So&nbsp;the&nbsp;crux&nbsp;is to extract the API response from the endpoint listed under market, parse it in a human-readable form and then plot it on a line chart.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>API is the&nbsp;short&nbsp;for Application Programming Interface. It&nbsp;is a software&nbsp;middleman&nbsp;that allows two applications to&nbsp;communicate&nbsp;to each other. Each time&nbsp;we&nbsp;use an app&nbsp;such as Instagram, send a picture, or check&nbsp;the route on google maps,&nbsp;we\u2019re using an API.&nbsp;&nbsp; Here\u2019s how an API works:&nbsp; A client application initiates an API call to retrieve information- also known as a request. This request [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":16814,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97,19],"tags":[],"class_list":["post-16455","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-technology"],"_links":{"self":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/16455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/comments?post=16455"}],"version-history":[{"count":4,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/16455\/revisions"}],"predecessor-version":[{"id":33570,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/16455\/revisions\/33570"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/media\/16814"}],"wp:attachment":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/media?parent=16455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/categories?post=16455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/tags?post=16455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}