<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Alpha Vantage - Medium]]></title>
        <description><![CDATA[Accessible and easy to use APIs for financial market data - Medium]]></description>
        <link>https://medium.com/alpha-vantage?source=rss----ba7428860009---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Alpha Vantage - Medium</title>
            <link>https://medium.com/alpha-vantage?source=rss----ba7428860009---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 20 Apr 2026 07:07:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/alpha-vantage" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Best Stock Market APIs]]></title>
            <link>https://medium.com/alpha-vantage/best-stock-market-apis-2ee314548f12?source=rss----ba7428860009---4</link>
            <guid isPermaLink="false">https://medium.com/p/2ee314548f12</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Kyle Vock]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 17:10:30 GMT</pubDate>
            <atom:updated>2023-11-27T17:10:29.924Z</atom:updated>
            <content:encoded><![CDATA[<h3>Best Stock Market APIs — A Comprehensive Guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vWzVD2QPumusP2lm" /></figure><p>Financial data represents the lifeblood of markets, providing critical information required to make informed investment decisions. This data encompasses a wide array of quantitative and qualitative information pertinent to the performance of various asset classes such as such as stocks, bonds, currencies, commodities, and derivatives. Markets are complex systems that rely heavily on the constant flow of this data to function efficiently; in its absence, investors are akin to wanderers in a desert without a compass.</p><p>For decades, large enterprises such as Reuters, Dow Jones, and Bloomberg dominated the financial data industry, gatekeeping access to institutions and the wealthy. When Bloomberg launched its renowned ‘Terminal’ back in the early ’80s, it cost a staggering $1,000 per month. For reference, the average monthly mortgage in 1980 was approximately $580 per month, or roughly 40% less than a Bloomberg subscription. This cost barrier gave institutions a major advantage over individuals.</p><p>By the 2000s, the dawn of the internet era democratized access to financial information. Online brokerages, financial news websites, and data services emerged, offering real-time market data and analysis tools to a broader audience. The emergence of financial data APIs transformed the landscape, allowing seamless integration and sharing of financial data across platforms and applications. The advent of these financial data APIs has had a transformative impact on how data can be used in the real world, such as algorithmic trading, portfolio management, market research and analysis, risk management, and powering various fintech applications.</p><p>A quick look at some of the best financial data APIs:</p><ol><li><a href="https://www.alphavantage.co/documentation/#time-series-data">Stock Market API</a></li><li><a href="https://www.alphavantage.co/documentation/#news-sentiment">News &amp; Sentiment API</a></li><li><a href="https://www.alphavantage.co/documentation/#fundamentals">Fundamental Data API</a></li><li><a href="https://www.alphavantage.co/documentation/#fx">Forex + Crypto API</a></li><li><a href="https://www.alphavantage.co/documentation/#technical-indicators">Technical Indicator APIs</a></li></ol><h3><strong>Best for Stock Prices: Core Stock API</strong></h3><p>The Core Stock API at <a href="https://www.alphavantage.co/">Alpha Vantage</a> provides all you need for your trading algorithm or market research; it allows you to retrieve data for a ticker’s open, high, low, close, and volume (OHLCV) at daily, weekly, monthly, or intraday intervals. This data can be returned either raw (as-traded) or as split and dividend-adjusted. Alpha Vantage boasts one of the largest financial data libraries in the industry, covering over 200K stock tickers from more than 20 global exchanges, with historical data dating back over 20 years. Being exchange-licensed, Alpha Vantage allows you to retrieve end-of-day, 15-minute delayed, or real-time data, while also ensuring complete exchange compliance.</p><p>Link: <a href="https://www.alphavantage.co/documentation/#time-series-data">https://www.alphavantage.co/documentation/#time-series-data</a></p><h3><strong>Best for News: News &amp; Sentiment API</strong></h3><p>The News &amp; Sentiment API aggregates unstructured news data from prominent and trustworthy global sources and transforms it into structured business insights. This LLM-powered technology analyzes the text of each story and attaches ticker-level sentiment and relevance scores to equities, forex, and crypto symbols. For instance, if an article about Ford recalling 25,000 SUVs breaks, this endpoint not only returns the relevant article data (story’s title, link, author, etc.) but also attaches a negative sentiment score, reflecting the story’s potential negative impact on the company.</p><p>Link: <a href="https://www.alphavantage.co/documentation/#news-sentiment">https://www.alphavantage.co/documentation/#news-sentiment</a></p><h3><strong>Best for Fundamentals: Fundamental API</strong></h3><p>The Fundamental Data API can be an extremely useful tool when conducting market research or fundamental analysis. It can return a wide variety of essential information about any listed company, including their industry sector, market capitalization, PE ratio, and dividend yield, along with details financial statements like the balance sheet, income statement, and cash flow statement. This data is typically updated on the same day a company reports its earnings.</p><p>Link: <a href="https://www.alphavantage.co/documentation/#fundamentals">https://www.alphavantage.co/documentation/#fundamentals</a></p><h3><strong>Best for Currencies: Forex &amp; Crypto API</strong></h3><p>The Crypto &amp; Forex API at Alpha Vantage covers all majorly traded cryptos and forex pairs and updates in realtime, allowing you can build a trading bot, alert system, and much more. Looking to perform an analysis or backtest a strategy? The endpoint also can pull historical data at daily, weekly, or monthly intervals.</p><p>Link: <a href="https://www.alphavantage.co/documentation/#fx">https://www.alphavantage.co/documentation/#fx</a></p><h3><strong>Best for Trading: Technicals API</strong></h3><p>The Technicals API empowers tech-savvy traders to access over 50 different technical indicators for any listed ticker, including cryptocurrencies and forex pairs. Popular indicators such as Simple Moving Average (SMA), Exponential Moving Average (EMA), Moving Average Convergence Divergence (MACD), Relative Strength Index (RSI), Volume Weighted Average Price (VWAP), and Bollinger Bands (BBANDs) are widely used. By integrating these real-time indicators into your programs, you can gain a competitive edge in the market.</p><p>Link: <a href="https://www.alphavantage.co/documentation/#technical-indicators">https://www.alphavantage.co/documentation/#technical-indicators</a></p><p>Stock market APIs offer developers a powerful way to programmatically access, analyze, and employ stock market data. This opens up opportunities for creating advanced financial applications, research tools, and trading systems. These APIs are vital in making stock market information more accessible, thereby empowering individuals and businesses to engage more effectively in the financial markets.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ee314548f12" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alpha-vantage/best-stock-market-apis-2ee314548f12">Best Stock Market APIs</a> was originally published in <a href="https://medium.com/alpha-vantage">Alpha Vantage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recession Report Card]]></title>
            <link>https://medium.com/alpha-vantage/recession-report-card-d673936b1b7d?source=rss----ba7428860009---4</link>
            <guid isPermaLink="false">https://medium.com/p/d673936b1b7d</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[economy]]></category>
            <category><![CDATA[recession]]></category>
            <category><![CDATA[finance]]></category>
            <dc:creator><![CDATA[Kyle Vock]]></dc:creator>
            <pubDate>Tue, 26 Jul 2022 01:59:18 GMT</pubDate>
            <atom:updated>2022-07-25T18:23:08.545Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LTVPCS4Vij6AuN9jYYIzvQ.png" /></figure><p><strong>Backdrop</strong></p><p>On November 19th, 2021, The Nasdaq Composite Index exceeded the $16,000 mark for the first time in history. The index rallied 130% over the course of 18 months, coming out of a global pandemic that kept billions of people around the world locked inside their homes. During those 18 months, the US economy was injected with more fiscal and monetary support than ever before. The US Congress outlaid $13.8T of fiscal spending in response to the pandemic, which represents nearly 65% of the United State’s GDP. How did they finance this spending? By issuing bonds. Who bought these bonds? Its own central bank, the Federal Reserve (Fed). The Fed’s balance sheet grew from $4.17T at the start of 2020, to over $8.75T by the end of 2021. They absorbed over $4.5T of treasuries and mortgage-backed securities in just two years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YlENXxU-wraeEUD7V6FGbg.png" /></figure><p>Both consumers &amp; the financial markets loved it. Consumers were receiving thousands in stimulus checks every few months and watched the balance in their savings accounts pile up. Meanwhile, financial markets were soaking up the excess liquidity being dumped into the economy. The Dow Jones Industrial Average rallied 90% from the COVID bottom, the S&amp;P 500 rallied 105%, and the Nasdaq Composite Index rallied 130%. The Shiller-Cape PE ratio for the S&amp;P500 jumped to over 35x, a level seen just once in the last century; the dot-com bust.</p><p>In the spirit of this pending asset bubble, here is a great quote from 2007:</p><blockquote>“As long as the music is playing, you’ve got to get up and dance. We’re still dancing.” <em>— Chuck Prince, Ex-Citi CEO, July 2007</em></blockquote><p>The US economy had a really fun party with lots of dancing and lots of drinks, but now it’s the morning after and it’s time to wake up and smell the roses; there’s a hangover coming. This unprecedented financial support from Congress &amp; the Fed didn’t go without consequence. The economy is now suffering from soaring inflation to the tune of 9.1% year-over-year prints on the Consumer Price Index (CPI).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YVkCAPN8sfxFxft8drnOIw.png" /></figure><p>The Fed has reversed course, and fast. With the goal of taming inflation, the Fed is raising rates while also allowing up to $95B of assets(bonds) to run off their balance sheet every month, a corrective action we haven’t seen in decades.</p><p><strong>Outline</strong></p><p>With the goal of keeping this review as objective as possible, we will discuss a few popular indicators for the US economy, examine how accurate they’ve been in the past, and break down where those same indicators stand today. We will go through both leading &amp; lagging indicators, so bear that in mind.</p><p>But first, let’s make sure we have the fundamentals down. What even is a recession? A recession is typically recognized as two consecutive quarters of negative real GDP growth. It can be as simple as that. However, different entities such as the National Bureau of Economic Research (NBER) break it down even further and define it as a “significant decline in economic activity, lasting more than a few months, normally visible in real GDP, real income, employment, industrial production, and wholesale-retail sales.” But for the sake of simplicity, let’s just say two-quarters of real negative GDP growth.</p><p>Q1’s GDP release in April 2022 shocked most as it came in at -1.9%, much lower than the 1% gain analysts were expecting. That means one more quarter of negative GDP growth for the US economy and it will <em>technically</em> be in a recession. So that brings us to the indicators…</p><p><strong>The indicators. First leading, then lagging.</strong></p><p><strong>#1 — Yield Curve Inversion</strong></p><p>A yield curve inverts when longer-term yields drop below shorter-term yields for debt with the same risk profile. This happens because investors expect shorter-term rates to decline soon, due to a<strong> </strong>poor economic outlook, or in some cases, a recession. For this indicator, we will observe the spread between the 2-year and 10-year treasury yields.</p><p>In the last forty years, the 10Y yield has dipped below the 2Y yield on just five occasions, of which the US experienced a recession 80% of the time within 18 months. Today, the spread is -0.2% and has been negative since the first week of July 2022. This indicator is waving a red flag for recession.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qYrs-glIw4ClxLrhj4XTtQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3X-VDD0DYeKyTm0pKwToqw.png" /></figure><p><strong>#2 — Monetary Tightening</strong></p><p>Tightening monetary conditions restricts the flow of capital and makes financing new ventures more expensive. This indicator tracks the rate of change in the Fed Funds Rate. The trigger on this indicator is 2%, or a Fed Funds Rate that is 200 basis points (bps) higher than the year prior. Over the last 65 years, we’ve hit this trigger on ten occasions, of which the US experienced a recession 80% of the time within 24 months. Today, the Federal Funds Rate is 1.5% higher than a year ago today. The CME FedWatch tool predicts another 75 bps rate hike at the Federal Reserve’s July meeting in one week&#39;s time. If this hike comes to fruition, it will raise this indicator beyond its 2% trigger and wave the red flag for recession.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UdeNRJULZknYT90CM0-ykg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Mx14Rmfv8z3dMvW2IEzpA.png" /></figure><p><strong>#3 — Conference Board Leading Economic Index (LEI)</strong></p><p>The Conference Board is a non-profit research organization. They’ve created a <a href="https://www.conference-board.org/topics/us-leading-indicators#:~:text=The%20ten%20components%20of%20The,new%20orders%20for%20nondefense%20capital">Leading Economic Index </a>(LEI) that tracks ten different leading indicators and aggregates them into one index. A positive year-over-year change in the index signals the underlying indicators are improving, and vice versa. Over the last forty years, this indicator has gone negative on six occasions, of which a recession had occurred 83% of the time within 18 months. Today, the current reading is +1.7% YoY. This signal is not raising a red flag just yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqShcf5qFIOw-06OcUXUYw.png" /><figcaption><a href="https://en.macromicro.me/charts/53/leading-gdp">https://en.macromicro.me/charts/53/leading-gdp</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Bf6cgi10PHXzvo1u1jjXg.png" /></figure><p><strong>#4 — Brave Butters Kelley Index</strong></p><p>The Brave-Butters-Kelley Index (BBKI) is a Federal Reserve Bank of Chicago research project. They use hundreds of dynamic factors to forecast the strength of US economic activity. The data is measured in standard deviation (std) units away from the real GDP growth trend. Since the 1970s, the BBKI has dropped 1.5 standard deviations below trend on just five occasions, each of which the US economy was in a recession, or soon to be in one. Today, the reading of the BBKI is 1.5 standard deviations below the trend. This signal is waving a red flag for recession.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m2mN3CyFi8RupyEfYIgGkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4uBd01G4wSZvg6_zZwThQ.png" /></figure><p><strong>Lagging</strong></p><p><strong>#5 — Consumer Sentiment</strong></p><p>The University of Michigan tracks sentiment among consumers through monthly surveys and aggregates the responses into an index score. The results are important to consider as consumer spending makes up over two-thirds of US GDP. Therefore, a strong consumer is vital to US economic growth. Over the last 40 years, consumer sentiment has dropped 15% year-over-year on eight occasions, of which the US economy has been in a recession 63% of the time. Currently, consumer confidence is down 30% YoY, a level only seen in the recession of 1990 &amp; the Great Financial Crisis of 2008. This indicator is waving the red flag for recession.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5VyXyTNSUwqlAEMe38vP_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j5iGRYiydqPsqZoSKTuYnA.png" /></figure><p><strong>#6 — Energy Prices</strong></p><p>This indicator tracks Brent Crude Oil’s price deviation above or below its trend. Energy is the #1 input cost of doing business. Whether you’re an airline paying for jet fuel, an eCommerce brand paying for freight, or a manufacturer running heavy machinery, energy is a huge cost driver for your business. Over the last fifty years, the price of crude oil has jumped 50% above its trend on six occasions, of which the US has been in a recession 100% of the time. Today, energy prices are 65% above trend, well above the trigger. This indicator is waving the red flag for recession.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70SQo3WYO5GB5DH9hHN4OQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CJ8PbakGlPXdgtvDjhawog.png" /></figure><p><strong>#7 — ISM PMI</strong></p><p>The Purchasing Managers’ Index (PMI) is a monthly indicator for US economic activity based on surveys from hundreds of purchasing managers at manufacturing firms. A PMI reading above 50 signals expansion relative to the previous month. A reading below 50 suggests contraction. Over the last sixty years, the PMI has broken below the 45 level on eight occasions, each of which the US was in a recession. This indicator is certainly “lagging”, but it’s worth noting that the current reading is 47.5, only slightly above the trigger. No red flag for recession yet, but getting really close.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XAQQtKIePDk1psH-" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HEe19q0psUkfzfQzC6WsFQ.png" /></figure><p><strong>#8 — Stock Market</strong></p><p>This indicator tracks S&amp;P500 Index Performance on a year-over-year basis. Markets are forward-looking and there may be some truth to be told if investors begin to price in a recession or a significant drop in corporate earnings. Over the last forty years, the S&amp;P500 has dropped below the -15% YoY threshold on seven occasions, of which the US has been in a recession 71% of the time. On July 14th, the S&amp;P500 index was down -13.4% YoY, just above the trigger, so no red flag for a recession just yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nhEw6PnNNiLUMkeim4YQWg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AQJRzfR9W9lokA__5viDfQ.png" /></figure><p><strong>#9 — CEO Confidence Index</strong></p><p>The Conference Board also has an indicator called the CEO Confidence Index. It is a proxy for the predicted strength of the US economy from the perspective of US-based CEOs. A reading above 50 signals a majority of outlooks being positive, while a reading under 50 signals the majority of outlooks being negative. Since the 1970s, the index has fallen below the 40-level on five occasions, each of which the US was on the way into, or already in a recession. Currently, the index is at 43, just barely above the trigger. This indicator is not waving the red flag yet, but the index is deteriorating quite rapidly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Iz0-Z8TSS6txuC6s" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hASitxNU__Nbp6YhTxGeTQ.png" /></figure><p><strong>#10 — Labor Market</strong></p><p>The labor market is the backbone of US economic growth &amp; prosperity. If less people are employed, there is less disposable income to be spent on goods and services. Since the 1940s, every single time the unemployment rate ticked up 2% year-over-year, the US was already in a recession. Currently, the US labor market remains strong with unemployment down 2.3% from last year as it bounces around 3.6%. Definitely no recession warning out of the labor market so far. A few things to note: the labor force participation rate dropped from 63.4% pre-COVID to just about 60% during COVID, and people have been slow to rejoin the workforce. Currently, the participation rate is at 62.2% and is trending back to pre-COVID levels, but just another thing to keep your eye on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_lCUFXIb9x1-EfBPn3jZMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*erQP0VqS6Xm165fCjU3gig.png" /></figure><p><strong>#11 — Durable Goods Orders</strong></p><p>Durable Goods Orders is a monthly survey conducted by the US Census Bureau that measures current industrial activity. It tracks the number of new orders for durable goods. In the last thirty years, durable goods orders have dropped 20% YoY on four occasions, of which the US was in a recession 75% of the time. The current reading is at +10.8% YoY, which is quite healthy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZY9u6pEmdgwKcZfw6q-M5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o6CxhjuiWDlmy0pFFu3MHA.png" /></figure><p><strong>Atlanta Fed GDPNow Estimate</strong></p><p>That’s it for indicators, but what does the Fed think will happen in Q2? GDPNow is an estimate from the Atlanta Federal Reserve branch for the upcoming quarter’s GDP growth. The estimate constantly changes with new incoming data points. Currently, the GDPNow estimate is -1.6% real GDP growth for Q2. If true, this would technically put the United States in a recession.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*sBTFUm64gRTUPDsj" /></figure><p><strong>Final Scorecard</strong></p><p>It’s certainly not the prettiest picture for the next twelve to eighteen months, but it’s always good to know where the fundamental economic data is pointing. I’d recommend keeping track of these indicators as we progress through this turbulent time in the market. Here is the final scorecard:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nOKiD2qBITh9pjb-KvilRQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d673936b1b7d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alpha-vantage/recession-report-card-d673936b1b7d">Recession Report Card</a> was originally published in <a href="https://medium.com/alpha-vantage">Alpha Vantage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Receive email and Slack alerts on crypto prices in a spreadsheet]]></title>
            <link>https://medium.com/alpha-vantage/receive-email-and-slack-alerts-on-crypto-prices-in-a-spreadsheet-ca9052443d31?source=rss----ba7428860009---4</link>
            <guid isPermaLink="false">https://medium.com/p/ca9052443d31</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[alpha-vantage]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[spreadsheets]]></category>
            <dc:creator><![CDATA[Natalia Medvedeva]]></dc:creator>
            <pubDate>Fri, 14 May 2021 15:24:43 GMT</pubDate>
            <atom:updated>2022-02-10T12:28:39.308Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you thinking about dipping your feet into the cryptocurrency world? Surely, you will want to know the latest about your bitcoins, eths and what is going on with dogecoin. To make it easier keeping up with the market and managing your gains and risks, you will also need a way to monitor your crypto portfolio.</p><p>We’d like to introduce you to a simple tool to receive email and Slack alerts on your cryptos and keep an eye on your new prospective investment. Using Rows template <a href="https://rows.com/templates/investment-portfolio-tracker">Track crypto with email and Slack alerts</a> and a built-in Alpha Vantage integration you can build the tool within minutes. <a href="https://rows.com/">Rows</a> is the only true spreadsheet with built-in integrations and a beautiful sharing experience. Thanks to its 50+ built-in integrations Rows instantly exports data from the tools of your choice into a spreadsheet, reducing manual work and copy&amp;paste.</p><p>This step-by-step guide will show you how to set up cryptocurrencies tracking and notifications via email and Slack:</p><ol><li>Sign up for your free account at <a href="https://rows.com/">https://rows.com/</a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HeQ3A4Yen1Ibvp8Y6CrvAQ.png" /></figure><p>2. After activating your account head to the <a href="http://rows.com/templates">Templates</a> page. It’s an internal Rows library that contains all spreadsheet templates you can use to connect for data export/import and automate your workflows.</p><p>3. Search for the <a href="https://rows.com/templates/track-crypto-with-email-slack">Track crypto with email and Slack alerts</a> template. The template is essentially a spreadsheet that already contains a few formulas to help you quickly customise your crypto tracker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5LrM-ImDaye1S1_0nh2VmQ.png" /></figure><p>4. Hit “Use Template” and follow the tutorial to learn how to use the tool and connect your spreadsheet with Alpha Vantage API. In a matter of minutes you will be ready to customize this crypto tracker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ByY7lXFfUIDGxp-OnDqtsQ.png" /></figure><p>5. In the setup table enter your email address or your Slack name depending on where you would like to activate the notifications. Now you can set up how often you would like to get notified. Hit “SCHEDULE” and correct the frequency and time. The tracking is set to daily notifications at 9:05 am by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wwf_pABLz3j8vKKRYm1gfg.gif" /></figure><p>6. In the Tracker table are already listed 20 most popular cryptos, their current exchange rate and the date/time of the latest rate update. You can easily modify this list by adding cryptos of your interest and removing irrelevant ones. Any time you can go back and make changes in your settings and cryptocurrencies list.</p><p>7. All set? Check boxes to activate email or Slack tracking (or both) and instantly start receiving your alerts. From now on you will receive regular alerts according to the schedule you set up.</p><p>Use the <a href="https://rows.com/templates/track-crypto-with-email-slack">Track crypto with email and Slack alerts</a> template to easily set up your personal tracker and alerts and stay on top of your crypto game.</p><p><em>Disclaimer: This a guest article by an employee of Rows GmbH. The views and opinions expressed in this article are those of the author and do not necessarily reflect the official position of Alpha Vantage, or any of its affiliates or subsidiaries. The accuracy, completeness and validity of any statements made within this guest article are not guarantees and we accept no liability for any errors, omissions or representations.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca9052443d31" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alpha-vantage/receive-email-and-slack-alerts-on-crypto-prices-in-a-spreadsheet-ca9052443d31">Receive email and Slack alerts on crypto prices in a spreadsheet</a> was originally published in <a href="https://medium.com/alpha-vantage">Alpha Vantage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AlphaVHack Winners and hackathon!]]></title>
            <link>https://medium.com/alpha-vantage/alphavhack-winners-and-hackathon-dd64b2b3fea8?source=rss----ba7428860009---4</link>
            <guid isPermaLink="false">https://medium.com/p/dd64b2b3fea8</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[alphavhack]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[fintech]]></category>
            <dc:creator><![CDATA[Patrick Collins]]></dc:creator>
            <pubDate>Sat, 06 Jun 2020 13:43:19 GMT</pubDate>
            <atom:updated>2020-08-31T16:45:37.922Z</atom:updated>
            <content:encoded><![CDATA[<h3>AlphaVHack Hackathon Winners Announced!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vKxS-7tBVrZJjwXY.png" /></figure><p>From May 29 — May 31, nearly 100 software engineers, financial advocates, beginners and experienced alike, entered the Alpha Vantage first virtual hackathon.</p><p>It was a fast-paced 3 days, where beginners and experienced engineers alike threw themselves into the world of fintech, looking to build something innovative.</p><p>With valuable prizes up for grabs, and a ton of workshops to help the engineers, there was a lot of support to give them the motivation and tools they needed. Some worked tirelessly without any sleep for the weekend, to build an interesting use case for themselves and the judges.</p><p>Here were the winners of each category!</p><h3>Blockchain track winner: Blockaxis</h3><p>They also won a judges award!</p><p><a href="https://devpost.com/software/blocktrade">BlockAxis</a></p><p>BlockAxis is a blockchain-based hybrid trading platform that enables users around the globe to gain access and trade in the foreign equity markets. The economic signal for investing in equity (stock) markets is a strong one in the COVID-19 era. A recent <a href="http://blogs.harvard.edu/econreview/2020/08/25/why-you-need-a-reliable-stock-market-data-api-in-2020/">economic review article</a> observes that “The COVID-19 pandemic has created the greatest economic crisis since the Great Depression. Unsurprisingly, 2020 has so far been a rollercoaster ride for investors in the public equity markets. Despite the higher volatility, it is still as important as ever for individuals to be invested in the public equity markets for their long-term financial health.” Under the macroeconomic backdrop, BlockAxis mixes the elements of both centralized and decentralized exchanges and reaps their benefits. Instead of using fiat currency as the medium of stock purchases, it uses stablecoins such as DAI which are primarily designed to maintain its stable price and avoid market volatility unlike traditional cryptocurrencies like Bitcoin or Ethereum.</p><p>Along with a beautiful UI, the team of Saffat Aziz, Thomas Hai Li from the University of Ottawa, High school student Mihir Kachroo, and Arianne Ghislaine Rull of L’Amoreaux Collegiate Institute worked day and night to build this project that won both a grand prize and judges pick award, bringing their total prize up to 75LINK token. Congratulations to all!</p><h3>Fintech Track Winner: Nick’s mega-cap momentum trading strategy</h3><p><a href="https://devpost.com/software/stock-data-trade-simulator-and-basic-strategy-implementation">Stock Data Trade Simulator and Basic Strategy Implementation</a></p><p>This is a trading simulator with one strategy built-in. Other strategies could be added and run against Alpha Vantage data to find more patterns and learn more about the markets. The strategy uses a reverse head-and-shoulders approach to predict the momentum of securities and assigns alpha to them based off their movements.</p><p>Nick came into the hackathon knowing little about fintech and how to code it with python, and ended up leaving winning a 6 month 120 API call/minute key! The judges were impressed with a backtested (albeit a relatively short timeframe) trading strategy built from scratch in just a few days.</p><p>Built with python, his code is on Github if you want to try it out yourself, suggest improvements, or fork it to do whatever you’d like.</p><h3>Judge’s Pick: SmartHealth</h3><p>Also the rookie award!</p><p><a href="https://devpost.com/software/smarthealth-health-insurance-smart-contract">SmartHealth - Health Insurance Smart Contract</a></p><p>SmartHealth is a smart contract in which its owner can create a mapping for both doctors and people of the country. Respectively, a specific doctor will be assigned to a specific person. Built entirely with solidity, this ETH based medical system could be used to store patient information on-chain, solving the issue of losing patient data and making patient data easier to share with other hospitals, while still keeping it private.</p><p>The most robust solidity contract in the competition, Sumit Banik of the Siliguri Institute of Technology proudly presents one of his earliest dives into the Ethereum and blockchain world and happily won two prizes over a thrilling weekend.</p><h3>Judges Pick: VC Links</h3><p><a href="https://devpost.com/software/alpha-v-hacks">VCLinks</a></p><p>VCLinks connects entrepreneurs to venture capitalists looking to provide financing and expertise for projects. Entrepreneurs can easily create listings that describe their venture and their areas of interest, along with a recorded pitch and contact details. Additional details such as the amount of funding, type of funding, and financial details are provided upon further request. Venture capitalists can also express interest in certain industries or projects and will be required to complete a profile to facilitate our advanced tag searching features.</p><p>VCLinks can empower VC firms and entrepreneurs to meet in an easy, fun, interactive way. Powered by Edward Lee, Eli-Henry Dykhne, Kelvin Chen, and Ashmita Rajkumar, this is their team&#39;s first hackathon win and they are so proud of it!</p><p>I’d be sure to watch out for all these engineers in the future, as they have some great ideas and a lot of hard work to get them places.</p><p>Congratulations to all again!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd64b2b3fea8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alpha-vantage/alphavhack-winners-and-hackathon-dd64b2b3fea8">AlphaVHack Winners and hackathon!</a> was originally published in <a href="https://medium.com/alpha-vantage">Alpha Vantage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Live Charts with the Alpha Vantage Excel 365 Add-in]]></title>
            <link>https://medium.com/alpha-vantage/live-charts-with-the-alpha-vantage-excel-365-add-in-e74ae34d1562?source=rss----ba7428860009---4</link>
            <guid isPermaLink="false">https://medium.com/p/e74ae34d1562</guid>
            <category><![CDATA[market-data]]></category>
            <category><![CDATA[office-365]]></category>
            <category><![CDATA[equity]]></category>
            <category><![CDATA[currency]]></category>
            <category><![CDATA[excel]]></category>
            <dc:creator><![CDATA[Efrem Sternbach]]></dc:creator>
            <pubDate>Wed, 26 Feb 2020 02:13:02 GMT</pubDate>
            <atom:updated>2020-11-10T00:13:08.055Z</atom:updated>
            <content:encoded><![CDATA[<h3>Charts with the Alpha Vantage Excel 365 Add-in</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*rZLVG0fhf9frBJiOqUwoaw.png" /></figure><p>One of the cool features in the Office 365 API is the ability to set up streaming functions in Excel that update themselves at a predetermined interval. Today we are going to demonstrate how to set up a “live” updating chart for a forex series. Users should be aware that unless you have a premium membership with Alpha Vantage, this example will burn through your data allowance quickly. The intra-day series are updated at the same frequency as the series. For example, a 1-minute series will be updated every minute.</p><p>Alpha Vantage does not offer tick by tick data. However, we do offer intra-day forex series that update every minute. That’s more than enough data to create a chart that updates during the day. We’re assuming here that you already have the <a href="https://medium.com/alpha-vantage/install-the-alpha-vantage-office-365-excel-add-in-4d5f957b6f27">Alpha Vantage Market Data Add-in</a> installed and have entered your API key.</p><p>The first thing we note are the numbers in the Date column. No worries! This is just because dates in Excel are actually floating numbers and we have to format them to look like we want. Excel has a few standard date formats you can choose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/151/1*Hjb8eqOg_kiWAErPWZq_IQ.png" /></figure><p>If you want, you can customize your format any way you like. For longer series of intraday forex data, I like seeing a datetime. There is a pre-defined format under “Custom” in the Format dialog that gives me the date time to the minute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*40uCxBAjZ9p8x-S_zSoyZw.png" /></figure><p>However, for the purposes of this example where we are only charting the current day’s data, I can format the Date column as a time of day.</p><p>When using Alpha Vantage routines with an output size of “compact” the series is limited to the most recent 100 points. This is fine for many charting applications but sometimes we want to view fewer than 100 points.</p><p>We can then apply a filter to limit data to the last 30 data points using the FILTER function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*5eVVjOYdh7pwAvvDqW74kg.png" /></figure><p>Here we are saving the FILTER result to a separate location in the worksheet. In principle you could nest a query formula within the FILTER formula (replace <em>E2#</em> with the appropriate Alpha Vantage formula). However, as we’ll see later, the flexibility will help when trying to use Excel’s financial chart types.</p><p>At this moment we’ll take a short aside to explain the <em>E2#</em> notation. There is a formula returning a dynamic array to cell <em>E2</em>. The notation <em>E2#</em> says take the entire output range of that formula. Pretty cool, right?</p><p>So, in our spreadsheet the filtered output formula is in <em>L5</em>. So just select that individual cell and choose to insert an area chart from the Excel <strong>Insert</strong> tab.</p><p>Let’s start by selecting the specific series to chart. Right click on the chart and choose “Select Data…”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*zZVcK9Oc7LNhPDgF1OlcmQ.png" /></figure><p>Then you can choose the series you want in this chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*uwkV4iCLWLmRhOYFJh7XZQ.png" /></figure><p>I only want to look at the price at the end of each interval, so I uncheck all the series except <em>close</em>.</p><p>Let’s adjust the time axis. Right click in the area of the times and select “Format Axis…”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/203/1*8eEf4dxjOrjc_Ss239qI_w.png" /></figure><p>We select “Categories in reverse order.”</p><p>Those of you who have used Excel’s financial chart types know that the input data must be in a specific format. For example, the first column header must be the name of the entry (instead of “Date” which is returned by the time series query). Since our data is almost in the right format, we only need to modify the FILTER function so that the header row is not reproduced. This way we can enter our own values for the header values.</p><p>Remember from previous formulas that the cell <em>N2 </em>contains the number of points to be charted. Now we select all the columns except Volume including the customized headers. While this region is selected, we then choose from the Insert tab to make an Open/High/Low/Close chart. As with the previous example you will have to choose to reverse the x axis so that later times are on the right.</p><p>Both of the charts we’ve built will update every minute.</p><p><strong>Look what you can build in a few minutes with Alpha Vantage and Excel!</strong></p><p><strong>Questions? Comments? Feel free to leave us a message below! You can also reach out to us for spreadsheet-specific topics </strong><a href="http://spreadsheets@alphavantage.co"><strong>here</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e74ae34d1562" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alpha-vantage/live-charts-with-the-alpha-vantage-excel-365-add-in-e74ae34d1562">Live Charts with the Alpha Vantage Excel 365 Add-in</a> was originally published in <a href="https://medium.com/alpha-vantage">Alpha Vantage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install the Alpha Vantage Office 365 Excel Add-in]]></title>
            <link>https://medium.com/alpha-vantage/install-the-alpha-vantage-office-365-excel-add-in-4d5f957b6f27?source=rss----ba7428860009---4</link>
            <guid isPermaLink="false">https://medium.com/p/4d5f957b6f27</guid>
            <category><![CDATA[market-data]]></category>
            <category><![CDATA[currency]]></category>
            <category><![CDATA[equity]]></category>
            <category><![CDATA[office-365]]></category>
            <category><![CDATA[excel]]></category>
            <dc:creator><![CDATA[Efrem Sternbach]]></dc:creator>
            <pubDate>Sun, 23 Feb 2020 16:37:17 GMT</pubDate>
            <atom:updated>2020-11-10T00:16:03.199Z</atom:updated>
            <content:encoded><![CDATA[<p>The <a href="https://docs.microsoft.com/en-us/office/dev/add-ins/reference/overview/excel-add-ins-reference-overview">JavaScript API for building Add-ins for Office 365 applications</a> shows a lot of promise. Unfortunately, it also gives the strong impression of a work in progress. Enough functionality is available for us to build a pretty cool Add-in to pull <a href="https://medium.com/alpha-vantage">Alpha Vantage</a> data into your spreadsheets. Here we’ll give you the pros and cons as well as the instructions on how to install the Add-in.</p><p>First of all the Add-in is for Office 365 only. This means that if you don’t have a subscription you will not be able to use the Add-in. On the other hand, if you do have a subscription you’ll be able to use the Add-in on desktop Windows, desktop Mac and browser versions of Excel.</p><h3>Requirements and Caveats</h3><p>If you have an Office 365 subscription you’ll still have to be on a Monthly or Insider channel to use this Add-in properly. The Add-in depends on a feature called <a href="https://docs.microsoft.com/en-us/office/dev/add-ins/excel/custom-functions-dynamic-arrays">dynamic arrays</a> to return blocks of data from a function. At the time of this writing the functionality is not available on the Semi-Annual channel though the expectation is that the next update in July should contain the necessary functionality. Microsoft seems to generally recommend the Monthly channel unless your company has sensitive applications running in Excel. If you’re stuck on the Semi-Annual channel it is possible to use the Add-in but you’ll have to enter formulas as array formulas (CTRL+SHIFT+ENTER). It’s much more cumbersome than working with the dynamic arrays.</p><p><strong>Setting your Office 365 Channel</strong></p><p>On a Windows machine there are a couple ways to set the channel. Not as simple as it should be. Some helpful links</p><ul><li><a href="https://erwinbierens.com/switch-office-2016-to-monthly-targeted-channel/">Switch Office 2016 to Monthly Targeted Channel</a></li><li><a href="https://www.solver.com/switching-office-365-monthly-update-channel">Switching to the Office 365 Monthly Update Channel</a></li></ul><p>On a Mac OSX machine you can set the channel in the Microsoft AutoUpdate application. Insider/Slow is the same as Monthly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*Jlk_cmyEk4HqXBvo-thcmw.png" /><figcaption>Setting Office 365 Channel on Mac OSX</figcaption></figure><p><strong>Error Handling</strong></p><p>The other main issue with the current JavaScript api is that it’s difficult (impossible?) to return useful error information from a failed function invocation. We’re waiting for wider release of error handling code (see :<a href="https://docs.microsoft.com/en-us/office/dev/add-ins/excel/custom-functions-errors">https://docs.microsoft.com/en-us/office/dev/add-ins/excel/custom-functions-errors</a>). Our Add-in is pretty cool but don’t expect much information at the moment if something fails.</p><h3>Installing the Add-in!</h3><p>The Office 365 web Add-ins cannot be directly downloaded. The Add-in must be installed directly from Microsoft using an account with an active Office 365 subscription.</p><p>To download the Add-in from either a desktop or browser based version of Excel go to the <strong>Insert</strong> ribbon interface. On a desktop version of Excel this should look something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*lY_-owdHUSILXHt7v-KcuQ.png" /></figure><p>In the browser version of Excel this should look something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*n0mEGAMPoVk9ci4Jf1Uefw.png" /></figure><p>This will bring up an online store run by Microsoft. You can search for “Alpha Vantage” and install the Add-in from there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*nYdc9mCJijw1CAP4mXRnGA.png" /></figure><p>After installation you should see a ribbon tab named <strong>Alpha Vantage(Web)</strong> added to Excel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*f1YRJrtbw-XcwUUvoZdh8g.png" /></figure><p>The actual ribbon will look like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*btNS9VJg9B8Rcv6aD8NquA.png" /></figure><p>In order to use this Add-in you will need a valid Alpha Vantage API key. You can request one <a href="https://www.alphavantage.co/support/#api-key"><strong>here</strong></a> if you don’t already have one. On the <strong>Alpha Vantage(Web)</strong> ribbon tab select either the Info or Tasks button on the left. This will open a taskpane on your page. Scroll to the bottom of the pane and find the text box to update your API key at the bottom. If you have previously entered your API key you should see it here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*gUPekYLPcswgD68WJbsTRw.png" /></figure><p>We’ll be publishing new blog posts soon on ways you can get the most out of the Add-in.</p><h3>Enjoy!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d5f957b6f27" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alpha-vantage/install-the-alpha-vantage-office-365-excel-add-in-4d5f957b6f27">Install the Alpha Vantage Office 365 Excel Add-in</a> was originally published in <a href="https://medium.com/alpha-vantage">Alpha Vantage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a simple Chainlink node on the GCP]]></title>
            <link>https://medium.com/alpha-vantage/how-to-build-a-simple-chainlink-node-on-the-gcp-62df9e7801a2?source=rss----ba7428860009---4</link>
            <guid isPermaLink="false">https://medium.com/p/62df9e7801a2</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Patrick Collins]]></dc:creator>
            <pubDate>Sat, 01 Feb 2020 03:40:29 GMT</pubDate>
            <atom:updated>2020-08-31T05:15:06.549Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to get a simple CL node running right now on the GCP</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lL3aVQIwFayIy10unmtd_Q.png" /></figure><p><a href="https://chain.link/">Chainlink</a> has quickly become one of our favorite cryptocurrency projects here at <a href="https://www.alphavantage.co/">Alpha Vantage</a>. They easily allow external data to be placed onto the blockchain for ETH developers to create <a href="https://www.investopedia.com/terms/s/smart-contracts.asp">smart contracts</a>. Smart contracts have seemingly limitless applications, and getting stock market, cryptocurrency, forex, and other data are essential for creating substantial financial and investing applications.</p><p>The Chainlink team has put A LOT of work into making this process simple and easy for node operators to do, however the infrastructure is up to you. This how-to will give you a basic rundown of how to get one up.</p><p>Things that are beyond the scope of this article include:</p><ul><li>Monitoring scripts and tools</li><li>Deployment and maintenance best practices</li><li>Password protection and job creation</li><li>How to generate traffic to your node</li></ul><p>What it does give is a good idea of how simple it is to at least start.</p><p>We made a video on it, check it out here! (updated)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Ft9Uknfw27IU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dt9Uknfw27IU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Ft9Uknfw27IU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0cce01d6d29683447717a9ff4acdb96c/href">https://medium.com/media/0cce01d6d29683447717a9ff4acdb96c/href</a></iframe><p>Before you get into the instructions from the CL team themselves <a href="https://docs.chain.link/docs/running-a-chainlink-node">here</a>, there are just a few things to set up on the <a href="https://console.cloud.google.com/">Google Cloud Platform</a>.</p><ol><li>A Virtual Machine</li><li>A Database</li><li>Gcloud command line on your local machine</li></ol><h4>Why would you want to run a CL node?</h4><ul><li>Help the decentralization community</li><li>Collect rewards in LINK token</li><li>Learn more about how Chainlink and the Ethereum developers work</li></ul><p>For those with some devops experience or technical background, this will all seem straightforward. A more sophisticated tutorial can be found <a href="https://medium.com/secure-data-links/running-chainlink-nodes-on-kubernetes-and-the-google-cloud-platform-1fab922b3a1a">here</a>, which helps set up kubernetes to help maintain the docker containers.</p><p>#blockchain #chainlink #GCP #tutorial</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62df9e7801a2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alpha-vantage/how-to-build-a-simple-chainlink-node-on-the-gcp-62df9e7801a2">How to build a simple Chainlink node on the GCP</a> was originally published in <a href="https://medium.com/alpha-vantage">Alpha Vantage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding artificial intelligence to your investing strategy; part 2]]></title>
            <link>https://medium.com/alpha-vantage/adding-artificial-intelligence-to-your-investing-strategy-part-2-f409a03a2c94?source=rss----ba7428860009---4</link>
            <guid isPermaLink="false">https://medium.com/p/f409a03a2c94</guid>
            <category><![CDATA[sklearn]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[stockapi]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Patrick Collins]]></dc:creator>
            <pubDate>Wed, 29 Jan 2020 05:16:05 GMT</pubDate>
            <atom:updated>2020-01-29T05:16:05.148Z</atom:updated>
            <content:encoded><![CDATA[<h3>Clean and visualize your data</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*haVxaVcglJ1-Kh7N.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@franckinjapan?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Franck V.</a> on <a href="https://unsplash.com/s/photos/ai?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>There are a few steps in every machine learning / AI project (and also algorithmic trading/investing!), these are:</p><ol><li>Get data</li><li>Play with the data and discover insights through visualization</li><li>Clean and prepare the data</li><li>Train a model</li><li>Fine-tune it</li><li>Run real-time, monitor, and maintain</li><li>Repeat with new insights (important!)</li></ol><p>For this tutorial, we are going to focus on how python/scikit can help us with steps 1–4.</p><p>Let’s say we think that there might be some relationship between daily percent change with TSLA, GOOGL, and SPY. Luckily, with <a href="https://www.alphavantage.co/">Alpha Vantage</a> the first step to getting this data is easy. You may need pip install a few things!</p><pre>from alpha_vantage.timeseries import TimeSeries<br>import pandas as pd<br>from datetime import datetime</pre><pre>ts = TimeSeries(output_format = &#39;pandas&#39;, key = &quot;XXX&quot;)<br># If you have your ALPHAVANTAGE_API_KEY you can just use:<br># ts = TimeSeries(output_format = &#39;pandas&#39;)<br># Get a free key at <a href="https://www.alphavantage.co/support/#api-key">https://www.alphavantage.co/support/#api-key</a></pre><pre>spy, spy_meta_data = ts.get_daily_adjusted(symbol = &#39;SPY&#39;, outputsize = &#39;full&#39;)<br>spy.insert(0, &quot;ticker&quot;, &#39;SPY&#39;, True)<br>spy = spy.reset_index()</pre><pre>tsla, tsla_meta_data = ts.get_daily_adjusted(symbol = &#39;TSLA&#39;, outputsize = &#39;full&#39;)<br>tsla.insert(0, &quot;ticker&quot;, &#39;TSLA&#39;, True)<br>tsla = tsla.reset_index()</pre><pre>spy = spy[spy[&#39;date&#39;] &gt;= tsla.min().date]</pre><p>This will give you 2 dataframes, one of <a href="https://www.tesla.com/">Tesla</a> and the <a href="https://money.cnn.com/data/markets/sandp/">S&amp;P500 index</a>, which is great! We can start some initial screening of the data… Although you may quickly find out that in this format, there isn’t much to explore.</p><pre>import matplotlib.pyplot as plt<br>tsla.hist(bins=50, figsize=(20,15))<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hX52u-pTAClXEyx0qfRk1g.png" /></figure><p>This doesn’t tell us much of anything. Let’s add some columns and merge the two dataframes.</p><pre>spy.insert(10, &quot;9. % change&quot;, spy[&#39;5. adjusted close&#39;].pct_change(), True)<br>spy.insert(11, &quot;10. weekday&quot;, spy[&#39;date&#39;].dt.dayofweek, True)<br>tsla.insert(10, &quot;9. % change&quot;, tsla[&#39;5. adjusted close&#39;].pct_change(), True)<br>tsla.insert(11, &quot;10. weekday&quot;, tsla[&#39;date&#39;].dt.dayofweek, True)<br>from functools import reduce<br>dfs = [tsla, spy]<br>tickers = reduce(lambda left,right: pd.merge(left,right,how = &#39;outer&#39;), dfs)<br>tickers = tickers.sort_values(by = [&#39;date&#39;, &#39;ticker&#39;])<br>tickers</pre><p><a href="https://www.geeksforgeeks.org/reduce-in-python/">Click here to learn more about reduce</a>, and <a href="https://realpython.com/python-lambda/">here to learn about lambda functions in python</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ggTU7Ip2szaSqOiPxr33FA.png" /></figure><p>Now that we have our data in a better format, we can start using some tools to look for trends, here are some common ones:</p><pre>tickers.info()<br>tickers[&quot;ticker&quot;].value_counts()<br>tickers.describe()</pre><p>Of course, this original data isn’t really that helpful, so we have to dig a little deeper. By setting our strings to integers, we can visualize comparisons between tickers and dates. (But only temporarily, we’ll touch on this more later)</p><pre>test_tickers = tickers.copy()<br>test_tickers.loc[(test_tickers[&#39;ticker&#39;] == &#39;SPY&#39;), &#39;ticker&#39;] = 0<br>test_tickers.loc[(test_tickers[&#39;ticker&#39;] == &#39;TSLA&#39;), &#39;ticker&#39;] = 1</pre><pre>test_tickers.plot(kind=&#39;scatter&#39;, x=&#39;weekday&#39;, y=&#39;% change&#39;, alpha=0.5, s=test_tickers[&quot;6. volume&quot;]/100000, figsize=(10,7), label = &quot;volume&quot;, c = &#39;ticker&#39;, cmap=plt.get_cmap(&#39;jet&#39;), colorbar = True)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZzPwVJVCwEtUcVyu54lQMw.png" /></figure><p>This gives us a little more meaningful comparison of data, and we can use the scatter_matrix object to get another visualization of correlations between variables.</p><pre>from pandas.plotting import scatter_matrix</pre><pre>attributes = [&quot;6. volume&quot;, &quot;5. adjusted close&quot;,<br>              &quot;1. open&quot;, &#39;weekday&#39;, &#39;% change&#39;]<br>scatter_matrix(tickers[attributes], figsize=(12, 8))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cn_ZsOcg0fid4MsznCOYsA.png" /></figure><p>Or more appropriately with test_tickers.corr()</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8jRakVqkUjoaFktMVyxmrg.png" /></figure><p>The correlations go from -1 to 1, where 1 means they are directly proportional, -1 is inversely proportional, and the closer to 0 they are, the less of any sort of correlation they have.</p><p>Sadly, it doesn’t look like we’ve found much for trends here, but it can still be fun to see what you can do. Let’s try to incorporate this data into a machine learning algorithm. We first need to clean the data. You’ll notice above we set weekdays and ticker symbols to numbers. This was OK just to visualize the data, but it may skew the results, offering some sort of linear correlation between the workdays. The better way to do this is to set a bunch of binary variables, for example monday = True, tuesday = False, etc..</p><p>However, this can be really annoying, and eventually we’d have a massive array of data! An easier way to accomplish this is using the OneHotEncoder package. We also want to <a href="https://www.geeksforgeeks.org/ml-feature-scaling-part-2/">scale</a> features, we do a really simple version of that here.</p><pre>from sklearn.preprocessing import OneHotEncoder<br>from sklearn.compose import ColumnTransformer<br>from sklearn.preprocessing import StandardScaler<br>from sklearn.impute import SimpleImputer</pre><pre>tickers = tickers.sort_values(by = [&#39;ticker&#39;, &#39;date&#39;])<br>tickers_list = tickers[[&#39;ticker&#39;]]<br>tickers[&#39;date&#39;] = tickers[&#39;date&#39;].astype(int)<br>category_encoder = OneHotEncoder()<br>tickers_1hot = category_encoder.fit_transform(tickers_list)</pre><pre>num_attribs = list(tickers.drop(&#39;ticker&#39;, axis = 1))<br>category_attribs = [&#39;ticker&#39;]</pre><p>This makes the data easier for the ML model to digest. For cleaning data, there are often a lot of steps. Sklearn has a pipeline package to help ease the standardization of pipelining data, and you can add methods to be enacted on all data transformations.</p><pre>import numpy<br>from sklearn.pipeline import Pipeline</pre><pre>num_pipeline = Pipeline([<br>        (&#39;std_scaler&#39;, StandardScaler()),<br>    ])</pre><pre>full_pipeline = ColumnTransformer([<br>        (&quot;num&quot;, num_pipeline, num_attribs),<br>        (&quot;cat&quot;, OneHotEncoder(), category_attribs),<br>    ])<br>tickers_prepped = full_pipeline.fit_transform(tickers)</pre><p>The last thing to do is fit it on a ML model. We are going to use a regression model again.</p><pre>from sklearn.linear_model import LinearRegression<br>tickers = tickers.dropna()<br>tickers_labels = tickers[&#39;% change&#39;].dropna().copy()<br>lin_reg = LinearRegression()<br>lin_reg.fit(tickers_prepped[1:], tickers_labels[1:])</pre><p>Since we trained our model on the entire dataset, our model may be a bit overfitted. We are going to ignore that at the moment, but in the future, you really want to train you model on a subset and then test it on a different subset. Sklearn has some tools for that next time too!</p><pre>from sklearn.model_selection import train_test_split</pre><pre>train_set, test_set = train_test_split(tickers, test_size=0.2, random_state=2, shuffle = False)</pre><p>This will give you a test set and and a training set to do exactly that. Anyways, now that we have our model trained, we can start making predictions, including on what we have already tested.</p><pre>some_data = tickers.iloc[:5]<br>some_labels = tickers_labels.iloc[:5]<br>some_data_prepared = full_pipeline.transform(some_data)</pre><pre>print(&quot;Predictions:&quot;, lin_reg.predict(some_data_prepared))<br>print(&quot;Labels:&quot;, list(some_labels))</pre><p>Returns:</p><pre>Predictions: [ 0.00959096  0.00447642  0.00547957 -0.00651265 -0.03053395]<br>Labels: [0.009590964598126028, 0.004476416039214115, 0.005479565662968255, -0.006512645101450443, -0.03053395044822982]</pre><p>We can see that the predictions match pretty close to what the actually were.</p><p>These were just some quick tips on how to start playing with data and some of the awesome stuff you can do in python. To get even MORE in depth, check out the <a href="https://github.com/ageron">ageron</a>/<a href="https://github.com/ageron/handson-ml">handson-ml</a> github repo, which walks through the <a href="https://ebooksrocket.com/hands-on-machine-learning-with-scikit-learn-and-tensorflow-1st-ed-ebook-pdf/">Machine Learning and Deep Learning in python using Scikit-Learn and TensorFlow.</a></p><p><a href="https://github.com/ageron/handson-ml">GitHub - ageron/handson-ml: A series of Jupyter notebooks that walk you through the fundamentals of Machine Learning and Deep Learning in python using Scikit-Learn and TensorFlow.</a></p><p>What are some tools you use to clean and visualize data? Share with us in the comments below!</p><h3>Want to learn more?</h3><p><a href="https://medium.com/alpha-vantage"><em>Follow Alpha Vantage on Medium </em></a><em>and see the tutorials that are coming out soon, with content like blockchain applications, machine learning with python, hackathons, and a ton of other helpful content.</em></p><p><em>You can reach us also on </em><a href="https://alphavantage.herokuapp.com/"><em>slack,</em></a><em> </em><a href="https://twitter.com/alpha_vantage?lang=en"><em>twitter</em></a><em>, or </em><a href="https://discord.gg/6BebAX3"><em>discord</em></a><em>.</em></p><p><em>#investing #machinelearning #AI #stockapi #fintech</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f409a03a2c94" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alpha-vantage/adding-artificial-intelligence-to-your-investing-strategy-part-2-f409a03a2c94">Adding artificial intelligence to your investing strategy; part 2</a> was originally published in <a href="https://medium.com/alpha-vantage">Alpha Vantage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding artificial intelligence to your investing strategy; part 1]]></title>
            <link>https://medium.com/alpha-vantage/start-your-artificial-intelligence-strategy-part-1-516460644c1d?source=rss----ba7428860009---4</link>
            <guid isPermaLink="false">https://medium.com/p/516460644c1d</guid>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[scikit-learn]]></category>
            <dc:creator><![CDATA[Patrick Collins]]></dc:creator>
            <pubDate>Fri, 10 Jan 2020 20:28:58 GMT</pubDate>
            <atom:updated>2020-01-10T20:40:11.240Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9fGX8S5R1yHFwpJQ2KEoEw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@franckinjapan?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Franck V.</a> on <a href="https://unsplash.com/s/photos/ai?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><blockquote>At the end of this article will be an example of how to build a simple model that predicts the prices of stocks in the future, integrated with some AI tools.</blockquote><p>With all the advances in artificial intelligence (AI), it’s easier than ever to get started building a strategy that uses machine learning and AI right out of the box. There are a plethora of reasons why individuals and institutions choose to have strategies involving AI techniques.</p><p>Robo-advisors like <a href="https://www.betterment.com/">Betterment</a>, <a href="https://www.sofi.com/invest/automated/">SoFi</a>, and <a href="https://www.wealthfront.com/">Wealthfront</a> stake the majority of their existence on their AI-powered strategies.</p><p>It can sound daunting to get started, but their are a lot of reasons why a lot of these companies have popped up in the last few years, and there are a lot of tools for you to start integrating AI into your investment strategies right now.</p><p>Before we get started, first a little bit of a clarification.</p><h3>AI vs Machine Learning</h3><p>AI and machine learning are often used interchangeably, but they mean slightly different things. Simply put, AI is the execution of learnt information while machine learning is the process of gaining insight from data.</p><p>In order to have AI, you need to learn or be learning first. Only then can your system actually make decisions. We want to first teach a system, and then have it make decisions. It’s the same as how a human works to build strategies:</p><ol><li>Learn and train your decision making (Machine learning)</li><li>Make decisions/predictions (AI)</li></ol><h3>Tools</h3><p>One of the main reasons it has become so easy to get started in AI is the massive amount of tools available. We are going to look at the python ones for this article, since <a href="https://www.infoworld.com/article/3401536/python-popularity-reaches-an-all-time-high.html">python has recently become the most popular language in the world</a>, and its library of AI tools.</p><p>To get started, we’ve recently become fans of the book <a href="https://www.amazon.com/gp/product/1491962291/ref=as_li_tl?ie=UTF8&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1491962291&amp;linkCode=as2&amp;tag=alphavantage-20&amp;linkId=55dac773663095b9e9cdeceedd42e88e">Hands-On Machine Learning with Scikit-Learn and TensorFlow</a>. It has all of its examples online that you can try out right now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TcnrDlkZuS7ISIe2.jpg" /><figcaption>A-Z of AI</figcaption></figure><p>Python also has some additional open source and out-of-the box tools to play with:</p><ul><li><a href="https://pandas.pydata.org/">Pandas</a>/<a href="https://numpy.org/">Numpy</a> for easy data manipulation.</li><li><a href="https://keras.io/">Keras</a> for deep learning. Here is GitHub user <a href="https://github.com/driemworks">driemworks</a>’ implementation of <a href="https://github.com/driemworks/agatha">Keras on Alpha Vantage data</a>. A little humor thrown in there too :)</li><li><a href="https://matplotlib.org/tutorials/index.html">Matplotlib</a> for data visualization.</li><li><a href="http://deeplearning.net/software/theano/">Theano</a> so you can define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently.</li><li><a href="https://scikit-image.org/">Scikit-image</a> for image processing.</li><li><a href="http://pybrain.org/">PyBrain</a> for neural networks, unsupervised and reinforcement learning.</li></ul><p>Now as I mentioned above, with so many tools, it’s easy to feel overwhelmed. You can start however, with something as simple as a linear regression.</p><h3>Linear Regression -&gt; Sophisticated AI strategy</h3><p>A linear regression is a simple type of predictive analysis. It is the attempt to model the behavior of two variables in a linear way. Or put more simply, get a straight line on a graph that somewhat accurately shows the relationship.</p><p>For example, if we want to look at the variables time (x axis) and price (y axis) and see if there is a relationship for a ticker (TSLA).</p><p>As stated above, the two steps are:</p><ol><li>Learn/train</li><li>Make decisions/predictions</li></ol><p>Let’s start with TSLA. Here is a graph of the TSLA’s stock price dating back to its IPO:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*wS0QJQmu65MxXV3WcKeJYg.png" /></figure><p>We can get this graph pretty easily with this code:</p><pre># Code example<br>import matplotlib.pyplot as plt<br>import pandas as pd<br>from alpha_vantage.timeseries import TimeSeries</pre><pre># Remember to have an environment variable named:<br>#ALPHAVANTAGE_API_KEY<br># otherwise, use:<br># ts = TimeSeries(output_format = &quot;pandas&quot;, key = &lt;key_here&gt;)<br>ts = TimeSeries(output_format = &quot;pandas&quot;)</pre><pre>tsla_data, meta_data = ts.get_daily_adjusted(symbol = &#39;TSLA&#39;, outputsize = &#39;full&#39;)</pre><pre># Visualize the data<br>tsla_data = tsla_data.reset_index() # Make the index a column<br>tsla_data.plot(x = &#39;date&#39;, y = &#39;5. adjusted close&#39;)<br>plt.show()</pre><p>This is the dataset that we want to train on.</p><p>Remember we are going to make a linear regression, so we are looking for a simple straight line. I’m sure many of you know a number of ways you could do it yourself, but python tools make it easier so you can save your brainpower and time elsewhere.</p><p>Using the sklearn.linear_model python package, we can simply tell your computer to train on this dataset, and then use that data to make a linear prediction. Add the following code to the code above:</p><pre>import sklearn.linear_model<br># The prediction package doesn&#39;t work with dates<br># So we convert all the dates in the index to floats<br>tsla_data[&#39;date&#39;] = tsla_data[&#39;date&#39;].values.astype(float)</pre><pre># # We can go over what .c_ does later<br>X = np.c_[tsla_data[&#39;date&#39;]]<br>Y = np.c_[tsla_data[&#39;5. adjusted close&#39;]]</pre><pre># Select a linear model<br>model = sklearn.linear_model.LinearRegression()</pre><pre># Train the model<br>model.fit(X, Y)</pre><pre># Make a prediction<br>date = [[1736208000000000000.0]] # This is the float value of 2025-01-07<br>print(model.predict(date))</pre><p>With this package, you simply tell it what variables to look for a relationship on, create the model, and then make the predictions.</p><p>As you can see, the model.predict method takes a list of lists, so you can pass in as many dates as you’d like for the model to predict.</p><p>With a little extra credit, we can even see what the model would predict in the next few years:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*Ym1lSBtd-QRDlCtsSDMNgA.png" /></figure><p>You will notice it’s a straight line! Perfect.</p><p>Now it’s safe to say a model like this probably would not perform all that well (although… maybe you can make some tweaks to make it perform amazingly), but this is the first step to becoming stronger at creating your AI strategy and backtesting.</p><p>What do you think? Is a linear regression model something that you think could be added to your investing tool kit? What did you learn from here?</p><p>Share your implementation of Alpha Vantage with Scikit and Linear regressions!</p><h4>Follow <a href="https://www.alphavantage.co/documentation/">Alpha Vantage</a> on <a href="http://alphavantage.herokuapp.com">Slack</a>, <a href="https://twitter.com/alpha_vantage">Twitter</a>, <a href="http://discord.gg/6BebAX3">Discord</a>, <a href="https://medium.com/alpha-vantage">Medium</a>, and <a href="https://www.linkedin.com/company/alpha-vantage-inc/?viewAsMember=true">Linkedin</a> for updates, new announcements, competitions, tutorials, and more!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=516460644c1d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alpha-vantage/start-your-artificial-intelligence-strategy-part-1-516460644c1d">Adding artificial intelligence to your investing strategy; part 1</a> was originally published in <a href="https://medium.com/alpha-vantage">Alpha Vantage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write your first blockchain application in minutes — with Alpha Vantage!]]></title>
            <link>https://medium.com/alpha-vantage/write-your-first-blockchain-application-in-minutes-with-alpha-vantage-c4e8dd662fc0?source=rss----ba7428860009---4</link>
            <guid isPermaLink="false">https://medium.com/p/c4e8dd662fc0</guid>
            <category><![CDATA[stockapi]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[chain-link]]></category>
            <category><![CDATA[investing]]></category>
            <dc:creator><![CDATA[Patrick Collins]]></dc:creator>
            <pubDate>Tue, 19 Nov 2019 15:26:01 GMT</pubDate>
            <atom:updated>2020-12-23T20:02:53.902Z</atom:updated>
            <content:encoded><![CDATA[<h3>Write your first blockchain application in minutes — with Alpha Vantage!</h3><p>This is going to be your equivalent of “hello world” but for blockchain!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*na0d8Qi8zgvk5U5cwWBgoA.png" /><figcaption>For more solidity training, go to <a href="https://solidity.readthedocs.io/en/v0.4.24/introduction-to-smart-contracts.html">https://solidity.readthedocs.io/en/v0.4.24/introduction-to-smart-contracts.html</a></figcaption></figure><p>You’ve probably heard about the blockchain, right? You can write your first application in minutes with this tutorial. If you don’t know anything about blockchain, here are some of the main benefits:</p><ul><li>Decentralized: Meaning it’s open source to the max, no one owns the blockchain.</li><li>Transparent: Every transaction or use is viewable by everyone.</li><li>Immutable: The past can’t be changed or tampered with.</li><li>Automatic transactions without third party intervention: It’s like having an agreement that the entire world is the enforcer of, to make sure it’s enacted.</li><li>Security: It removes the risk of duplicate entry or fraud.</li></ul><p>Our favorite concept of something you could build on the blockchain:</p><ul><li>A transparent stock exchange where all data is public, transactions are not through a brokerage, and every transaction ever made is public information. Reducing settlement periods, fraud, HFT abuse, and more.</li></ul><p>And some people are working on that now.</p><p>Anyways, here is how you can get started:</p><h3>1. Get MetaMask.io for your browser</h3><p>You can learn more about MetaMask from their site, for our purposes, it allows you to create a test blockchain account and mainnet account. You’ll learn more about those later.</p><p>Here’s a video on MetaMask. You can also skip it and just go to <a href="https://metamask.io">https://metamask.io</a> and download it for your browser. It’s currently supported by <a href="https://chrome.google.com/webstore/detail/nkbihfbeogaeaoehlefnkodbefgpgknn"><strong>Chrome</strong></a> <a href="https://addons.mozilla.org/en-US/firefox/addon/ether-metamask/"><strong>Firefox</strong></a> <a href="https://addons.opera.com/en/extensions/details/metamask/"><strong>Opera</strong></a> <a href="https://chrome.google.com/webstore/detail/nkbihfbeogaeaoehlefnkodbefgpgknn"><strong>Brave</strong></a> <a href="http://testflight.apple.com/join/4cYoRF4M"><strong>iOS (beta)</strong></a> <a href="https://play.google.com/apps/testing/io.metamask"><strong>Android (beta)</strong></a></p><h3>2. Open up the Remix Etherium IDE</h3><p><a href="https://remix.ethereum.org/#optimize=false&amp;evmVersion=null&amp;version=soljson-v0.4.24+commit.e67f0147.js&amp;appVersion=0.7.7">Located here</a></p><p>This is your workspace for the moment. We will dive into it in a second.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*woYbhpIl_bDYCm9kr-e8Yg.png" /><figcaption>You’ll want to use the old version, the new one has a few bugs to work out still.</figcaption></figure><p>You will be asked to log into your MetaMask account, if not, go ahead and do so. When you log into MetaMask, you’ll want to change to the “Ropstean Test Network”. This is where you can test all your code on a real blockchain! You will also get some “paper” LINK and ETH to play with</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Y-1mCNiq_Qc8lBKe.gif" /><figcaption>You probably won’t have any “deposit” entries like me</figcaption></figure><h3>3. Compile and deploy your contract</h3><h4>The link should auto-populate, but if it doesn’t, copy and paste the below gist into a file. Hit “start to compile” and then go to the “run” tab.</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/93fbb6f4d1a4670d89191db40f0d1685/href">https://medium.com/media/93fbb6f4d1a4670d89191db40f0d1685/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*CAXCbiBrUleK5_nQ.gif" /></figure><p>You’ll want to make sure next to “environment” you see:</p><ul><li>Injected Web3 and “Ropsten” grayed out.</li></ul><p>Then hit the “deploy” button, and a “deployed contracts” entry will show up.</p><blockquote>You have just deployed your first contract!</blockquote><p>But it’s not active quite yet. Now you’ll have to fund your contract. Contracts only work when they are pre-funded. We will have to get you Ropsten ETH and Ropsten LINK.</p><h3>4. Fund your contract</h3><p>Get your MetaMask address by copying it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*OP_Af7PJB3NQA7MD.gif" /></figure><p>Then paste that address in each of these links to get your test funding.</p><p><a href="https://faucet.ropsten.be/">Ropsten ETH link</a></p><p><a href="https://ropsten.chain.link/">Ropsten LINK link</a></p><p>In a minute or so you’ll see that you have some ETH now, and if you hit the hamburger in the top left, you’ll see you have some LINK. We need this, since smart contracts auto-execute, so they need to store the payment in them prior to running.</p><p>Copy the contract’s address from the remix IDE, open MetaMask, switch to “LINK”, hit “send”, place the address in the top, set a LINK value (5 or more should be fine), hit “next” and then “confirm.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*j3kYElJHR63A2yv5.gif" /><figcaption>Fund our contract</figcaption></figure><p>Now, you can test it! You’ll see at the bottom right there are some blue and pink buttons.</p><h3>5. Run a function!</h3><p>“requestTickerPrice” is a simple function that grabs data from the <a href="https://www.alphavantage.co/">Alpha Vantage API</a>, and puts it on the blockchain. We can input in a ticker and a function (the only function this specific method supports is “GLOBAL_QUOTE”) to get the EOD price of a ticker.</p><p>You can see the result of the function from the “ticker_price” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*akH925vidJW-oVV3.gif" /></figure><p>Right now, if you hit the blue “ticker_price” button, it will show 0, since we have no data for it now.</p><p>Let’s try it! Enter:</p><pre>“TSLA”,“GLOBAL_QUOTE”</pre><p>next to where it says “requestTickerPrice” and then hit the pink button. A pop-up will ask you to confirm. You are now running the method on the blockchain!</p><p>Now, after the blockchain confirms (may take a little longer than MetaMask tells you), you’ll be able to see the EOD price of Tesla by hitting that “ticker_price” button!</p><h3>6. Spice it up!</h3><p>This was just to get you started. This code from this sample explains how each of the steps work, and how you can modify it to get any data from Alpha Vantage that you want.</p><h3>A Common Pitfall</h3><p>If you see an error like:</p><pre>gas required exceeds allowance (8000000) or always failing transaction</pre><p>This generally means you haven’t funded your contract properly, go back to step 4!</p><h3>Keep going….</h3><p>Want to learn more? Check out <a href="https://docs.chain.link/docs/contract-creators">Chainlink’s</a> documentation to learn more!</p><p><a href="https://medium.com/alpha-vantage">Follow Alpha Vantage on Medium </a>and see the tutorials that are coming out soon, with content such as; more in-depth Alpha Vantage-Chainlink documentation, how to build a node yourself, and solidity competitions. As well as our non-blockchain related content!</p><p>You can reach us also on <a href="https://alphavantage.herokuapp.com/">slack,</a> <a href="https://twitter.com/alpha_vantage?lang=en">twitter</a>, or <a href="https://discord.gg/6BebAX3">discord</a>.</p><p>#blockchain #chainlink #stockapi #fintech #finance #investing</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4e8dd662fc0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/alpha-vantage/write-your-first-blockchain-application-in-minutes-with-alpha-vantage-c4e8dd662fc0">Write your first blockchain application in minutes — with Alpha Vantage!</a> was originally published in <a href="https://medium.com/alpha-vantage">Alpha Vantage</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>