Advertisement
Guest User

Untitled

a guest
Dec 14th, 2017
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.11 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6. <!DOCTYPE html>
  7. <html>
  8. <head>
  9. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
  10. <title>Market Overview widget</title>
  11.  
  12.  
  13.  
  14.  
  15. <link type="text/css" href="https://s-new.tradingview.com/static/bundles/embed_marketoverviewwidget.d7e0c0b1228206aed9dc5d856ac8b137.d7e0c0b12282.css" rel="stylesheet"/>
  16. <style>body { background: transparent }</style>
  17.  
  18.  
  19.  
  20.  
  21.  
  22. <script>
  23. window.is_authenticated = false;
  24. window.user = {'username': 'Guest', 'following': '0', 'followers': '0', 'ignore_list': {}};
  25. window.WEBSOCKET_HOST = 'widgetdata.tradingview.com';
  26. window.WEBSOCKET_PORT = ('https:' == document.location.protocol) ?
  27. '' :
  28. ''
  29. ;
  30. window.CHARTEVENTS_URL = 'https://chartevents-reuters.tradingview.com/';
  31. window.DEFAULT_SYMBOL = 'NASDAQ:AAPL';
  32. window.LOCALES = {"en":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/en.js","geoip_code":"us","language":"en","name_on_widgets":"English","title":"United States","show_on_widgets":true,"base_url":"https:\/\/www.tradingview.com","current_url":"https:\/\/www.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"en","priority":1000,"flag":"us","language_name":"United States","is_site_locale":true},"ca":{"disabled":true,"geoip_code":"ca","language":"en","localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/en.js","title":"Canada","base_url":"https:\/\/ca.tradingview.com","current_url":"https:\/\/ca.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"en-ca","priority":775,"flag":"ca","is_site_locale":true,"language_name":"Canada"},"it":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/it.js","geoip_code":"it","language":"it","name_on_widgets":"Italiano","title":"Italia","show_on_widgets":true,"base_url":"https:\/\/it.tradingview.com","current_url":"https:\/\/it.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"it-it","priority":737,"flag":"it","language_name":"Italia","is_site_locale":true},"vi_VN":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/vi.js","geoip_code":"vn","language":"vi","true_locale":"vi_VN","title":"Vi\u1ec7t Nam","name_on_widgets":"Ti\u1ebfng Vi\u1ec7t","show_on_widgets":true,"base_url":"https:\/\/vn.tradingview.com","current_url":"https:\/\/vn.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"vi-vn","priority":645,"flag":"vn","language_name":"Vi\u1ec7t Nam","is_site_locale":true},"au":{"disabled":true,"geoip_code":"au","language":"en","localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/en.js","title":"Australia","base_url":"https:\/\/au.tradingview.com","current_url":"https:\/\/au.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"en-au","priority":763,"flag":"au","is_site_locale":true,"language_name":"Australia"},"in":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/en.js","geoip_code":"in","language":"en","title":"India","base_url":"https:\/\/in.tradingview.com","current_url":"https:\/\/in.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"en-in","priority":800,"flag":"in","is_site_locale":true,"language_name":"India"},"cs":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/cs.js","geoip_code":"cs","name_on_widgets":"\u010cesky","language":"cs","show_on_widgets":true,"priority":718,"flag":"cz","language_name":"Czech"},"th_TH":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/th.js","geoip_code":"th","language":"th","true_locale":"th_TH","title":"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22","name_on_widgets":"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22","show_on_widgets":true,"base_url":"https:\/\/th.tradingview.com","current_url":"https:\/\/th.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"th-th","priority":646,"flag":"th","language_name":"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22","is_site_locale":true},"id":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/id_ID.js","geoip_code":"id","language":"id_ID","name_on_widgets":"Indonesia","title":"Indonesia","show_on_widgets":true,"base_url":"https:\/\/id.tradingview.com","current_url":"https:\/\/id.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"id_ID-id","priority":648,"flag":"id","language_name":"Indonesia","is_site_locale":true},"es":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/es.js","geoip_code":"es","name_on_widgets":"Espa\u00f1ol","language":"es","title":"Espa\u00f1a","countries_with_this_language":["mx","ar","ve","cl","co","pe","uy","py","cr","gt","cu","bo","pa","pr"],"show_on_widgets":true,"base_url":"https:\/\/es.tradingview.com","current_url":"https:\/\/es.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"es-es","priority":744,"flag":"es","language_name":"Espa\u00f1a","is_site_locale":true},"ru":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ru.js","geoip_code":"ru","language":"ru","name_on_widgets":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","title":"\u0420\u043e\u0441\u0441\u0438\u044f","show_on_widgets":true,"base_url":"https:\/\/ru.tradingview.com","current_url":"https:\/\/ru.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ru-ru","priority":700,"flag":"ru","language_name":"\u0420\u043e\u0441\u0441\u0438\u044f","is_site_locale":true},"tr":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/tr.js","geoip_code":"tr","language":"tr","name_on_widgets":"T\u00fcrk\u00e7e","title":"T\u00fcrkiye","show_on_widgets":true,"base_url":"https:\/\/tr.tradingview.com","current_url":"https:\/\/tr.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"tr-tr","priority":713,"flag":"tr","language_name":"T\u00fcrkiye","is_site_locale":true},"hu_HU":{"geoip_code":"hu","name_on_widgets":"Magyar","current_url":"https:\/\/hu.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"hu_HU-hu","disabled":true,"flag":"hu","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/hu_HU.js","language":"hu_HU","true_locale":"hu_HU","title":"Magyarorsz\u00e1g","show_on_widgets":true,"base_url":"https:\/\/hu.tradingview.com","priority":724,"language_name":"Magyarorsz\u00e1g"},"pl":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/pl.js","geoip_code":"pl","language":"pl","name_on_widgets":"Polski","title":"Polska","show_on_widgets":true,"base_url":"https:\/\/pl.tradingview.com","current_url":"https:\/\/pl.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"pl-pl","priority":725,"flag":"pl","language_name":"Polska","is_site_locale":true},"fr":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/fr.js","geoip_code":"fr","language":"fr","name_on_widgets":"French","title":"France","show_on_widgets":true,"base_url":"https:\/\/fr.tradingview.com","current_url":"https:\/\/fr.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"fr-fr","priority":750,"flag":"fr","language_name":"France","is_site_locale":true},"zh_TW":{"geoip_code":"tw","name_on_widgets":"\u7e41\u9ad4\u4e2d\u6587","countries_with_this_language":"hk","current_url":"https:\/\/tw.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"zh_TW-tw","flag":"tw","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/zh_TW.js","true_locale":"zh_TW","language":"zh_TW","title":"\u7e41\u9ad4","show_on_widgets":true,"base_url":"https:\/\/tw.tradingview.com","priority":536,"language_name":"\u7e41\u9ad4"},"ar_AE":{"geoip_code":"ae","name_on_widgets":"\u0627\u0644\u0639\u064e\u0631\u064e\u0628\u0650\u064a\u064e\u0651\u0629\u200e\u200e","current_url":"https:\/\/ar.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ar-ae","disabled":true,"flag":"ae","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ar.js","language":"ar","true_locale":"ar_AE","title":"Arabic","show_on_widgets":true,"base_url":"https:\/\/ar.tradingview.com","priority":500,"language_name":"Arabic","dir":"rtl"},"ms_MY":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ms_MY.js","geoip_code":"my","language":"ms_MY","true_locale":"ms_MY","title":"Malaysia","name_on_widgets":"Malay (Malaysia)","show_on_widgets":true,"base_url":"https:\/\/my.tradingview.com","current_url":"https:\/\/my.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ms_MY-my","priority":647,"flag":"my","language_name":"Malaysia","is_site_locale":true},"br":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/pt.js","geoip_code":"br","language":"pt","name_on_widgets":"Portugu\u00eas","title":"Brasil","show_on_widgets":true,"base_url":"https:\/\/br.tradingview.com","current_url":"https:\/\/br.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"pt-br","priority":650,"flag":"br","language_name":"Brasil","is_site_locale":true},"de_DE":{"geoip_code":"de","name_on_widgets":"Deutch","countries_with_this_language":["at","ch"],"current_url":"https:\/\/de.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"de-de","flag":"de","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/de.js","true_locale":"de_DE","language":"de","title":"Deutschland","show_on_widgets":true,"base_url":"https:\/\/de.tradingview.com","priority":756,"language_name":"Deutschland"},"ja":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ja.js","geoip_code":"jp","language":"ja","name_on_widgets":"\u65e5\u672c\u8a9e","title":"\u65e5\u672c","show_on_widgets":true,"base_url":"https:\/\/jp.tradingview.com","current_url":"https:\/\/jp.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ja-jp","priority":600,"flag":"jp","language_name":"\u65e5\u672c","is_site_locale":true},"fa_IR":{"geoip_code":"fa","name_on_widgets":"\u0641\u0627\u0631\u0633\u06cc","current_url":"https:\/\/ir.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"fa-fa","disabled":true,"flag":"ir","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/fa.js","language":"fa","true_locale":"fa_IR","title":"\u0627\u06cc\u0631\u0627\u0646","show_on_widgets":true,"base_url":"https:\/\/ir.tradingview.com","priority":480,"language_name":"\u0627\u06cc\u0631\u0627\u0646","dir":"rtl"},"zh_CN":{"geoip_code":"cn","name_on_widgets":"\u7b80\u4f53\u4e2d\u6587","countries_with_this_language":"zh","current_url":"https:\/\/cn.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"zh-cn","flag":"cn","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/zh.js","true_locale":"zh_CN","language":"zh","title":"\u7b80\u4f53","show_on_widgets":true,"base_url":"https:\/\/cn.tradingview.com","priority":537,"language_name":"\u7b80\u4f53"},"sv_SE":{"geoip_code":"se","name_on_widgets":"Swedish","current_url":"https:\/\/se.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"sv-se","disabled":true,"flag":"se","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/sv.js","language":"sv","true_locale":"sv_SE","title":"Sverige","show_on_widgets":true,"base_url":"https:\/\/se.tradingview.com","priority":723,"language_name":"Sverige"},"kr":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ko.js","geoip_code":"kr","language":"ko","name_on_widgets":"\ud55c\uad6d\uc5b4","title":"\ud55c\uad6d","show_on_widgets":true,"base_url":"https:\/\/kr.tradingview.com","current_url":"https:\/\/kr.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ko-kr","priority":550,"flag":"kr","language_name":"\ud55c\uad6d","is_site_locale":true},"uk":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/en.js","geoip_code":"gb","language":"en","title":"United Kingdom","base_url":"https:\/\/uk.tradingview.com","current_url":"https:\/\/uk.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"en-gb","priority":900,"flag":"gb","is_site_locale":true,"language_name":"United Kingdom"},"he_IL":{"geoip_code":"il","name_on_widgets":"\u200f\u05e2\u05d1\u05e8\u05d9\u05ea\u200f","current_url":"https:\/\/il.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"he_IL-il","disabled":true,"flag":"il","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/he_IL.js","language":"he_IL","true_locale":"he_IL","title":"\u05d9\u05e9\u05e8\u05d0\u05dc","show_on_widgets":true,"base_url":"https:\/\/il.tradingview.com","priority":490,"language_name":"\u05d9\u05e9\u05e8\u05d0\u05dc","dir":"rtl"}};
  33.  
  34.  
  35.  
  36. window.locale_domains = {"en": "www.tradingview.com", "ca": "ca.tradingview.com", "it": "it.tradingview.com", "vi_VN": "vn.tradingview.com", "au": "au.tradingview.com", "in": "in.tradingview.com", "th_TH": "th.tradingview.com", "id": "id.tradingview.com", "es": "es.tradingview.com", "ru": "ru.tradingview.com", "tr": "tr.tradingview.com", "hu_HU": "hu.tradingview.com", "pl": "pl.tradingview.com", "fr": "fr.tradingview.com", "zh_TW": "tw.tradingview.com", "ar_AE": "ar.tradingview.com", "ms_MY": "my.tradingview.com", "br": "br.tradingview.com", "de_DE": "de.tradingview.com", "ja": "jp.tradingview.com", "fa_IR": "ir.tradingview.com", "zh_CN": "cn.tradingview.com", "sv_SE": "se.tradingview.com", "kr": "kr.tradingview.com", "uk": "uk.tradingview.com", "he_IL": "il.tradingview.com"};
  37. window.initData = window.initData || {};
  38.  
  39.  
  40. window.initData = {"widget_defaults": {"whitelabel": null, "title": "Market Summary", "show_chart": true, "show_small_charts": false, "minimized": false, "is_embed_widget": true, "title_link": null, "tabs": [{"symbols": [{"s": "INDEX:SPX", "d": "S&P 500"}, {"s": "INDEX:IUXX", "d": "Nasdaq 100"}, {"s": "INDEX:DOWI", "d": "Dow 30"}, {"s": "INDEX:NKY", "d": "Nikkei 225"}, {"s": "NASDAQ:AAPL", "d": "Apple"}, {"s": "NASDAQ:GOOG", "d": "Google"}], "title": "Equities"}, {"symbols": [{"s": "CME_MINI:ES1!", "d": "E-Mini S&P"}, {"s": "CME:E61!", "d": "Euro"}, {"s": "COMEX:GC1!", "d": "Gold"}, {"s": "NYMEX:CL1!", "d": "Crude Oil"}, {"s": "NYMEX:NG1!", "d": "Natural Gas"}, {"s": "CBOT:ZC1!", "d": "Corn"}], "title": "Commodities"}, {"symbols": [{"s": "CME:GE1!", "d": "Eurodollar"}, {"s": "CBOT:ZB1!", "d": "T-Bond"}, {"s": "CBOT:UD1!", "d": "Ultra T-Bond"}, {"s": "EUREX:GG1!", "d": "Euro Bund"}, {"s": "EUREX:II1!", "d": "Euro BTP"}, {"s": "EUREX:HR1!", "d": "Euro BOBL"}], "title": "Bonds"}, {"symbols": [{"s": "FX:EURUSD"}, {"s": "FX:GBPUSD"}, {"s": "FX:USDJPY"}, {"s": "FX:USDCHF"}, {"s": "FX:AUDUSD"}, {"s": "FX:USDCAD"}], "title": "Forex"}]}};
  41.  
  42.  
  43. var TradingView = TradingView || {};
  44.  
  45.  
  46. </script>
  47.  
  48.  
  49.  
  50.  
  51. <script type="text/javascript">
  52. var urlParams = (function () {
  53. var match,
  54. pl = /\+/g,
  55. search = /([^&=]+)=?([^&]*)/g,
  56. decode = function (s) { return decodeURIComponent(s.replace(pl, ' ')).replace(/<\/?[^>]+(>|$)/g, ''); },
  57. query = window.location.search.substring(1),
  58. result = {};
  59.  
  60. while (match = search.exec(query)) {
  61. result[decode(match[1])] = decode(match[2]);
  62. }
  63.  
  64. var hashParams;
  65. try {
  66. hashParams = JSON.parse(decodeURIComponent(window.location.hash.substring(1)));
  67. } catch (e) {
  68. hashParams = {};
  69. };
  70.  
  71. for (var key in hashParams) {
  72. if (!hashParams.hasOwnProperty(key)) continue;
  73. result[key] = hashParams[key];
  74. }
  75.  
  76. return result;
  77. })();
  78.  
  79. (function () {
  80. var _siteLocales = {"en":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/en.js","geoip_code":"us","language":"en","name_on_widgets":"English","title":"United States","show_on_widgets":true,"base_url":"https:\/\/www.tradingview.com","current_url":"https:\/\/www.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"en","priority":1000,"flag":"us","language_name":"United States","is_site_locale":true},"ca":{"disabled":true,"geoip_code":"ca","language":"en","localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/en.js","title":"Canada","base_url":"https:\/\/ca.tradingview.com","current_url":"https:\/\/ca.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"en-ca","priority":775,"flag":"ca","is_site_locale":true,"language_name":"Canada"},"it":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/it.js","geoip_code":"it","language":"it","name_on_widgets":"Italiano","title":"Italia","show_on_widgets":true,"base_url":"https:\/\/it.tradingview.com","current_url":"https:\/\/it.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"it-it","priority":737,"flag":"it","language_name":"Italia","is_site_locale":true},"vi_VN":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/vi.js","geoip_code":"vn","language":"vi","true_locale":"vi_VN","title":"Vi\u1ec7t Nam","name_on_widgets":"Ti\u1ebfng Vi\u1ec7t","show_on_widgets":true,"base_url":"https:\/\/vn.tradingview.com","current_url":"https:\/\/vn.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"vi-vn","priority":645,"flag":"vn","language_name":"Vi\u1ec7t Nam","is_site_locale":true},"au":{"disabled":true,"geoip_code":"au","language":"en","localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/en.js","title":"Australia","base_url":"https:\/\/au.tradingview.com","current_url":"https:\/\/au.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"en-au","priority":763,"flag":"au","is_site_locale":true,"language_name":"Australia"},"in":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/en.js","geoip_code":"in","language":"en","title":"India","base_url":"https:\/\/in.tradingview.com","current_url":"https:\/\/in.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"en-in","priority":800,"flag":"in","is_site_locale":true,"language_name":"India"},"th_TH":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/th.js","geoip_code":"th","language":"th","true_locale":"th_TH","title":"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22","name_on_widgets":"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22","show_on_widgets":true,"base_url":"https:\/\/th.tradingview.com","current_url":"https:\/\/th.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"th-th","priority":646,"flag":"th","language_name":"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22","is_site_locale":true},"id":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/id_ID.js","geoip_code":"id","language":"id_ID","name_on_widgets":"Indonesia","title":"Indonesia","show_on_widgets":true,"base_url":"https:\/\/id.tradingview.com","current_url":"https:\/\/id.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"id_ID-id","priority":648,"flag":"id","language_name":"Indonesia","is_site_locale":true},"es":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/es.js","geoip_code":"es","name_on_widgets":"Espa\u00f1ol","language":"es","title":"Espa\u00f1a","countries_with_this_language":["mx","ar","ve","cl","co","pe","uy","py","cr","gt","cu","bo","pa","pr"],"show_on_widgets":true,"base_url":"https:\/\/es.tradingview.com","current_url":"https:\/\/es.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"es-es","priority":744,"flag":"es","language_name":"Espa\u00f1a","is_site_locale":true},"ru":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ru.js","geoip_code":"ru","language":"ru","name_on_widgets":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","title":"\u0420\u043e\u0441\u0441\u0438\u044f","show_on_widgets":true,"base_url":"https:\/\/ru.tradingview.com","current_url":"https:\/\/ru.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ru-ru","priority":700,"flag":"ru","language_name":"\u0420\u043e\u0441\u0441\u0438\u044f","is_site_locale":true},"tr":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/tr.js","geoip_code":"tr","language":"tr","name_on_widgets":"T\u00fcrk\u00e7e","title":"T\u00fcrkiye","show_on_widgets":true,"base_url":"https:\/\/tr.tradingview.com","current_url":"https:\/\/tr.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"tr-tr","priority":713,"flag":"tr","language_name":"T\u00fcrkiye","is_site_locale":true},"hu_HU":{"geoip_code":"hu","name_on_widgets":"Magyar","current_url":"https:\/\/hu.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"hu_HU-hu","disabled":true,"flag":"hu","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/hu_HU.js","language":"hu_HU","true_locale":"hu_HU","title":"Magyarorsz\u00e1g","show_on_widgets":true,"base_url":"https:\/\/hu.tradingview.com","priority":724,"language_name":"Magyarorsz\u00e1g"},"pl":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/pl.js","geoip_code":"pl","language":"pl","name_on_widgets":"Polski","title":"Polska","show_on_widgets":true,"base_url":"https:\/\/pl.tradingview.com","current_url":"https:\/\/pl.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"pl-pl","priority":725,"flag":"pl","language_name":"Polska","is_site_locale":true},"fr":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/fr.js","geoip_code":"fr","language":"fr","name_on_widgets":"French","title":"France","show_on_widgets":true,"base_url":"https:\/\/fr.tradingview.com","current_url":"https:\/\/fr.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"fr-fr","priority":750,"flag":"fr","language_name":"France","is_site_locale":true},"zh_TW":{"geoip_code":"tw","name_on_widgets":"\u7e41\u9ad4\u4e2d\u6587","countries_with_this_language":"hk","current_url":"https:\/\/tw.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"zh_TW-tw","flag":"tw","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/zh_TW.js","true_locale":"zh_TW","language":"zh_TW","title":"\u7e41\u9ad4","show_on_widgets":true,"base_url":"https:\/\/tw.tradingview.com","priority":536,"language_name":"\u7e41\u9ad4"},"ar_AE":{"geoip_code":"ae","name_on_widgets":"\u0627\u0644\u0639\u064e\u0631\u064e\u0628\u0650\u064a\u064e\u0651\u0629\u200e\u200e","current_url":"https:\/\/ar.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ar-ae","disabled":true,"flag":"ae","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ar.js","language":"ar","true_locale":"ar_AE","title":"Arabic","show_on_widgets":true,"base_url":"https:\/\/ar.tradingview.com","priority":500,"language_name":"Arabic","dir":"rtl"},"ms_MY":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ms_MY.js","geoip_code":"my","language":"ms_MY","true_locale":"ms_MY","title":"Malaysia","name_on_widgets":"Malay (Malaysia)","show_on_widgets":true,"base_url":"https:\/\/my.tradingview.com","current_url":"https:\/\/my.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ms_MY-my","priority":647,"flag":"my","language_name":"Malaysia","is_site_locale":true},"br":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/pt.js","geoip_code":"br","language":"pt","name_on_widgets":"Portugu\u00eas","title":"Brasil","show_on_widgets":true,"base_url":"https:\/\/br.tradingview.com","current_url":"https:\/\/br.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"pt-br","priority":650,"flag":"br","language_name":"Brasil","is_site_locale":true},"de_DE":{"geoip_code":"de","name_on_widgets":"Deutch","countries_with_this_language":["at","ch"],"current_url":"https:\/\/de.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"de-de","flag":"de","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/de.js","true_locale":"de_DE","language":"de","title":"Deutschland","show_on_widgets":true,"base_url":"https:\/\/de.tradingview.com","priority":756,"language_name":"Deutschland"},"ja":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ja.js","geoip_code":"jp","language":"ja","name_on_widgets":"\u65e5\u672c\u8a9e","title":"\u65e5\u672c","show_on_widgets":true,"base_url":"https:\/\/jp.tradingview.com","current_url":"https:\/\/jp.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ja-jp","priority":600,"flag":"jp","language_name":"\u65e5\u672c","is_site_locale":true},"fa_IR":{"geoip_code":"fa","name_on_widgets":"\u0641\u0627\u0631\u0633\u06cc","current_url":"https:\/\/ir.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"fa-fa","disabled":true,"flag":"ir","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/fa.js","language":"fa","true_locale":"fa_IR","title":"\u0627\u06cc\u0631\u0627\u0646","show_on_widgets":true,"base_url":"https:\/\/ir.tradingview.com","priority":480,"language_name":"\u0627\u06cc\u0631\u0627\u0646","dir":"rtl"},"zh_CN":{"geoip_code":"cn","name_on_widgets":"\u7b80\u4f53\u4e2d\u6587","countries_with_this_language":"zh","current_url":"https:\/\/cn.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"zh-cn","flag":"cn","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/zh.js","true_locale":"zh_CN","language":"zh","title":"\u7b80\u4f53","show_on_widgets":true,"base_url":"https:\/\/cn.tradingview.com","priority":537,"language_name":"\u7b80\u4f53"},"sv_SE":{"geoip_code":"se","name_on_widgets":"Swedish","current_url":"https:\/\/se.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"sv-se","disabled":true,"flag":"se","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/sv.js","language":"sv","true_locale":"sv_SE","title":"Sverige","show_on_widgets":true,"base_url":"https:\/\/se.tradingview.com","priority":723,"language_name":"Sverige"},"kr":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ko.js","geoip_code":"kr","language":"ko","name_on_widgets":"\ud55c\uad6d\uc5b4","title":"\ud55c\uad6d","show_on_widgets":true,"base_url":"https:\/\/kr.tradingview.com","current_url":"https:\/\/kr.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ko-kr","priority":550,"flag":"kr","language_name":"\ud55c\uad6d","is_site_locale":true},"uk":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/en.js","geoip_code":"gb","language":"en","title":"United Kingdom","base_url":"https:\/\/uk.tradingview.com","current_url":"https:\/\/uk.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"en-gb","priority":900,"flag":"gb","is_site_locale":true,"language_name":"United Kingdom"},"he_IL":{"geoip_code":"il","name_on_widgets":"\u200f\u05e2\u05d1\u05e8\u05d9\u05ea\u200f","current_url":"https:\/\/il.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"he_IL-il","disabled":true,"flag":"il","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/he_IL.js","language":"he_IL","true_locale":"he_IL","title":"\u05d9\u05e9\u05e8\u05d0\u05dc","show_on_widgets":true,"base_url":"https:\/\/il.tradingview.com","priority":490,"language_name":"\u05d9\u05e9\u05e8\u05d0\u05dc","dir":"rtl"}};
  81. var _widgetLocales = {"en":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/en.js","geoip_code":"us","language":"en","name_on_widgets":"English","title":"United States","show_on_widgets":true,"base_url":"https:\/\/www.tradingview.com","current_url":"https:\/\/www.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"en","priority":1000,"flag":"us","language_name":"United States","is_site_locale":true},"it":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/it.js","geoip_code":"it","language":"it","name_on_widgets":"Italiano","title":"Italia","show_on_widgets":true,"base_url":"https:\/\/it.tradingview.com","current_url":"https:\/\/it.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"it-it","priority":737,"flag":"it","language_name":"Italia","is_site_locale":true},"vi_VN":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/vi.js","geoip_code":"vn","language":"vi","true_locale":"vi_VN","title":"Vi\u1ec7t Nam","name_on_widgets":"Ti\u1ebfng Vi\u1ec7t","show_on_widgets":true,"base_url":"https:\/\/vn.tradingview.com","current_url":"https:\/\/vn.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"vi-vn","priority":645,"flag":"vn","language_name":"Vi\u1ec7t Nam","is_site_locale":true},"cs":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/cs.js","geoip_code":"cs","name_on_widgets":"\u010cesky","language":"cs","show_on_widgets":true,"priority":718,"flag":"cz","language_name":"Czech"},"th_TH":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/th.js","geoip_code":"th","language":"th","true_locale":"th_TH","title":"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22","name_on_widgets":"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22","show_on_widgets":true,"base_url":"https:\/\/th.tradingview.com","current_url":"https:\/\/th.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"th-th","priority":646,"flag":"th","language_name":"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22","is_site_locale":true},"id":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/id_ID.js","geoip_code":"id","language":"id_ID","name_on_widgets":"Indonesia","title":"Indonesia","show_on_widgets":true,"base_url":"https:\/\/id.tradingview.com","current_url":"https:\/\/id.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"id_ID-id","priority":648,"flag":"id","language_name":"Indonesia","is_site_locale":true},"es":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/es.js","geoip_code":"es","name_on_widgets":"Espa\u00f1ol","language":"es","title":"Espa\u00f1a","countries_with_this_language":["mx","ar","ve","cl","co","pe","uy","py","cr","gt","cu","bo","pa","pr"],"show_on_widgets":true,"base_url":"https:\/\/es.tradingview.com","current_url":"https:\/\/es.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"es-es","priority":744,"flag":"es","language_name":"Espa\u00f1a","is_site_locale":true},"ru":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ru.js","geoip_code":"ru","language":"ru","name_on_widgets":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","title":"\u0420\u043e\u0441\u0441\u0438\u044f","show_on_widgets":true,"base_url":"https:\/\/ru.tradingview.com","current_url":"https:\/\/ru.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ru-ru","priority":700,"flag":"ru","language_name":"\u0420\u043e\u0441\u0441\u0438\u044f","is_site_locale":true},"tr":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/tr.js","geoip_code":"tr","language":"tr","name_on_widgets":"T\u00fcrk\u00e7e","title":"T\u00fcrkiye","show_on_widgets":true,"base_url":"https:\/\/tr.tradingview.com","current_url":"https:\/\/tr.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"tr-tr","priority":713,"flag":"tr","language_name":"T\u00fcrkiye","is_site_locale":true},"hu_HU":{"geoip_code":"hu","name_on_widgets":"Magyar","current_url":"https:\/\/hu.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"hu_HU-hu","disabled":true,"flag":"hu","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/hu_HU.js","language":"hu_HU","true_locale":"hu_HU","title":"Magyarorsz\u00e1g","show_on_widgets":true,"base_url":"https:\/\/hu.tradingview.com","priority":724,"language_name":"Magyarorsz\u00e1g"},"pl":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/pl.js","geoip_code":"pl","language":"pl","name_on_widgets":"Polski","title":"Polska","show_on_widgets":true,"base_url":"https:\/\/pl.tradingview.com","current_url":"https:\/\/pl.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"pl-pl","priority":725,"flag":"pl","language_name":"Polska","is_site_locale":true},"fr":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/fr.js","geoip_code":"fr","language":"fr","name_on_widgets":"French","title":"France","show_on_widgets":true,"base_url":"https:\/\/fr.tradingview.com","current_url":"https:\/\/fr.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"fr-fr","priority":750,"flag":"fr","language_name":"France","is_site_locale":true},"zh_TW":{"geoip_code":"tw","name_on_widgets":"\u7e41\u9ad4\u4e2d\u6587","countries_with_this_language":"hk","current_url":"https:\/\/tw.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"zh_TW-tw","flag":"tw","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/zh_TW.js","true_locale":"zh_TW","language":"zh_TW","title":"\u7e41\u9ad4","show_on_widgets":true,"base_url":"https:\/\/tw.tradingview.com","priority":536,"language_name":"\u7e41\u9ad4"},"ar_AE":{"geoip_code":"ae","name_on_widgets":"\u0627\u0644\u0639\u064e\u0631\u064e\u0628\u0650\u064a\u064e\u0651\u0629\u200e\u200e","current_url":"https:\/\/ar.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ar-ae","disabled":true,"flag":"ae","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ar.js","language":"ar","true_locale":"ar_AE","title":"Arabic","show_on_widgets":true,"base_url":"https:\/\/ar.tradingview.com","priority":500,"language_name":"Arabic","dir":"rtl"},"ms_MY":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ms_MY.js","geoip_code":"my","language":"ms_MY","true_locale":"ms_MY","title":"Malaysia","name_on_widgets":"Malay (Malaysia)","show_on_widgets":true,"base_url":"https:\/\/my.tradingview.com","current_url":"https:\/\/my.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ms_MY-my","priority":647,"flag":"my","language_name":"Malaysia","is_site_locale":true},"br":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/pt.js","geoip_code":"br","language":"pt","name_on_widgets":"Portugu\u00eas","title":"Brasil","show_on_widgets":true,"base_url":"https:\/\/br.tradingview.com","current_url":"https:\/\/br.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"pt-br","priority":650,"flag":"br","language_name":"Brasil","is_site_locale":true},"de_DE":{"geoip_code":"de","name_on_widgets":"Deutch","countries_with_this_language":["at","ch"],"current_url":"https:\/\/de.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"de-de","flag":"de","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/de.js","true_locale":"de_DE","language":"de","title":"Deutschland","show_on_widgets":true,"base_url":"https:\/\/de.tradingview.com","priority":756,"language_name":"Deutschland"},"ja":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ja.js","geoip_code":"jp","language":"ja","name_on_widgets":"\u65e5\u672c\u8a9e","title":"\u65e5\u672c","show_on_widgets":true,"base_url":"https:\/\/jp.tradingview.com","current_url":"https:\/\/jp.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ja-jp","priority":600,"flag":"jp","language_name":"\u65e5\u672c","is_site_locale":true},"fa_IR":{"geoip_code":"fa","name_on_widgets":"\u0641\u0627\u0631\u0633\u06cc","current_url":"https:\/\/ir.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"fa-fa","disabled":true,"flag":"ir","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/fa.js","language":"fa","true_locale":"fa_IR","title":"\u0627\u06cc\u0631\u0627\u0646","show_on_widgets":true,"base_url":"https:\/\/ir.tradingview.com","priority":480,"language_name":"\u0627\u06cc\u0631\u0627\u0646","dir":"rtl"},"zh_CN":{"geoip_code":"cn","name_on_widgets":"\u7b80\u4f53\u4e2d\u6587","countries_with_this_language":"zh","current_url":"https:\/\/cn.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"zh-cn","flag":"cn","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/zh.js","true_locale":"zh_CN","language":"zh","title":"\u7b80\u4f53","show_on_widgets":true,"base_url":"https:\/\/cn.tradingview.com","priority":537,"language_name":"\u7b80\u4f53"},"sv_SE":{"geoip_code":"se","name_on_widgets":"Swedish","current_url":"https:\/\/se.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"sv-se","disabled":true,"flag":"se","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/sv.js","language":"sv","true_locale":"sv_SE","title":"Sverige","show_on_widgets":true,"base_url":"https:\/\/se.tradingview.com","priority":723,"language_name":"Sverige"},"kr":{"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/ko.js","geoip_code":"kr","language":"ko","name_on_widgets":"\ud55c\uad6d\uc5b4","title":"\ud55c\uad6d","show_on_widgets":true,"base_url":"https:\/\/kr.tradingview.com","current_url":"https:\/\/kr.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"ko-kr","priority":550,"flag":"kr","language_name":"\ud55c\uad6d","is_site_locale":true},"he_IL":{"geoip_code":"il","name_on_widgets":"\u200f\u05e2\u05d1\u05e8\u05d9\u05ea\u200f","current_url":"https:\/\/il.tradingview.com\/marketoverviewwidgetembed\/","hreflang":"he_IL-il","disabled":true,"flag":"il","is_site_locale":true,"localization_url":"https:\/\/s-new.tradingview.com\/static\/localization\/translations\/he_IL.js","language":"he_IL","true_locale":"he_IL","title":"\u05d9\u05e9\u05e8\u05d0\u05dc","show_on_widgets":true,"base_url":"https:\/\/il.tradingview.com","priority":490,"language_name":"\u05d9\u05e9\u05e8\u05d0\u05dc","dir":"rtl"}};
  82. var _locale = urlParams.locale ? urlParams.locale.replace(/[^a-zA-Z\-\_]/g, '') : 'en';
  83.  
  84. var _allLocales = _widgetLocales;
  85. for (var lcl in _siteLocales) {
  86. _allLocales[lcl] = _siteLocales[lcl];
  87. }
  88.  
  89. if (_allLocales[_locale]) {
  90. window.locale = _siteLocales[_locale] ? _locale : 'en'; // backward compatibility
  91. window.language = _allLocales[window.locale]['language'];
  92. } else {
  93. window.locale = 'en';
  94. window.language = 'en';
  95. }
  96.  
  97. var localization_url =
  98. (_allLocales[window.locale] || {}).localization_url ||
  99. null
  100. ;
  101.  
  102. if (localization_url) {
  103. document.write('\x3Cscript crossorigin="anonymous" type="text/javascript" src="'+localization_url+'" charset="utf-8">\x3C/script>');
  104. }
  105.  
  106. // next is because of a problem of displaying vietnamese special symbols with `font-weight: bold;`
  107. if (window.locale === 'vi_VN') {
  108. document.querySelector('html').classList.add('font-VI-lang-safe');
  109. }
  110. })();
  111. </script>
  112.  
  113. </head>
  114. <body>
  115.  
  116. <div id="widget-market-overview-container"></div>
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127. <script type="text/javascript">
  128. this.TradingView=this.TradingView||{},function(){"use strict";function t(t){var e=t,n=function(){window.removeEventListener("online",n),e&&e()};return window.addEventListener("online",n),function(){e=null}}var e;!function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"}(e||(e={}));var n,o=!1,s=function(){};!function(t){function e(t){if(/loaded|complete/.test(document.readyState)||o)return t();window.addEventListener("load",t,!1)}function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function s(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}t.load=e,t.isArray=n,t.merge=s}(n||(n={})),n.load(function(){o=!0});var i,r=function(){function t(t,e){void 0===e&&(e={}),this._base=t,this._websocketType=t.options.websocketType,this._options={timeout:6e4},n.merge(this._options,e)}return t.prototype.switchWebsocketMode=function(t){this._binFrame=new Uint8Array([126,109,126]),this._websocketType=t,this._socket.binaryType="arraybuffer"},t.prototype.connect=function(){var t=this;this._socket=new WebSocket(this._prepareUrl()),this._socket.onmessage=function(e){t._onData(e.data)},this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this)},t.prototype.send=function(t){this._socket&&this._socket.send(this._websocketType===e.Binary?this._binEncode(t):this._encode(t))},t.prototype.disconnect=function(){this._clearIdleTimeout(),this._socket&&(this._socket.onmessage=s,this._socket.onclose=s,this._socket.onerror=s,this._socket.close())},t.prototype._clearIdleTimeout=function(){this._timeout&&clearTimeout(this._timeout)},t.prototype._encode=function(e){for(var o,s="",i=n.isArray(e)?e:[e],r=i.length,c=0;c<r;c++)o=null===i[c]||void 0===i[c]?"":t._stringify(i[c]),s+="~m~"+o.length+"~m~"+o;return s},t.prototype._binEncode=function(e){for(var o=this,s=n.isArray(e)?e:[e],i=s.length,r=0;r<i;r++)s[r]=null===s[r]||void 0===s[r]?"":s[r],s[r]="string"==typeof s[r]?t._str2ab(s[r]):s[r];for(var c=new Uint8Array(0),r=0;r<i;r++){var h=o._binEncodeMessage(s[r]),u=new Uint8Array(c.length+h.length);u.set(c,0),u.set(h,c.byteLength),c=u}return c},t.prototype._binEncodeMessage=function(e){var n=t._str2ab(e.byteLength.toString()),o=3+n.length+3+e.byteLength,s=new Uint8Array(o),i=0;return s.set(this._binFrame,i),i+=this._binFrame.length,s.set(n,i),i+=n.length,s.set(this._binFrame,i),i+=this._binFrame.length,s.set(new Uint8Array(e),i),i+=e.length,s},t.prototype._decode=function(t){var e,n,o=[];do{if("~m~"!==t.substr(0,3))return o;t=t.substr(3),e="",n="";for(var s=t.length,i=0;i<s;i++){if(n=Number(t.substr(i,1)),Number(t.substr(i,1))!==n){t=t.substr(e.length+"~m~".length),e=Number(e);break}e+=n}o.push(t.substr(0,e)),t=t.substr(e)}while(""!==t);return o},t.prototype._decodeBinary=function(t){var e,n,o,s=this,i=[],r=new Uint8Array(t);do{null!==(e=s._checkFrameSize(r))&&(n=e.size,o=e.startPosition,i.push(r.subarray(o,o+n)),r=r.subarray(o+n,r.length))}while(0!==r.length);return i},t.prototype._checkFrameSize=function(t){var e=0,n=null;if(t.length<6)return null;if(126!==t[0]||109!==t[1]||126!==t[2])return null;var o=void 0,s=void 0,i=void 0;for(o=i=3;(126!==t[i]||109!==t[i+1]||126!==t[i+2])&&i<=t.length;)i++;if(i>=t.length)return null;n=i+3,s=i;for(var r=t.subarray(o,s),c=r.length-1;c>=0;c--)e+=(r[c]-48)*Math.pow(10,r.length-c-1);return{size:e,startPosition:n}},t.prototype._onData=function(t){var n=this;this._setTimeout();var o;this._websocketType===e.Binary?o=this._decodeBinary(t):this._websocketType===e.Text&&(o=this._decode(t));var s=o.length;if(o&&o.length)for(var i=0;i<s;i++)n._onMessage(o[i])},t.prototype._setTimeout=function(){this._clearIdleTimeout(),this._timeout=setTimeout(this._onTimeout.bind(this),this._options.timeout)},t.prototype._onTimeout=function(){this.disconnect(),this._onDisconnect({code:4e3,reason:"socket.io timeout",wasClean:!1})},t.prototype._onMessage=function(t){this.sessionid?this._checkIfHeartbeat(t)?this._onHeartbeat(this._websocketType===e.Binary?t.subarray(3):t.slice(3)):this._checkIfJson(t)?this._base.onMessage(JSON.parse(t.slice(3))):this._base.onMessage(t):(this.sessionid=t,this._onConnect())},t.prototype._checkIfHeartbeat=function(t){return this._checkMessageType(t,"h")},t.prototype._checkIfJson=function(t){return this._checkMessageType(t,"j")},t.prototype._checkMessageType=function(t,n){if(this._websocketType===e.Binary){var o=n.charCodeAt(0);if(126===t[0]&&t[1]===o&&126===t[2])return!0}else if(this._websocketType===e.Text&&t.substr(0,3)==="~"+n+"~")return!0;return!1},t.prototype._onHeartbeat=function(n){var o=this._websocketType===e.Binary?t._ab2str(n):n;this.send("~h~"+o)},t.prototype._onConnect=function(){this.connected=!0,this._base.onConnect(),this._setTimeout()},t.prototype._onDisconnect=function(t){this._clear(),this._base.onDisconnect(t),this.sessionid=null},t.prototype._clear=function(){this.connected=!1},t.prototype._prepareUrl=function(){return(this._base.options.secure?"wss":"ws")+"://"+this._base.host+(this._base.options.port?":"+this._base.options.port:"")+"/"+this._base.options.resource+"/websocket"+(this.sessionid?"/"+this.sessionid:"")+"?from="+encodeURIComponent(window.location.pathname.slice(1,50))+"&date="+encodeURIComponent("2017-12-12_15-28")},t.prototype._onClose=function(t){this._clearIdleTimeout(),this._onDisconnect(t)},t.prototype._onError=function(t){this._clearIdleTimeout(),this._clear(),this._base.emit("error",[t]),this.sessionid=null},t._stringify=function(t){return"[object Object]"===Object.prototype.toString.call(t)?"~j~"+JSON.stringify(t):String(t)},t._str2ab=function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e},t._ab2str=function(t){for(var e="",n=0;n<=t.length-1;n++)e+=String.fromCharCode(t[n]);return e},t}(),c=function(){function t(t,e){this._queueStack=[],this.host=t||document.domain,this.options={secure:!1,document:document,port:document.location.port||80,resource:"socket.io",connectTimeout:5e3,tryTransportsOnConnectTimeout:!0},n.merge(this.options,e),this._connecting=!1,this._events={},this.transport=this._getTransport()}return t.prototype.isConnected=function(){return!!this.transport&&this.transport.connected},t.prototype.isConnecting=function(){return this._connecting},t.prototype.connect=function(){this.isConnected()||(this._connecting&&this.disconnect(),this._connecting=!0,this.transport.connect())},t.prototype.send=function(t){if(!this.transport||!this.transport.connected)return this._queue(t);this.transport.send(t)},t.prototype.disconnect=function(){this.transport&&this.transport.disconnect()},t.prototype.on=function(t,e){t in this._events||(this._events[t]=[]),this._events[t].push(e)},t.prototype.offAll=function(){this._events={}},t.prototype.onMessage=function(t){this.emit("message",[t])},t.prototype.emit=function(t,e){var n=this;if(void 0===e&&(e=[]),t in this._events)for(var o=this._events[t].concat(),s=o.length,i=0;i<s;i++)o[i].apply(n,e)},t.prototype.onConnect=function(){this.clear(),this._doQueue(),this.emit("connect")},t.prototype.onDisconnect=function(t){this.emit("disconnect",[t])},t.prototype.clear=function(){this._connecting=!1,this._queueStack=[]},t.prototype._queue=function(t){this._queueStack.push(t)},t.prototype._doQueue=function(){this._queueStack.length&&(this.transport.send(this._queueStack),this._queueStack=[])},t.prototype._getTransport=function(){return new r(this)},t}();!function(t){t[t.Normal=300]="Normal",t[t.AfterCloseEvent=5e3]="AfterCloseEvent"}(i||(i={}));var h;!function(t){t[t.Info=0]="Info",t[t.Normal=1]="Normal",t[t.Debug=2]="Debug",t[t.Error=3]="Error"}(h||(h={}));var u=function(){function n(t,e){this._logsQueue=[],this._telemetryObjectsQueue=[],this._reconnectCount=0,this._redirectCount=0,this._shouldReconnect=!0,this._reconnectTimeouts=[],this._onlineCancellationToken=null,this._port=e,this._suggestedHost=t,this._isSecure="https:"===location.protocol,this._doConnect()}return n.prototype.connect=function(){this._shouldReconnect=!0,this._tryReconnect()},n.prototype.resetCounters=function(){this._reconnectCount=0,this._redirectCount=0},n.prototype.setLogger=function(t){this._logger=t,this._flushLogs()},n.prototype.setTelemetry=function(t){this._telemetry=t,this._flushTelemetry()},n.prototype.onReconnect=function(t){this._onReconnect=t},n.prototype.isConnected=function(){return!!this._socket&&this._socket.isConnected()},n.prototype.isConnecting=function(){return!!this._socket&&this._socket.isConnecting()},n.prototype.on=function(t,e){return!!this._socket&&("connect"===t&&this._socket.isConnected()?e():"disconnect"===t?this._disconnectCallbacks.push(e):this._socket.on(t,e),!0)},n.prototype.getSessionId=function(){return this._socket&&this._socket.transport?this._socket.transport.sessionid:null},n.prototype.send=function(t){return!!this._socket&&(this._socket.send(t),!0)},n.prototype.switchWebsocketMode=function(t){return!(!this._socket||!this._socket.transport)&&(this._socket.transport.switchWebsocketMode(t),!0)},n.prototype.getConnectionDuration=function(){return Date.now()-this._connectionStart},n.prototype.getHost=function(){return void 0!==window.user&&window.user.pro_plan&&window.TradingView.onChartPage&&"battle"===window.environment&&!this._redirectCount&&this._reconnectCount<3&&-1===window.location.href.indexOf("ws_host")?"prodata.tradingview.com":"widgetdata.tradingview.com"===this._suggestedHost&&this._reconnectCount>3?"widgetdata-backup.tradingview.com":this._suggestedHost},n.prototype.getReconnectCount=function(){return this._reconnectCount},n.prototype.getRedirectCount=function(){return this._redirectCount},n.prototype.getConnectionStart=function(){return this._connectionStart},n.prototype.disconnect=function(){(this.isConnected()||this.isConnecting())&&(this._propagateDisconnect(),this._disconnectCallbacks=[],this._reconnectTimeouts.forEach(clearTimeout),this._reconnectTimeouts=[],this._socket&&(this._socket.disconnect(),this._socket.offAll(),this._socket=null))},n.prototype.isMaxRedirects=function(){return this._redirectCount>=20},n.prototype.isMaxReconnects=function(){return this._reconnectCount>=20},n.prototype._onDisconnect=function(t){var e="disconnect session:"+this.getSessionId();t&&(e+=", code:"+t.code+", reason:"+t.reason),this._logMessage(h.Info,e),this._reconnectTimeouts.push(setTimeout(this._tryReconnect.bind(this),i.AfterCloseEvent)),this._propagateDisconnect(t)},n.prototype._logMessage=function(t,e){var n={method:t,message:e};this._logger?this._flushLogMessage(n):(n.message="["+(new Date).toISOString()+"] "+n.message,this._logsQueue.push(n))},n.prototype._flushLogMessage=function(t){switch(t.method){case h.Debug:this._logger.logDebug(t.message);break;case h.Error:this._logger.logError(t.message);break;case h.Info:this._logger.logInfo(t.message);break;case h.Normal:this._logger.logNormal(t.message)}},n.prototype._flushLogs=function(){var t=this;this._flushLogMessage({method:h.Normal,message:"messages from queue. Start."}),this._logsQueue.forEach(function(e){t._flushLogMessage(e)}),this._flushLogMessage({method:h.Normal,message:"messages from queue. End."}),this._logsQueue=[]},n.prototype._sendTelemetry=function(t,e){var n={component:t,message:e};this._telemetry?this._flushTelemetryObject(n):this._telemetryObjectsQueue.push(n)},n.prototype._flushTelemetryObject=function(t){this._telemetry.sendReport(t.component,t.message)},n.prototype._flushTelemetry=function(){var t=this;this._telemetryObjectsQueue.forEach(function(e){t._flushTelemetryObject(e)}),this._telemetryObjectsQueue=[]},n.prototype._doConnect=function(){this._socket&&(this._socket.isConnected()||this._socket.isConnecting())||(this._onlineCancellationToken&&(this._onlineCancellationToken(),this._onlineCancellationToken=null),this._host=this.getHost(),this._socket=new c(this._host,{port:this._port,secure:this._isSecure,websocketType:e.Text}),this._logMessage(h.Info,"Connecting to "+this._host+":"+this._port),this._bindEvents(),this._disconnectCallbacks=[],this._connectionStart=Date.now(),this._socket.connect())},n.prototype._propagateDisconnect=function(t){for(var e=this,n=this._disconnectCallbacks.length,o=0;o<n;o++)e._disconnectCallbacks[o](t||{})},n.prototype._bindEvents=function(){var t=this;this._socket&&(this._socket.on("connect",function(){var e=t.getSessionId();if("string"==typeof e){var n=JSON.parse(e);if(n.redirect)return t._redirectCount+=1,t._suggestedHost=n.redirect,t.isMaxRedirects()&&t._sendTelemetry("charts","redirect_bailout"),void t._redirect()}t._logMessage(h.Info,"connect session:"+e)}),this._socket.on("disconnect",this._onDisconnect.bind(this)),this._socket.on("close",this._onDisconnect.bind(this)),this._socket.on("error",function(e){t._logMessage(h.Info,new Date+" session:"+t.getSessionId()+" websocket error:"+e.toString())}))},n.prototype._redirect=function(){this._socket&&(this._socket.disconnect(),this._socket=null),this._onReconnect&&this._onReconnect(),this._reconnectWhenOnline()},n.prototype._tryReconnect=function(){!this.isConnected()&&this._shouldReconnect&&(this._reconnectCount+=1,this.disconnect(),this._reconnectWhenOnline())},n.prototype._reconnectWhenOnline=function(){var e=this;if(navigator.onLine)return this._logMessage(h.Info,"Network status: online - trying to connect"),this._doConnect(),void(this._onReconnect&&this._onReconnect());this._logMessage(h.Info,"Network status: offline - wait until online"),this._onlineCancellationToken=t(function(){e._logMessage(h.Info,"Network status changed to online - trying to connect"),e._doConnect(),e._onReconnect&&e._onReconnect()})},n}();window.WSBackendConnection=new u(window.WEBSOCKET_HOST,window.WEBSOCKET_PORT),window.WSBackendConnectionCtor=u}();
  129. </script>
  130.  
  131.  
  132. <script crossorigin="anonymous" type="text/javascript" src="https://s-new.tradingview.com/static/bundles/vendors_embed.eefce4234596bfc2eca9.aa5ef4ac195e.js" ></script>
  133. <script crossorigin="anonymous" type="text/javascript" src="https://s-new.tradingview.com/static/bundles/embed_embed_marketoverviewwidget.5197631585745dbb2433.f11509ccf12e.js" ></script>
  134.  
  135.  
  136.  
  137. <script type="text/javascript">
  138. var _gaq = _gaq || [];
  139. _gaq.push(['_setAccount', 'UA-96861365-1']);
  140. _gaq.push(['_setDomainName', 's.tradingview.com']);
  141. _gaq.push(['_setAllowLinker', true]);
  142. _gaq.push(['_trackPageview']);
  143. _gaq.push(['_setCustomVar', 5, 'Source Page Type', 'Market Overview Widget']);
  144. (function() {
  145. var ga = document.createElement('script');
  146. ga.type = 'text/javascript';
  147. ga.async = true;
  148. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  149. var s = document.getElementsByTagName('script')[0];
  150. s.parentNode.insertBefore(ga, s);
  151. })();
  152. </script>
  153. </body>
  154. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement