-
Notifications
You must be signed in to change notification settings - Fork 0
/
us_macro.html
executable file
·172 lines (151 loc) · 10.7 KB
/
us_macro.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>US Macro Dashboard</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico?">
<!-- <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script> -->
<style>
iframe {
border: 1px solid #dedede;
float: left;
}
.half {
float:left;
border: 1px solid #dedede;
width:49.84%;
height:430px;
overflow: hidden;
}
.small {
float: left;
display:block;
margin:auto;
width:49.84%;
}
.edge {
border: 1px solid #dedede;
}
</style>
</head>
<body style="padding:5px 0%">
<!-- 美联储QE -->
<iframe src="https://fred.stlouisfed.org/graph/graph-landing.php?g=1iLUA&width=49.84%&height=400" scrolling="no" frameborder="0"style="height:390px;width:49.84%" allowTransparency="true" loading="lazy"></iframe>
<!-- 金融宽松程度 -->
<iframe src="https://fred.stlouisfed.org/graph/graph-landing.php?g=X8nV&width=100%&height=400" scrolling="no" frameborder="0" style="width:49.84%; height:390px;" allowTransparency="true" loading="lazy"></iframe>
<!-- 就业数据 -->
<!-- <iframe src="https://fred.stlouisfed.org/graph/graph-landing.php?g=KUIO&width=49.84%&height=400" scrolling="no" frameborder="0" style="overflow:hidden;width:49.84%; height:390px;" allowTransparency="true" loading="lazy"></iframe> -->
<iframe src="https://fred.stlouisfed.org/graph/graph-landing.php?g=1BQB5&width=49.84%&height=400" scrolling="no" frameborder="0" style="overflow:hidden;width:49.84%; height:410px;" allowTransparency="true" loading="lazy"></iframe>
<!-- 经济活动指数 -->
<!-- <iframe src="https://fred.stlouisfed.org/graph/graph-landing.php?g=TUdj&width=49.84%&height=400" scrolling="no" frameborder="0"style="height:390px;width:49.84%" allowTransparency="true" loading="lazy"></iframe> -->
<!-- 零售与PMI -->
<!-- <iframe width="49.84%" height="390" src="https://app.koyfin.com/share/63f81f84c6/simple"></iframe> -->
<!-- <iframe width="49.84%" height="410" src='https://d3fy651gv2fhd3.cloudfront.net/embed/?s=unitedstaredind&v=202209201255V20220312&d1=20170921&h=600&w=1000' frameborder='0' scrolling='no'></iframe> -->
<!-- <iframe width="49.84%" height="410" src='https://d3fy651gv2fhd3.cloudfront.net/embed/?s=usawei&v=202301141020V20220312&d1=20180118&title=false&url2=/united-states/redbook-index&h=400&w=700' frameborder='0' scrolling='no'></iframe> -->
<!-- WEI&GDP -->
<div style="float:left;border: 1px solid #dedede;width:49.84%;height:410px;overflow: hidden;">
<img src="https://www.dallasfed.org/-/media/Images/research/wei/wei.png" style="display:block;margin:0px auto;width: 100%;"/>
</div>
<!-- 利率预期:油金比 -->
<!-- <iframe width="49.84%" height="420" src="https://app.koyfin.com/share/37f2e7917d/simple"></iframe> -->
<iframe width="49.84%" height="420" src="https://app.koyfin.com/share/b8584965c9/simple"></iframe>
<!-- 衰退指标: 利差 -->
<iframe src="https://fred.stlouisfed.org/graph/graph-landing.php?g=12wp1&width=100%&height=420" scrolling="no" frameborder="0" style="width:49.84%; height:420px;" allowTransparency="true" loading="lazy"></iframe>
<!-- BDI -->
<iframe width="49.84%" height="420" src="https://app.koyfin.com/share/3a5b2b9667/simple"></iframe>
<!-- 中国出口集装箱运价综合指数 -->
<div style="float:left;border: 1px solid #dedede;width:49.84%;height:420px;">
<img src="https://www.sse.net.cn/index/indexImg?name=ccfi&type=query" style="display:block;margin:100px auto;width: 100%;"/>
</div>
<!-- CPI&PMI -->
<!-- <iframe width="49.84%" height="410" src='https://d3fy651gv2fhd3.cloudfront.net/embed/?s=napmpmi&v=202301041726V20220312&d1=20180118&h=400&w=700&url2=/united-states/inflation-cpi' frameborder='0' scrolling='no'></iframe> -->
<!-- 人民币汇率 -->
<iframe width="49.84%" height="410" src="https://app.koyfin.com/share/cebb93c20c/simple" frameBorder="0"></iframe>
<!-- CN: 租金和房价 -->
<!-- <iframe width="49.84%" height="410" src='https://d3fy651gv2fhd3.cloudfront.net/embed/?s=chnreninf&v=202301041726V20220312&d1=20100101&h=400&w=700&url2=/china/housing-index' frameborder='0' scrolling='no'></iframe> -->
<!-- CN: 外汇和出口 -->
<iframe width="49.84%" height="410" src='https://d3fy651gv2fhd3.cloudfront.net/embed/?s=chinaforexcres&v=202301041726V20220312&d1=20100101&h=400&w=700&url2=/china/exports' frameborder='0' scrolling='no'></iframe>
<!-- Monkeypox related symbol: SIGA -->
<!-- <iframe src="https://ourworldindata.org/explorers/monkeypox?facet=none&hideControls=true&Metric=Confirmed+cases&Frequency=7-day+average&Relative+to+population=false&country=OWID_WRL~USA" loading="lazy" style="width: 50%; height: 417px; border: 0px none;"></iframe> -->
<!-- Covid-19 New Cases -->
<!-- <iframe src="https://ourworldindata.org/explorers/coronavirus-data-explorer?zoomToSelection=true&time=2020-03-01..latest&uniformYAxis=0&pickerSort=desc&pickerMetric=population&Metric=Cases+and+deaths&Interval=7-day+rolling+average&Relative+to+Population=true&Align+outbreaks=false&country=OWID_WRL~Europe~USA&hideControls=true" loading="lazy" style="width: 50%; height: 425px; border: 0px none;"></iframe> -->
<!-- <iframe src="https://ourworldindata.org/explorers/coronavirus-data-explorer?zoomToSelection=true&time=2020-03-01..latest&pickerSort=desc&pickerMetric=new_cases_smoothed&hideControls=true&Metric=Confirmed+cases&Interval=7-day+rolling+average&Relative+to+Population=false&Align+outbreaks=false&country=IND~USA~Europe~OWID_WRL" loading="lazy" style="width: 50%; height: 405px; border: 0px none;"></iframe> -->
<!-- <iframe src="https://ourworldindata.org/grapher/share-people-vaccinated-covid?tab=chart&time=latest" loading="lazy" style="width: 49.84%; height: 420px; border: 0px none;"></iframe> -->
<!-- 铜基本面 HGmain FCX XME RIO -->
<!-- <div class="half" id="copper"> -->
<!-- <img class="small" src="http://www.kitconet.com/charts/metals/base/lme-warehouse-copper-5y-Large.gif"> -->
<!-- <img class="small" src="http://www.kitconet.com/charts/metals/base/lme-warehouse-copper-60d-Large.gif"> -->
<!-- <img class="small" style="visibility: hidden;" src="http://www.kitconet.com/charts/metals/base/lme-warehouse-copper-60d-Large.gif"> -->
<!-- <iframe class="small" style="height:300px;" height="430" src="https://app.koyfin.com/share/5fd478d1d1/simple"></iframe> -->
<!-- <img class="small" src="http://www.kitconet.com/charts/metals/base/nymex-warehouse-copper-60d-Large.gif"> -->
<!-- </div> -->
<!-- 黄金基本面 https://zhuanlan.zhihu.com/p/73260708 -->
<!-- <div style="float: left;height: 430px;width: 49.84%;border:1px solid #dedede; font-size: 200%;"> -->
<!-- <iframe width="99.9%" height="385" src="https://app.koyfin.com/share/a1add9d482/simple"></iframe> -->
<!-- <a target="_blank" href="https://datacenter.jin10.com/reportType/dc_complex_report?isLink=1&reportType=dc_etf_gold&kinds=%E6%80%BB%E5%BA%93%E5%AD%98(%E5%90%A8)&types=%E9%BB%84%E9%87%91&pageTitle=%E5%85%A8%E7%90%83%E6%9C%80%E5%A4%A7%E9%BB%84%E9%87%91ETF%E2%80%94SPDR%20Gold%20Trust%E6%8C%81%E4%BB%93%E6%8A%A5%E5%91%8A-%E6%80%BB%E5%BA%93%E5%AD%98(%E5%90%A8)%EF%BC%88%E5%A4%8D%E5%90%88%E6%8A%A5%E5%91%8A%EF%BC%89">SPDR Gold Trust持仓报告</a> -->
<!-- </div> -->
<!-- <iframe src="https://fred.stlouisfed.org/graph/graph-landing.php?g=FQYf&width=49.84%&height=285" scrolling="no" frameborder="0"style="height:275px;width:49.84%" allowTransparency="true" loading="lazy"></iframe> -->
<!-- 原油基本面 -->
<!-- 库存 https://www.eia.gov/dnav/pet/hist/LeafHandler.ashx?n=PET&s=WCESTUS1&f=w -->
<!-- 产量 https://www.eia.gov/dnav/pet/hist/LeafHandler.ashx?n=PET&s=WCRFPUS2&f=w -->
<!-- https://www.eia.gov/opendata/qb.php?category=235081 -->
<!-- <iframe id="eia_widget" style="width:49.84%;height:400px;border:1px solid #dedede" src="https://www.eia.gov/opendata/embed/iframe.php?series_id=PET.RWTC.W;PET.WCRFPUS2.W;PET.WCESTUS1.W;&periods=6A" load="iframe_load"></iframe> -->
<!-- <iframe src="https://fred.stlouisfed.org/graph/graph-landing.php?g=M7EY&width=100%&height=380" scrolling="no" frameborder="0" style="width:100%; height:372px;" allowTransparency="true" loading="lazy"></iframe> -->
<!-- <div id="NYMEX:CL1!-NYMEX:CL2!" style="height:152px; width:49.84%; float:left"></div> -->
<!-- https://www.eia.gov/petroleum/weekly/index.php -->
<!-- 天然气基本面 -->
<!-- <a href="https://www.eia.gov/dnav/ng/hist/nw2_epg0_swo_r48_bcfw.htm">Lower 48 States Natural Gas Working Underground Storage (Million Cubic Feet)</a> -->
<!-- <a href="https://www.eia.gov/dnav/ng/hist/n9010us2m.htm">U.S. Natural Gas Gross Withdrawals (Million Cubic Feet)</a> -->
<!-- https://www.eia.gov/naturalgas/weekly/ -->
<!-- 贪婪指数 -->
<!-- <div style="float:left;border: 1px solid #dedede;width:49.84%;height:450px;"> -->
<!-- <img src="http://markets.money.cnn.com/Marketsdata/Api/Chart/FearGreedHistoricalImage?chartType=AvgPtileModel" style="display:block;margin:80px auto;width: 90%;"/> -->
<!-- </div> -->
<!-- 制造业基本面 -->
<!-- <iframe width="49.84%" height="470" src="https://app.koyfin.com/share/d52eb60f76/simple"></iframe> -->
<!-- 资产轮动:债券, 金属, 科技, 金融, 小盘 -->
<!-- <iframe width="49.8%" height="470" src="https://app.koyfin.com/share/89f56fe5aa/simple"></iframe> -->
</body>
<script type="text/javascript">
const symbols = [
// {
// sym: "NYMEX:CL1!-NYMEX:CL2!",
// range: "100M",
// interval: "W",
// use_log: true,
// },
// {
// sym: "BINANCE:BTCUSDT",
// range: "12M",
// use_log: true,
// interval: "D",
// style: "1",
// studies: [
// "MAExp@tv-basicstudies",
// "MASimple@tv-basicstudies",
// ],
// },
];
for (sym of symbols) {
createChart(sym);
}
function createChart(symobj) {
const sym = symobj.sym;
const use_log = symobj.use_log;
const defalut = {
"container_id": sym,
"autosize": true,
"symbol": sym,
"interval": "D",
"style": "2",
// https://github.com/serdimoa/charting/wiki/Widget-Constructor
"overrides": {"mainSeriesProperties.priceAxisProperties.log": use_log},
"range": "ALL",
"hide_top_toolbar": true,
"theme": "light",
}
const options = Object.assign(defalut, symobj)
return new TradingView.widget(options);
}
</script>
</html>