Financial Markets on Three Timeframes
A chart dashboard in Clojure
What if you built your own financial dashboard? Here’s one approach using Clojure.
MAX
5 YEAR
6 MONTH
Treasuries
13w
3.987
5y
4.608
10y
4.837
30y
5.251
Stocks
S&P 500
7353.730
Nasdaq
24314.998
Euro Stoxx
6231.540
Nikkei 225
61077.900
Metals
Gold
4098.800
Copper
6.209
Steel
96.260
Oil
US Crude
90.720
Nat Gas
2.944
Diesel
4.364
Gasoline
2.772
Currencies
USD
101.601
EUR
1.122
JPY
0.006
AUD
0.693
Why three timeframes?
Rather than zooming through an interactive chart, seeing three timeframes at once shows you the whole picture: where we’ve been, the longer trend, and where we are now.
Warning
These charts are updated only when ClojureCivitas recompiles, which is when a new article is added. Run this notebook locally if you wish to see more recent data.
Want to monitor different securities? Update the securities map below and re-render the notebook.
^:kind/pprint
securities{"Treasuries" {"13w" "^IRX", "5y" "^FVX", "10y" "^TNX", "30y" "^TYX"},
"Stocks"
{"S&P 500" "^GSPC",
"Nasdaq" "^IXIC",
"Euro Stoxx" "^STOXX50E",
"Nikkei 225" "^N225"},
"Metals" {"Gold" "GC=F", "Copper" "HG=F", "Steel" "SLX"},
"Oil"
{"US Crude" "CL=F",
"Nat Gas" "NG=F",
"Diesel" "HO=F",
"Gasoline" "RB=F"},
"Currencies"
{"USD" "DX-Y.NYB",
"EUR" "EURUSD=X",
"JPY" "JPYUSD=X",
"AUD" "AUDUSD=X"}}Built with clj-yfinance by Matt Buehlmaier
for data, Plotje for charts, and Clay by Daniel Slutsky
for layout.