<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: scru</title>
    <description>The latest articles on DEV Community by scru (@scru).</description>
    <link>https://dev.to/scru</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3830341%2F1f6a14f1-b77f-4f67-b36f-1f5bef1833ac.jpg</url>
      <title>DEV Community: scru</title>
      <link>https://dev.to/scru</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/scru"/>
    <language>en</language>
    <item>
      <title>I built a stock market data API with FastAPI, here's what I learned</title>
      <dc:creator>scru</dc:creator>
      <pubDate>Wed, 18 Mar 2026 03:41:59 +0000</pubDate>
      <link>https://dev.to/scru/i-built-a-stock-market-data-api-with-fastapi-heres-what-i-learned-2mjb</link>
      <guid>https://dev.to/scru/i-built-a-stock-market-data-api-with-fastapi-heres-what-i-learned-2mjb</guid>
      <description>&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;A REST API that gives developers access to real-time stock &lt;br&gt;
quotes, historical data, technical indicators, and crypto &lt;br&gt;
prices. Built with FastAPI and deployed on Railway.&lt;/p&gt;

&lt;h2&gt;
  
  
  Endpoints
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;GET /stocks/quote/{symbol}&lt;/code&gt; — live price, volume, change&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;GET /stocks/history/{symbol}&lt;/code&gt; — OHLCV going back years&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;GET /stocks/indicators/{symbol}&lt;/code&gt; — RSI, MACD, SMA, EMA&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;GET /stocks/info/{symbol}&lt;/code&gt; — market cap, P/E, sector&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;GET /crypto/quote/{symbol}&lt;/code&gt; — crypto prices&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;GET /market/movers&lt;/code&gt; — top gainers and losers&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;POST /stocks/batch&lt;/code&gt; — multiple symbols at once&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;FastAPI (Python)&lt;/li&gt;
&lt;li&gt;yfinance for data&lt;/li&gt;
&lt;li&gt;PostgreSQL on Railway&lt;/li&gt;
&lt;li&gt;Stripe for billing&lt;/li&gt;
&lt;li&gt;slowapi for rate limiting&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it free
&lt;/h2&gt;

&lt;p&gt;100 requests/day, no credit card required.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://thisapi-production-d755.up.railway.app" rel="noopener noreferrer"&gt;https://thisapi-production-d755.up.railway.app&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>api</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
