日历
市场
- 商品
- 币种
- 股票
- 债券
- 加密货币
指标 国家
日历
- 币种
- 股票
- 商品
- 债券
- 加密货币
- 收益
- 假期
- 美国
- 英国
- 欧元区
- 澳大利亚
- 加拿大
- 日本
- 中国
- 巴西
- 俄罗斯
- 印度
- 更多 国家
- 利率
- 通货膨胀率
- 失业率
- 国内生产总值增长率
- 人均国内生产总值
- 经常账户
- 黄金储备
- 政府债务
- 原油产量
- 汽油价格
- 信用评级
- 更多 指标
- 国家
- 指标
- 币种
- 股票
- 商品
- 债券
- 加密货币
Feedback
物价 | 天 | 年 | 日 | ||||
---|---|---|---|---|---|---|---|
ANZ | ANZ Banking | 29.01 | 0.32 | 1.12% | 26.96% | 2024-03-21 | |
BEN | Bendigo And Adelaide Bank | 9.98 | -0.01 | -0.10% | 10.89% | 2024-03-21 | |
BFL | BSP Financial | 5.70 | 0.09 | 1.60% | 16.56% | 2024-03-21 | |
BOQ | Bank Of Queensland | 6.25 | -0.03 | -0.48% | -4.87% | 2024-03-21 | |
CBA | Commonwealth Bank | 117.45 | -0.55 | -0.47% | 20.91% | 2024-03-22 | |
IAG | Insurance Australia | 6.34 | -0.03 | -0.39% | 36.83% | 2024-03-22 |
物价 | 天 | 年 | 日 | ||||
---|---|---|---|---|---|---|---|
AS51 | AU200 | 7766 | 70.10 | 0.91% | 11.44% | 2024-03-22 |
Learn More"; modalFooter += "Download Addin"; modalFooter += "Questions? Contact us"; if (!isLoggedIn) modalFooter += loginAction; modalFooter += "
"; modalContent += "API Users have direct access to our economic data from any programming language, can query our real-time calendar, retrieve financial market quotes and subscribe to live updates. "; modalContent += "Trading Economics provides more than 20 million economic indicators for nearly 200 countries, plus exchange rates, government bond yields, stock indexes, and commodity prices." modalContent += "
"; modalFooter = "Learn More"; modalFooter += "API Docs"; modalFooter += "Questions? Contact us"; if (!isLoggedIn) modalFooter += loginAction; modalFooter += "
Learn More"; modalFooter += "Any question? Contact us"; if (!isLoggedIn) modalFooter += loginAction; modalFooter += "
We have five standard investment ratings: " modalContent += "
" modalContent += "
Disclaimer
"; modalContent += "Forecasts and ratings displayed on TRADING ECONOMICS are for informational purposes only. Trading involves a significant risk of loss and may not be suitable for all investors. Therefore, we advise users to exercise caution and do their own research before making any financial decisions." modalFooter += "" GAEvent = 'te_click_forecast'; } if (GAEvent != null) { ga('event', GAEvent); console.log('GAEvent: ', GAEvent); } showDownloadModal(modalTitle, modalContent, modalFooter); } function showDownloadModal(modalTitle, modalContent, modalFooter) { var modal = ""; modal += "
"; modal += "
"; modal += "
"; modal += "
" modal += "
" modal += "
- "); downloadList.append(csvLink); downloadList.append(excelLink); downloadList.append(apiLink); if (isLoggedIn) downloadList.append(dataportalLink); downloadBtn.after(downloadList); } function buildDownloadButton(container) { if (isLoggedIn) { var downloadBtn = $("Download"); var apiBtn = $("API"); $(container).append(downloadBtn); $(container).append(apiBtn); } else { var downloadBtn = $("Download"); $(container).append(downloadBtn); } } var lock_download = false; function downloadItem(target, format) { target = $(target).closest('a'); if (!target || target.length == 0 || !$(target).is('a')) { console.log('Download link not found'); return; } if (lock_download) return; lock_download = true; var url = $(target).attr('href'); console.log('url to download = ' + url); var d_type = format; if (format == 'csv') { url = url.replace('format=csv', 'format=json'); d_type = 'json'; } var loader = $(""); $(target).append(loader); $.ajax({ url: url, type: "GET", dataType: d_type, xhrFields: { withCredentials: true }, }).done(function (data, status, xhr) { console.log('SUCCESS'); console.log('status = ' + xhr.status); console.log('data = ' + data.length); // ga event for logged in successful CSV download if (indicatorPage) { var GAEvent = 'te_click_data_dropdown' ga('event', GAEvent, { 'format': format }); console.log('GAEvent:', GAEvent); } else if (calendarPage) { var GAEvent = 'te_click_calendar' ga('event', GAEvent, { 'format': format }); console.log('GAEvent:', GAEvent); } else if (snapshotPage) { var GAEvent = 'te_click_snapshot' ga('event', GAEvent, { 'format': format }); console.log('GAEvent:', GAEvent); } var filename = buildFilename(url, format); downloadData(data, filename, format); }).fail(function (xhr, status, error) { console.log('ERROR'); console.log('status = ' + xhr.status); console.log('error message = ' + xhr.responseText) // ga event for logged in failed CSV download if (indicatorPage) { var GAEvent = 'te_click_data_dropdown' ga('event', GAEvent, { 'format': format }); console.log('GAEvent::', GAEvent); } else if (calendarPage) { var GAEvent = 'te_click_calendar' ga('event', GAEvent, { 'format': format }); console.log('GAEvent::', GAEvent); } else if (snapshotPage) { var GAEvent = 'te_click_snapshot' ga('event', GAEvent, { 'format': format }); console.log('GAEvent::', GAEvent); } if (xhr.status) { switch (xhr.status) { case 401: // unauthorized launchInvalidKeyModal(); break; case 403: // forbidden launchTrialOverModal(); break; case 400: // bad request launchBadRequestModal(); break; case 409: // conflict (more requests per second than allowed) launchThrottleModal(); break; default: console.log('Unhandled status = ' + xhr.status) var redirect_url = ''; if (TECountry) { redirect_url = 'https://data.tradingeconomics.com/data/export/bycountry?country=' + TECountry; } else { redirect_url = 'https://data.tradingeconomics.com/'; } console.log('redirecting to: ' + redirect_url); window.open(redirect_url, '_blank'); break; } } }).always(function (xhr, status, error) { lock_download = false; console.log('done downloading!'); loader.remove(); }); }; function buildFilename(url, format) { var filename = decodeURI(url); filename = filename.replace("https://api.tradingeconomics.com/", ""); var questionMark = filename.indexOf('?'); if (questionMark != -1) filename = filename.substring(0, questionMark); filename = filename.replace(/\//g, '_'); filename = filename.replace(/\s/g, '_'); filename = filename.replace(/:/g, '_'); filename = filename.replace(/-/g, '_'); return filename + '.' + format; } function downloadData(data, filename, type) { var dataFile = null; switch (type) { case "csv": var csv = convertArrayOfObjectsToCSV({ data: data }); if (csv == null) return; // create the csv file var dataFile = new Blob([csv], { type: "text/csv;charset=utf-8" }); break; case "json": var dataFile = new Blob([JSON.stringify(data)], { type: "text/json;charset=utf-8" }); break; case "xml": var dataFile = new Blob([new XMLSerializer().serializeToString(data.documentElement)], { type: "text/plain;charset=utf-8" }); break; } if (dataFile != null) { var anchor = document.createElement('a'); anchor.href = window.URL.createObjectURL(dataFile); anchor.setAttribute("d-none", true); anchor.setAttribute("target", "_self"); anchor.setAttribute("download", filename); document.body.appendChild(anchor); anchor.click(); anchor.remove(); } } /* Download CSV from: https://halistechnology.com/2015/05/28/use-javascript-to-export-your-data-as-csv/ */ function convertArrayOfObjectsToCSV(args) { var result, ctr, keys, columnDelimiter, lineDelimiter, data; data = args.data || null; if (data == null || !data.length) { return null; } columnDelimiter = args.columnDelimiter || ','; lineDelimiter = args.lineDelimiter || '\r\n'; keys = Object.keys(data[0]); result = ''; result += keys.join(columnDelimiter); result += lineDelimiter; data.forEach(function (item) { ctr = 0; keys.forEach(function (key) { if (ctr > 0) result += columnDelimiter; result += item[key]; ctr++; }); result += lineDelimiter; }); return result; } function errorModal(title, text, actionLink, actionMsg, contactSubject) { var modalTitle = "" + title + ""; var modalFooter = "
"; if (actionLink && actionMsg) modalFooter += "" + actionMsg + ""; modalFooter += "Any question? Contact us