PageSourceSearch

https://trading.inventuregrowth.com/Aero/default-src_app_trading_c…rderEntryRequest_ts.f92152c21ca237098c71.js

js inventuregrowth.com collected 2026-09-24 13:34:19 UTC 15,492 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkFinalytics=self.webpackChunkFinalytics||[]).push([["default-src_app_trading_core_trading_service_ts-src_app_trading_tradingUtils_orderEntryRequest_ts","src_app_trading_tradingUtils_orderEntryRequest_ts"],{4471:(Ct,Q,c)=>{c.d(Q,{D:()=>k});var S=c(4033),f=c(8022),G=c(6371),a=c(1705),t=c(7347),v=c(1338),d=c(3294),m=c(612),y=c(8402),_={connector:function(){return new S.x}};function N(E,u,r,i){r&&!(0,d.m)(r)&&(i=r);var s=(0,d.m)(r)?r:void 0;return function(O){return function(E,u){var r=(0,d.m)(E)?E:function(){return E};return(0,d.m)(u)?function(E,u){void 0===u&&(u=_);var r=u.connector;return(0,y.e)(function(i,s){var O=r();(0,m.Dp)(E(function(E){return new f.y(function(u){return E.subscribe(u)})}(O))).subscribe(s),s.add(i.subscribe(O))})}(u,{connector:r}):function(i){return new v.c(i,r)}}(new t.t(E,u,i),s)(O)}}var o=c(9366),l=c(2741),P=c(1767);let k=(()=>{class E{constructor(r,i,s,O,e){this.httpService=r,this.logService=i,this.pubsubService=s,this.zone=O,this.awsappsync=e,this.ArrSubTokens=[],this.strMktStatusResponse=new a.aM,this.ArrMktStatusList=[],this.IsViewOpen=!1,this.MktStatusList="",this.CompareArray=[],this.count=1,this.MktStatusTitle="",this.notificationsSubject=new S.x,this.notifications$=this.notificationsSubject.asObservable(),this.subScribeMessages()}fillPeriodicities(){return f.y.create(r=>{this.getPeriodicities().subscribe(i=>{r.next(i),r.complete(),this.obrPeriodicities=null})})}getPeriodicities(){return this.obrPeriodicities||(this.obrPeriodicities=this.httpService.postData(a.xB.tradingAPIUrl,"GetPeriodicitesForFundsSummary",{UserID:a.xB.User.UserId,GroupID:a.xB.User.GroupId,UCCClientID:"",UCCGroupID:""}).pipe(N(1),(0,o.x)())),this.obrPeriodicities}getProfileList(r=!1){return r||0==a.xB.User.ProfileList.length?f.
1y.create(i=>{this.getProfList().subscribe(s=>{this.setProfileList(s),i.next(a.xB.User.ProfileList),i.complete(),this.obrProfList=null})}):(0,G.of)(a.xB.User.ProfileList)}getProfList(){if(this.obrProfList);else if(a.xB.dConfigMaster.FINALYTICS_PROFILE_DATA==a.gT.C_S_FINALYTICS_PROFILE_DATA_DATABASE)this.obrProfList=this.httpService.postData(a.xB.tradingAPIUrl,"GetProfileList",{UserID:a.xB.User.UserId,GroupID:a.xB.User.GroupId,UCCClientID:"",UCCGroupID:""}).pipe(N(1),(0,o.x)());else if(a.xB.dConfigMaster.FINALYTICS_PROFILE_DATA==a.gT.C_S_FINALYTICS_PROFILE_DATA_AWSAPPSYNC)return f.y.create(r=>{this.awsappsync.getWatchListProfiles().then(i=>{this.obrProfList=(0,G.of)(i),r.next(i),r.complete()})});return this.obrProfList}setProfileList(r){try{if(r.ResponseStatus){var i=[],s=[],O=r.ResponseObject.slice();O.splice(0,0,{ProfileId:300,ProfileName:"MYHOLD"}),a.xB.User.DefaultProfileId="",a.xB.User.DefaultProfileName="";for(var e=O.length;e--;)if(null!=(n=O[e])){if("-1"==n.ProfileId){a.xB.User.DefaultProfileId=a.gT.C_S_SYSTEM_PROFILEID,a.xB.User.DefaultProfileName=a.xB.dConfigMaster.DEFAULT_PROFILE_VALUE,i[e]={},i[e].ProfileId=a.xB.User.DefaultProfileId,i[e].ProfileName=a.xB.User.DefaultProfileName,i[e].ProfileClass="profileSelected",i[e].ProfileNameDisplay=a.xB.User.DefaultProfileName,i[e].IsProfileNameTxtVisible=!1,i[e].ShowProfileName=!0,i[e].ProfileNameFocus=!1,i[e].IsEditRenameButtonVisible=!1,i[e].IsIndex=!1,i[e].MktSegId=0;break}i[e]={},i[e].ProfileId=n.ProfileId,i[e].ProfileName=n.ProfileName,i[e].IsProfileNameTxtVisible=!1,i[e].ShowProfileName=!0,i[e].ProfileNameFocus=!1,i[e].ProfileNameDisplay=n.ProfileName,i[e].IsEditRenameButtonVisible=!1,n.ProfileName==a.xB.dConfigMaster.DEFAULT_PROFILE_VALUE&&n.ProfileId==a.gT.C_S_SYSTEM_PROFILEID||"300"==n.ProfileId?i[e].ProfileClass="profileSelected":(i[e].ProfileClass="",i[e].IsEditRenameButtonVisible=!0),i[e].IsIndex=!1,i[e].MktSegId=0}s.push({Name:"User Defined",Data:i});for(var g=a.xB.AnalyticMasterData,T=0;T<g.length;T++){var h=[];for(e=g[T].data.length;e--;){var n=g[T].data[e];h[e]={},h[e].ProfileId=Number(n.nMktSegId+n.Code),h[e].ProfileName=n.Name,h[e].IsIndex=!0,h[e].MktSegId=n.nMktSegId,h[e].IsProfileNameTxtVisible=!1,h[e].ShowProfileName=!0,h[e].ProfileNameFocus=!1,h[e].ProfileNameDisplay=n.Name,h[e].IsEditRenameButtonVisible=!1,n.ProfileName==a.xB.dConfigMaster.DEFAULT_PROFILE_VALUE&&n.Code==a.gT.C_S_SYSTEM_PROFILEID||"300"==n.ProfileId?h[e].ProfileClass="profileSelected":(h[e].ProfileClass="",h[e].IsEditRenameButtonVisible=!0)}s.push({Name:g[T].Name,Data:h})}a.xB.User.ProfileList=s}}catch(I){this.logService.WriteLog("Exception: "+I.message,"setProfileList()","trading.service.ts","")}}subScribeMessages(){var r;r=this.pubsubService.subscribe("MKTSTATUSRES",(i,s)=>{this.zone.run(()=>{if(s.ResponseFlag==a.gT.C_S_REFRESH_MODE){this.RespData=s.ResponseString,this.RespData.substr(0,1)==a.gT.C_S_FIELD_DELIMITER&&
1(this.RespData=this.RespData.substr(1));for(var O=this.RespData.split("|"),e=null,n=0;n<=O.length-1;n++)e=O[n].split("="),this.strMktStatusResponse.add(e[0],e[1]);this.ArrMktStatusList=a.xB.ExchManager.PopulateMarketStatusDictionary(s.ResponseFlag,this.strMktStatusResponse),this.setCounter()}else this.processMarketStatus(s.ResponseString,s.ResponseFlag);let g=new C;g.arrList=this.ArrMktStatusList,this.notificationsSubject.next(g)})}),this.ArrSubTokens.push(r),r=this.pubsubService.subscribe("AutoRefreshMode",(i,s)=>{this.zone.run(()=>{this.setLoginMode(s)})}),this.ArrSubTokens.push(r)}setLoginMode(r){a.xB.User.LoginMode=r}processMarketStatus(r,i){try{var O,e,T,h,I,p,g=0,L="",x="";if(null!=r){for(;0!=r.length;){if(T="",-1==(O=r.indexOf(a.gT.C_S_FIELD_DELIMITER,O=0))&&0!=r.length&&(e=(T=r).indexOf(a.gT.C_S_RECORD_DELIMITER,0),r=""),-1!=O&&(T=r.substr(0,O),r=r.substr(O+1),e=T.indexOf(a.gT.C_S_RECORD_DELIMITER,0)),-1!=e)for(h=T;0!=h.length;)I=this.findValueMktStatus(T,a.gT.C_S_TAG_MARKETTYPE),p=this.findValueMktStatus(T,a.gT.C_S_TAG_FLAG),L=this.findValueMktStatus(T,a.gT.C_S_TAG_AUCTIONSESSIONNO),h="",g++;e=T.indexOf(a.gT.C_S_NAMEVALUE_DELIMITER,0),T.substr(0,e)==a.gT.C_V_TAG_MKTSEGID&&(x=T.substr(e+1),g=0),0!=g&&a.xB.ExchManager.FillMarketStatus(x,I,p,L)}this.ArrMktStatusList=a.xB.ExchManager.PopulateMarketStatusDictionary(i,""),this.setCounter()}}catch(U){this.logService.WriteLog("Exception: "+U.message,"processMarketStatus()","marketStatus.component.ts","")}}findValueMktStatus(r,i){try{for(var s,O,e,T,g=0;0!=r.length;)s="",-1==(e=r.indexOf(a.gT.C_S_RECORD_DELIMITER,e=0))&&0!=r.length&&(s=r,r=""),-1!=e&&(s=r.substr(0,e),r=r.substr(e+1)),g=s.indexOf(a.gT.C_S_NAMEVALUE_DELIMITER,0),O=s.substr(0,g),s=s.substr(g+1),O==i&&(T=s);return T}catch(h){this.logService.WriteLog("Exception: "+h.message,"findValueMktStatus()","marketStatus.component.ts","")}}getDefaultPeriodicitySequence(){try{var r={UserID:a.xB.User.UserId,GroupID:a.xB.User.GroupId,UCCClientID:"",UCCGroupID:""};return f.y.create(i=>{this.httpService.postData(a.xB.tradingAPIUrl,"GetDefaultPeriodicitySequence",r).subscribe(s=>{i.next(s),i.complete()})})}catch(i){this.logService.WriteLog("Exception: "+i.message,"GetDefaultPeriodicitySequence()","trading.service.ts","")}}setCounter(){if(0==this.CompareArray.length)this.count=this.ArrMktStatusList.length,this.CompareArray.push.apply(this.CompareArray,this.ArrMktStatusList),this.count=this.count+1,this.MktStatusTitle=this.count;else{for(var r=0;r<this.ArrMktStatusList.length;r++)this.CompareArray[r].Status!=this.ArrMktStatusList[r].Status&&(this.count=this.count+1,this.MktStatusTitle=this.count);this.CompareArray=[],this.CompareArray.push.apply(this.CompareArray,this.ArrMktStatusList)}}destroyView(){this.pubsubService.unsubscribe(this.ArrSubTokens)}ngOnDestroy(){this.destroyView()}}return E.\u0275fac=function(r){return new(r||E)(l.\u0275\u0275inject(a.OE),l.\u0275\u0275inject(a.mQ),l.\u0275\u0275inject(a.hC),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(P.Y))},E.\u0275prov=l.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac}),E})();class C{constructor(){this.arrList=[]}}},8497:(Ct,Q,c)=>{c.d(Q,{Q:()=>G});var S=c(1705),f=c(8407);class G{constructor(t){this.UnsettledQty="",this.OrderSide="",this.Exchange="",this.Instrument="",this.Symbol="",this.Series="",this.ExpDate="",this.StrikePrice="",this.OptionType="",this.OrderType="",this.Qty="",this.BuyQty="",this.SellQty="",this.DiscQty="",this.TriggerPrice="",this.ProductType="",this.Validity="",this.Days="",this.ProtPerc="",this.DecimalLocator=100,this.InstrumentID="",this.MapMktSegID="",this.ClientOrderNumber="",this.MarketLot="",this.PriceTick="",this.TokenNo="",this.AMOID="",this.ExchangeOrderNo="",this.GatewayOrderNo="",this.OrderTime="",this.ParticipantID="",this.ParticipantIDTag="",this.MarketStatus="",this.PageSource="",this.ModifyFlag="",this.CancelFlag="",this.OrderStatus="",this.OrigQty="",this.MPBasePrice="",this.MPExpiryValue="",this.MPStrikePriceValue="",this.MPMFFlag="",this.SPOSType="",this.POSType="",this.MPFirstLegPrice=0,this.TimeField="",this.IsSpread=!1,this.FIILimit="",this.NRILimit="",this.isSOR=!1,this.COL=1,this.ProfitOrderPrice="",this.TrailingSL=!1,this.SLJumpPrice="",this.LTPJumpPrice="",this.SLTriggerPrice="",this.BracketOrderId="",this.LegIndicator="",this.BOGatewayOrderNo="",this.BOModifyTerms="",this.SLOrderType="",this.SelMargin="",this.RecoId="",this.LTP="",this.ClosePrice="",this.BracketOrderModifyBit="",this.OFSMargin="",this.RecoPrice="",this.RecoSLPrice="",this.RecoSQPrice="",this.LastPendingQty="",this.LastTradedQty="",this.IsIndex=0,this.PriceNumerator=1,this.PriceDenominator=1,this.GenNumerator=1,this.GenDenominator=1,this.TraceNo="",this.IsGTD=!1,this.BOPriceIndicator="",this.BracketOrderStatus="",this.MPFirstLegOrderType=2,this.MaxSingleTransactionQty=0,this.IsGTT=!1,null!=t&&(this.Exchange=t.ExchangeName,this.Instrument=t.InstrumentName,this.Symbol=t.Symbol,this.Series=t.Series,this.ExpDate=t.ExpiryDate.replaceAll("\\s+",""),this.Str
1ikePrice=t.StrikePrice,this.OptionType=t.OptionType,this.MarketLot=t.MarketLot,this.PriceTick=t.PriceTick,this.DecimalLocator=t.DecimalLocator,this.MarketSegID=t.ScripDet.MktSegId,this.MapMktSegID=f.X.GetMappedMarketSegmentId(t.ScripDet.MktSegId).toString(),this.TokenNo=t.ScripDet.Token,this.SPOSType=t.SPOS,this.POSType=t.POS,this.IsSpread="1"==t.Spread,this.FIILimit=t.FIILimit,this.NRILimit=t.NRILimit,this.PriceNumerator=t.PriceNumerator,this.PriceDenominator=t.PriceDenominator,this.GenNumerator=t.GenNumerator,this.GenDenominator=t.GenDenominator),this.TraceNo=S.vV.generateTraceNo()}static PopulateSelectedOE(t){var d,m,D,l,k,r,i,O,e,g,T,h,I,Y,L,p,x,W,X,H,z,Z,$,K,b,j,tt,et,rt,it,st,at,nt,St,Ot,Et,ht,Tt,w,gt,ct,ut,lt,It,yt,y="",_="",M="",A="",N="",o="",P="",C="",E="",u="",s="",n=!1,U="",J=(s="",1),B=1,F=1,R=1;let ot;var V,dt,Nt;let Pt="",ft="",mt="";return d=t.OrderSide,m=t.Exchange.Trim(),y=t.Instrument,D=t.Symbol.Trim(),"undefined"!=t.Series&&(_=t.Series.Trim()),"undefined"!=t.ExpDate&&(M=t.ExpDate.Trim()),"undefined"!=t.StrikePrice&&(A=t.StrikePrice.Trim()),"undefined"!=t.OptionType&&(N=t.OptionType==S.gT.C_S_ORDER_REGULARLOT_TEXT||t.OptionType==S.gT.C_S_ORDER_REGULARLOT_MARKET_TEXT||"RLMKT"==t.OptionType?S.gT.C_S_ORDER_REGULARLOT_TEXT:t.OptionType==S.gT.C_S_ORDER_STOPLOSS_TEXT||t.OptionType==S.gT.C_S_ORDER_STOPLOSS_MARKET_TEXT||"RLMKT"==t.OptionType?S.gT.C_S_ORDER_STOPLOSS_TEXT:t.OptionType.Trim()),l=t.MarketLot,o=t.Qty,k=t.PriceTick,h=t.SellPrice,I=t.BuyPrice,C=t.DecimalLocator,E=t.MarketSegID,u=t.MapMktSegID,i=t.TokenNo,O=t.SPOSType,e=t.POSType,n=t.IsSpread,g=t.FIILimit,T=t.NRILimit,Y=t.DiscQty,L=t.TriggerPrice,r=t.OrderType,p=t.ProductType,x=t.Validity,"undefined"!=t.Days&&(U=t.Days),H=t.ExchangeOrderNo,X=t.ClientOrderNumber,W=t.GatewayOrderNo,z=t.OrderTime,Z=t.BuyQty,$=t.SellQty,K=t.LTP,b=t.ClosePrice,j=t.COL,tt=t.SLJumpPrice,et=t.LTPJumpPrice,rt=t.SLOrderPrice,it=t.SLTriggerPrice,st=t.ProfitOrderPrice,at=t.ProfitOrderPrice,nt=t.LegIndicator,St=t.BOGatewayOrderNo,Ot=t.BracketOrderModifyBit,Et=t.SLOrderType,ht=t.ProtPerc,Tt=t.OFSMargin,w=t.RecoPrice,gt=t.RecoSLPrice,ct=t.RecoSQPrice,lt=t.LastPendingQty,It=t.LastTradedQty,ut=t.RecoId,yt=t.AssetToken,V=t.IsFundShortFallRej,J=t.PriceNumerator?t.PriceNumerator:J,B=t.PriceDenominator?t.PriceDenominator:B,F=t.GenNumerator?t.GenNumerator:F,R=t.GenDenominator?t.GenDenominator:R,(s=t.PageSource)!=S.gT.C_S_MENU_TRADING_KEYBOARDSHORTCUTS?(("EQUITY"==y||"0"==y||""==y)&&(y="EQUITIES"),E=S.xB.ExchManager.GetCurrentExchange(m).dcMarketSegementId[y],u=S.xB.ExchManager.GetCurrentExchange(m).dcMapMarketSegementId[E],"0"==C&&(C="100"),(s==S.gT.C_V_MARKETWATCH_PAGENO.toString()||s==S.gT.C_V_BESTFIVE_PAGENO.toString()||s==S.gT.C_V_ORDERBOOK_PAGENO.toString()||s==S.gT.C_V_BULKORDERENTRY_PAGE.toString()||s==S.gT.C_V_RECOMMENDATION_PAGE.toString()||s==S.gT.C_V_GTDORDERBOOK_PAGENO.toString())&&(P="BUY"==d?null!=h&&h.length>0?h:"0":null!=I&&I.length>0?I:"0",("1"==n||"2"==n)&&(n=!0),(s==S.gT.C_V_MARKETWATCH_PAGENO.toString()||s==S.gT.C_V_RECOMMENDATION_PAGE.toString()&&1!=V)&&(S.xB.ExchManager.ExchInLOT.Contains(E.toString())?o="1":null!=o&&0==o.length&&(o=l)),(s==S.gT.C_V_MARKETWATCH_PAGENO.toString()||s==S.gT.C_V_BESTFIVE_PAGENO.toString()||s==S.gT.C_V_RECOMMENDATION_PAGE.toString()&&1!=V)&&null!=S.xB.User.OrderPrefDic&&null!=S.xB.User.OrderPrefDic&&S.xB.User.OrderPrefDic.count()>0&&0!=S.xB.User.OrderPrefDic[E].nPopulateQtyValue&&(o=S.xB.ExchManager.SetPreferences(m,E,l,D,y,_,M,N,A,K,b,$,Z,d,S.xB.User.OrderPrefDic[E].nPopulateQtyValue,J,B,F,R)),s==S.gT.C_V_RECOMMENDATION_PAGE.toString()&&(P=w),s==S.gT.C_V_GTDORDERBOOK_PAGENO.toString()&&(Nt=t.TargetPrice,dt=t.TargetTriggerPrice))):s="MANUAL",Pt=t.BOPriceIndicator,ft=t.OrderStatus,mt=t.BracketOrderStatus,ot=t.nScripInstrument,{OEBUYSELL:JSON.stringify(d),OEEXCH:JSON.stringify(m),OEINST:JSON.stringify(y),OESYMBOL:JSON.stringify(D),OESERIES:JSON.stringify(_),OEEXPDATE:JSON.stringify(M),OESTKPRICE:JSON.stringify(A),OEOPTIONTYPE:JSON.stringify(N),OEORDERTYPE:JSON.stringify(r),OEQTY:JSON.stringify(o),OEMKTLOT:JSON.stringify(l),OEPRICE:JSON.stringify(P),OEPRICETICK:JSON.stringify(k),OEDECLOC:JSON.stringify(C),OEDISCQTY:JSON.stringify(Y),OETRIGPRICE:JSON.stringify(L),OEPRODUCTTYPE:JSON.stringify(p),OEVALIDITY:JSON.stringify(x),OEDAY:JSON.stringify(U),OEMKTSEGID:JSON.stringify(E),OEMAPMKTSEGID:JSON.stringify(u),OETOKEN:JSON.stringify(i),OEPAGESOURCE:JSON.stringify(s),OESPOSTYPE:JSON.stringify(O),OEPOSTYPE:JSON.stringify(e),OESPREAD:JSON.stringify(n),OEFIILIMIT:JSON.stringify(g),OENRILIMIT:JSON.stringify(T),OEEXORNO:JSON.stringify(H),OECLORNO:JSON.stringify(X),OEGWORNO:JSON.stringify(W),OEORDERTIME:JSON.stringify(z),OELTP:JSON.stringify(K),OECOL:JSON.stringify(j),OESLJUMPPRICE:JSON.stringify(tt),OELTPJU
1MPPRICE:JSON.stringify(et),OESLORDERPRICE:JSON.stringify(rt),OESLTRIGGERPRICE:JSON.stringify(it),OEPROFITORDERPRICE:JSON.stringify(st),OEBRACKETORDERID:JSON.stringify(at),OELEGINDICATOR:JSON.stringify(nt),OEBOGATEWAYORDERNO:JSON.stringify(St),OEBRACKETORDERMODIFYBIT:JSON.stringify(Ot),OESLOrderType:JSON.stringify(Et),OEProtPerc:JSON.stringify(ht),OEOFSMargin:JSON.stringify(Tt),OERECOPRICE:JSON.stringify(w),OERECOSLPRICE:JSON.stringify(gt),OERECOSQPRICE:JSON.stringify(ct),OELASTPENDINGQTY:JSON.stringify(lt),OELASTTRADEDQTY:JSON.stringify(It),OERECOID:JSON.stringify(ut),OEPriceNumerator:JSON.stringify(J),OEPriceDenominator:JSON.stringify(B),OEGenNumerator:JSON.stringify(F),OEGenDenominator:JSON.stringify(R),OEPriceIndicator:JSON.stringify(Pt),OEOrderStatus:JSON.stringify(ft),OEBracketOrderStatus:JSON.stringify(mt),OESCRIPINSTRUMENT:JSON.stringify(ot),OEASSETTOKEN:JSON.stringify(yt),OEIsFundShortFallRej:JSON.stringify(V),OETARGETPRICE:JSON.stringify(Nt),OETARGETTRIGGERPRICE:JSON.stringify(dt)}}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.