The Problem with Finance APIs

Yahoo Stock Data API

# Read Symbols from Database
symbols = datab.getSymbols()

# Get Price Data for each Symbol from yahoo
for sym in symbols:

url = "http://finance.yahoo.com/d/quotes.csv?s="+sym+"&f=sabd"

with closing(requests.get(url, stream=True)) as r:

Yahoo Currency Data API

with urllib.request.urlopen("http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json") as url:

CoinMarketCap Free Crypto API

# Get Market Data
with urllib.request.urlopen("https://api.coinmarketcap.com/v1/ticker/?convert=EUR&limit=0") as url:

Finsymbols Python lib

IEX Exchange

iexurl = "https://api.iextrading.com/1.0/stock/"+sym+"/quote"
with urllib.request.urlopen(iexurl) as url:

exchangeratesapi.io

Learnings

The Solution

What about stocks and crypto?

Software Developer and Investor from Germany. Writing about Software, Tech and Investments.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Cypress helps in automating end-to-end scenarios.

Choosing Python for your ML project: TOP-5 reasons

Why I’ve taken a massive pay cut to study Front End design & development

Tips to Survive Pair Programming (Post-Pandemic)

Firebase: Cloud Firestore Data Types, Costs, & Query Examples

CS373 Spring 2021: Software Engineering Week#14 Final Entry

Summer 2020 Intern Spotlight: Barcode Scanning and Shareable Worklists with Lilly

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Christoph Miksche

Christoph Miksche

Software Developer and Investor from Germany. Writing about Software, Tech and Investments.

More from Medium

US ‘looking closely’ into Qatar’s F-35 request, official says

1/5 Kaira Network is the first and only new-gen social media platform developing for #NFT…

Theatre Community Finding Virtual Footing In Comeback from Pandemic Shutdown

Growing roots on foreign land