New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@activfinancial/chartiq-sample

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@activfinancial/chartiq-sample - npm Package Compare versions

Comparing version 0.4.32 to 0.4.33

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.4.33](https://github.com/activfinancial/cg-api-examples/compare/@activfinancial/chartiq-sample@0.4.32...@activfinancial/chartiq-sample@0.4.33) (2019-08-02)
**Note:** Version bump only for package @activfinancial/chartiq-sample
## [0.4.32](https://github.com/activfinancial/cg-api-examples/compare/@activfinancial/chartiq-sample@0.4.31...@activfinancial/chartiq-sample@0.4.32) (2019-07-25)

@@ -8,0 +16,0 @@

2

lib/index.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@activfinancial/cg-api")):"function"==typeof define&&define.amd?define(["@activfinancial/cg-api"],t):"object"==typeof exports?exports.activ_chartiq_sample=t(require("@activfinancial/cg-api")):e.activ_chartiq_sample=t(e.activ)}(window,function(e){return function(e){var t={};function i(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(a,r,function(t){return e[t]}.bind(null,r));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}([function(t,i){t.exports=e},function(e,t,i){"use strict";i.r(t);var a=i(0);"undefined"!=typeof window&&window.fin;var r;!function(e){e.initialize="initialize",e.period="period",e.symbol="symbol"}(r||(r={}));var s,n=function(e,t,i,a){return new(i||(i=Promise))(function(r,s){function n(e){try{l(a.next(e))}catch(e){s(e)}}function o(e){try{l(a.throw(e))}catch(e){s(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(n,o)}l((a=a.apply(e,t||[])).next())})},o=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(i){t[i]=e[i]&&function(t){return new Promise(function(a,r){(function(e,t,i,a){Promise.resolve(a).then(function(t){e({value:t,done:i})},t)})(a,r,(t=e[i](t)).done,t.value)})}}};!function(e){e[e.none=0]="none",e[e.poll=1]="poll",e[e.subscribe=2]="subscribe"}(s||(s={}));class l{constructor(e){this.updateType=e,this.intervalMap={minute:{makeRequest:(e,t,i,a,r,s,n)=>this.makeIntradayRequest(e,t,i,a,r,s,n),adjustEndDate:(e,t)=>(e.setMinutes(e.getMinutes()-t.period),e)},day:{makeRequest:(e,t,i,r,s,n,o)=>this.makeHistoryRequest(e,t,i,r,s,n,o,a.TimeSeries.HistorySeriesType.dailyBars),adjustEndDate:(e,t)=>(e.setDate(e.getDate()-t.period),e)},week:{makeRequest:(e,t,i,r,s,n,o)=>this.makeHistoryRequest(e,t,i,r,s,n,o,a.TimeSeries.HistorySeriesType.weeklyBars),adjustEndDate:(e,t)=>(e.setDate(e.getDate()-7*t.period),e)},month:{makeRequest:(e,t,i,r,s,n,o)=>this.makeHistoryRequest(e,t,i,r,s,n,o,a.TimeSeries.HistorySeriesType.monthlyBars),adjustEndDate:(e,t)=>(e.setMonth(e.getMonth()-t.period),e)}},this.clientPromise=null,this.subscriptionMap={}}setClient(e){this.clientPromise=e}subscribe(e){var t,i;return n(this,void 0,void 0,function*(){if(this.updateType!==s.subscribe)return;if(null==this.clientPromise)return;switch(e.reason){case r.initialize:case r.symbol:break;default:return}const n={chartEngine:e.stx,isPrimary:null==e.id,processUpdate:function(e){const t={};let i=0;for(const s of e.fieldData)if(s.doesUpdateLastValue&&null!=s.value)switch(s.id){case a.FieldId.FID_TRADE:t.Last=s.value.valueOf();break;case a.FieldId.FID_TRADE_SIZE:t.Volume=s.value;break;case a.FieldId.FID_TRADE_TIME:i=(r=s.value).getMilliseconds()+1e3*r.getSeconds()+60*r.getMinutes()*1e3+60*r.getHours()*60*1e3;break;case a.FieldId.FID_TRADE_DATE:this.currentDate=s.value.getTime()}var r;t.DT=new Date(this.currentDate+i);const s={fillGaps:!0};this.isPrimary||(s.secondarySeries=e.responseKey.symbol),this.chartEngine.updateChartData(t,null,s)},currentDate:0},l=yield this.clientPromise;n.requestHandle=l.streaming.getEqual({key:e.symbol,fieldIds:[a.FieldId.FID_TRADE,a.FieldId.FID_TRADE_SIZE,a.FieldId.FID_TRADE_DATE,a.FieldId.FID_TRADE_TIME,a.FieldId.FID_CLOSE],subscription:{type:a.Streaming.SubscriptionType.eventTypeFilterIncludeList,eventTypes:[a.EventType.trade],updateHandler:e=>{n.processUpdate(e)}}});try{for(var c,d=o(n.requestHandle);!(c=yield d.next()).done;){const e=c.value.getField(a.FieldId.FID_TRADE_DATE);null!=e.value&&(n.currentDate=e.value.getTime());break}}catch(e){t={error:e}}finally{try{c&&!c.done&&(i=d.return)&&(yield i.call(d))}finally{if(t)throw t.error}}this.subscriptionMap[e.symbol]=n})}unsubscribe(e){if(this.updateType!==s.subscribe)return;if(e.reason!==r.symbol)return;const t=this.subscriptionMap[e.symbol];null!=t&&(null!=t.requestHandle&&t.requestHandle.delete(),delete this.subscriptionMap[e.symbol])}fetchInitialData(e,t,i,r,s){const n=this.intervalMap[r.interval];null!=n&&n.makeRequest("fetchInitialData",e,a.TimeSeries.PeriodType.utcDateTime,t,i,r,s)}fetchPaginationData(e,t,i,r,s){const n=this.intervalMap[r.interval];null!=n&&n.makeRequest("fetchPaginationData",e,a.TimeSeries.PeriodType.exchangeLocalDateTime,t,n.adjustEndDate(i,r),r,s)}fetchUpdateData(e,t,i,r){if(this.updateType!==s.poll)return;const n=this.intervalMap[i.interval];null!=n&&n.makeRequest("fetchUpdateData",e,a.TimeSeries.PeriodType.exchangeLocalDateTime,t,null,i,r)}static makeEndPeriod(e,t){return t?{type:e,date:t}:{type:a.TimeSeries.PeriodType.now}}makeIntradayRequest(e,t,i,r,s,o,c){return n(this,void 0,void 0,function*(){if(null==this.clientPromise)return void c({error:"Not connected"});let n;switch(o.period){case 1:n=a.TimeSeries.IntradaySeriesType.oneMinuteBars;break;case 5:n=a.TimeSeries.IntradaySeriesType.fiveMinuteBars;break;default:n=a.TimeSeries.IntradaySeriesType.specifiedMinuteBars}const d=(yield this.clientPromise).timeSeries.getIntraday({key:t,seriesType:n,minuteInterval:o.period,periods:[{type:i,date:r},l.makeEndPeriod(i,s)],fieldFilterType:a.TimeSeries.IntradayFieldFilterType.miniBar,recordFilterType:a.TimeSeries.IntradayRecordFilterType.regularTrades});this.processResponses(e,d,c)})}makeHistoryRequest(e,t,i,r,s,o,c,d){return n(this,void 0,void 0,function*(){if(null==this.clientPromise)return void c({error:"Not connected"});const n=(yield this.clientPromise).timeSeries.getHistory({key:t,seriesType:d,periods:[{type:i,date:r},l.makeEndPeriod(i,s)],fieldFilterType:a.TimeSeries.HistoryFieldFilterType.miniBar});this.processResponses(e,n,c)})}processResponses(e,t,i){(()=>n(this,void 0,void 0,function*(){var a,r;let s=[];try{try{for(var n,l=o(t);!(n=yield l.next()).done;){const e=n.value,t={DT:e.dateTime,Open:e.open?+e.open:null,High:e.high?+e.high:null,Low:e.low?+e.low:null,Close:e.close?+e.close:null,Volume:e.totalVolume};s.push(t)}}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=l.return)&&(yield r.call(l))}finally{if(a)throw a.error}}i({quotes:s}),console.log(`${s.length} bars in ${e} response`)}catch(e){i({error:e.message})}}))()}}class c{constructor(e=100){this.maxResults=e,this.clientPromise=null,this.requestCounter=0}setClient(e){this.clientPromise=e}acceptText(e,t,i,r){var s,l;return n(this,void 0,void 0,function*(){if(null==this.clientPromise)return;const n=Math.min(Number(i),this.maxResults)||this.maxResults;let c=[],d=a.SymbolDirectory.FilterType.includeEntityTypes;switch(t){case"STOCKS":c.push(a.EntityType.equity);break;case"FX":c.push(a.EntityType.forex);break;case"INDEXES":c.push(a.EntityType.index);break;case"FUNDS":c.push(a.EntityType.mutualFund);break;case"FUTURES":c.push(a.EntityType.future);break;default:d=void 0}const u=++this.requestCounter;let y=[];const h=yield this.clientPromise;try{const t=h.symbolDirectory.getSymbols({search:e,fieldId:a.FieldId.FID_LOCAL_CODE,matchType:a.SymbolDirectory.MatchType.exact,entityTypes:c,filterType:d});yield this.processResponse(t,u,y,n)}catch(e){}if(y.length<n)try{const t=h.symbolDirectory.getSymbols({search:e,fieldId:a.FieldId.FID_NAME,matchType:a.SymbolDirectory.MatchType.exact,entityTypes:c,filterType:d});yield this.processResponse(t,u,y,n)}catch(e){}if(u!==this.requestCounter)return;const m={};try{const e=h.streaming.getEqual({key:y.map(e=>e.data.symbol),relationships:{[a.RelationshipId.company]:{fieldIds:[a.FieldId.FID_NAME]}}});try{for(var p,f=o(e);!(p=yield f.next()).done;){const e=p.value,t=e.getField(a.FieldId.FID_NAME);null!=t.value&&(m[e.requestedKey.symbol]=t.value)}}catch(e){s={error:e}}finally{try{p&&!p.done&&(l=f.return)&&(yield l.call(f))}finally{if(s)throw s.error}}}catch(e){}if(u===this.requestCounter){for(const e of y){const t=m[e.data.symbol];null!=t&&(e.display[1]=t)}r(y)}})}processResponse(e,t,i,r){var s,l,c,d;return n(this,void 0,void 0,function*(){const n=yield this.clientPromise;try{for(s=o(e);!(l=yield s.next()).done;){const e=l.value;if(t!==this.requestCounter)return;let s="";try{s=(yield n.metaData.getExchangeInfo(e.symbolId.symbol)).name}catch(e){}let o=e.matchData;if(i.push({data:{symbol:e.symbolId.symbol},display:[e.symbolId.symbol,o,s,a.EntityType[e.entityType]]}),i.length>=r)return}}catch(e){c={error:e}}finally{try{l&&!l.done&&(d=s.return)&&(yield d.call(s))}finally{if(c)throw c.error}}})}}var d=function(e,t){function i(){var e=$(window).height(),t=$(".ciq-chart").height();$("body").hasClass("toolbar-on")?$(c.chart.container).height(t-45):$(c.chart.container).height(t),$("#maxHeightCSS").remove(),$("head").append('<style id="maxHeightCSS">cq-dialog { max-height: '+e+"px }</style>")}var a=$(".stx-markers cq-item.circle");a[0].selectFC=function(){$(".stx-markers .ciq-radio").removeClass("ciq-active"),a.find($(".ciq-radio")).addClass("ciq-active"),h("circle")},a.stxtap(a[0].selectFC);var r=$(".stx-markers cq-item.square");r[0].selectFC=function(){$(".stx-markers .ciq-radio").removeClass("ciq-active"),r.find($(".ciq-radio")).addClass("ciq-active"),h("square")},r.stxtap(r[0].selectFC);var s=$(".stx-markers cq-item.callout");s[0].selectFC=function(){$(".stx-markers .ciq-radio").removeClass("ciq-active"),s.find($(".ciq-radio")).addClass("ciq-active"),h("callout")},s.stxtap(s[0].selectFC);var n=$(".stx-markers cq-item.abstract");n[0].selectFC=function(){$(".stx-markers .ciq-radio").removeClass("ciq-active"),n.find($(".ciq-radio")).addClass("ciq-active"),y();var e=$(".stx-marker.abstract").clone();e.css({"z-index":"30",left:(.4*c.chart.width).toString()+"px"});new CIQ.Marker({stx:c,xPositioner:"none",yPositioner:"above_candle",label:"helicopter",permanent:!0,chartContainer:!0,node:e[0]});c.draw()},n.stxtap(n[0].selectFC);var o=$(".stx-markers cq-item.none");o[0].selectFC=function(){$(".stx-markers .ciq-radio").removeClass("ciq-active"),o.find($(".ciq-radio")).addClass("ciq-active"),y()},o.stxtap(o[0].selectFC);var l,c=new CIQ.ChartEngine({container:$(".chartContainer")[0],preferences:{labels:!1,currentPriceLine:!0,whitespace:0}});function d(e){var t=JSON.stringify(e.stx.exportLayout(!0));CIQ.localStorageSetItem("myChartLayout",t)}function u(e,t){var i=CIQ.localStorage.getItem(t);if(null!==i){var a=JSON.parse(i);a&&(e.importDrawings(a),e.draw())}}function y(){CIQ.Marker.removeByLabel(c,"circle"),CIQ.Marker.removeByLabel(c,"square"),CIQ.Marker.removeByLabel(c,"callout"),CIQ.Marker.removeByLabel(c,"helicopter")}function h(e){y();var t=c.masterData.length,i=[];t>=5&&i.push({x:c.masterData[t-5].DT,type:e,category:"news",headline:"This is a Marker for a News Item"}),t>=15&&i.push({x:c.masterData[t-15].DT,type:e,category:"earningsUp",headline:"This is a Marker for Earnings (+)"}),t>=25&&i.push({x:c.masterData[t-25].DT,type:e,category:"earningsDown",headline:"This is a Marker for Earnings (-)"}),t>=35&&i.push({x:c.masterData[t-35].DT,type:e,category:"dividend",headline:"This is a Marker for Dividends"}),t>=45&&i.push({x:c.masterData[t-45].DT,type:e,category:"filing",headline:"This is a Marker for a Filing"}),t>=55&&i.push({x:c.masterData[t-55].DT,type:e,category:"split",headline:"This is a Marker for a Split"});for(var a=0;a<i.length;a++){var r=i[a];r.story="Like all ChartIQ markers, the object itself is managed by the chart, so when you scroll the chart the object moves with you. It is also destroyed automatically for you when the symbol is changed.";var s={stx:c,label:e,xPositioner:"date",x:r.x,node:new CIQ.Marker.Simple(r)};new CIQ.Marker(s)}c.draw()}function m(){if(l){$(window).width()>700?($("body").removeClass("break-md break-sm").addClass("break-lg"),$(".icon-toggles").removeClass("sidenav active").addClass("ciq-toggles"),c.layout.sidenav="sidenavOff",$("#symbol").attr("placeholder","Enter Symbol")):$(window).width()<=700&&$(window).width()>584?($("body").removeClass("break-lg break-sm").addClass("break-md"),$(".icon-toggles").removeClass("sidenav active").addClass("ciq-toggles"),c.layout.sidenav="sidenavOff",$("#symbol").attr("placeholder","Symbol")):$(window).width()<=584&&($("body").removeClass("break-md break-lg").addClass("break-sm"),$(".icon-toggles").removeClass("ciq-toggles").addClass("sidenav"),$("#symbol").attr("placeholder","")),$("cq-dialog").each(function(){this.center()}),i();var e=$("cq-side-panel")[0],t=$(".sidenav"),a=t.hasClass("active")?t.width():0;e?($(".ciq-chart-area").css({right:e.nonAnimatedWidth()+a+"px"}),$("cq-tradingcentral").css({"margin-right":e.nonAnimatedWidth()+15+"px"})):$(".ciq-chart-area").css({right:a+"px"}),c.resizeChart()}}return c.setDrawingContainer($$$("cq-toolbar")),c.attachQuoteFeed(e,{refreshInterval:1,bufferSize:200}),c.setMarketFactory(CIQ.Market.Symbology.factory),new CIQ.ExtendedHours({stx:c,filter:!0}),new CIQ.InactivityTimer({stx:c,minutes:30}),c.callbacks.layout=d,c.callbacks.symbolChange=d,c.callbacks.drawing=function(e){var t=e.stx.exportDrawings();0===t.length?CIQ.localStorage.removeItem(e.symbol):CIQ.localStorageSetItem(e.symbol,JSON.stringify(t))},c.callbacks.newChart=function(e){$(".stx-markers .ciq-radio.ciq-active").parent().triggerHandler("stxtap")},c.callbacks.preferences=function(e){CIQ.localStorageSetItem("myChartPreferences",JSON.stringify(c.exportPreferences()))},new CIQ.RangeSlider({stx:c}),function(){l=new CIQ.UI.Context(c,$("cq-context,[cq-context]")),new CIQ.UI.Layout(l);var e=new CIQ.UI.HeadsUp($("cq-hu-dynamic"),l,{followMouse:!0,autoStart:!1}),a=new CIQ.UI.HeadsUp($("cq-hu-static"),l,{autoStart:!0});l.changeSymbol=function(e){var t=this.stx;for(var i in this.loader&&this.loader.show(),e.symbol==e.symbol.toLowerCase()&&(e.symbol=e.symbol.toUpperCase()),t.chart.series)"study"!=c.chart.series[i].parameters.bucket&&t.removeSeries(i);var a=this;t.loadChart(e,function(e){e?a.loader&&a.loader.hide():(a.loader&&a.loader.hide(),u(t,t.chart.symbol))})},l.setLookupDriver(t),l.UISymbolLookup=$(".ciq-search cq-lookup")[0],l.UISymbolLookup.setCallback(function(e,t){e.changeSymbol(t)}),new CIQ.UI.KeystrokeHub($("body"),l,{cb:CIQ.UI.KeystrokeHub.defaultHotKeys});var r=new CIQ.UI.DrawingEdit(null,l);r.preventAutoClose=!0,r.node.addEventListener("drawing-edit-begin",function(e){$("body").hasClass("toolbar-on")||(r.preventAutoClose=!1,$(".ciq-draw").each(function(){this.priorVectorType=e.detail.tool,this.set(!0)}))},!1),r.node.addEventListener("drawing-edit-end",function(e){r.preventAutoClose||("edit"!==e.detail.action&&(r.preventAutoClose=!0),"close"===e.detail.action&&$(".ciq-draw").each(function(){this.set(!1)}))},!1),new CIQ.UI.StudyEdit(null,l);var s=new CIQ.NameValueStore;$("cq-themes")[0].initialize({builtInThemes:{"ciq-day":"Day","ciq-night":"Night"},defaultTheme:"ciq-night",nameValueStore:s});var n=$("cq-side-panel")[0];n&&n.registerCallback(m),$(".ciq-sidenav")[0].registerCallback(function(e){var t,i=this.context.stx,a=n?n.nonAnimatedWidth():0;if("sidenavOn"===e){var r=$(".stx-holder").height();$(".sidenav").height(r),this.node.addClass("active"),i.layout.sidenav="sidenavOn",$(".sidenav").addClass("active"),t=this.node.width()+a}else"sidenavOff"===e&&(t=a,$(".sidenav").removeClass("active"),this.node.removeClass("active"),i.layout.sidenav="sidenavOff");$("cq-side-panel").css("right",t-a+"px"),$(".ciq-chart-area").css({right:t+"px"}),$("cq-tradingcentral").css({"margin-right":t+15+"px"}),i.resizeChart()}),$(".ciq-HU")[0].registerCallback(function(t){"static"===t?(e.end(),a.begin(),this.node.addClass("active")):"dynamic"===t?CIQ.isMobile||this.context.stx.layout.crosshair?(this.set("static"),e.end(),a.begin(),this.node.addClass("active")):(a.end(),e.begin(),this.node.addClass("active")):(a.end(),e.end(),this.node.removeClass("active"))}),$(".ciq-draw")[0].registerCallback(function(e){e?(this.node.addClass("active"),$("body").addClass("toolbar-on")):(this.node.removeClass("active"),$("body").removeClass("toolbar-on")),i();var t=this.context.stx;t.resizeChart(),e?t.changeVectorType(this.priorVectorType):(this.priorVectorType=t.currentVectorParameters.vectorType,t.changeVectorType(""))}),$(".stx-trade")[0]&&$(".stx-trade")[0].registerCallback(function(e){var t=$("cq-side-panel")[0];e?(t.open({selector:".stx-trade-panel",className:"active"}),this.node.addClass("active"),$(".stx-trade-panel").removeClass("closed"),c.layout.sidenav="sidenavOff"):(t.close(),this.node.removeClass("active"),$(".stx-trade-panel").addClass("closed"))}),$(".stx-tradingcentral")[0]&&$(".stx-tradingcentral")[0].registerCallback(function(e){var t=$("cq-tradingcentral")[0];e?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}),$("cq-redo")[0].pairUp($("cq-undo")),$("cq-views").each(function(){this.initialize()});var o,d,y,h,p={excludedStudies:{Directional:!0,Gopala:!0,vchart:!0},alwaysDisplayDialog:{ma:!0,AVWAP:!0}};$("cq-studies").each(function(){this.initialize(p)}),l.loader&&l.loader.show(),(o=CIQ.localStorage.getItem("myChartPreferences"))&&c.importPreferences(JSON.parse(o)),d=c,y=function(){l.loader&&l.loader.hide();var e=$("cq-study-legend");if(e.length)for(var t=0;t<e.length;t++)e[t].begin()},h=CIQ.localStorage.getItem("myChartLayout"),d.importLayout(JSON.parse(h),{managePeriodicity:!0,cb:function(){u(d,d.chart.symbol),y&&y()}}),c.chart.symbol||l.UISymbolLookup.selectItem({symbol:"AAPL"}),CIQ.UI.begin()}(),m(),$(window).resize(m),c},u=function(e,t,i,a){return new(i||(i=Promise))(function(r,s){function n(e){try{l(a.next(e))}catch(e){s(e)}}function o(e){try{l(a.throw(e))}catch(e){s(e)}}function l(e){e.done?r(e.value):new i(function(t){t(e.value)}).then(n,o)}l((a=a.apply(e,t||[])).next())})};class y{constructor(e){this.quoteFeed=new l(s.poll),this.lookupDriver=new c,this.setClient(e),d(this.quoteFeed,this.lookupDriver)}setClient(e){this.quoteFeed.setClient(e),this.lookupDriver.setClient(e)}}!function(){u(this,void 0,void 0,function*(){yield function(e){return new Promise(t=>{"loading"===e.readyState?e.addEventListener("DOMContentLoaded",t):t()})}(document);let e=null,t=!1;for(;;){try{const i=Object(a.connect)({url:"ams://cg-ny4-web.activfinancial.com/ContentGateway:Service"});null==e?e=new y(i):e.setClient(i);const r=yield i;console.log("Connected"),yield r.disconnected,t=!0}catch(e){console.log(e)}if(null!=e&&e.setClient(null),t)break;yield Object(a.asyncSleep)(5e3)}})}()}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@activfinancial/cg-api")):"function"==typeof define&&define.amd?define(["@activfinancial/cg-api"],t):"object"==typeof exports?exports.activ_chartiq_sample=t(require("@activfinancial/cg-api")):e.activ_chartiq_sample=t(e.activ)}(window,function(e){return function(e){var t={};function i(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(r,a,function(t){return e[t]}.bind(null,a));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=2)}([function(t,i){t.exports=e},function(e,t,i){var r;window,e.exports=(r=i(0),function(e){var t={};function i(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(r,a,function(t){return e[t]}.bind(null,a));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}([function(e,t){e.exports=r},function(e,t,i){"use strict";i.r(t);var r,a=i(0);!function(e){e.initialize="initialize",e.period="period",e.symbol="symbol"}(r||(r={}));var n,s=function(e,t,i,r){return new(i||(i=Promise))(function(a,n){function s(e){try{l(r.next(e))}catch(e){n(e)}}function o(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){e.done?a(e.value):new i(function(t){t(e.value)}).then(s,o)}l((r=r.apply(e,t||[])).next())})},o=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(t){return new Promise(function(r,a){!function(e,t,i,r){Promise.resolve(r).then(function(t){e({value:t,done:i})},t)}(r,a,(t=e[i](t)).done,t.value)})}}};!function(e){e[e.none=0]="none",e[e.poll=1]="poll",e[e.subscribe=2]="subscribe"}(n||(n={}));class l{constructor(e){this.updateType=e,this.intervalMap={minute:{makeRequest:(e,t,i,r,a,n,s)=>this.makeIntradayRequest(e,t,i,r,a,n,s),adjustEndDate:(e,t)=>(e.setMinutes(e.getMinutes()-t.period),e)},day:{makeRequest:(e,t,i,r,n,s,o)=>this.makeHistoryRequest(e,t,i,r,n,s,o,a.TimeSeries.HistorySeriesType.dailyBars),adjustEndDate:(e,t)=>(e.setDate(e.getDate()-t.period),e)},week:{makeRequest:(e,t,i,r,n,s,o)=>this.makeHistoryRequest(e,t,i,r,n,s,o,a.TimeSeries.HistorySeriesType.weeklyBars),adjustEndDate:(e,t)=>(e.setDate(e.getDate()-7*t.period),e)},month:{makeRequest:(e,t,i,r,n,s,o)=>this.makeHistoryRequest(e,t,i,r,n,s,o,a.TimeSeries.HistorySeriesType.monthlyBars),adjustEndDate:(e,t)=>(e.setMonth(e.getMonth()-t.period),e)}},this.clientPromise=null,this.subscriptionMap={}}setClient(e){this.clientPromise=e}subscribe(e){var t,i;return s(this,void 0,void 0,function*(){if(this.updateType!==n.subscribe)return;if(null==this.clientPromise)return;switch(e.reason){case r.initialize:case r.symbol:break;default:return}const s={chartEngine:e.stx,isPrimary:null==e.id,processUpdate:function(e){const t={};let i=0;for(const n of e.fieldData)if(n.doesUpdateLastValue&&null!=n.value)switch(n.id){case a.FieldId.FID_TRADE:t.Last=n.value.valueOf();break;case a.FieldId.FID_TRADE_SIZE:t.Volume=n.value;break;case a.FieldId.FID_TRADE_TIME:i=(r=n.value).getMilliseconds()+1e3*r.getSeconds()+60*r.getMinutes()*1e3+60*r.getHours()*60*1e3;break;case a.FieldId.FID_TRADE_DATE:this.currentDate=n.value.getTime()}var r;t.DT=new Date(this.currentDate+i);const n={fillGaps:!0};this.isPrimary||(n.secondarySeries=e.responseKey.symbol),this.chartEngine.updateChartData(t,null,n)},currentDate:0},l=yield this.clientPromise;s.requestHandle=l.streaming.getEqual({key:e.symbol,fieldIds:[a.FieldId.FID_TRADE,a.FieldId.FID_TRADE_SIZE,a.FieldId.FID_TRADE_DATE,a.FieldId.FID_TRADE_TIME,a.FieldId.FID_CLOSE],subscription:{type:a.Streaming.SubscriptionType.eventTypeFilterIncludeList,eventTypes:[a.EventType.trade],updateHandler:e=>{s.processUpdate(e)}}});try{for(var c,d=o(s.requestHandle);!(c=yield d.next()).done;){const e=c.value.getField(a.FieldId.FID_TRADE_DATE);null!=e.value&&(s.currentDate=e.value.getTime());break}}catch(e){t={error:e}}finally{try{c&&!c.done&&(i=d.return)&&(yield i.call(d))}finally{if(t)throw t.error}}this.subscriptionMap[e.symbol]=s})}unsubscribe(e){if(this.updateType!==n.subscribe)return;if(e.reason!==r.symbol)return;const t=this.subscriptionMap[e.symbol];null!=t&&(null!=t.requestHandle&&t.requestHandle.delete(),delete this.subscriptionMap[e.symbol])}fetchInitialData(e,t,i,r,n){const s=this.intervalMap[r.interval];null!=s&&s.makeRequest("fetchInitialData",e,a.TimeSeries.PeriodType.utcDateTime,t,i,r,n)}fetchPaginationData(e,t,i,r,n){const s=this.intervalMap[r.interval];null!=s&&s.makeRequest("fetchPaginationData",e,a.TimeSeries.PeriodType.exchangeLocalDateTime,t,s.adjustEndDate(i,r),r,n)}fetchUpdateData(e,t,i,r){if(this.updateType!==n.poll)return;const s=this.intervalMap[i.interval];null!=s&&s.makeRequest("fetchUpdateData",e,a.TimeSeries.PeriodType.exchangeLocalDateTime,t,null,i,r)}static makeEndPeriod(e,t){return t?{type:e,date:t}:{type:a.TimeSeries.PeriodType.now}}makeIntradayRequest(e,t,i,r,n,o,c){return s(this,void 0,void 0,function*(){if(null==this.clientPromise)return void c({error:"Not connected"});let s;switch(o.period){case 1:s=a.TimeSeries.IntradaySeriesType.oneMinuteBars;break;case 5:s=a.TimeSeries.IntradaySeriesType.fiveMinuteBars;break;default:s=a.TimeSeries.IntradaySeriesType.specifiedMinuteBars}const d=(yield this.clientPromise).timeSeries.getIntraday({key:t,seriesType:s,minuteInterval:o.period,periods:[{type:i,date:r},l.makeEndPeriod(i,n)],fieldFilterType:a.TimeSeries.IntradayFieldFilterType.miniBar,recordFilterType:a.TimeSeries.IntradayRecordFilterType.regularTrades});this.processResponses(e,d,c)})}makeHistoryRequest(e,t,i,r,n,o,c,d){return s(this,void 0,void 0,function*(){if(null==this.clientPromise)return void c({error:"Not connected"});const s=(yield this.clientPromise).timeSeries.getHistory({key:t,seriesType:d,periods:[{type:i,date:r},l.makeEndPeriod(i,n)],fieldFilterType:a.TimeSeries.HistoryFieldFilterType.miniBar});this.processResponses(e,s,c)})}processResponses(e,t,i){(()=>s(this,void 0,void 0,function*(){var r,a;let n=[];try{try{for(var s,l=o(t);!(s=yield l.next()).done;){const e=s.value,t={DT:e.dateTime,Open:e.open?+e.open:null,High:e.high?+e.high:null,Low:e.low?+e.low:null,Close:e.close?+e.close:null,Volume:e.totalVolume};n.push(t)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(a=l.return)&&(yield a.call(l))}finally{if(r)throw r.error}}i({quotes:n}),console.log(`${n.length} bars in ${e} response`)}catch(e){i({error:e.message})}}))()}}class c{constructor(e=100){this.maxResults=e,this.clientPromise=null,this.requestCounter=0}setClient(e){this.clientPromise=e}acceptText(e,t,i,r){var n,l;return s(this,void 0,void 0,function*(){if(null==this.clientPromise)return;const s=Math.min(Number(i),this.maxResults)||this.maxResults;let c=[],d=a.SymbolDirectory.FilterType.includeEntityTypes;switch(t){case"STOCKS":c.push(a.EntityType.equity);break;case"FX":c.push(a.EntityType.forex);break;case"INDEXES":c.push(a.EntityType.index);break;case"FUNDS":c.push(a.EntityType.mutualFund);break;case"FUTURES":c.push(a.EntityType.future);break;default:d=void 0}const u=++this.requestCounter;let y=[];const h=yield this.clientPromise;try{const t=h.symbolDirectory.getSymbols({search:e,fieldId:a.FieldId.FID_LOCAL_CODE,matchType:a.SymbolDirectory.MatchType.exact,entityTypes:c,filterType:d});yield this.processResponse(t,u,y,s)}catch(e){}if(y.length<s)try{const t=h.symbolDirectory.getSymbols({search:e,fieldId:a.FieldId.FID_NAME,matchType:a.SymbolDirectory.MatchType.exact,entityTypes:c,filterType:d});yield this.processResponse(t,u,y,s)}catch(e){}if(u!==this.requestCounter)return;const p={};try{const e=h.streaming.getEqual({key:y.map(e=>e.data.symbol),relationships:{[a.RelationshipId.company]:{fieldIds:[a.FieldId.FID_NAME]}}});try{for(var m,f=o(e);!(m=yield f.next()).done;){const e=m.value,t=e.getField(a.FieldId.FID_NAME);null!=t.value&&(p[e.requestedKey.symbol]=t.value)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(l=f.return)&&(yield l.call(f))}finally{if(n)throw n.error}}}catch(e){}if(u===this.requestCounter){for(const e of y){const t=p[e.data.symbol];null!=t&&(e.display[1]=t)}r(y)}})}processResponse(e,t,i,r){var n,l,c,d;return s(this,void 0,void 0,function*(){const s=yield this.clientPromise;try{for(n=o(e);!(l=yield n.next()).done;){const e=l.value;if(t!==this.requestCounter)return;let n="";try{n=(yield s.metaData.getExchangeInfo(e.symbolId.symbol)).name}catch(e){}let o=e.matchData;if(i.push({data:{symbol:e.symbolId.symbol},display:[e.symbolId.symbol,o,n,a.EntityType[e.entityType]]}),i.length>=r)return}}catch(e){c={error:e}}finally{try{l&&!l.done&&(d=n.return)&&(yield d.call(n))}finally{if(c)throw c.error}}})}}i.d(t,"UpdateType",function(){return n}),i.d(t,"ActivQuoteFeed",function(){return l}),i.d(t,"ActivLookupDriver",function(){return c}),i.d(t,"SubscriptionReason",function(){return r})}]))},function(e,t,i){"use strict";i.r(t);var r=i(0);"undefined"!=typeof window&&window.fin;var a=i(1),n=function(e,t){function i(){var e=$(window).height(),t=$(".ciq-chart").height();$("body").hasClass("toolbar-on")?$(c.chart.container).height(t-45):$(c.chart.container).height(t),$("#maxHeightCSS").remove(),$("head").append('<style id="maxHeightCSS">cq-dialog { max-height: '+e+"px }</style>")}var r=$(".stx-markers cq-item.circle");r[0].selectFC=function(){$(".stx-markers .ciq-radio").removeClass("ciq-active"),r.find($(".ciq-radio")).addClass("ciq-active"),h("circle")},r.stxtap(r[0].selectFC);var a=$(".stx-markers cq-item.square");a[0].selectFC=function(){$(".stx-markers .ciq-radio").removeClass("ciq-active"),a.find($(".ciq-radio")).addClass("ciq-active"),h("square")},a.stxtap(a[0].selectFC);var n=$(".stx-markers cq-item.callout");n[0].selectFC=function(){$(".stx-markers .ciq-radio").removeClass("ciq-active"),n.find($(".ciq-radio")).addClass("ciq-active"),h("callout")},n.stxtap(n[0].selectFC);var s=$(".stx-markers cq-item.abstract");s[0].selectFC=function(){$(".stx-markers .ciq-radio").removeClass("ciq-active"),s.find($(".ciq-radio")).addClass("ciq-active"),y();var e=$(".stx-marker.abstract").clone();e.css({"z-index":"30",left:(.4*c.chart.width).toString()+"px"});new CIQ.Marker({stx:c,xPositioner:"none",yPositioner:"above_candle",label:"helicopter",permanent:!0,chartContainer:!0,node:e[0]});c.draw()},s.stxtap(s[0].selectFC);var o=$(".stx-markers cq-item.none");o[0].selectFC=function(){$(".stx-markers .ciq-radio").removeClass("ciq-active"),o.find($(".ciq-radio")).addClass("ciq-active"),y()},o.stxtap(o[0].selectFC);var l,c=new CIQ.ChartEngine({container:$(".chartContainer")[0],preferences:{labels:!1,currentPriceLine:!0,whitespace:0}});function d(e){var t=JSON.stringify(e.stx.exportLayout(!0));CIQ.localStorageSetItem("myChartLayout",t)}function u(e,t){var i=CIQ.localStorage.getItem(t);if(null!==i){var r=JSON.parse(i);r&&(e.importDrawings(r),e.draw())}}function y(){CIQ.Marker.removeByLabel(c,"circle"),CIQ.Marker.removeByLabel(c,"square"),CIQ.Marker.removeByLabel(c,"callout"),CIQ.Marker.removeByLabel(c,"helicopter")}function h(e){y();var t=c.masterData.length,i=[];t>=5&&i.push({x:c.masterData[t-5].DT,type:e,category:"news",headline:"This is a Marker for a News Item"}),t>=15&&i.push({x:c.masterData[t-15].DT,type:e,category:"earningsUp",headline:"This is a Marker for Earnings (+)"}),t>=25&&i.push({x:c.masterData[t-25].DT,type:e,category:"earningsDown",headline:"This is a Marker for Earnings (-)"}),t>=35&&i.push({x:c.masterData[t-35].DT,type:e,category:"dividend",headline:"This is a Marker for Dividends"}),t>=45&&i.push({x:c.masterData[t-45].DT,type:e,category:"filing",headline:"This is a Marker for a Filing"}),t>=55&&i.push({x:c.masterData[t-55].DT,type:e,category:"split",headline:"This is a Marker for a Split"});for(var r=0;r<i.length;r++){var a=i[r];a.story="Like all ChartIQ markers, the object itself is managed by the chart, so when you scroll the chart the object moves with you. It is also destroyed automatically for you when the symbol is changed.";var n={stx:c,label:e,xPositioner:"date",x:a.x,node:new CIQ.Marker.Simple(a)};new CIQ.Marker(n)}c.draw()}function p(){if(l){$(window).width()>700?($("body").removeClass("break-md break-sm").addClass("break-lg"),$(".icon-toggles").removeClass("sidenav active").addClass("ciq-toggles"),c.layout.sidenav="sidenavOff",$("#symbol").attr("placeholder","Enter Symbol")):$(window).width()<=700&&$(window).width()>584?($("body").removeClass("break-lg break-sm").addClass("break-md"),$(".icon-toggles").removeClass("sidenav active").addClass("ciq-toggles"),c.layout.sidenav="sidenavOff",$("#symbol").attr("placeholder","Symbol")):$(window).width()<=584&&($("body").removeClass("break-md break-lg").addClass("break-sm"),$(".icon-toggles").removeClass("ciq-toggles").addClass("sidenav"),$("#symbol").attr("placeholder","")),$("cq-dialog").each(function(){this.center()}),i();var e=$("cq-side-panel")[0],t=$(".sidenav"),r=t.hasClass("active")?t.width():0;e?($(".ciq-chart-area").css({right:e.nonAnimatedWidth()+r+"px"}),$("cq-tradingcentral").css({"margin-right":e.nonAnimatedWidth()+15+"px"})):$(".ciq-chart-area").css({right:r+"px"}),c.resizeChart()}}return c.setDrawingContainer($$$("cq-toolbar")),c.attachQuoteFeed(e,{refreshInterval:1,bufferSize:200}),c.setMarketFactory(CIQ.Market.Symbology.factory),new CIQ.ExtendedHours({stx:c,filter:!0}),new CIQ.InactivityTimer({stx:c,minutes:30}),c.callbacks.layout=d,c.callbacks.symbolChange=d,c.callbacks.drawing=function(e){var t=e.stx.exportDrawings();0===t.length?CIQ.localStorage.removeItem(e.symbol):CIQ.localStorageSetItem(e.symbol,JSON.stringify(t))},c.callbacks.newChart=function(e){$(".stx-markers .ciq-radio.ciq-active").parent().triggerHandler("stxtap")},c.callbacks.preferences=function(e){CIQ.localStorageSetItem("myChartPreferences",JSON.stringify(c.exportPreferences()))},new CIQ.RangeSlider({stx:c}),function(){l=new CIQ.UI.Context(c,$("cq-context,[cq-context]")),new CIQ.UI.Layout(l);var e=new CIQ.UI.HeadsUp($("cq-hu-dynamic"),l,{followMouse:!0,autoStart:!1}),r=new CIQ.UI.HeadsUp($("cq-hu-static"),l,{autoStart:!0});l.changeSymbol=function(e){var t=this.stx;for(var i in this.loader&&this.loader.show(),e.symbol==e.symbol.toLowerCase()&&(e.symbol=e.symbol.toUpperCase()),t.chart.series)"study"!=c.chart.series[i].parameters.bucket&&t.removeSeries(i);var r=this;t.loadChart(e,function(e){e?r.loader&&r.loader.hide():(r.loader&&r.loader.hide(),u(t,t.chart.symbol))})},l.setLookupDriver(t),l.UISymbolLookup=$(".ciq-search cq-lookup")[0],l.UISymbolLookup.setCallback(function(e,t){e.changeSymbol(t)}),new CIQ.UI.KeystrokeHub($("body"),l,{cb:CIQ.UI.KeystrokeHub.defaultHotKeys});var a=new CIQ.UI.DrawingEdit(null,l);a.preventAutoClose=!0,a.node.addEventListener("drawing-edit-begin",function(e){$("body").hasClass("toolbar-on")||(a.preventAutoClose=!1,$(".ciq-draw").each(function(){this.priorVectorType=e.detail.tool,this.set(!0)}))},!1),a.node.addEventListener("drawing-edit-end",function(e){a.preventAutoClose||("edit"!==e.detail.action&&(a.preventAutoClose=!0),"close"===e.detail.action&&$(".ciq-draw").each(function(){this.set(!1)}))},!1),new CIQ.UI.StudyEdit(null,l);var n=new CIQ.NameValueStore;$("cq-themes")[0].initialize({builtInThemes:{"ciq-day":"Day","ciq-night":"Night"},defaultTheme:"ciq-night",nameValueStore:n});var s=$("cq-side-panel")[0];s&&s.registerCallback(p),$(".ciq-sidenav")[0].registerCallback(function(e){var t,i=this.context.stx,r=s?s.nonAnimatedWidth():0;if("sidenavOn"===e){var a=$(".stx-holder").height();$(".sidenav").height(a),this.node.addClass("active"),i.layout.sidenav="sidenavOn",$(".sidenav").addClass("active"),t=this.node.width()+r}else"sidenavOff"===e&&(t=r,$(".sidenav").removeClass("active"),this.node.removeClass("active"),i.layout.sidenav="sidenavOff");$("cq-side-panel").css("right",t-r+"px"),$(".ciq-chart-area").css({right:t+"px"}),$("cq-tradingcentral").css({"margin-right":t+15+"px"}),i.resizeChart()}),$(".ciq-HU")[0].registerCallback(function(t){"static"===t?(e.end(),r.begin(),this.node.addClass("active")):"dynamic"===t?CIQ.isMobile||this.context.stx.layout.crosshair?(this.set("static"),e.end(),r.begin(),this.node.addClass("active")):(r.end(),e.begin(),this.node.addClass("active")):(r.end(),e.end(),this.node.removeClass("active"))}),$(".ciq-draw")[0].registerCallback(function(e){e?(this.node.addClass("active"),$("body").addClass("toolbar-on")):(this.node.removeClass("active"),$("body").removeClass("toolbar-on")),i();var t=this.context.stx;t.resizeChart(),e?t.changeVectorType(this.priorVectorType):(this.priorVectorType=t.currentVectorParameters.vectorType,t.changeVectorType(""))}),$(".stx-trade")[0]&&$(".stx-trade")[0].registerCallback(function(e){var t=$("cq-side-panel")[0];e?(t.open({selector:".stx-trade-panel",className:"active"}),this.node.addClass("active"),$(".stx-trade-panel").removeClass("closed"),c.layout.sidenav="sidenavOff"):(t.close(),this.node.removeClass("active"),$(".stx-trade-panel").addClass("closed"))}),$(".stx-tradingcentral")[0]&&$(".stx-tradingcentral")[0].registerCallback(function(e){var t=$("cq-tradingcentral")[0];e?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}),$("cq-redo")[0].pairUp($("cq-undo")),$("cq-views").each(function(){this.initialize()});var o,d,y,h,m={excludedStudies:{Directional:!0,Gopala:!0,vchart:!0},alwaysDisplayDialog:{ma:!0,AVWAP:!0}};$("cq-studies").each(function(){this.initialize(m)}),l.loader&&l.loader.show(),(o=CIQ.localStorage.getItem("myChartPreferences"))&&c.importPreferences(JSON.parse(o)),d=c,y=function(){l.loader&&l.loader.hide();var e=$("cq-study-legend");if(e.length)for(var t=0;t<e.length;t++)e[t].begin()},h=CIQ.localStorage.getItem("myChartLayout"),d.importLayout(JSON.parse(h),{managePeriodicity:!0,cb:function(){u(d,d.chart.symbol),y&&y()}}),c.chart.symbol||l.UISymbolLookup.selectItem({symbol:"AAPL"}),CIQ.UI.begin()}(),p(),$(window).resize(p),c},s=function(e,t,i,r){return new(i||(i=Promise))(function(a,n){function s(e){try{l(r.next(e))}catch(e){n(e)}}function o(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){e.done?a(e.value):new i(function(t){t(e.value)}).then(s,o)}l((r=r.apply(e,t||[])).next())})};class o{constructor(e){this.quoteFeed=new a.ActivQuoteFeed(a.UpdateType.poll),this.lookupDriver=new a.ActivLookupDriver,this.setClient(e),n(this.quoteFeed,this.lookupDriver)}setClient(e){this.quoteFeed.setClient(e),this.lookupDriver.setClient(e)}}!function(){s(this,void 0,void 0,function*(){yield function(e){return new Promise(t=>{"loading"===e.readyState?e.addEventListener("DOMContentLoaded",t):t()})}(document);let e=null,t=!1;for(;;){try{const i=Object(r.connect)({url:"ams://cg-ny4-web.activfinancial.com/ContentGateway:Service"});null==e?e=new o(i):e.setClient(i);const a=yield i;console.log("Connected"),yield a.disconnected,t=!0}catch(e){console.log(e)}if(null!=e&&e.setClient(null),t)break;yield Object(r.asyncSleep)(5e3)}})}()}])});
//# sourceMappingURL=index.js.map

@@ -8,3 +8,3 @@ {

},
"version": "0.4.32",
"version": "0.4.33",
"private": false,

@@ -20,7 +20,7 @@ "publishConfig": {

},
"files": [
"/lib/**"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib/**"
],
"scripts": {

@@ -36,17 +36,17 @@ "clean": "rimraf lib/*",

"dependencies": {
"@activfinancial/cg-api": "^0.10.1",
"@activfinancial/chartiq-adapter": "^0.0.23"
"@activfinancial/cg-api": "^0.10.2",
"@activfinancial/chartiq-adapter": "^0.0.24"
},
"devDependencies": {
"copy-webpack-plugin": "^5.0.3",
"copy-webpack-plugin": "^5.0.4",
"rimraf": "^2.6.3",
"source-map-loader": "^0.2.4",
"terser-webpack-plugin": "^1.3.0",
"terser-webpack-plugin": "^1.4.1",
"ts-loader": "^6.0.4",
"typescript": "^3.5.3",
"webpack": "^4.37.0",
"webpack": "^4.39.1",
"webpack-cli": "^3.3.6",
"webpack-dev-server": "^3.7.2"
},
"gitHead": "5f22e62fc9cc0445c00944c8a193538e071bfc7d"
"gitHead": "e2d29509d8a2f7a698612b44106def13d77d4bbc"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc