hedgequantx 2.4.18 → 2.4.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/data.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xfe5eac=_0x261d;(function(_0x35666f,_0x4d0c4e){const _0x8c5108=_0x261d,_0x31bc80=_0x35666f();while(!![]){try{const _0x3ea317=parseInt(_0x8c5108(0x1a9))/0x1+-parseInt(_0x8c5108(0x19a))/0x2*(parseInt(_0x8c5108(0x269))/0x3)+parseInt(_0x8c5108(0x21e))/0x4*(parseInt(_0x8c5108(0x1a0))/0x5)+parseInt(_0x8c5108(0x202))/0x6+parseInt(_0x8c5108(0x161))/0x7+-parseInt(_0x8c5108(0x1e5))/0x8+parseInt(_0x8c5108(0x27d))/0x9;if(_0x3ea317===_0x4d0c4e)break;else _0x31bc80['push'](_0x31bc80['shift']());}catch(_0x1b42d9){_0x31bc80['push'](_0x31bc80['shift']());}}}(_0x2b9e,0xcf2ba));const EventEmitter=require('event'+'s'),{HubConnectionBuilder,HttpTransportType,LogLevel}=require('@micr'+'osoft'+'/sign'+_0xfe5eac(0x196)),_0x2b9615={};_0x2b9615[_0xfe5eac(0x1bf)+_0xfe5eac(0x1a7)]=_0xfe5eac(0x1c7)+'opste'+_0xfe5eac(0x17a)+'m';const _0x1f4441={};_0x1f4441[_0xfe5eac(0x1bf)+'ayApi']=_0xfe5eac(0x19b)+_0xfe5eac(0x185)+'uture'+'s.pro'+'jectx'+'.com';const _0x44a605={};_0x44a605[_0xfe5eac(0x1bf)+'ayApi']=_0xfe5eac(0x1c7)+_0xfe5eac(0x259)+'cktra'+_0xfe5eac(0x276)+_0xfe5eac(0x194)+_0xfe5eac(0x206)+'m';const _0x63cfe2={};_0x63cfe2['gatew'+_0xfe5eac(0x1a7)]=_0xfe5eac(0x23f)+'uleno'+_0xfe5eac(0x253)+'jectx'+_0xfe5eac(0x1cd);const _0x3b6e11={};_0x3b6e11[_0xfe5eac(0x1bf)+_0xfe5eac(0x1a7)]=_0xfe5eac(0x1c7)+'raded'+_0xfe5eac(0x26e)+_0xfe5eac(0x1e2)+_0xfe5eac(0x174);const _0xc8a490={};_0xc8a490[_0xfe5eac(0x1bf)+_0xfe5eac(0x1a7)]=_0xfe5eac(0x23f)+_0xfe5eac(0x239)+_0xfe5eac(0x207)+_0xfe5eac(0x1d5)+_0xfe5eac(0x201);const _0x51b155={};_0x51b155[_0xfe5eac(0x1bf)+'ayApi']=_0xfe5eac(0x1ab)+_0xfe5eac(0x1fb)+_0xfe5eac(0x1c5)+_0xfe5eac(0x207)+_0xfe5eac(0x1d5)+_0xfe5eac(0x201);const _0xb95731={};_0xb95731['gatew'+_0xfe5eac(0x1a7)]=_0xfe5eac(0x1c7)+_0xfe5eac(0x243)+_0xfe5eac(0x1e6)+_0xfe5eac(0x27a)+_0xfe5eac(0x194)+_0xfe5eac(0x206)+'m';const _0x4ae7b6={};_0x4ae7b6[_0xfe5eac(0x1bf)+_0xfe5eac(0x1a7)]=_0xfe5eac(0x1a1)+_0xfe5eac(0x176)+_0xfe5eac(0x231)+'proje'+_0xfe5eac(0x242)+'om';const _0x2051cd={};function _0x2b9e(){const _0x4bc88b=['CMLIzum','BhvLz3u','y2TLDhm','DLHpu2i','A2vLCee','B2XHChi','DgLTzxm','B2PLy3q','EuHxwKO','y29UDhi','mteXnJa4nJr4tMfPBMm','DxjLC2q','Dw5ZDwi','v2fYBMK','AwnRDhi','A2vUpq','r2f0zxC','BgfZDfa','zNv0Dxi','ywrLCG','yKDKCM4','B3vZuMu','v2jKy3K','CMfJDfe','yxLezxa','AxjT','yMvZDei','ChjVAMu','v2vIu28','DgLJuMu','BeLK','BNrLCNy','B2f0zNu','zNKUChi','zxjYB3i','shvIvxi','zNjVBq','y3rbDhq','y29T','mZe4nJa2mePnvNfzza','y3rnyxi','rerjEeK','zxmUChi','DhGUy28','lNbYB2O','sgLfD20','y3ruCMe','ChrO','C3rVCa','z2v0vgK','yxjRzxq','D2L0Afu','Ahr0Chm','vujgvNa','ChrPB24','DgLJAW','CNrJlG','DxrVBwe','EdnMDw4','ywXWAge','ru1QsMy','vvzry08','CMvZ','t3veD2y','rwrRwe0','Aw5N','se5Svhm','mtGYntjuvxHXue4','DgvZ','yY50B3a','AhvICY8','suXjwLa','BwvZC2e','yxnR','C2nYAwi','y3vYCMu','CMvWBge','tM90igm','BhvJAwq','zfbku2O','oI8VCNq','x3rYywq','A2v0rgu','yNnJCMK','CMfJDe0','BMvJDgK','zgvYCY4','v0v1s00','zw1WDhm','CMLIzsa','x3nLDhu','yMvZDee','DhjHzgu','Dhj5q28','BhvZA3K','x2z1Dhu','y3rPB24','DerHDge','zNHPzNK','zs5WCM8','yxbPlMi','wKvvuNq','C2vJB24','y3r4lMm','AgvMDxq','B250CMe','zMfPBgu','AgLNAa','x2DLDe0','thjhz3G','vw5ZDwi','Bwf4uMu','BNrwB2W','C3nFDg8','Aw52B2S','ChjPy2u','swHPrMu','AxjTs2u','B25Z','yxbPlMy','Ec5WCM8','ywn0swq','oI8V','y29UzMK','y3rLza','su1ADfe','AwnRDgK','zvbLCMm','BerXvfO','q1nxCLO','AxrL','CMfKzwK','ChjVCgy','y2HHBMC','B25Uzwm','z3vHCMq','l21HCMS','yNvSzw4','AwfU','vxPgrfG','BwfYA2u','zxvjueW','mJuXmJC1oejguvLLBa','CMfKAw4','zgvZ','uxj6u28','DhGZx2y','yxKUChi','CxvVDgu','C3LTyM8','BgvYCW','zgz3rNG','B25JBg8','CMLJzq','yMLK','zgvYlNa','su9PDhm','nNW0','Dw50','zxnRlNa','Ahjet2G','B25Yzwm','mtiWntq2ntrMBgf3se8','ztHFzNu','EMDAB28','CMLWDgK','BM93','EeDjCLO','DM9SDw0','DgrJEw4','CMvZlNa','Dw90zxm','zw1PDa','ogz1Dhu','ndKXntyYnfPWy3fzBa','uKrwzNG','q2Per0q','CMvJB24','p2fJy2u','B1roy08','Fdj8mW','AMvJDhG','vwTcD3i','Be5HBwu','BMDFzNu','ChjLDMK','uu5Qz2S','C3vIC2m','zgvSzxq','rhjbzgS','CMfJDfq','C2vSAxq','yNv5','Ec5JB20','CfDSBfe','yxL0CMe','BM5Ly3q','Dg9Wx28','AxndB24','ChGUy28','zunVBNq','DgLUzW','B2DNAw4','txbLEwe','DhrLBxa','z1LhswC','z2v0u3u','zMHqDNe','Aw1LlNa','vezuELi','BhbOywy','DgvK','ywrLCNm','Dg9Rzw4','DgfTCa','yMvbBgW','Dw1L','EgLMEs4','ywXjBK0','BMvJDgu','uxHWAMG','u0riCKm','twfYA2u','zwnVBMq','AuX3CwS','CM9Qzwm','Bg93','ywXY','y2XLyxi','yMX1zv8','rfHhzvO','neLVAwPMAW','yxbPlMe','y29UBMu','BMvJDee','y3rrDw8','B3v0sw4','mti2mfzJq1vzrq','yxbPlMq','BMz1Dhu','mNWXFdm','u2flDgi','BvrRqNi','D2L0Aee','yxLbCgK','BwLU','mtK2mZi2zfb3DNbr','yxLuCMe','yxbPlMC','zY5WCM8','Dw5KAw4','CNvzCLC','AhPtrw0','zxjdyxm','C2vSBa','sKjewKy','zxnFzgu','rMvLza','BeHWBxK','rgvWDgG','zw50','DgLJA3q','vLjutfG','C3bSAxq','B3bVBMu','AwXSAxm','yxbPlMG','rMTxCfi','z2f0zxC','zxHWB3i','Cev2zw4','q29UBMu','CMLIzq','Fdb8nxW','DhvYzxm','x3jLC3u','yxbPlNq','zg9kDuO','u3vIC2m','yxbPlMu','CMfKzxm','v3H3AwS','lMnVBq','zdOG','B3bLBG','Dg9WC3q','vwD4yui','DeHHBMq','l2H1yNm','yxLrDw8','zwn0Ec4','zgLZy28','yw1uteG','DhLWzq','z3vYzuW','zgf5Dhi'];_0x2b9e=function(){return _0x4bc88b;};return _0x2b9e();}_0x2051cd['gatew'+_0xfe5eac(0x1a7)]=_0xfe5eac(0x1ca)+_0xfe5eac(0x160)+_0xfe5eac(0x15d)+_0xfe5eac(0x194)+'tx.co'+'m';const _0x5396c4={};_0x5396c4[_0xfe5eac(0x1bf)+'ayApi']='api.b'+_0xfe5eac(0x1dc)+'ardia'+_0xfe5eac(0x1a2)+_0xfe5eac(0x15d)+'rojec'+'tx.co'+'m';const _0x5aa335={};_0x5aa335['gatew'+_0xfe5eac(0x1a7)]=_0xfe5eac(0x252)+'uture'+_0xfe5eac(0x172)+_0xfe5eac(0x23e)+'jectx'+_0xfe5eac(0x1cd);const _0x1a4fc6={};_0x1a4fc6[_0xfe5eac(0x1bf)+_0xfe5eac(0x1a7)]=_0xfe5eac(0x252)+_0xfe5eac(0x18c)+_0xfe5eac(0x1f6)+_0xfe5eac(0x242)+'om';const _0x529e52={};_0x529e52[_0xfe5eac(0x1bf)+_0xfe5eac(0x1a7)]=_0xfe5eac(0x1bd)+_0xfe5eac(0x1e0)+_0xfe5eac(0x183)+_0xfe5eac(0x194)+'tx.co'+'m';const _0x3348e6={};_0x3348e6[_0xfe5eac(0x1bf)+_0xfe5eac(0x1a7)]=_0xfe5eac(0x1c7)+_0xfe5eac(0x1bb)+'futur'+_0xfe5eac(0x205)+_0xfe5eac(0x1e2)+_0xfe5eac(0x174);const _0x18978e={};_0x18978e[_0xfe5eac(0x1bf)+_0xfe5eac(0x1a7)]=_0xfe5eac(0x252)+_0xfe5eac(0x1ad)+'gfutu'+'res.p'+_0xfe5eac(0x194)+_0xfe5eac(0x206)+'m';const _0x142ea1={};_0x142ea1[_0xfe5eac(0x1bf)+_0xfe5eac(0x1a7)]=_0xfe5eac(0x1c7)+_0xfe5eac(0x215)+'ding.'+'proje'+'ctx.c'+'om';const _0x362ac8={};function _0x261d(_0x4ff999,_0x19f5b5){_0x4ff999=_0x4ff999-0x158;const _0x2b9e8b=_0x2b9e();let _0x261ded=_0x2b9e8b[_0x4ff999];if(_0x261d['iCnoIw']===undefined){var _0xa89451=function(_0x4fcb83){const _0x53362='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5ab3f7='',_0x4f93f9='';for(let _0x3aaa1d=0x0,_0x19b770,_0x2fafb5,_0xa3ed3=0x0;_0x2fafb5=_0x4fcb83['charAt'](_0xa3ed3++);~_0x2fafb5&&(_0x19b770=_0x3aaa1d%0x4?_0x19b770*0x40+_0x2fafb5:_0x2fafb5,_0x3aaa1d++%0x4)?_0x5ab3f7+=String['fromCharCode'](0xff&_0x19b770>>(-0x2*_0x3aaa1d&0x6)):0x0){_0x2fafb5=_0x53362['indexOf'](_0x2fafb5);}for(let _0x4c0481=0x0,_0x4aa7b5=_0x5ab3f7['length'];_0x4c0481<_0x4aa7b5;_0x4c0481++){_0x4f93f9+='%'+('00'+_0x5ab3f7['charCodeAt'](_0x4c0481)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4f93f9);};_0x261d['SsTtbS']=_0xa89451,_0x261d['THVPsR']={},_0x261d['iCnoIw']=!![];}const _0x92936f=_0x2b9e8b[0x0],_0x1020e1=_0x4ff999+_0x92936f,_0x12863c=_0x261d['THVPsR'][_0x1020e1];return!_0x12863c?(_0x261ded=_0x261d['SsTtbS'](_0x261ded),_0x261d['THVPsR'][_0x1020e1]=_0x261ded):_0x261ded=_0x12863c,_0x261ded;}_0x362ac8['gatew'+_0xfe5eac(0x1a7)]='api.l'+'ucidt'+_0xfe5eac(0x26a)+_0xfe5eac(0x1ac)+_0xfe5eac(0x168)+_0xfe5eac(0x1cd);const _0x1b1eb7={};_0x1b1eb7[_0xfe5eac(0x1bf)+'ayApi']=_0xfe5eac(0x1c7)+_0xfe5eac(0x25e)+_0xfe5eac(0x1fc)+'oject'+_0xfe5eac(0x174);const _0x462553={};_0x462553['topst'+'ep']=_0x2b9615,_0x462553[_0xfe5eac(0x216)+_0xfe5eac(0x23a)+_0xfe5eac(0x219)]=_0x1f4441,_0x462553[_0xfe5eac(0x1b8)+_0xfe5eac(0x1e9)+_0xfe5eac(0x1ee)]=_0x44a605,_0x462553[_0xfe5eac(0x264)+'ox']=_0x63cfe2,_0x462553['trade'+'day']=_0x3b6e11,_0x462553['blusk'+'y']=_0xc8a490,_0x462553['goat_'+_0xfe5eac(0x1ed)+'es']=_0x51b155,_0x462553[_0xfe5eac(0x1ed)+_0xfe5eac(0x1b3)+'sk']=_0xb95731,_0x462553[_0xfe5eac(0x1da)+_0xfe5eac(0x187)]=_0x4ae7b6,_0x462553[_0xfe5eac(0x27e)+_0xfe5eac(0x1c5)]=_0x2051cd,_0x462553[_0xfe5eac(0x198)+_0xfe5eac(0x262)+_0xfe5eac(0x265)]=_0x5396c4,_0x462553['futur'+'es_el'+_0xfe5eac(0x25d)]=_0x5aa335,_0x462553[_0xfe5eac(0x23d)]=_0x1a4fc6,_0x462553['hola_'+'prime']=_0x529e52,_0x462553[_0xfe5eac(0x178)+'ne_fu'+_0xfe5eac(0x1c5)]=_0x3348e6,_0x462553['fundi'+_0xfe5eac(0x16b)+'tures']=_0x18978e,_0x462553[_0xfe5eac(0x26d)+_0xfe5eac(0x1ad)+'g']=_0x142ea1,_0x462553[_0xfe5eac(0x229)+_0xfe5eac(0x22c)+_0xfe5eac(0x21c)]=_0x362ac8,_0x462553[_0xfe5eac(0x237)+'ify']=_0x1b1eb7;const PROPFIRMS=_0x462553;class MarketDataFeed extends EventEmitter{constructor(_0x56f264={}){const _0x4f9c7f=_0xfe5eac,_0x1d17d0={};_0x1d17d0[_0x4f9c7f(0x208)]=_0x4f9c7f(0x1d0)+'ep';const _0x2e666a=_0x1d17d0,_0x4204dd=(_0x4f9c7f(0x1a3)+_0x4f9c7f(0x1c4)+_0x4f9c7f(0x278))[_0x4f9c7f(0x1ba)]('|');let _0xf2694e=0x0;while(!![]){switch(_0x4204dd[_0xf2694e++]){case'0':this['conne'+_0x4f9c7f(0x257)]=![];continue;case'1':this[_0x4f9c7f(0x25f)+_0x4f9c7f(0x250)+'y']=(_0x56f264[_0x4f9c7f(0x25f)+_0x4f9c7f(0x1f4)]||_0x2e666a[_0x4f9c7f(0x208)])['toLow'+_0x4f9c7f(0x1b0)+'e']()[_0x4f9c7f(0x227)+'ce'](/\s+/g,'_');continue;case'2':super();continue;case'3':this[_0x4f9c7f(0x19c)+'ction']=null;continue;case'4':this[_0x4f9c7f(0x24a)+_0x4f9c7f(0x19c)+_0x4f9c7f(0x200)+_0x4f9c7f(0x233)]=0x5;continue;case'5':this[_0x4f9c7f(0x16e)+_0x4f9c7f(0x158)+_0x4f9c7f(0x251)]=new Set();continue;case'6':this['recon'+_0x4f9c7f(0x19d)+_0x4f9c7f(0x17f)+'ts']=0x0;continue;}break;}}[_0xfe5eac(0x247)+_0xfe5eac(0x20d)+_0xfe5eac(0x1fe)+'l'](_0x4a9421){const _0x305c7f=_0xfe5eac,_0x14603e={};_0x14603e[_0x305c7f(0x204)]=_0x305c7f(0x20f)+_0x305c7f(0x22b)+_0x305c7f(0x220)+'stepx'+'.com/'+_0x305c7f(0x221)+_0x305c7f(0x267)+'t';const _0x2ce083=_0x14603e,_0x2ec117=PROPFIRMS[_0x4a9421]||PROPFIRMS[_0x305c7f(0x1d0)+'ep'];if(_0x2ec117[_0x305c7f(0x1bf)+_0x305c7f(0x1a7)]){const _0x2ae13c=_0x2ec117[_0x305c7f(0x1bf)+'ayApi'][_0x305c7f(0x227)+'ce'](/^api\./,_0x305c7f(0x213));return'https'+_0x305c7f(0x255)+_0x2ae13c+(_0x305c7f(0x1d3)+_0x305c7f(0x263)+'et');}return _0x2ce083['DDIxI'];}async[_0xfe5eac(0x19c)+'ct'](_0x485b46,_0x15662b,_0xc6f372=null){const _0x25c251=_0xfe5eac,_0x11829c={'hrDOh':function(_0x6e42b8,_0x13b666){return _0x6e42b8(_0x13b666);},'lHpmy':'unkno'+'wn','EMjJf':_0x25c251(0x1d6)+'nnect'+'ed','IhiFe':_0x25c251(0x15c),'doJuJ':function(_0xe09e17,_0xc83b65){return _0xe09e17*_0xc83b65;},'pWllQ':_0x25c251(0x26f),'oTNcO':_0x25c251(0x212),'fhPvq':function(_0x3e4034,_0x310ed3){return _0x3e4034===_0x310ed3;},'euIPL':_0x25c251(0x1c2)+_0x25c251(0x257),'bGdrn':_0x25c251(0x1af),'wNMfM':_0x25c251(0x19c)+_0x25c251(0x257),'ruYrW':function(_0x364c57,_0x1f7792){return _0x364c57===_0x1f7792;},'UVQcO':_0x25c251(0x1cc),'CSWrZ':_0x25c251(0x1fd)};if(this[_0x25c251(0x19c)+_0x25c251(0x257)])return;this[_0x25c251(0x25f)+_0x25c251(0x250)+'y']=_0x15662b||this[_0x25c251(0x25f)+'irmKe'+'y'],this[_0x25c251(0x188)]=_0x485b46;const _0x5da474=this[_0x25c251(0x247)+_0x25c251(0x20d)+_0x25c251(0x1fe)+'l'](this['propf'+'irmKe'+'y']);try{if(_0x11829c[_0x25c251(0x182)](_0x11829c[_0x25c251(0x1ef)],_0x11829c[_0x25c251(0x1ef)])){const _0x3a417a=_0x5da474+(_0x25c251(0x165)+_0x25c251(0x24c)+_0x25c251(0x1ea))+encodeURIComponent(this[_0x25c251(0x188)]);this['conne'+'ction']=new HubConnectionBuilder()[_0x25c251(0x20e)+'rl'](_0x3a417a,{'skipNegotiation':!![],'transport':HttpTransportType[_0x25c251(0x1f7)+_0x25c251(0x1dd)],'accessTokenFactory':()=>this['token']})[_0x25c251(0x1a6)+_0x25c251(0x214)+_0x25c251(0x1f8)+_0x25c251(0x19c)+'ct']({'nextRetryDelayInMilliseconds':_0xb26638=>{const _0x2b94a5=_0x25c251;if(_0x2b94a5(0x15c)===_0x11829c[_0x2b94a5(0x24f)]){if(_0xb26638[_0x2b94a5(0x16c)+_0x2b94a5(0x1f0)+_0x2b94a5(0x238)+_0x2b94a5(0x279)]>=this[_0x2b94a5(0x24a)+_0x2b94a5(0x19c)+_0x2b94a5(0x200)+_0x2b94a5(0x233)])return null;return Math[_0x2b94a5(0x1a8)](_0x11829c[_0x2b94a5(0x1c8)](0x3e8,Math['pow'](0x2,_0xb26638[_0x2b94a5(0x16c)+_0x2b94a5(0x1f0)+'tryCo'+_0x2b94a5(0x279)])),0x7530);}else{this[_0x2b94a5(0x19c)+_0x2b94a5(0x257)]=![];const _0x1b8bf7=_0x44c5c4?_0x26fd3c[_0x2b94a5(0x223)+'ge']||_0x11829c[_0x2b94a5(0x27b)](_0x396c52,_0x29177a):_0x11829c[_0x2b94a5(0x1b5)];this[_0x2b94a5(0x15f)](_0x11829c[_0x2b94a5(0x217)],new _0x295eb2(_0x1b8bf7));}}})[_0x25c251(0x256)+_0x25c251(0x1d9)+_0x25c251(0x17d)+'g'](LogLevel[_0x25c251(0x1e8)+'ng'])['build'](),this['conne'+_0x25c251(0x23b)]['serve'+'rTime'+_0x25c251(0x19f)+'Milli'+_0x25c251(0x241)+'ds']=0xea60,this['conne'+'ction'][_0x25c251(0x1df)+'liveI'+_0x25c251(0x1fa)+_0x25c251(0x18d)+_0x25c251(0x1bc)+_0x25c251(0x192)+'s']=0x3a98,this['_setu'+_0x25c251(0x1c1)+_0x25c251(0x1d2)+_0x25c251(0x271)](),await this[_0x25c251(0x19c)+_0x25c251(0x23b)]['start'](),this['conne'+_0x25c251(0x257)]=!![],this['recon'+'nectA'+_0x25c251(0x17f)+'ts']=0x0,this[_0x25c251(0x15f)](_0x11829c['wNMfM']),_0xc6f372&&await this[_0x25c251(0x16e)+_0x25c251(0x1c3)](null,_0xc6f372);}else{const _0x5b55a7={'type':_0x11829c['pWllQ'],'contractId':_0x47f823[_0x25c251(0x270)+'l']||_0x1aee68[_0x25c251(0x270)+'lId'],'symbol':_0x43673b['symbo'+'lName']||_0x1e1d82['symbo'+'l'],'price':_0x1eb798['lastP'+'rice'],'bid':_0x294c7a[_0x25c251(0x1f5)+'id'],'ask':_0x5f3d68[_0x25c251(0x236)+'sk'],'change':_0x2ec9fc[_0x25c251(0x260)+'e'],'changePercent':_0x28d684[_0x25c251(0x260)+_0x25c251(0x25a)+_0x25c251(0x1b7)],'open':_0x5f6a48[_0x25c251(0x1cf)],'high':_0x357eb7[_0x25c251(0x246)],'low':_0x137612[_0x25c251(0x195)],'volume':_0x592ca4[_0x25c251(0x15b)+'e'],'timestamp':_0x4d626e[_0x25c251(0x1e1)+_0x25c251(0x189)]?new _0x5b8e95(_0x5d8147[_0x25c251(0x1e1)+'tamp'])[_0x25c251(0x20c)+'me']():_0x48a68f[_0x25c251(0x159)]()};this[_0x25c251(0x15f)](_0x11829c[_0x25c251(0x166)],_0x5b55a7),this[_0x25c251(0x15f)](_0x11829c[_0x25c251(0x175)],_0x5b55a7);}}catch(_0x455652){if(_0x11829c[_0x25c251(0x1ae)](_0x25c251(0x1cc),_0x11829c[_0x25c251(0x218)])){this[_0x25c251(0x19c)+'cted']=![],this[_0x25c251(0x15f)](_0x11829c[_0x25c251(0x25c)],_0x455652);throw _0x455652;}else return this[_0x25c251(0x19c)+_0x25c251(0x257)]&&_0x11829c[_0x25c251(0x182)](this[_0x25c251(0x19c)+'ction']?.['state'],_0x11829c[_0x25c251(0x268)]);}}[_0xfe5eac(0x235)+'pEven'+_0xfe5eac(0x1d2)+'lers'](){const _0x17bea0=_0xfe5eac,_0x160daf={'ZEURt':_0x17bea0(0x173),'IMZtQ':_0x17bea0(0x1b1),'VRTLX':function(_0x1c6ef8,_0x5e7649){return _0x1c6ef8===_0x5e7649;},'EdkXM':_0x17bea0(0x212),'JBDZF':function(_0x185d18,_0x3be4e8){return _0x185d18!==_0x3be4e8;},'SDHrC':'vXOSb','ILIZP':_0x17bea0(0x26f),'yHWZJ':_0x17bea0(0x237),'UzFDX':function(_0x30ff5e,_0x5496eb){return _0x30ff5e===_0x5496eb;},'IOits':_0x17bea0(0x275),'LrGgx':_0x17bea0(0x224),'zgZoo':'depth','UBFVp':'dom','iLwqk':_0x17bea0(0x199),'Wbdcy':_0x17bea0(0x164)+_0x17bea0(0x230)+'ng','WEuKM':'error','mTkBr':function(_0x3ff4c9,_0x3d49e4){return _0x3ff4c9===_0x3d49e4;},'RDVfx':_0x17bea0(0x164)+_0x17bea0(0x18e)+'d','kQNyS':function(_0x41cf70,_0x5d30a0){return _0x41cf70===_0x5d30a0;},'UkBwr':'cdInQ','Qxpjh':function(_0x4d9635,_0x1ce66b){return _0x4d9635(_0x1ce66b);},'OuDwf':'unkno'+'wn','bVijy':_0x17bea0(0x1d6)+_0x17bea0(0x177)+'ed','VNImT':_0x17bea0(0x1eb)+_0x17bea0(0x1d4)+'te','DrAdk':'Gatew'+_0x17bea0(0x1f3)+'th'};if(!this[_0x17bea0(0x19c)+_0x17bea0(0x23b)])return;this[_0x17bea0(0x19c)+_0x17bea0(0x23b)]['on'](_0x160daf['VNImT'],_0x2cb01f=>{const _0x3b052b=_0x17bea0,_0x3bb2e1={'CjDGD':'trade','amTLH':_0x160daf[_0x3b052b(0x240)],'gYGIg':_0x160daf[_0x3b052b(0x258)],'lDqTZ':function(_0x3fb4cb,_0x2c8756){const _0x1e915d=_0x3b052b;return _0x160daf[_0x1e915d(0x1b9)](_0x3fb4cb,_0x2c8756);},'QrzSo':_0x160daf['EdkXM']};if(_0x160daf[_0x3b052b(0x1b2)](_0x160daf[_0x3b052b(0x190)],_0x3b052b(0x1de))){const _0x710c37={'type':_0x3bb2e1[_0x3b052b(0x163)],'contractId':_0x10d564[_0x3b052b(0x270)+'lId'],'price':_0x589b93[_0x3b052b(0x24e)],'volume':_0x11f81c['volum'+'e'],'side':_0x4708ab[_0x3b052b(0x1d8)]===0x0?_0x3bb2e1[_0x3b052b(0x1d7)]:_0x3bb2e1[_0x3b052b(0x180)],'lastTradeSide':_0x3bb2e1[_0x3b052b(0x25b)](_0xda3501['type'],0x0)?_0x3bb2e1['amTLH']:_0x3bb2e1[_0x3b052b(0x180)],'timestamp':_0x4b9b2a[_0x3b052b(0x1e1)+_0x3b052b(0x189)]?new _0x1ccbfe(_0x4962cf[_0x3b052b(0x1e1)+'tamp'])[_0x3b052b(0x20c)+'me']():_0xa75572[_0x3b052b(0x159)]()};this[_0x3b052b(0x15f)](_0x3bb2e1[_0x3b052b(0x26c)],_0x710c37),this[_0x3b052b(0x15f)](_0x3bb2e1[_0x3b052b(0x163)],_0x710c37);}else{const _0x52722b={'type':_0x160daf[_0x3b052b(0x222)],'contractId':_0x2cb01f['symbo'+'l']||_0x2cb01f[_0x3b052b(0x270)+_0x3b052b(0x1f9)],'symbol':_0x2cb01f[_0x3b052b(0x270)+_0x3b052b(0x16a)]||_0x2cb01f[_0x3b052b(0x270)+'l'],'price':_0x2cb01f[_0x3b052b(0x1ec)+_0x3b052b(0x274)],'bid':_0x2cb01f[_0x3b052b(0x1f5)+'id'],'ask':_0x2cb01f[_0x3b052b(0x236)+'sk'],'change':_0x2cb01f['chang'+'e'],'changePercent':_0x2cb01f[_0x3b052b(0x260)+_0x3b052b(0x25a)+'ent'],'open':_0x2cb01f[_0x3b052b(0x1cf)],'high':_0x2cb01f[_0x3b052b(0x246)],'low':_0x2cb01f[_0x3b052b(0x195)],'volume':_0x2cb01f['volum'+'e'],'timestamp':_0x2cb01f['times'+'tamp']?new Date(_0x2cb01f[_0x3b052b(0x1e1)+_0x3b052b(0x189)])['getTi'+'me']():Date[_0x3b052b(0x159)]()};this['emit'](_0x160daf[_0x3b052b(0x21b)],_0x52722b),this[_0x3b052b(0x15f)]('quote',_0x52722b);}}),this[_0x17bea0(0x19c)+_0x17bea0(0x23b)]['on'](_0x17bea0(0x1eb)+_0x17bea0(0x1aa)+'de',_0x4b4a4c=>{const _0x3647db=_0x17bea0,_0x3e398e={'type':_0x160daf[_0x3647db(0x1e3)],'contractId':_0x4b4a4c[_0x3647db(0x270)+_0x3647db(0x1f9)],'price':_0x4b4a4c[_0x3647db(0x24e)],'volume':_0x4b4a4c[_0x3647db(0x15b)+'e'],'side':_0x160daf[_0x3647db(0x1b9)](_0x4b4a4c[_0x3647db(0x1d8)],0x0)?'buy':_0x160daf[_0x3647db(0x258)],'lastTradeSide':_0x160daf[_0x3647db(0x266)](_0x4b4a4c[_0x3647db(0x1d8)],0x0)?_0x160daf[_0x3647db(0x240)]:_0x160daf[_0x3647db(0x258)],'timestamp':_0x4b4a4c[_0x3647db(0x1e1)+_0x3647db(0x189)]?new Date(_0x4b4a4c[_0x3647db(0x1e1)+'tamp'])[_0x3647db(0x20c)+'me']():Date[_0x3647db(0x159)]()};this[_0x3647db(0x15f)](_0x160daf['EdkXM'],_0x3e398e),this[_0x3647db(0x15f)](_0x160daf[_0x3647db(0x1e3)],_0x3e398e);}),this[_0x17bea0(0x19c)+_0x17bea0(0x23b)]['on'](_0x160daf[_0x17bea0(0x170)],_0x4e98f3=>{const _0x4be4c9=_0x17bea0,_0x2e5e22={'type':'depth','price':_0x4e98f3['price'],'volume':_0x4e98f3[_0x4be4c9(0x15b)+'e'],'currentVolume':_0x4e98f3[_0x4be4c9(0x226)+_0x4be4c9(0x24b)+_0x4be4c9(0x18b)],'side':_0x160daf[_0x4be4c9(0x1b9)](_0x4e98f3[_0x4be4c9(0x1d8)],0x0)?_0x160daf[_0x4be4c9(0x277)]:_0x160daf[_0x4be4c9(0x248)],'timestamp':_0x4e98f3[_0x4be4c9(0x1e1)+_0x4be4c9(0x189)]?new Date(_0x4e98f3['times'+'tamp'])['getTi'+'me']():Date[_0x4be4c9(0x159)]()};this[_0x4be4c9(0x15f)](_0x160daf[_0x4be4c9(0x27f)],_0x2e5e22),this[_0x4be4c9(0x15f)](_0x160daf[_0x4be4c9(0x210)],_0x2e5e22);}),this[_0x17bea0(0x19c)+_0x17bea0(0x23b)][_0x17bea0(0x27c)+_0x17bea0(0x261)+_0x17bea0(0x17c)](_0x1c075e=>{const _0x36b2fe=_0x17bea0;if('DXGeZ'===_0x160daf[_0x36b2fe(0x193)])this[_0x36b2fe(0x19c)+_0x36b2fe(0x257)]=![],this[_0x36b2fe(0x15f)](_0x160daf[_0x36b2fe(0x1f1)],_0x1c075e);else return _0x20d2af['from'](this[_0x36b2fe(0x16e)+_0x36b2fe(0x158)+'ons']);}),this[_0x17bea0(0x19c)+'ction'][_0x17bea0(0x27c)+_0x17bea0(0x261)+'ted'](_0x27a900=>{const _0x43f0c2=_0x17bea0,_0x1be13d={};_0x1be13d[_0x43f0c2(0x184)]=_0x160daf[_0x43f0c2(0x232)];const _0x5ea683=_0x1be13d;if(_0x160daf[_0x43f0c2(0x1a5)](_0x43f0c2(0x1d1),_0x43f0c2(0x1d1)))this[_0x43f0c2(0x19c)+'cted']=!![],this[_0x43f0c2(0x164)+'nectA'+_0x43f0c2(0x17f)+'ts']=0x0,this[_0x43f0c2(0x15f)](_0x160daf[_0x43f0c2(0x162)],_0x27a900),this['_resu'+_0x43f0c2(0x22e)+'beAll']();else{this['conne'+_0x43f0c2(0x257)]=![],this[_0x43f0c2(0x15f)](_0x5ea683[_0x43f0c2(0x184)],_0xec7705);throw _0x16ebed;}}),this[_0x17bea0(0x19c)+_0x17bea0(0x23b)][_0x17bea0(0x273)+'se'](_0x3834c2=>{const _0x1626d6=_0x17bea0;if(_0x160daf['kQNyS'](_0x160daf[_0x1626d6(0x169)],_0x160daf[_0x1626d6(0x169)])){this[_0x1626d6(0x19c)+_0x1626d6(0x257)]=![];const _0x5e7306=_0x3834c2?_0x3834c2[_0x1626d6(0x223)+'ge']||_0x160daf[_0x1626d6(0x18f)](String,_0x3834c2):_0x160daf[_0x1626d6(0x21a)];this[_0x1626d6(0x15f)](_0x160daf['bVijy'],new Error(_0x5e7306));}else throw new _0x5f3284(_0x1626d6(0x228)+_0x1626d6(0x261)+_0x1626d6(0x186));});}async[_0xfe5eac(0x16e)+_0xfe5eac(0x1c3)](_0x4f52c4,_0x3285c5){const _0x2057b7=_0xfe5eac,_0x3deb46={};_0x3deb46[_0x2057b7(0x1a4)]=_0x2057b7(0x1c9)+_0x2057b7(0x1db)+_0x2057b7(0x244)+'ctTra'+_0x2057b7(0x26b),_0x3deb46[_0x2057b7(0x1be)]=_0x2057b7(0x16e)+'ribed';const _0x2cf6ae=_0x3deb46;if(!this[_0x2057b7(0x19c)+'ction']||!this['conne'+_0x2057b7(0x257)])throw new Error(_0x2057b7(0x228)+_0x2057b7(0x261)+_0x2057b7(0x186));const _0x360931=_0x3285c5||_0x4f52c4;try{await this['conne'+_0x2057b7(0x23b)][_0x2057b7(0x24d)+'e'](_0x2057b7(0x1c9)+_0x2057b7(0x1db)+'ontra'+'ctQuo'+_0x2057b7(0x21f),_0x360931),await this['conne'+_0x2057b7(0x23b)][_0x2057b7(0x24d)+'e'](_0x2cf6ae[_0x2057b7(0x1a4)],_0x360931),await this['conne'+_0x2057b7(0x23b)][_0x2057b7(0x24d)+'e'](_0x2057b7(0x1c9)+'ribeC'+_0x2057b7(0x244)+'ctMar'+_0x2057b7(0x22d)+_0x2057b7(0x20a),_0x360931),this[_0x2057b7(0x16e)+_0x2057b7(0x158)+_0x2057b7(0x251)]['add'](_0x360931);const _0x363a1c={};_0x363a1c[_0x2057b7(0x270)+'l']=_0x4f52c4,_0x363a1c[_0x2057b7(0x1e4)+_0x2057b7(0x254)]=_0x360931,this[_0x2057b7(0x15f)](_0x2cf6ae[_0x2057b7(0x1be)],_0x363a1c);}catch(_0x18a5ce){this[_0x2057b7(0x15f)](_0x2057b7(0x1fd),new Error('Subsc'+_0x2057b7(0x234)+_0x2057b7(0x245)+_0x2057b7(0x1ce)+_0x18a5ce['messa'+'ge']));throw _0x18a5ce;}}async[_0xfe5eac(0x1e7)+'scrib'+'e'](_0x2a6d31){const _0x3b66fe=_0xfe5eac,_0x1a794b={};_0x1a794b[_0x3b66fe(0x272)]='0|1|4'+_0x3b66fe(0x167);const _0x290549=_0x1a794b;if(!this[_0x3b66fe(0x19c)+_0x3b66fe(0x23b)]||!this[_0x3b66fe(0x19c)+_0x3b66fe(0x257)])return;try{const _0x129b5c=_0x290549[_0x3b66fe(0x272)][_0x3b66fe(0x1ba)]('|');let _0x5ba136=0x0;while(!![]){switch(_0x129b5c[_0x5ba136++]){case'0':await this['conne'+_0x3b66fe(0x23b)][_0x3b66fe(0x24d)+'e'](_0x3b66fe(0x249)+_0x3b66fe(0x225)+_0x3b66fe(0x17b)+_0x3b66fe(0x1f2)+_0x3b66fe(0x15e),_0x2a6d31);continue;case'1':await this[_0x3b66fe(0x19c)+_0x3b66fe(0x23b)]['invok'+'e'](_0x3b66fe(0x249)+'scrib'+'eCont'+_0x3b66fe(0x171)+_0x3b66fe(0x1cb),_0x2a6d31);continue;case'2':this['subsc'+_0x3b66fe(0x158)+_0x3b66fe(0x251)][_0x3b66fe(0x16f)+'e'](_0x2a6d31);continue;case'3':const _0xbf447a={};_0xbf447a[_0x3b66fe(0x1e4)+'actId']=_0x2a6d31,this[_0x3b66fe(0x15f)](_0x3b66fe(0x1e7)+_0x3b66fe(0x225)+'ed',_0xbf447a);continue;case'4':await this[_0x3b66fe(0x19c)+_0x3b66fe(0x23b)][_0x3b66fe(0x24d)+'e'](_0x3b66fe(0x249)+_0x3b66fe(0x225)+_0x3b66fe(0x17b)+_0x3b66fe(0x22f)+_0x3b66fe(0x20d)+_0x3b66fe(0x1b6),_0x2a6d31);continue;}break;}}catch(_0x5d6f9c){}}async[_0xfe5eac(0x1c6)+'bscri'+_0xfe5eac(0x18a)](){const _0x2de3c5=_0xfe5eac,_0x22cdc6={};_0x22cdc6[_0x2de3c5(0x21d)]=_0x2de3c5(0x1c9)+_0x2de3c5(0x1db)+_0x2de3c5(0x244)+_0x2de3c5(0x19e)+_0x2de3c5(0x21f),_0x22cdc6[_0x2de3c5(0x22a)]=_0x2de3c5(0x1c9)+_0x2de3c5(0x1db)+_0x2de3c5(0x244)+_0x2de3c5(0x209)+'des',_0x22cdc6['xGIrZ']=_0x2de3c5(0x1c9)+_0x2de3c5(0x1db)+_0x2de3c5(0x244)+_0x2de3c5(0x203)+_0x2de3c5(0x22d)+_0x2de3c5(0x20a);const _0x79fa41=_0x22cdc6;for(const _0x162b6a of this['subsc'+_0x2de3c5(0x158)+_0x2de3c5(0x251)]){try{await this[_0x2de3c5(0x19c)+_0x2de3c5(0x23b)][_0x2de3c5(0x24d)+'e'](_0x79fa41[_0x2de3c5(0x21d)],_0x162b6a),await this['conne'+_0x2de3c5(0x23b)][_0x2de3c5(0x24d)+'e'](_0x79fa41['dPJSj'],_0x162b6a),await this[_0x2de3c5(0x19c)+'ction'][_0x2de3c5(0x24d)+'e'](_0x79fa41[_0x2de3c5(0x15a)],_0x162b6a);}catch(_0x57526a){}}}async[_0xfe5eac(0x1d6)+_0xfe5eac(0x177)](){const _0x2faa4c=_0xfe5eac;if(this[_0x2faa4c(0x19c)+_0x2faa4c(0x23b)]){try{for(const _0x497b5c of this['subsc'+_0x2faa4c(0x158)+_0x2faa4c(0x251)]){await this[_0x2faa4c(0x1e7)+_0x2faa4c(0x225)+'e'](_0x497b5c);}await this[_0x2faa4c(0x19c)+_0x2faa4c(0x23b)][_0x2faa4c(0x20b)]();}catch(_0x4274fc){}this[_0x2faa4c(0x19c)+_0x2faa4c(0x23b)]=null,this[_0x2faa4c(0x19c)+_0x2faa4c(0x257)]=![],this['subsc'+_0x2faa4c(0x158)+'ons'][_0x2faa4c(0x197)]();}}[_0xfe5eac(0x179)+_0xfe5eac(0x18e)+'d'](){const _0x83dab9=_0xfe5eac,_0x4b07d7={};_0x4b07d7[_0x83dab9(0x16d)]=function(_0x54cdfd,_0x3b3bed){return _0x54cdfd===_0x3b3bed;},_0x4b07d7[_0x83dab9(0x17e)]=_0x83dab9(0x1c2)+_0x83dab9(0x257);const _0x2f3ed5=_0x4b07d7;return this[_0x83dab9(0x19c)+'cted']&&_0x2f3ed5[_0x83dab9(0x16d)](this[_0x83dab9(0x19c)+_0x83dab9(0x23b)]?.['state'],_0x2f3ed5['Mpeya']);}[_0xfe5eac(0x181)+_0xfe5eac(0x22e)+_0xfe5eac(0x211)+'s'](){const _0x678988=_0xfe5eac;return Array[_0x678988(0x1ff)](this[_0x678988(0x16e)+_0x678988(0x158)+_0x678988(0x251)]);}}const _0x20e595={};_0x20e595[_0xfe5eac(0x191)+_0xfe5eac(0x23c)+_0xfe5eac(0x1b4)]=MarketDataFeed,module[_0xfe5eac(0x1c0)+'ts']=_0x20e595;
1
+ 'use strict';const _0x4748d1=_0x2d90;(function(_0x1e3fb7,_0x232d74){const _0x361b46=_0x2d90,_0x38296c=_0x1e3fb7();while(!![]){try{const _0x5dc2e7=-parseInt(_0x361b46(0x120))/0x1*(-parseInt(_0x361b46(0x1a6))/0x2)+-parseInt(_0x361b46(0xfc))/0x3*(-parseInt(_0x361b46(0x162))/0x4)+parseInt(_0x361b46(0x14c))/0x5*(-parseInt(_0x361b46(0x1e7))/0x6)+parseInt(_0x361b46(0x1c7))/0x7+parseInt(_0x361b46(0x148))/0x8+-parseInt(_0x361b46(0x15b))/0x9*(parseInt(_0x361b46(0x16d))/0xa)+-parseInt(_0x361b46(0x14d))/0xb;if(_0x5dc2e7===_0x232d74)break;else _0x38296c['push'](_0x38296c['shift']());}catch(_0x3cb812){_0x38296c['push'](_0x38296c['shift']());}}}(_0xa0f5,0xa9449));const EventEmitter=require('event'+'s'),{HubConnectionBuilder,HttpTransportType,LogLevel}=require(_0x4748d1(0x10a)+'osoft'+_0x4748d1(0x15e)+'alr'),_0x4daad5={};_0x4daad5['gatew'+'ayApi']='api.t'+_0x4748d1(0x1c6)+_0x4748d1(0x1c8)+'m';const _0x30be3d={};_0x30be3d[_0x4748d1(0x178)+_0x4748d1(0x139)]='api.a'+_0x4748d1(0x15f)+'uture'+'s.pro'+_0x4748d1(0x192)+_0x4748d1(0x177);const _0x4df8c8={};_0x4df8c8[_0x4748d1(0x178)+_0x4748d1(0x139)]=_0x4748d1(0xf9)+_0x4748d1(0x158)+_0x4748d1(0x171)+_0x4748d1(0x11c)+_0x4748d1(0x11f)+'tx.co'+'m';const _0x20c034={};_0x20c034[_0x4748d1(0x178)+'ayApi']=_0x4748d1(0x137)+_0x4748d1(0x1b5)+'x.pro'+_0x4748d1(0x192)+_0x4748d1(0x177);const _0x40e087={};_0x40e087[_0x4748d1(0x178)+_0x4748d1(0x139)]='api.t'+_0x4748d1(0x1dd)+_0x4748d1(0x1af)+_0x4748d1(0x121)+_0x4748d1(0x1bf);const _0xe7829={};_0xe7829['gatew'+_0x4748d1(0x139)]=_0x4748d1(0x137)+_0x4748d1(0x12b)+_0x4748d1(0x159)+_0x4748d1(0x194)+_0x4748d1(0x16a);const _0x155cad={};_0x155cad[_0x4748d1(0x178)+_0x4748d1(0x139)]=_0x4748d1(0x19e)+_0x4748d1(0x170)+'tures'+_0x4748d1(0x159)+_0x4748d1(0x194)+_0x4748d1(0x16a);const _0x1d576e={};_0x1d576e['gatew'+_0x4748d1(0x139)]=_0x4748d1(0xf9)+_0x4748d1(0x107)+_0x4748d1(0x1f9)+'esk.p'+'rojec'+_0x4748d1(0x1fb)+'m';const _0x1b3d5c={};_0x1b3d5c[_0x4748d1(0x178)+'ayApi']=_0x4748d1(0x1a3)+'aytra'+_0x4748d1(0x142)+_0x4748d1(0x160)+_0x4748d1(0x1ea)+'om';const _0x1342e0={};_0x1342e0['gatew'+_0x4748d1(0x139)]=_0x4748d1(0x117)+_0x4748d1(0x1f2)+_0x4748d1(0x131)+'rojec'+'tx.co'+'m';const _0x412d64={};_0x412d64['gatew'+_0x4748d1(0x139)]=_0x4748d1(0x137)+_0x4748d1(0x115)+_0x4748d1(0x1ae)+_0x4748d1(0xff)+_0x4748d1(0x131)+'rojec'+_0x4748d1(0x1fb)+'m';const _0x24cc88={};_0x24cc88[_0x4748d1(0x178)+'ayApi']='api.f'+_0x4748d1(0x1eb)+_0x4748d1(0x1b3)+_0x4748d1(0x195)+_0x4748d1(0x192)+_0x4748d1(0x177);const _0x32cce6={};_0x32cce6['gatew'+'ayApi']=_0x4748d1(0x196)+_0x4748d1(0x193)+_0x4748d1(0x160)+_0x4748d1(0x1ea)+'om';const _0x2d3fa7={};_0x2d3fa7['gatew'+_0x4748d1(0x139)]='api.h'+_0x4748d1(0x19a)+_0x4748d1(0x1cb)+'rojec'+_0x4748d1(0x1fb)+'m';const _0x19620b={};_0x19620b[_0x4748d1(0x178)+_0x4748d1(0x139)]='api.t'+_0x4748d1(0x11e)+'futur'+_0x4748d1(0x138)+_0x4748d1(0x121)+_0x4748d1(0x1bf);const _0x53f8f8={};_0x53f8f8[_0x4748d1(0x178)+_0x4748d1(0x139)]=_0x4748d1(0x196)+_0x4748d1(0x105)+_0x4748d1(0x11b)+_0x4748d1(0x131)+_0x4748d1(0x11f)+_0x4748d1(0x1fb)+'m';function _0x2d90(_0x5d1cbd,_0xd9cd34){_0x5d1cbd=_0x5d1cbd-0xf1;const _0xa0f529=_0xa0f5();let _0x2d9052=_0xa0f529[_0x5d1cbd];if(_0x2d90['ntKwVY']===undefined){var _0x52f0c0=function(_0x50aa5d){const _0x2d0cf5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5aa7ce='',_0xd66836='';for(let _0x445223=0x0,_0x5efb1d,_0x5e0de2,_0x197f95=0x0;_0x5e0de2=_0x50aa5d['charAt'](_0x197f95++);~_0x5e0de2&&(_0x5efb1d=_0x445223%0x4?_0x5efb1d*0x40+_0x5e0de2:_0x5e0de2,_0x445223++%0x4)?_0x5aa7ce+=String['fromCharCode'](0xff&_0x5efb1d>>(-0x2*_0x445223&0x6)):0x0){_0x5e0de2=_0x2d0cf5['indexOf'](_0x5e0de2);}for(let _0xf5fa19=0x0,_0x566503=_0x5aa7ce['length'];_0xf5fa19<_0x566503;_0xf5fa19++){_0xd66836+='%'+('00'+_0x5aa7ce['charCodeAt'](_0xf5fa19)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xd66836);};_0x2d90['ioDBne']=_0x52f0c0,_0x2d90['DiiWTs']={},_0x2d90['ntKwVY']=!![];}const _0x1e9d02=_0xa0f529[0x0],_0x541710=_0x5d1cbd+_0x1e9d02,_0x3480c5=_0x2d90['DiiWTs'][_0x541710];return!_0x3480c5?(_0x2d9052=_0x2d90['ioDBne'](_0x2d9052),_0x2d90['DiiWTs'][_0x541710]=_0x2d9052):_0x2d9052=_0x3480c5,_0x2d9052;}const _0xa62995={};_0xa62995['gatew'+_0x4748d1(0x139)]='api.t'+_0x4748d1(0xf7)+_0x4748d1(0x10b)+_0x4748d1(0x160)+'ctx.c'+'om';const _0xbd165d={};_0xbd165d[_0x4748d1(0x178)+_0x4748d1(0x139)]=_0x4748d1(0x134)+_0x4748d1(0x190)+'radin'+'g.pro'+_0x4748d1(0x192)+'.com';const _0x318a0b={};_0x318a0b[_0x4748d1(0x178)+'ayApi']=_0x4748d1(0xf9)+_0x4748d1(0x1df)+_0x4748d1(0x1f5)+'oject'+_0x4748d1(0x1bf);const _0x52a903={};function _0xa0f5(){const _0x554804=['C2vSBa','v1Dlsfq','B2XHChi','ChjPBwu','ztHFzNu','tM90igm','yxbPlMC','zgvWDgG','y2XLyxi','EenssgK','AxjTs2u','yxbPlMq','DgLTzxm','ChrO','mtuYodaYvMDQCe1V','BwLU','nNWW','Dw1L','ywrLCG','yMvZDei','BgL2zuK','CNj6AM8','yxjKAwe','yxKUChi','ihWG','z29HDf8','B3v0sw4','C2vSAxq','ChjVCgy','DwXLBM8','uw9Jqxu','y3rLza','B2DNAw4','ywXWAge','y29UDhi','C3bSAxq','mNWXFdm','B25Yzwm','DgvK','Ec5JB20','Aw52B2S','AgLNAa','wujcq1i','zNHPzNK','DhrLBxa','A2v0rgu','B3bZDgu','mJy2nJGYnuTRsxnpDG','ChGUy28','zgLZy28','yNnJCMK','Aw1LlNa','zxnFzwW','BgfZDfa','BwznvLK','yxjRzxq','r2f0zxC','DgfTCa','yxnR','Dw5ZDwi','zgf5','BeLK','qKndzNG','CMvWBge','Dg9WC3q','CxvVDgu','Fdb8mq','y3rnyxi','zMDutMm','CMfKzwq','B250CMe','CMfKzwK','y3rbDhq','zNjVBq','C3rLChG','CMfKzxm','CMLIzum','AfHlC1q','AhvICY8','mtjsAuThv1y','BMvJDgK','BhvJAwq','y3r4lMm','Dxr1CMu','x3jLC3u','tgHxz00','yMvbBgW','vMjvq2q','AxrL','zxjdyxm','ogz1Dhu','x3nLDhu','Cg93','zNKUChi','Au1zDLu','uwTIq0W','B25JBg8','DxjLC2q','DgLJAW','DhGUy28','tNz1zgG','Ahr0Chm','shvIvxi','B3bLBG','yMX1zv8','yxLrDw8','CMLIzq','EdnMDw4','zgvSzxq','yxbPlNq','y3rrDw8','AwnRDhi','mZuYmtq4n2TLDezcDq','CMfJzq','Be5HBwu','BMz1Dhu','z3vYzuW','yY50B3a','z3vHCMq','DhvYzxm','AxndB24','Dw5KAw4','C2nYAwi','AgvMDxq','nhWWFdm','BgTUwNO','qg1Py3i','zgLUzY4','BM9WtKm','zxHWB3i','CMLIzwq','BwfYA2u','Cev2zw4','DgLJuMu','C3LTyM8','CMX3Cxe','ChrPB24','BhvLz3u','y2HHBMC','yxbPlMu','u3vIC2m','CMLWDgK','DxrVBwe','z2z1Dhu','zgvYlNa','Fdj8mq','B3bVBMu','CM9Qzwm','mtrpv05Mwe8','B2PLy3q','B25Uzwm','zvbLCMm','zNv0Dxi','Awz5','Bwf4uMu','BwvZC2e','zMfPBgu','C2vJB24','B25Z','BhvZA3K','x2DLDe0','BMz3wgO','DerHDge','yMvZDee','BM5Ly3q','CMvZlNa','zw50','AMLsq0C','yxbPlMW','BgvYCW','zw1WDhm','yxbPlMi','zxmUChi','yxLbCgK','BMvJDgu','vw5ZDwi','DeHHBMq','B3vZuMu','zunVBNq','zw1PDa','v2fYBMK','AwfU','zgvYCY4','qwXytgS','CNrJlG','q29UBMu','z2v0vgK','ChjPy2u','odG5mdCYmhfKrwXOvG','Eg90rum','Dhj5q28','D2L0Afu','ntaXmtq1uKvmD0ry','mJK0mdiXmZfxEKvos3O','y3ruCMe','y2fiA2u','DwnntgS','Dw50','y3rPB24','DgLJA3q','AwHYEuy','l2H1yNm','BMvFzNu','C3nku0C','AwnRDgK','lNbYB2O','Dg9Wx28','ntu1m01PAuDYzG','C3rHCNq','yMX1C2S','l3nPz24','BhbOywy','ChjVAMu','CMvZ','nev3BhDeuG','wLDqwhq','zgf5Dhi','z2v0u3u','ywn0swq','DgvZ','DM9SDw0','sKv0rvm','y29T','Dg9mB3C','BMDFzNu','mJC0mgvmDhnZzG','DuD1zeO','yNrAqxe','B2f0zNu','y2T0CMe','Ag9Syv8','zNvUzgK','wKrdr3y','Dg9Rzw4','twfYA2u','lMnVBq','z2f0zxC','C3vIC2m','BMvJDee','ywXjBK0','Aw5N','rgvWDgG','CMfJDfe','x3rYywq','C3rHy2S','yNvSzw4','DhLWzq','C21vBLq','yNv5','Dw5RBM8','zgvZ','D0LXy2i','zxjYB3i','DhGZx2y','y29UBMu','x2z1Dhu','r2vPDuS','CMvJB24','BM93','DhjHzgu','DwnPzhq','swTdAe0','AMvJDhG','EgLMEs4','zwn0Ec4','zs5WCM8','yxbPlMy','lMnVBs8'];_0xa0f5=function(){return _0x554804;};return _0xa0f5();}_0x52a903[_0x4748d1(0x1d8)+'ep']=_0x4daad5,_0x52a903[_0x4748d1(0x1b9)+_0x4748d1(0x18b)+_0x4748d1(0x161)]=_0x30be3d,_0x52a903[_0x4748d1(0x153)+_0x4748d1(0xfb)+_0x4748d1(0x1aa)]=_0x4df8c8,_0x52a903[_0x4748d1(0x181)+'ox']=_0x20c034,_0x52a903['trade'+_0x4748d1(0x1d4)]=_0x40e087,_0x52a903[_0x4748d1(0x15d)+'y']=_0xe7829,_0x52a903[_0x4748d1(0x1b1)+_0x4748d1(0x124)+'es']=_0x155cad,_0x52a903['futur'+'es_de'+'sk']=_0x1d576e,_0x52a903[_0x4748d1(0x164)+'aders']=_0x1b3d5c,_0x52a903[_0x4748d1(0x19c)+_0x4748d1(0x103)]=_0x1342e0,_0x52a903[_0x4748d1(0xf4)+_0x4748d1(0x102)+_0x4748d1(0x141)]=_0x412d64,_0x52a903[_0x4748d1(0x124)+_0x4748d1(0x1cc)+_0x4748d1(0x1f0)]=_0x24cc88,_0x52a903[_0x4748d1(0x1c3)]=_0x32cce6,_0x52a903[_0x4748d1(0x172)+_0x4748d1(0x19b)]=_0x2d3fa7,_0x52a903[_0x4748d1(0x15a)+_0x4748d1(0x156)+_0x4748d1(0x103)]=_0x19620b,_0x52a903[_0x4748d1(0x173)+_0x4748d1(0x16c)+_0x4748d1(0x103)]=_0x53f8f8,_0x52a903[_0x4748d1(0x189)+'undin'+'g']=_0xa62995,_0x52a903[_0x4748d1(0x1e9)+_0x4748d1(0x17f)+_0x4748d1(0x17c)]=_0xbd165d,_0x52a903['trade'+_0x4748d1(0x125)]=_0x318a0b;const PROPFIRMS=_0x52a903;class MarketDataFeed extends EventEmitter{constructor(_0x46b371={}){const _0x534bab=_0x4748d1,_0x502392={};_0x502392['ZDCGv']=_0x534bab(0x1bc)+'|4|5|'+_0x534bab(0x1a8),_0x502392[_0x534bab(0x1ad)]=_0x534bab(0x1d8)+'ep';const _0x571d95=_0x502392,_0x3f60ea=_0x571d95[_0x534bab(0x174)][_0x534bab(0x1bb)]('|');let _0xcb8ee3=0x0;while(!![]){switch(_0x3f60ea[_0xcb8ee3++]){case'0':this['maxRe'+_0x534bab(0x18a)+_0x534bab(0x1e0)+_0x534bab(0x136)]=0x5;continue;case'1':this[_0x534bab(0x1b4)+_0x534bab(0x1a2)+'y']=(_0x46b371[_0x534bab(0x1b4)+'irm']||_0x571d95[_0x534bab(0x1ad)])[_0x534bab(0x16b)+_0x534bab(0x1f1)+'e']()[_0x534bab(0x1d7)+'ce'](/\s+/g,'_');continue;case'2':super();continue;case'3':this[_0x534bab(0x18a)+_0x534bab(0x152)]=null;continue;case'4':this[_0x534bab(0x18a)+_0x534bab(0x1b7)]=![];continue;case'5':this[_0x534bab(0x179)+_0x534bab(0x119)+_0x534bab(0x12a)]=new Set();continue;case'6':this[_0x534bab(0x18d)+_0x534bab(0x17a)+'ttemp'+'ts']=0x0;continue;}break;}}[_0x4748d1(0x12c)+_0x4748d1(0x1cf)+_0x4748d1(0xf2)+'l'](_0x35f328){const _0x16fe33=_0x4748d1,_0xccd13b={};_0xccd13b[_0x16fe33(0x143)]=_0x16fe33(0x144);const _0x57f133=_0xccd13b,_0x2dac86=PROPFIRMS[_0x35f328]||PROPFIRMS[_0x16fe33(0x1d8)+'ep'];if(_0x2dac86['gatew'+_0x16fe33(0x139)]){const _0x54b8f3=_0x2dac86[_0x16fe33(0x178)+_0x16fe33(0x139)][_0x16fe33(0x1d7)+'ce'](/^api\./,_0x57f133['AlXLk']);return _0x16fe33(0xf1)+'://'+_0x54b8f3+(_0x16fe33(0x155)+'/mark'+'et');}return _0x16fe33(0xf1)+'://rt'+_0x16fe33(0x101)+_0x16fe33(0x1e2)+_0x16fe33(0x197)+_0x16fe33(0x1e6)+_0x16fe33(0x10f)+'t';}async[_0x4748d1(0x18a)+'ct'](_0x388902,_0x233265,_0x17f14e=null){const _0x2aa349=_0x4748d1,_0x5422cb={};_0x5422cb[_0x2aa349(0x187)]=function(_0x151d08,_0x7935dc){return _0x151d08>=_0x7935dc;},_0x5422cb[_0x2aa349(0x169)]=function(_0x88bd3d,_0x440961){return _0x88bd3d*_0x440961;},_0x5422cb[_0x2aa349(0x1a1)]=function(_0x497345,_0x5dae04){return _0x497345===_0x5dae04;},_0x5422cb[_0x2aa349(0x1d6)]='iVJuR',_0x5422cb[_0x2aa349(0x1b6)]=_0x2aa349(0x16f),_0x5422cb[_0x2aa349(0x18c)]='conne'+_0x2aa349(0x1b7);const _0x5124d0=_0x5422cb;if(this[_0x2aa349(0x18a)+'cted'])return;this['propf'+'irmKe'+'y']=_0x233265||this[_0x2aa349(0x1b4)+_0x2aa349(0x1a2)+'y'],this[_0x2aa349(0x175)]=_0x388902;const _0x4aab52=this['_getM'+'arket'+'HubUr'+'l'](this[_0x2aa349(0x1b4)+'irmKe'+'y']);try{if(_0x5124d0[_0x2aa349(0x1a1)](_0x5124d0[_0x2aa349(0x1d6)],_0x5124d0['QocAu']))return _0x117a3b[_0x2aa349(0x1e1)](this['subsc'+_0x2aa349(0x119)+_0x2aa349(0x12a)]);else this[_0x2aa349(0x18a)+_0x2aa349(0x152)]=new HubConnectionBuilder()[_0x2aa349(0x14b)+'rl'](_0x4aab52,{'accessTokenFactory':()=>this[_0x2aa349(0x175)]})['withA'+_0x2aa349(0x11a)+_0x2aa349(0x111)+_0x2aa349(0x18a)+'ct']({'nextRetryDelayInMilliseconds':_0x183913=>{const _0x4ec417=_0x2aa349;if(_0x5124d0[_0x4ec417(0x187)](_0x183913['previ'+_0x4ec417(0x13d)+_0x4ec417(0x14a)+_0x4ec417(0x151)],this[_0x4ec417(0x126)+_0x4ec417(0x18a)+_0x4ec417(0x1e0)+_0x4ec417(0x136)]))return null;return Math[_0x4ec417(0x1a7)](_0x5124d0[_0x4ec417(0x169)](0x3e8,Math[_0x4ec417(0x1f4)](0x2,_0x183913['previ'+_0x4ec417(0x13d)+'tryCo'+_0x4ec417(0x151)])),0x7530);}})['confi'+_0x2aa349(0x100)+_0x2aa349(0x1b8)+'g'](LogLevel[_0x2aa349(0x140)+'ng'])['build'](),this[_0x2aa349(0x18a)+'ction']['serve'+'rTime'+_0x2aa349(0x1b2)+'Milli'+_0x2aa349(0x129)+'ds']=0xea60,this[_0x2aa349(0x18a)+_0x2aa349(0x152)]['keepA'+_0x2aa349(0x1ac)+'nterv'+_0x2aa349(0x17b)+'illis'+'econd'+'s']=0x3a98,this[_0x2aa349(0x1f3)+_0x2aa349(0x110)+_0x2aa349(0x13c)+_0x2aa349(0x135)](),await this[_0x2aa349(0x18a)+_0x2aa349(0x152)][_0x2aa349(0x15c)](),this[_0x2aa349(0x18a)+_0x2aa349(0x1b7)]=!![],this['recon'+_0x2aa349(0x17a)+'ttemp'+'ts']=0x0,this['emit'](_0x5124d0[_0x2aa349(0x18c)]),_0x17f14e&&await this[_0x2aa349(0x179)+_0x2aa349(0xf6)](null,_0x17f14e);}catch(_0x28ae93){this['conne'+_0x2aa349(0x1b7)]=![],this[_0x2aa349(0x13f)](_0x2aa349(0x188),_0x28ae93);throw _0x28ae93;}}['_setu'+_0x4748d1(0x110)+'tHand'+_0x4748d1(0x135)](){const _0x225c1f=_0x4748d1,_0x44fbb6={};_0x44fbb6[_0x225c1f(0x1ce)]=_0x225c1f(0x1d9),_0x44fbb6[_0x225c1f(0x163)]=_0x225c1f(0x18f),_0x44fbb6[_0x225c1f(0x10c)]=_0x225c1f(0x184),_0x44fbb6['nfwXj']=_0x225c1f(0x198),_0x44fbb6[_0x225c1f(0x16e)]='depth',_0x44fbb6[_0x225c1f(0x191)]=_0x225c1f(0x1d2),_0x44fbb6[_0x225c1f(0x113)]='dom',_0x44fbb6[_0x225c1f(0x1f7)]='recon'+_0x225c1f(0x1e8)+'ng',_0x44fbb6[_0x225c1f(0x154)]=function(_0x2e7d55,_0x201e2c){return _0x2e7d55===_0x201e2c;},_0x44fbb6[_0x225c1f(0x157)]='rUGLZ',_0x44fbb6[_0x225c1f(0x150)]=_0x225c1f(0x18d)+_0x225c1f(0x13a)+'d',_0x44fbb6[_0x225c1f(0x14f)]=_0x225c1f(0x185)+'wn',_0x44fbb6['smUnT']=function(_0x50baec,_0x8c9a31){return _0x50baec+_0x8c9a31;},_0x44fbb6[_0x225c1f(0x109)]=_0x225c1f(0x1c9)+'nnect'+'ed',_0x44fbb6['xotEC']=_0x225c1f(0x1d0)+_0x225c1f(0xf5)+'te',_0x44fbb6[_0x225c1f(0x1c2)]=_0x225c1f(0x1d0)+'ayDep'+'th';const _0x3e07b1=_0x44fbb6;if(!this[_0x225c1f(0x18a)+'ction'])return;this[_0x225c1f(0x18a)+_0x225c1f(0x152)]['on'](_0x3e07b1[_0x225c1f(0x149)],_0x3eb646=>{const _0x36cc99=_0x225c1f,_0x8acfa5={'type':_0x3e07b1[_0x36cc99(0x1ce)],'contractId':_0x3eb646[_0x36cc99(0x112)+'l']||_0x3eb646[_0x36cc99(0x112)+'lId'],'symbol':_0x3eb646[_0x36cc99(0x112)+_0x36cc99(0xfe)]||_0x3eb646[_0x36cc99(0x112)+'l'],'price':_0x3eb646[_0x36cc99(0x1cd)+'rice'],'bid':_0x3eb646[_0x36cc99(0x1ab)+'id'],'ask':_0x3eb646[_0x36cc99(0x12f)+'sk'],'change':_0x3eb646[_0x36cc99(0x116)+'e'],'changePercent':_0x3eb646[_0x36cc99(0x116)+_0x36cc99(0x123)+_0x36cc99(0x132)],'open':_0x3eb646[_0x36cc99(0xf3)],'high':_0x3eb646[_0x36cc99(0x1c1)],'low':_0x3eb646['low'],'volume':_0x3eb646['volum'+'e'],'timestamp':_0x3eb646[_0x36cc99(0x1a4)+'tamp']?new Date(_0x3eb646[_0x36cc99(0x1a4)+_0x36cc99(0x1d1)])[_0x36cc99(0x146)+'me']():Date[_0x36cc99(0x18e)]()};this[_0x36cc99(0x13f)](_0x36cc99(0x1fa),_0x8acfa5),this[_0x36cc99(0x13f)](_0x3e07b1['mfMVY'],_0x8acfa5);}),this['conne'+_0x225c1f(0x152)]['on'](_0x225c1f(0x1d0)+'ayTra'+'de',_0x4aa083=>{const _0x11ffde=_0x225c1f,_0x2780fe={'type':_0x3e07b1[_0x11ffde(0x163)],'contractId':_0x4aa083[_0x11ffde(0x112)+_0x11ffde(0x1d5)],'price':_0x4aa083[_0x11ffde(0x147)],'volume':_0x4aa083[_0x11ffde(0x168)+'e'],'side':_0x4aa083[_0x11ffde(0x182)]===0x0?_0x11ffde(0x184):_0x11ffde(0x198),'lastTradeSide':_0x4aa083[_0x11ffde(0x182)]===0x0?_0x3e07b1[_0x11ffde(0x10c)]:_0x3e07b1[_0x11ffde(0x12d)],'timestamp':_0x4aa083[_0x11ffde(0x1a4)+_0x11ffde(0x1d1)]?new Date(_0x4aa083[_0x11ffde(0x1a4)+'tamp'])['getTi'+'me']():Date[_0x11ffde(0x18e)]()};this[_0x11ffde(0x13f)](_0x11ffde(0x1fa),_0x2780fe),this['emit'](_0x3e07b1[_0x11ffde(0x163)],_0x2780fe);}),this['conne'+_0x225c1f(0x152)]['on'](_0x3e07b1[_0x225c1f(0x1c2)],_0x394298=>{const _0xda8792=_0x225c1f,_0x55ea58={'type':_0x3e07b1[_0xda8792(0x16e)],'price':_0x394298['price'],'volume':_0x394298['volum'+'e'],'currentVolume':_0x394298['curre'+'ntVol'+_0xda8792(0x1a9)],'side':_0x394298[_0xda8792(0x182)]===0x0?'bid':_0x3e07b1[_0xda8792(0x191)],'timestamp':_0x394298[_0xda8792(0x1a4)+'tamp']?new Date(_0x394298[_0xda8792(0x1a4)+_0xda8792(0x1d1)])[_0xda8792(0x146)+'me']():Date[_0xda8792(0x18e)]()};this[_0xda8792(0x13f)](_0xda8792(0x19f),_0x55ea58),this[_0xda8792(0x13f)](_0x3e07b1[_0xda8792(0x113)],_0x55ea58);}),this[_0x225c1f(0x18a)+_0x225c1f(0x152)][_0x225c1f(0x1bd)+_0x225c1f(0x122)+'ting'](_0x729c56=>{const _0x330015=_0x225c1f;this[_0x330015(0x18a)+_0x330015(0x1b7)]=![],this[_0x330015(0x13f)](_0x3e07b1['QkbCL'],_0x729c56);}),this[_0x225c1f(0x18a)+_0x225c1f(0x152)][_0x225c1f(0x1bd)+'onnec'+_0x225c1f(0x1be)](_0x4ef3c4=>{const _0x524a90=_0x225c1f;if(_0x3e07b1[_0x524a90(0x154)](_0x3e07b1[_0x524a90(0x157)],_0x3e07b1[_0x524a90(0x157)]))this[_0x524a90(0x18a)+'cted']=!![],this[_0x524a90(0x18d)+_0x524a90(0x17a)+_0x524a90(0x1c4)+'ts']=0x0,this[_0x524a90(0x13f)](_0x3e07b1[_0x524a90(0x150)],_0x4ef3c4),this[_0x524a90(0x1ec)+_0x524a90(0x1ca)+'beAll']();else{this[_0x524a90(0x18a)+_0x524a90(0x1b7)]=![],this['emit'](_0x524a90(0x188),_0x3bc89c);throw _0xae847b;}}),this[_0x225c1f(0x18a)+'ction'][_0x225c1f(0x1f8)+'se'](_0x51af15=>{const _0x11f99e=_0x225c1f;this[_0x11f99e(0x18a)+'cted']=![];let _0x5e03d0=_0x3e07b1[_0x11f99e(0x14f)];if(_0x51af15){_0x5e03d0=_0x51af15[_0x11f99e(0x127)+'ge']||_0x51af15['toStr'+'ing']();if(_0x51af15[_0x11f99e(0x180)])_0x5e03d0+=_0x3e07b1[_0x11f99e(0x183)](_0x11f99e(0x1b0),_0x51af15[_0x11f99e(0x180)][_0x11f99e(0x1bb)]('\x0a')[0x0]);}this['emit'](_0x3e07b1[_0x11f99e(0x109)],new Error(_0x5e03d0));});}async[_0x4748d1(0x179)+_0x4748d1(0xf6)](_0x59ccb5,_0x7ac2c9){const _0x168c52=_0x4748d1,_0x2776d3={};_0x2776d3[_0x168c52(0x199)]=_0x168c52(0x19d)+_0x168c52(0x122)+_0x168c52(0x1be),_0x2776d3[_0x168c52(0x133)]=function(_0x28e995,_0x3829f6){return _0x28e995||_0x3829f6;},_0x2776d3['FyTUE']=_0x168c52(0x108)+_0x168c52(0x11d),_0x2776d3[_0x168c52(0x1ef)]=_0x168c52(0x179)+_0x168c52(0x10e),_0x2776d3['hXKsT']=_0x168c52(0x118)+_0x168c52(0x1e4)+'ontra'+_0x168c52(0xfa)+_0x168c52(0x167),_0x2776d3[_0x168c52(0x1f6)]=_0x168c52(0x188);const _0xe5fb16=_0x2776d3;if(!this[_0x168c52(0x18a)+_0x168c52(0x152)]||!this['conne'+_0x168c52(0x1b7)])throw new Error(_0xe5fb16[_0x168c52(0x199)]);const _0x58b7b3=_0xe5fb16[_0x168c52(0x133)](_0x7ac2c9,_0x59ccb5);try{const _0x36c1a0=_0xe5fb16['FyTUE']['split']('|');let _0x324ece=0x0;while(!![]){switch(_0x36c1a0[_0x324ece++]){case'0':await this['conne'+_0x168c52(0x152)][_0x168c52(0x1c0)+'e'](_0x168c52(0x118)+_0x168c52(0x1e4)+_0x168c52(0x1de)+_0x168c52(0x14e)+_0x168c52(0x186),_0x58b7b3);continue;case'1':const _0x46b2ad={};_0x46b2ad[_0x168c52(0x112)+'l']=_0x59ccb5,_0x46b2ad[_0x168c52(0x1ba)+_0x168c52(0x166)]=_0x58b7b3,this[_0x168c52(0x13f)](_0xe5fb16[_0x168c52(0x1ef)],_0x46b2ad);continue;case'2':this['subsc'+_0x168c52(0x119)+_0x168c52(0x12a)]['add'](_0x58b7b3);continue;case'3':await this[_0x168c52(0x18a)+_0x168c52(0x152)][_0x168c52(0x1c0)+'e']('Subsc'+'ribeC'+_0x168c52(0x1de)+_0x168c52(0x1db)+_0x168c52(0x1c5)+_0x168c52(0x1a5),_0x58b7b3);continue;case'4':await this['conne'+_0x168c52(0x152)][_0x168c52(0x1c0)+'e'](_0xe5fb16[_0x168c52(0x1e5)],_0x58b7b3);continue;}break;}}catch(_0x4311c1){this[_0x168c52(0x13f)](_0xe5fb16[_0x168c52(0x1f6)],new Error(_0x168c52(0x118)+'ribe\x20'+_0x168c52(0x128)+'d:\x20'+_0x4311c1[_0x168c52(0x127)+'ge']));throw _0x4311c1;}}async[_0x4748d1(0x1d3)+'scrib'+'e'](_0x3f2faf){const _0x5e3b95=_0x4748d1,_0x3cfef4={};_0x3cfef4[_0x5e3b95(0x1dc)]=_0x5e3b95(0x13b)+_0x5e3b95(0x106)+'eCont'+'ractM'+_0x5e3b95(0x1cf)+_0x5e3b95(0x17d);const _0x1fd330=_0x3cfef4;if(!this[_0x5e3b95(0x18a)+'ction']||!this['conne'+'cted'])return;try{const _0x129d0b=('2|4|3'+_0x5e3b95(0x1da))['split']('|');let _0x18ac68=0x0;while(!![]){switch(_0x129d0b[_0x18ac68++]){case'0':this[_0x5e3b95(0x179)+_0x5e3b95(0x119)+_0x5e3b95(0x12a)][_0x5e3b95(0xf8)+'e'](_0x3f2faf);continue;case'1':const _0x1f0c3d={};_0x1f0c3d[_0x5e3b95(0x1ba)+_0x5e3b95(0x166)]=_0x3f2faf,this[_0x5e3b95(0x13f)](_0x5e3b95(0x1d3)+'scrib'+'ed',_0x1f0c3d);continue;case'2':await this[_0x5e3b95(0x18a)+_0x5e3b95(0x152)]['invok'+'e'](_0x5e3b95(0x13b)+'scrib'+_0x5e3b95(0x13e)+_0x5e3b95(0x17e)+'uotes',_0x3f2faf);continue;case'3':await this[_0x5e3b95(0x18a)+_0x5e3b95(0x152)]['invok'+'e'](_0x1fd330[_0x5e3b95(0x1dc)],_0x3f2faf);continue;case'4':await this[_0x5e3b95(0x18a)+_0x5e3b95(0x152)]['invok'+'e'](_0x5e3b95(0x13b)+_0x5e3b95(0x106)+_0x5e3b95(0x13e)+'ractT'+_0x5e3b95(0x1e3),_0x3f2faf);continue;}break;}}catch(_0x395b23){}}async[_0x4748d1(0x1ec)+_0x4748d1(0x1ca)+_0x4748d1(0x1ee)](){const _0x2320f6=_0x4748d1,_0x3290bd={};_0x3290bd[_0x2320f6(0x1ed)]=_0x2320f6(0x118)+_0x2320f6(0x1e4)+_0x2320f6(0x1de)+'ctQuo'+'tes',_0x3290bd[_0x2320f6(0x1fc)]=_0x2320f6(0x118)+_0x2320f6(0x1e4)+_0x2320f6(0x1de)+'ctMar'+_0x2320f6(0x1c5)+'pth';const _0x2b8605=_0x3290bd;for(const _0x1f5170 of this[_0x2320f6(0x179)+'ripti'+'ons']){try{await this[_0x2320f6(0x18a)+_0x2320f6(0x152)]['invok'+'e'](_0x2b8605['LhWgM'],_0x1f5170),await this[_0x2320f6(0x18a)+_0x2320f6(0x152)]['invok'+'e']('Subsc'+_0x2320f6(0x1e4)+_0x2320f6(0x1de)+'ctTra'+_0x2320f6(0x186),_0x1f5170),await this[_0x2320f6(0x18a)+_0x2320f6(0x152)]['invok'+'e'](_0x2b8605[_0x2320f6(0x1fc)],_0x1f5170);}catch(_0xe2762c){}}}async[_0x4748d1(0x1c9)+_0x4748d1(0x130)](){const _0x47dbf5=_0x4748d1;if(this[_0x47dbf5(0x18a)+'ction']){const _0x1a0418=new Promise(_0x5a8be6=>setTimeout(_0x5a8be6,0xbb8));try{await Promise[_0x47dbf5(0xfd)]([((async()=>{const _0x206fed=_0x47dbf5;for(const _0x30da1e of this[_0x206fed(0x179)+_0x206fed(0x119)+_0x206fed(0x12a)]){try{await this['unsub'+_0x206fed(0x106)+'e'](_0x30da1e);}catch{}}await this[_0x206fed(0x18a)+_0x206fed(0x152)]['stop']();})()),_0x1a0418]);}catch(_0x56bfb6){}this[_0x47dbf5(0x18a)+_0x47dbf5(0x152)]=null,this[_0x47dbf5(0x18a)+'cted']=![],this[_0x47dbf5(0x179)+_0x47dbf5(0x119)+_0x47dbf5(0x12a)][_0x47dbf5(0x1a0)]();}}[_0x4748d1(0x104)+_0x4748d1(0x13a)+'d'](){const _0x1b3d49=_0x4748d1,_0x5d830e={};_0x5d830e['TeCow']=function(_0x199f61,_0x5060ea){return _0x199f61===_0x5060ea;};const _0x42562b=_0x5d830e;return this[_0x1b3d49(0x18a)+_0x1b3d49(0x1b7)]&&_0x42562b['TeCow'](this[_0x1b3d49(0x18a)+_0x1b3d49(0x152)]?.['state'],_0x1b3d49(0x145)+_0x1b3d49(0x1b7));}[_0x4748d1(0x165)+'bscri'+_0x4748d1(0x114)+'s'](){const _0x3823b9=_0x4748d1;return Array[_0x3823b9(0x1e1)](this[_0x3823b9(0x179)+_0x3823b9(0x119)+'ons']);}}const _0x4fe268={};_0x4fe268[_0x4748d1(0x176)+_0x4748d1(0x12e)+'Feed']=MarketDataFeed,module[_0x4748d1(0x10d)+'ts']=_0x4fe268;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.4.18",
3
+ "version": "2.4.20",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -309,7 +309,7 @@ const launchAlgo = async (service, account, contract, config) => {
309
309
  marketFeed.on('disconnected', (err) => {
310
310
  stats.connected = false;
311
311
  const reason = err?.message || 'UNKNOWN';
312
- ui.addLog('error', `DISCONNECTED: ${reason.toUpperCase()}`);
312
+ ui.addLog('error', `DISC: ${reason.substring(0, 70).toUpperCase()}`);
313
313
  });
314
314
 
315
315
  // Connect to market data
@@ -320,12 +320,13 @@ const launchAlgo = async (service, account, contract, config) => {
320
320
  if (!token) {
321
321
  ui.addLog('error', 'NO AUTH TOKEN - PLEASE RECONNECT');
322
322
  } else {
323
- ui.addLog('info', `RTC: ${propfirmKey.toUpperCase()} | CONTRACT: ${contractId}`);
323
+ ui.addLog('info', `TOKEN OK (${token.length} CHARS)`);
324
+ ui.addLog('info', `RTC: ${propfirmKey.toUpperCase()} | ${contractId}`);
324
325
 
325
326
  await marketFeed.connect(token, propfirmKey);
326
327
 
327
328
  // Wait for connection to stabilize
328
- await new Promise(r => setTimeout(r, 1000));
329
+ await new Promise(r => setTimeout(r, 2000));
329
330
 
330
331
  if (marketFeed.isConnected()) {
331
332
  await marketFeed.subscribe(symbolName, contractId);
@@ -335,7 +336,7 @@ const launchAlgo = async (service, account, contract, config) => {
335
336
  }
336
337
  }
337
338
  } catch (e) {
338
- ui.addLog('error', `MARKET ERROR: ${e.message.toUpperCase()}`);
339
+ ui.addLog('error', `ERR: ${e.message.substring(0, 60).toUpperCase()}`);
339
340
  }
340
341
 
341
342
  // Poll account P&L from API
@@ -428,17 +429,31 @@ const launchAlgo = async (service, account, contract, config) => {
428
429
  }, 100);
429
430
  });
430
431
 
431
- // Cleanup
432
+ // Cleanup with timeout protection
432
433
  clearInterval(refreshInterval);
433
434
  clearInterval(pnlInterval);
434
- await marketFeed.disconnect();
435
- if (cleanupKeys) cleanupKeys();
436
- ui.cleanup();
437
435
 
438
- if (process.stdin.isTTY) {
439
- process.stdin.setRawMode(false);
440
- }
441
- process.stdin.resume();
436
+ // Disconnect market feed with timeout
437
+ try {
438
+ await Promise.race([
439
+ marketFeed.disconnect(),
440
+ new Promise(r => setTimeout(r, 3000))
441
+ ]);
442
+ } catch {}
443
+
444
+ // Cleanup keyboard handler
445
+ try { if (cleanupKeys) cleanupKeys(); } catch {}
446
+
447
+ // Cleanup UI
448
+ try { ui.cleanup(); } catch {}
449
+
450
+ // Reset stdin
451
+ try {
452
+ if (process.stdin.isTTY) {
453
+ process.stdin.setRawMode(false);
454
+ }
455
+ process.stdin.resume();
456
+ } catch {}
442
457
 
443
458
  // Duration
444
459
  const durationMs = Date.now() - stats.startTime;