hedgequantx 2.4.18 → 2.4.19

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 _0x1eb6ef=_0x28b7;(function(_0x15793f,_0x9b602e){const _0x557fc0=_0x28b7,_0x56c9a2=_0x15793f();while(!![]){try{const _0x163f1e=parseInt(_0x557fc0(0x297))/0x1*(-parseInt(_0x557fc0(0x256))/0x2)+-parseInt(_0x557fc0(0x240))/0x3*(-parseInt(_0x557fc0(0x1b7))/0x4)+parseInt(_0x557fc0(0x1b4))/0x5*(-parseInt(_0x557fc0(0x177))/0x6)+-parseInt(_0x557fc0(0x27d))/0x7+-parseInt(_0x557fc0(0x28c))/0x8+parseInt(_0x557fc0(0x27b))/0x9+parseInt(_0x557fc0(0x190))/0xa*(parseInt(_0x557fc0(0x1ad))/0xb);if(_0x163f1e===_0x9b602e)break;else _0x56c9a2['push'](_0x56c9a2['shift']());}catch(_0xf0c5b0){_0x56c9a2['push'](_0x56c9a2['shift']());}}}(_0x1510,0x5b518));const EventEmitter=require('event'+'s'),{HubConnectionBuilder,HttpTransportType,LogLevel}=require('@micr'+'osoft'+_0x1eb6ef(0x16e)+'alr'),_0x45fd82={};_0x45fd82[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]='api.t'+_0x1eb6ef(0x20c)+'px.co'+'m';const _0x305688={};_0x305688[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]=_0x1eb6ef(0x16c)+_0x1eb6ef(0x238)+_0x1eb6ef(0x280)+_0x1eb6ef(0x18e)+_0x1eb6ef(0x27a)+_0x1eb6ef(0x196);const _0x5b6942={};_0x5b6942['gatew'+_0x1eb6ef(0x276)]=_0x1eb6ef(0x1a6)+_0x1eb6ef(0x289)+'cktra'+_0x1eb6ef(0x22e)+_0x1eb6ef(0x25c)+'tx.co'+'m';const _0x40b5e4={};_0x40b5e4[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]='api.b'+_0x1eb6ef(0x203)+'x.pro'+_0x1eb6ef(0x27a)+'.com';const _0x467d57={};_0x467d57[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]='api.t'+_0x1eb6ef(0x20d)+_0x1eb6ef(0x1ee)+_0x1eb6ef(0x228)+_0x1eb6ef(0x232);const _0x58ab09={};_0x58ab09['gatew'+'ayApi']=_0x1eb6ef(0x287)+'lusky'+_0x1eb6ef(0x1f2)+'ectx.'+_0x1eb6ef(0x1c0);const _0x5f4fa8={};_0x5f4fa8[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]=_0x1eb6ef(0x1c8)+'oatfu'+_0x1eb6ef(0x20e)+_0x1eb6ef(0x1f2)+_0x1eb6ef(0x1fd)+'com';const _0x1585c3={};_0x1585c3['gatew'+'ayApi']=_0x1eb6ef(0x1a6)+'hefut'+_0x1eb6ef(0x1f3)+_0x1eb6ef(0x25f)+_0x1eb6ef(0x25c)+_0x1eb6ef(0x1a8)+'m';const _0x395cce={};_0x395cce['gatew'+_0x1eb6ef(0x276)]='api.d'+_0x1eb6ef(0x1dd)+_0x1eb6ef(0x1d6)+_0x1eb6ef(0x27e)+_0x1eb6ef(0x1a4)+'om';const _0x1e43f3={};_0x1e43f3[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]=_0x1eb6ef(0x1a3)+_0x1eb6ef(0x19a)+_0x1eb6ef(0x290)+_0x1eb6ef(0x25c)+_0x1eb6ef(0x1a8)+'m';const _0x546f71={};_0x546f71[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]='api.b'+_0x1eb6ef(0x255)+'ardia'+_0x1eb6ef(0x1be)+'res.p'+_0x1eb6ef(0x25c)+'tx.co'+'m';function _0x1510(){const _0x50ed5b=['DeHHBMq','C2nYAwi','yxKUChi','yxLuCMe','shPyteS','zw1WDhm','lNbYB2O','DxjLC2q','zgDprNy','ru1xuKq','u2rQsxK','tK1Kq3a','zw50','DhrLBxa','q0vdv2q','x3nLDhu','CMfJzq','zwn0Ec4','twrhzgW','BNrwB2W','yMvbBgW','AfzyueG','vw5mwgy','DwXLBM8','svPqBMS','zg9T','Dg9Wx28','A2vLCee','CMLIzum','Aw52B2S','B250CMe','DhGZx2y','B3bZDgu','CMfKzwq','DhvYzxm','lMnVBs8','Bwf4uMu','ELLzshy','BwPNzwW','CMvWBge','Fdb8mW','qNn1r0q','zvbLCMm','BMvJDgu','AxjTs2u','zNvUzgK','q29UBMu','A2v0rgu','vKDtCfO','C3LTyM8','B2vwChC','l21HCMS','CMfKzwK','CNrJlG','B25Yzwm','uLbTy2O','B25JBg8','AwfU','v0DLEva','uuLfveq','B2PLy3q','rMvLza','DgvWEhC','zgf5Dhi','B2DNAw4','ChrPB24','zgvYlNa','zfHrDLq','zwnVBMq','Ag9Syv8','Ec5JB20','uLHpEwy','oI8VCNq','ChjLDMK','zgLZy28','BM5Ly3q','BhbOywy','DgfTCa','y29UzMK','BMvJDee','Be5HBwu','yMX1C2S','zxjYB3i','D0PVyLa','nJa0mJqYrLnRt0zx','rgvWDgG','rwrJyLO','BwfYA2u','AwXSAxm','y29UBMu','Dw90zxm','z2v0u3u','yNv5','zgvZ','AwnRDhi','BhvJAwq','ywrLCG','CMLIzwq','ywrLCNm','yY50B3a','Awz5','DhLWzq','qKjxz3q','vw9OA2W','wNrYvhO','BhvLz3u','mte4nZu5nef1qwzSBW','CMLWDgK','suLcr3i','p2fJy2u','tfrbwuW','zMfPBgu','CM9Qzwm','ChrO','shvIvxi','zxnRlNa','v2fYBMK','x3rYywq','v3zHvxK','u3vIC2m','oI8V','Cev2zw4','y3rLza','z3vHCMq','CMLIzq','y0XiEgq','x2DLDe0','B2XHChi','twLSBgK','CM11Bgq','B3bLBG','y3zcuhu','D2f2uNm','ChjVCgy','Dw1L','Dw50','CLrPBwu','Dw5RBM8','yxLbCgK','DwnPzhq','EgLMEs4','qKflwvy','AMvJDhG','nJi1nZyXmgntD1vUEq','r2f0zxC','mZK1mJGYm21ct2Pdqq','ChjVAMu','s0j2Cu0','Dxr1CMu','Dg9Rzw4','CMfJDfe','DerHDge','D2L0Afu','C2vJB24','Ahr0Chm','yxbPlMi','C3vIC2m','AwnRDgK','yNnJCMK','zgf5','nduZotaWofn0z0rrqW','EeT0D1i','qurxEM8','ywn0swq','CMvZlNa','EuTPu0W','Aw1LlNa','v0rotNu','DM9SDw0','CMfJDfq','rKL6D2C','mvfhtfjrrG','x3jLC3u','y3vYCMu','y29UDhi','renYuu4','wLbcEeG','CMvZ','zs5WCM8','Dg9mB3C','zunVBNq','yxbPlMe','yxnVDMW','l3nPz24','BeLK','CMLJzq','yxnR','Dhj5q28','Fdb8nhW','qMPJBe4','l2H1yNm','zgvSzxq','mJG5mMXLuvvWzG','CMLIzsa','wMfZwuS','tM90igm','A2vUpq','AxrL','yMvZDee','yxbPlMy','zNv0Dxi','DgLTzxm','C3rLChG','AhvICY8','DgvK','yxjRzxq','vNrrrfi','DhjHzgu','Bw92rwG','zY5WCM8','q2zoDxC','z29HDf8','rNfRuuW','DKfHwhC','qLrzD1O','CY5WCM8','zu14z3i','mtaXotyXodbkDxrYB24','zw1PDa','y3rnyxi','y2XLyxi','BMDFzNu','svv3r3O','lMnVBq','yxbPlMW','zgvWDgG','B25Uzwm','ogz1Dhu','B3v0sw4','zNjVBq','Dg9WC3q','D1r6uKe','z2v0vgK','DgLUzW','mxWZFdi','nxW2','yxbPlMu','y3r4lMm','CMvJB24','yxbPlNq','Bg93','DhGUy28','B25Z','y3rPB24','u3HwzNu','zNHPzNK','mtf1CKvlz2m','D2L0Aee','y2HHBMC','CMfKzxm','zLvXqw0','zxHWB3i','Dw5KAw4','mtG1CeDIz1ro','yNvPBgq','BM93','oe1yCxrjqq','CxvVDgu','tfrjzxe','CxLIqKG','zNDtB0q','zxnFzwW','BwvZC2e','BMz1Dhu','BgvYCW','y29T','CMfKAw4','ENvgAfO','DgvZ','y3rrDw8','wxvrDM8','AgLNAa','ruHhsNm','yxbPlMC','A1r0v0S','zNKUChi','BwH0twy','BwLU','ywrK','yMLK','zxmUChi','s0v3EuG','uKzIug0','ChjPy2u','Dw5ZDwi','y3rbDhq','B3vZuMu','zgvYCY4','t29WwvO','z2f0zxC','C3bSAxq','y2TLDhm','C3rHDgu','BgfZDfa','yxL0CMe','tuHUz2q','yxLezxa','z2rYvee','C2vYDMu','vw5ZDwi','zdOG','ywXjBK0','vKnQBve','Cg93','BMvJDgK','C2vSBa','yMX1zv8','ExvQt0i','B1vVyve'];_0x1510=function(){return _0x50ed5b;};return _0x1510();}const _0xf0d4a5={};function _0x28b7(_0x5bf100,_0x9df68d){_0x5bf100=_0x5bf100-0x16b;const _0x1510fa=_0x1510();let _0x28b7a7=_0x1510fa[_0x5bf100];if(_0x28b7['qCiiOC']===undefined){var _0x4a3af6=function(_0x2f1fa2){const _0x4103ae='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x19b911='',_0x65ceef='';for(let _0x1a06e8=0x0,_0x38ac70,_0x58d461,_0x5ef32c=0x0;_0x58d461=_0x2f1fa2['charAt'](_0x5ef32c++);~_0x58d461&&(_0x38ac70=_0x1a06e8%0x4?_0x38ac70*0x40+_0x58d461:_0x58d461,_0x1a06e8++%0x4)?_0x19b911+=String['fromCharCode'](0xff&_0x38ac70>>(-0x2*_0x1a06e8&0x6)):0x0){_0x58d461=_0x4103ae['indexOf'](_0x58d461);}for(let _0x1a4920=0x0,_0x17cb66=_0x19b911['length'];_0x1a4920<_0x17cb66;_0x1a4920++){_0x65ceef+='%'+('00'+_0x19b911['charCodeAt'](_0x1a4920)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x65ceef);};_0x28b7['EhsEGh']=_0x4a3af6,_0x28b7['HCyTeR']={},_0x28b7['qCiiOC']=!![];}const _0x5b5f79=_0x1510fa[0x0],_0x4f0ef5=_0x5bf100+_0x5b5f79,_0x126457=_0x28b7['HCyTeR'][_0x4f0ef5];return!_0x126457?(_0x28b7a7=_0x28b7['EhsEGh'](_0x28b7a7),_0x28b7['HCyTeR'][_0x4f0ef5]=_0x28b7a7):_0x28b7a7=_0x126457,_0x28b7a7;}_0xf0d4a5[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]=_0x1eb6ef(0x17e)+_0x1eb6ef(0x280)+'selit'+_0x1eb6ef(0x29e)+_0x1eb6ef(0x27a)+'.com';const _0x12c6af={};_0x12c6af[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]=_0x1eb6ef(0x17e)+_0x1eb6ef(0x278)+_0x1eb6ef(0x27e)+_0x1eb6ef(0x1a4)+'om';const _0x322bf4={};_0x322bf4[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]='api.h'+_0x1eb6ef(0x26b)+_0x1eb6ef(0x292)+'rojec'+'tx.co'+'m';const _0x2c048c={};_0x2c048c[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]=_0x1eb6ef(0x1a6)+'opone'+'futur'+_0x1eb6ef(0x1cf)+_0x1eb6ef(0x228)+_0x1eb6ef(0x232);const _0x4bfe8f={};_0x4bfe8f['gatew'+_0x1eb6ef(0x276)]='api.f'+_0x1eb6ef(0x1b3)+'gfutu'+_0x1eb6ef(0x290)+_0x1eb6ef(0x25c)+_0x1eb6ef(0x1a8)+'m';const _0x2ad68f={};_0x2ad68f[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]='api.t'+'x3fun'+'ding.'+_0x1eb6ef(0x27e)+_0x1eb6ef(0x1a4)+'om';const _0x499a76={};_0x499a76[_0x1eb6ef(0x1d8)+_0x1eb6ef(0x276)]=_0x1eb6ef(0x197)+_0x1eb6ef(0x277)+_0x1eb6ef(0x1c1)+_0x1eb6ef(0x188)+_0x1eb6ef(0x27a)+'.com';const _0x22b578={};_0x22b578['gatew'+_0x1eb6ef(0x276)]=_0x1eb6ef(0x1a6)+_0x1eb6ef(0x220)+_0x1eb6ef(0x1ca)+_0x1eb6ef(0x228)+_0x1eb6ef(0x232);const _0x3c4fb3={};_0x3c4fb3['topst'+'ep']=_0x45fd82,_0x3c4fb3['alpha'+'_futu'+_0x1eb6ef(0x29d)]=_0x305688,_0x3c4fb3['tickt'+_0x1eb6ef(0x24a)+_0x1eb6ef(0x24c)]=_0x5b6942,_0x3c4fb3['bulen'+'ox']=_0x40b5e4,_0x3c4fb3[_0x1eb6ef(0x186)+_0x1eb6ef(0x28b)]=_0x467d57,_0x3c4fb3[_0x1eb6ef(0x23d)+'y']=_0x58ab09,_0x3c4fb3[_0x1eb6ef(0x18a)+_0x1eb6ef(0x17f)+'es']=_0x5f4fa8,_0x3c4fb3[_0x1eb6ef(0x17f)+'es_de'+'sk']=_0x1585c3,_0x3c4fb3[_0x1eb6ef(0x22b)+_0x1eb6ef(0x24e)]=_0x395cce,_0x3c4fb3['e8_fu'+_0x1eb6ef(0x20e)]=_0x1e43f3,_0x3c4fb3[_0x1eb6ef(0x1e9)+_0x1eb6ef(0x267)+_0x1eb6ef(0x225)]=_0x546f71,_0x3c4fb3[_0x1eb6ef(0x17f)+_0x1eb6ef(0x1bc)+_0x1eb6ef(0x17c)]=_0xf0d4a5,_0x3c4fb3[_0x1eb6ef(0x1ac)]=_0x12c6af,_0x3c4fb3[_0x1eb6ef(0x231)+'prime']=_0x322bf4,_0x3c4fb3[_0x1eb6ef(0x206)+'ne_fu'+'tures']=_0x2c048c,_0x3c4fb3[_0x1eb6ef(0x219)+_0x1eb6ef(0x194)+_0x1eb6ef(0x20e)]=_0x4bfe8f,_0x3c4fb3[_0x1eb6ef(0x20b)+_0x1eb6ef(0x1b3)+'g']=_0x2ad68f,_0x3c4fb3[_0x1eb6ef(0x24b)+_0x1eb6ef(0x261)+'ing']=_0x499a76,_0x3c4fb3['trade'+_0x1eb6ef(0x250)]=_0x22b578;const PROPFIRMS=_0x3c4fb3;class MarketDataFeed extends EventEmitter{constructor(_0x9e99c={}){const _0x17a9a4=_0x1eb6ef,_0x18619e={};_0x18619e['ZtrTz']=_0x17a9a4(0x1a1)+_0x17a9a4(0x173)+_0x17a9a4(0x1a2),_0x18619e[_0x17a9a4(0x293)]=_0x17a9a4(0x19d)+'ep';const _0x4cf142=_0x18619e,_0xb21fdf=_0x4cf142[_0x17a9a4(0x254)][_0x17a9a4(0x1d9)]('|');let _0x411350=0x0;while(!![]){switch(_0xb21fdf[_0x411350++]){case'0':this[_0x17a9a4(0x245)+_0x17a9a4(0x266)]=![];continue;case'1':super();continue;case'2':this[_0x17a9a4(0x245)+_0x17a9a4(0x1aa)]=null;continue;case'3':this[_0x17a9a4(0x271)+'irmKe'+'y']=(_0x9e99c[_0x17a9a4(0x271)+'irm']||_0x4cf142['WDNNu'])[_0x17a9a4(0x29f)+'erCas'+'e']()['repla'+'ce'](/\s+/g,'_');continue;case'4':this['subsc'+_0x17a9a4(0x257)+_0x17a9a4(0x1a9)]=new Set();continue;case'5':this['recon'+'nectA'+_0x17a9a4(0x1f9)+'ts']=0x0;continue;case'6':this['maxRe'+'conne'+_0x17a9a4(0x1d4)+_0x17a9a4(0x1f1)]=0x5;continue;}break;}}[_0x1eb6ef(0x26a)+_0x1eb6ef(0x184)+_0x1eb6ef(0x25e)+'l'](_0x37278d){const _0x3cc60e=_0x1eb6ef,_0x334295={};_0x334295['ZPBxH']=_0x3cc60e(0x221);const _0x1e13fe=_0x334295,_0x2613ca=PROPFIRMS[_0x37278d]||PROPFIRMS[_0x3cc60e(0x19d)+'ep'];if(_0x2613ca[_0x3cc60e(0x1d8)+_0x3cc60e(0x276)]){const _0x26ef57=_0x2613ca[_0x3cc60e(0x1d8)+'ayApi'][_0x3cc60e(0x213)+'ce'](/^api\./,_0x1e13fe[_0x3cc60e(0x29c)]);return _0x3cc60e(0x286)+'://'+_0x26ef57+(_0x3cc60e(0x175)+_0x3cc60e(0x21f)+'et');}return _0x3cc60e(0x286)+_0x3cc60e(0x234)+_0x3cc60e(0x24f)+_0x3cc60e(0x181)+_0x3cc60e(0x20f)+_0x3cc60e(0x182)+_0x3cc60e(0x243)+'t';}async[_0x1eb6ef(0x245)+'ct'](_0x55ba93,_0x335827,_0x3c6aaa=null){const _0x2a958e=_0x1eb6ef,_0x1cebb7={};_0x1cebb7['FEsEe']=_0x2a958e(0x275)+'wn',_0x1cebb7[_0x2a958e(0x1f7)]=_0x2a958e(0x236)+_0x2a958e(0x237)+'ed',_0x1cebb7[_0x2a958e(0x18d)]=function(_0x4196d7,_0x3b8073){return _0x4196d7>=_0x3b8073;},_0x1cebb7[_0x2a958e(0x25a)]=function(_0x25bd5b,_0x5278c1){return _0x25bd5b*_0x5278c1;},_0x1cebb7[_0x2a958e(0x1f0)]=function(_0x4910fa,_0x24d007){return _0x4910fa!==_0x24d007;},_0x1cebb7['EMWRD']='conne'+'cted',_0x1cebb7[_0x2a958e(0x252)]=_0x2a958e(0x179),_0x1cebb7['tepxw']=_0x2a958e(0x23e);const _0x5cb0b0=_0x1cebb7;if(this[_0x2a958e(0x245)+_0x2a958e(0x266)])return;this['propf'+'irmKe'+'y']=_0x335827||this[_0x2a958e(0x271)+_0x2a958e(0x218)+'y'],this['token']=_0x55ba93;const _0x128bc1=this[_0x2a958e(0x26a)+'arket'+_0x2a958e(0x25e)+'l'](this['propf'+_0x2a958e(0x218)+'y']);try{if(_0x5cb0b0[_0x2a958e(0x1f0)](_0x2a958e(0x226),_0x2a958e(0x226))){this[_0x2a958e(0x245)+_0x2a958e(0x266)]=![];const _0x5b6799=_0x25839d?_0x1bfa4f[_0x2a958e(0x1bd)+'ge']||_0x1f28e5(_0x20affc):_0x5cb0b0['FEsEe'];this[_0x2a958e(0x191)](_0x5cb0b0['NMdCp'],new _0x4661c3(_0x5b6799));}else{const _0x10ae68=_0x128bc1+(_0x2a958e(0x259)+'ss_to'+_0x2a958e(0x17b))+encodeURIComponent(this[_0x2a958e(0x281)]);this['conne'+_0x2a958e(0x1aa)]=new HubConnectionBuilder()[_0x2a958e(0x284)+'rl'](_0x10ae68,{'skipNegotiation':!![],'transport':HttpTransportType['WebSo'+_0x2a958e(0x1da)],'accessTokenFactory':()=>this[_0x2a958e(0x281)]})[_0x2a958e(0x1ae)+'utoma'+'ticRe'+'conne'+'ct']({'nextRetryDelayInMilliseconds':_0x37e623=>{const _0x230674=_0x2a958e;if(_0x5cb0b0[_0x230674(0x18d)](_0x37e623[_0x230674(0x235)+_0x230674(0x1d5)+'tryCo'+_0x230674(0x273)],this[_0x230674(0x210)+_0x230674(0x245)+_0x230674(0x1d4)+_0x230674(0x1f1)]))return null;return Math[_0x230674(0x1cc)](_0x5cb0b0['LTAYL'](0x3e8,Math[_0x230674(0x1e6)](0x2,_0x37e623[_0x230674(0x235)+_0x230674(0x1d5)+_0x230674(0x172)+_0x230674(0x273)])),0x7530);}})[_0x2a958e(0x23a)+'gureL'+_0x2a958e(0x22c)+'g'](LogLevel[_0x2a958e(0x260)+'ng'])[_0x2a958e(0x1b5)](),this[_0x2a958e(0x245)+_0x2a958e(0x1aa)][_0x2a958e(0x1e1)+_0x2a958e(0x274)+_0x2a958e(0x19b)+_0x2a958e(0x26c)+_0x2a958e(0x285)+'ds']=0xea60,this[_0x2a958e(0x245)+_0x2a958e(0x1aa)][_0x2a958e(0x207)+'liveI'+'nterv'+_0x2a958e(0x1e4)+_0x2a958e(0x244)+_0x2a958e(0x230)+'s']=0x3a98,this[_0x2a958e(0x1fb)+_0x2a958e(0x265)+_0x2a958e(0x1ec)+_0x2a958e(0x1bf)](),await this[_0x2a958e(0x245)+_0x2a958e(0x1aa)]['start'](),this[_0x2a958e(0x245)+_0x2a958e(0x266)]=!![],this[_0x2a958e(0x1a5)+_0x2a958e(0x23b)+_0x2a958e(0x1f9)+'ts']=0x0,this['emit'](_0x5cb0b0[_0x2a958e(0x1f5)]);if(_0x3c6aaa){if(_0x5cb0b0['BBWgt']!=='yWGSi')await this['subsc'+'ribe'](null,_0x3c6aaa);else{this[_0x2a958e(0x245)+_0x2a958e(0x266)]=![],this[_0x2a958e(0x191)](_0x2a958e(0x23e),_0x45caf6);throw _0x2b31dd;}}}}catch(_0x3c4564){this[_0x2a958e(0x245)+'cted']=![],this[_0x2a958e(0x191)](_0x5cb0b0[_0x2a958e(0x22a)],_0x3c4564);throw _0x3c4564;}}[_0x1eb6ef(0x1fb)+'pEven'+_0x1eb6ef(0x1ec)+_0x1eb6ef(0x1bf)](){const _0x261b09=_0x1eb6ef,_0x3459bb={'FIzwg':_0x261b09(0x248),'dXQvT':'sell','wTzRA':function(_0x4c8591,_0x37699e){return _0x4c8591===_0x37699e;},'xKtwR':'tick','asovl':_0x261b09(0x186),'BsuGD':function(_0x1764b1,_0x34da77){return _0x1764b1===_0x34da77;},'mjgel':function(_0xba8aa6,_0x381035){return _0xba8aa6===_0x381035;},'mhtMf':_0x261b09(0x262),'wJobP':_0x261b09(0x198),'cLHxd':_0x261b09(0x1ce),'KBvqM':_0x261b09(0x205),'XrBsv':_0x261b09(0x221),'IRIsJ':'jhHiq','mGsWK':_0x261b09(0x1a5)+_0x261b09(0x1e7)+'ng','Rokvv':_0x261b09(0x195),'VCjmQ':_0x261b09(0x1b1),'VGSpZ':_0x261b09(0x1a5)+_0x261b09(0x217)+'d','ivGWo':function(_0xd9782d,_0x165bb3){return _0xd9782d(_0x165bb3);},'LTIeq':_0x261b09(0x275)+'wn','yKiSL':_0x261b09(0x27c)+'ayQuo'+'te','plKJr':'Gatew'+_0x261b09(0x1ef)+'de','CECWd':'Gatew'+_0x261b09(0x1df)+'th'};if(!this[_0x261b09(0x245)+_0x261b09(0x1aa)])return;this[_0x261b09(0x245)+_0x261b09(0x1aa)]['on'](_0x3459bb[_0x261b09(0x291)],_0x55dc72=>{const _0x520da6=_0x261b09,_0x189b16={'type':_0x520da6(0x1b8),'contractId':_0x55dc72[_0x520da6(0x21d)+'l']||_0x55dc72[_0x520da6(0x21d)+_0x520da6(0x16f)],'symbol':_0x55dc72['symbo'+_0x520da6(0x23c)]||_0x55dc72['symbo'+'l'],'price':_0x55dc72[_0x520da6(0x1dc)+_0x520da6(0x170)],'bid':_0x55dc72['bestB'+'id'],'ask':_0x55dc72[_0x520da6(0x17d)+'sk'],'change':_0x55dc72[_0x520da6(0x1af)+'e'],'changePercent':_0x55dc72[_0x520da6(0x1af)+_0x520da6(0x216)+_0x520da6(0x1f8)],'open':_0x55dc72[_0x520da6(0x26e)],'high':_0x55dc72[_0x520da6(0x1c6)],'low':_0x55dc72[_0x520da6(0x1a7)],'volume':_0x55dc72['volum'+'e'],'timestamp':_0x55dc72['times'+_0x520da6(0x239)]?new Date(_0x55dc72['times'+_0x520da6(0x239)])['getTi'+'me']():Date[_0x520da6(0x1b6)]()};this['emit']('tick',_0x189b16),this['emit'](_0x520da6(0x1b8),_0x189b16);}),this[_0x261b09(0x245)+_0x261b09(0x1aa)]['on'](_0x3459bb['plKJr'],_0x495e48=>{const _0x893dbf=_0x261b09,_0x12a74d={'type':'trade','contractId':_0x495e48['symbo'+_0x893dbf(0x16f)],'price':_0x495e48['price'],'volume':_0x495e48['volum'+'e'],'side':_0x495e48[_0x893dbf(0x251)]===0x0?_0x3459bb['FIzwg']:_0x3459bb[_0x893dbf(0x22f)],'lastTradeSide':_0x3459bb[_0x893dbf(0x19e)](_0x495e48[_0x893dbf(0x251)],0x0)?_0x3459bb[_0x893dbf(0x296)]:_0x3459bb[_0x893dbf(0x22f)],'timestamp':_0x495e48[_0x893dbf(0x180)+'tamp']?new Date(_0x495e48[_0x893dbf(0x180)+_0x893dbf(0x239)])['getTi'+'me']():Date[_0x893dbf(0x1b6)]()};this[_0x893dbf(0x191)](_0x3459bb[_0x893dbf(0x28d)],_0x12a74d),this[_0x893dbf(0x191)](_0x3459bb[_0x893dbf(0x16d)],_0x12a74d);}),this[_0x261b09(0x245)+'ction']['on'](_0x3459bb[_0x261b09(0x1fa)],_0x3b6fb2=>{const _0x30eab8=_0x261b09;if(_0x3459bb['mjgel'](_0x3459bb[_0x30eab8(0x1cb)],_0x30eab8(0x26f))){const _0x4d4d23={'type':_0x30eab8(0x186),'contractId':_0x4fbd67[_0x30eab8(0x21d)+_0x30eab8(0x16f)],'price':_0x1089a2['price'],'volume':_0x367f6c['volum'+'e'],'side':_0x3459bb[_0x30eab8(0x215)](_0x2f7d0b[_0x30eab8(0x251)],0x0)?_0x30eab8(0x248):_0x30eab8(0x1e8),'lastTradeSide':_0x3459bb[_0x30eab8(0x212)](_0x13f7a2['type'],0x0)?_0x30eab8(0x248):_0x3459bb['dXQvT'],'timestamp':_0x40b819[_0x30eab8(0x180)+_0x30eab8(0x239)]?new _0x419068(_0x2b0c04['times'+'tamp'])['getTi'+'me']():_0x10f60a['now']()};this[_0x30eab8(0x191)](_0x3459bb['xKtwR'],_0x4d4d23),this[_0x30eab8(0x191)](_0x3459bb[_0x30eab8(0x16d)],_0x4d4d23);}else{const _0x250fc2={'type':_0x3459bb[_0x30eab8(0x23f)],'price':_0x3b6fb2[_0x30eab8(0x1d2)],'volume':_0x3b6fb2[_0x30eab8(0x294)+'e'],'currentVolume':_0x3b6fb2[_0x30eab8(0x299)+_0x30eab8(0x1ff)+_0x30eab8(0x272)],'side':_0x3b6fb2['type']===0x0?_0x3459bb[_0x30eab8(0x269)]:_0x30eab8(0x171),'timestamp':_0x3b6fb2['times'+_0x30eab8(0x239)]?new Date(_0x3b6fb2[_0x30eab8(0x180)+'tamp'])['getTi'+'me']():Date[_0x30eab8(0x1b6)]()};this['emit'](_0x3459bb[_0x30eab8(0x23f)],_0x250fc2),this[_0x30eab8(0x191)](_0x3459bb[_0x30eab8(0x27f)],_0x250fc2);}}),this[_0x261b09(0x245)+_0x261b09(0x1aa)][_0x261b09(0x222)+_0x261b09(0x199)+_0x261b09(0x1a0)](_0x269ebe=>{const _0xc0b64a=_0x261b09,_0x114fb8={};_0x114fb8[_0xc0b64a(0x28e)]=_0x3459bb['XrBsv'];const _0x1eabab=_0x114fb8;if(_0x3459bb['IRIsJ']!==_0xc0b64a(0x202))this['conne'+_0xc0b64a(0x266)]=![],this[_0xc0b64a(0x191)](_0x3459bb['mGsWK'],_0x269ebe);else{const _0x28507c=_0x5d7439['gatew'+_0xc0b64a(0x276)][_0xc0b64a(0x213)+'ce'](/^api\./,_0x1eabab[_0xc0b64a(0x28e)]);return _0xc0b64a(0x286)+_0xc0b64a(0x264)+_0x28507c+('/hubs'+'/mark'+'et');}}),this[_0x261b09(0x245)+_0x261b09(0x1aa)]['onrec'+_0x261b09(0x199)+_0x261b09(0x183)](_0x1233ad=>{const _0x5e1d22=_0x261b09;if(_0x3459bb['BsuGD'](_0x3459bb['Rokvv'],_0x3459bb[_0x5e1d22(0x1e5)]))return _0x3cca5c['from'](this[_0x5e1d22(0x288)+'ripti'+_0x5e1d22(0x1a9)]);else this['conne'+_0x5e1d22(0x266)]=!![],this[_0x5e1d22(0x1a5)+_0x5e1d22(0x23b)+'ttemp'+'ts']=0x0,this['emit'](_0x3459bb[_0x5e1d22(0x21c)],_0x1233ad),this['_resu'+_0x5e1d22(0x28a)+'beAll']();}),this[_0x261b09(0x245)+_0x261b09(0x1aa)][_0x261b09(0x224)+'se'](_0x3d2350=>{const _0x1f266a=_0x261b09;this[_0x1f266a(0x245)+_0x1f266a(0x266)]=![];const _0x59a6f0=_0x3d2350?_0x3d2350[_0x1f266a(0x1bd)+'ge']||_0x3459bb['ivGWo'](String,_0x3d2350):_0x3459bb[_0x1f266a(0x1b9)];this[_0x1f266a(0x191)](_0x1f266a(0x236)+_0x1f266a(0x237)+'ed',new Error(_0x59a6f0));});}async['subsc'+_0x1eb6ef(0x268)](_0x85cf5c,_0x4fed13){const _0x3d9e08=_0x1eb6ef,_0x5cbb45={};_0x5cbb45[_0x3d9e08(0x223)]=_0x3d9e08(0x1a5)+_0x3d9e08(0x1e7)+'ng',_0x5cbb45[_0x3d9e08(0x1fe)]=_0x3d9e08(0x17a)+'onnec'+_0x3d9e08(0x183),_0x5cbb45[_0x3d9e08(0x242)]=function(_0x5eb7ba,_0xf4a63){return _0x5eb7ba||_0xf4a63;},_0x5cbb45['BAKYV']='Subsc'+_0x3d9e08(0x208)+_0x3d9e08(0x20a)+'ctTra'+_0x3d9e08(0x249),_0x5cbb45['hVXPH']=_0x3d9e08(0x263)+'ribeC'+'ontra'+_0x3d9e08(0x192)+_0x3d9e08(0x21b)+_0x3d9e08(0x25d),_0x5cbb45[_0x3d9e08(0x18c)]='subsc'+_0x3d9e08(0x24d),_0x5cbb45[_0x3d9e08(0x1c2)]=function(_0x5cd4c0,_0x1f9e35){return _0x5cd4c0!==_0x1f9e35;},_0x5cbb45[_0x3d9e08(0x29b)]=_0x3d9e08(0x233),_0x5cbb45[_0x3d9e08(0x253)]=_0x3d9e08(0x23e);const _0x38023b=_0x5cbb45;if(!this[_0x3d9e08(0x245)+'ction']||!this['conne'+_0x3d9e08(0x266)])throw new Error(_0x38023b[_0x3d9e08(0x1fe)]);const _0x46be31=_0x38023b['EdcbZ'](_0x4fed13,_0x85cf5c);try{await this[_0x3d9e08(0x245)+_0x3d9e08(0x1aa)][_0x3d9e08(0x209)+'e']('Subsc'+'ribeC'+_0x3d9e08(0x20a)+_0x3d9e08(0x1c4)+_0x3d9e08(0x1c3),_0x46be31),await this['conne'+'ction'][_0x3d9e08(0x209)+'e'](_0x38023b[_0x3d9e08(0x279)],_0x46be31),await this[_0x3d9e08(0x245)+_0x3d9e08(0x1aa)]['invok'+'e'](_0x38023b[_0x3d9e08(0x201)],_0x46be31),this[_0x3d9e08(0x288)+_0x3d9e08(0x257)+_0x3d9e08(0x1a9)][_0x3d9e08(0x1cd)](_0x46be31);const _0x1c6688={};_0x1c6688[_0x3d9e08(0x21d)+'l']=_0x85cf5c,_0x1c6688['contr'+_0x3d9e08(0x28f)]=_0x46be31,this[_0x3d9e08(0x191)](_0x38023b['vAaXw'],_0x1c6688);}catch(_0x3d14f9){if(_0x38023b['zuFhZ'](_0x38023b[_0x3d9e08(0x29b)],_0x38023b[_0x3d9e08(0x29b)]))this['conne'+_0x3d9e08(0x266)]=![],this['emit'](_0x38023b[_0x3d9e08(0x223)],_0x2a6666);else{this[_0x3d9e08(0x191)](_0x38023b[_0x3d9e08(0x253)],new Error(_0x3d9e08(0x263)+_0x3d9e08(0x178)+_0x3d9e08(0x25b)+_0x3d9e08(0x1e3)+_0x3d14f9['messa'+'ge']));throw _0x3d14f9;}}}async[_0x1eb6ef(0x1d3)+_0x1eb6ef(0x1ed)+'e'](_0x457af1){const _0x59b7a7=_0x1eb6ef,_0x4054df={};_0x4054df[_0x59b7a7(0x211)]=function(_0x5accc9,_0x36e94b){return _0x5accc9===_0x36e94b;},_0x4054df['CfNuw']='Conne'+_0x59b7a7(0x266),_0x4054df[_0x59b7a7(0x204)]=function(_0x1feb6b,_0x40a7d7){return _0x1feb6b!==_0x40a7d7;},_0x4054df[_0x59b7a7(0x1c9)]='FqkQL',_0x4054df['MaiOz']='2|4|1'+_0x59b7a7(0x214),_0x4054df[_0x59b7a7(0x1d0)]=_0x59b7a7(0x1e2)+'scrib'+'eCont'+'ractM'+_0x59b7a7(0x184)+_0x59b7a7(0x241),_0x4054df[_0x59b7a7(0x1c7)]='Unsub'+_0x59b7a7(0x1ed)+'eCont'+_0x59b7a7(0x282)+_0x59b7a7(0x246),_0x4054df[_0x59b7a7(0x18f)]=_0x59b7a7(0x1d3)+_0x59b7a7(0x1ed)+'ed',_0x4054df[_0x59b7a7(0x1de)]=_0x59b7a7(0x1e2)+_0x59b7a7(0x1ed)+_0x59b7a7(0x16b)+_0x59b7a7(0x295)+_0x59b7a7(0x1b0);const _0xe674bc=_0x4054df;if(!this[_0x59b7a7(0x245)+_0x59b7a7(0x1aa)]||!this[_0x59b7a7(0x245)+_0x59b7a7(0x266)])return;try{if(_0xe674bc['IZPnk'](_0x59b7a7(0x18b),_0xe674bc[_0x59b7a7(0x1c9)]))return this[_0x59b7a7(0x245)+_0x59b7a7(0x266)]&&_0xe674bc[_0x59b7a7(0x211)](this[_0x59b7a7(0x245)+'ction']?.['state'],_0xe674bc[_0x59b7a7(0x189)]);else{const _0x49c23b=_0xe674bc['MaiOz'][_0x59b7a7(0x1d9)]('|');let _0x11bdc6=0x0;while(!![]){switch(_0x49c23b[_0x11bdc6++]){case'0':this[_0x59b7a7(0x288)+_0x59b7a7(0x257)+'ons'][_0x59b7a7(0x176)+'e'](_0x457af1);continue;case'1':await this['conne'+_0x59b7a7(0x1aa)][_0x59b7a7(0x209)+'e'](_0xe674bc[_0x59b7a7(0x1d0)],_0x457af1);continue;case'2':await this[_0x59b7a7(0x245)+_0x59b7a7(0x1aa)]['invok'+'e'](_0xe674bc[_0x59b7a7(0x1c7)],_0x457af1);continue;case'3':const _0x55317c={};_0x55317c[_0x59b7a7(0x29a)+_0x59b7a7(0x28f)]=_0x457af1,this['emit'](_0xe674bc[_0x59b7a7(0x18f)],_0x55317c);continue;case'4':await this[_0x59b7a7(0x245)+'ction'][_0x59b7a7(0x209)+'e'](_0xe674bc['MHngd'],_0x457af1);continue;}break;}}}catch(_0x255bac){}}async['_resu'+'bscri'+_0x1eb6ef(0x200)](){const _0x5d3511=_0x1eb6ef,_0x5174f3={};_0x5174f3['rmuld']=_0x5d3511(0x263)+_0x5d3511(0x208)+_0x5d3511(0x20a)+'ctQuo'+_0x5d3511(0x1c3),_0x5174f3[_0x5d3511(0x1ab)]=_0x5d3511(0x263)+_0x5d3511(0x208)+_0x5d3511(0x20a)+'ctTra'+'des',_0x5174f3[_0x5d3511(0x187)]=_0x5d3511(0x263)+_0x5d3511(0x208)+_0x5d3511(0x20a)+_0x5d3511(0x192)+'ketDe'+'pth';const _0x2804de=_0x5174f3;for(const _0x3a9228 of this['subsc'+_0x5d3511(0x257)+_0x5d3511(0x1a9)]){try{await this['conne'+'ction'][_0x5d3511(0x209)+'e'](_0x2804de[_0x5d3511(0x26d)],_0x3a9228),await this[_0x5d3511(0x245)+'ction'][_0x5d3511(0x209)+'e'](_0x2804de[_0x5d3511(0x1ab)],_0x3a9228),await this[_0x5d3511(0x245)+_0x5d3511(0x1aa)][_0x5d3511(0x209)+'e'](_0x2804de[_0x5d3511(0x187)],_0x3a9228);}catch(_0x33aa44){}}}async[_0x1eb6ef(0x236)+_0x1eb6ef(0x237)](){const _0x4ca1af=_0x1eb6ef,_0x10b97e={};_0x10b97e[_0x4ca1af(0x1e0)]=function(_0xbff343,_0x1d31f5){return _0xbff343===_0x1d31f5;},_0x10b97e[_0x4ca1af(0x174)]=_0x4ca1af(0x1ce),_0x10b97e['OopYZ']=_0x4ca1af(0x198),_0x10b97e[_0x4ca1af(0x1ea)]=_0x4ca1af(0x1a5)+_0x4ca1af(0x217)+'d',_0x10b97e[_0x4ca1af(0x1ba)]=function(_0x422dd7,_0x4dcf81){return _0x422dd7>=_0x4dcf81;},_0x10b97e[_0x4ca1af(0x227)]=function(_0x24322d,_0x49ace1){return _0x24322d*_0x49ace1;},_0x10b97e['wavRs']=function(_0x76ee42,_0x488b83){return _0x76ee42!==_0x488b83;},_0x10b97e['oeVpw']='RFbPm',_0x10b97e[_0x4ca1af(0x185)]=function(_0x827625,_0x276843){return _0x827625!==_0x276843;},_0x10b97e[_0x4ca1af(0x1f6)]=_0x4ca1af(0x1c5),_0x10b97e[_0x4ca1af(0x258)]=function(_0x1125e1,_0x338d36){return _0x1125e1===_0x338d36;};const _0xe61f71=_0x10b97e;if(this['conne'+_0x4ca1af(0x1aa)]){const _0x50f3ad=new Promise(_0x53ed8c=>setTimeout(_0x53ed8c,0xbb8));try{if(_0xe61f71['IIBGr'](_0x4ca1af(0x1eb),_0x4ca1af(0x1f4))){const _0x140c3c={'type':_0x4ca1af(0x198),'price':_0x19ddd6[_0x4ca1af(0x1d2)],'volume':_0x2c0d30[_0x4ca1af(0x294)+'e'],'currentVolume':_0x3721bf[_0x4ca1af(0x299)+_0x4ca1af(0x1ff)+'ume'],'side':_0xe61f71[_0x4ca1af(0x1e0)](_0x41aefe[_0x4ca1af(0x251)],0x0)?_0xe61f71['BjclN']:_0x4ca1af(0x171),'timestamp':_0x50015a[_0x4ca1af(0x180)+'tamp']?new _0x26b6ea(_0x1b7df5[_0x4ca1af(0x180)+_0x4ca1af(0x239)])[_0x4ca1af(0x19f)+'me']():_0x2fa168['now']()};this[_0x4ca1af(0x191)](_0xe61f71[_0x4ca1af(0x1d7)],_0x140c3c),this[_0x4ca1af(0x191)](_0x4ca1af(0x205),_0x140c3c);}else await Promise[_0x4ca1af(0x1fc)]([((async()=>{const _0xc044f1=_0x4ca1af;if(_0xe61f71[_0xc044f1(0x270)](_0xc044f1(0x1d1),_0xe61f71[_0xc044f1(0x21e)]))this[_0xc044f1(0x245)+_0xc044f1(0x266)]=!![],this['recon'+_0xc044f1(0x23b)+_0xc044f1(0x1f9)+'ts']=0x0,this[_0xc044f1(0x191)](_0xe61f71[_0xc044f1(0x1ea)],_0x1710c7),this[_0xc044f1(0x298)+_0xc044f1(0x28a)+_0xc044f1(0x200)]();else{for(const _0x68808d of this['subsc'+_0xc044f1(0x257)+'ons']){try{if(_0xe61f71[_0xc044f1(0x185)](_0xc044f1(0x1c5),_0xe61f71[_0xc044f1(0x1f6)])){if(_0xe61f71['qybBH'](_0x27949d[_0xc044f1(0x235)+_0xc044f1(0x1d5)+_0xc044f1(0x172)+_0xc044f1(0x273)],this[_0xc044f1(0x210)+_0xc044f1(0x245)+_0xc044f1(0x1d4)+_0xc044f1(0x1f1)]))return null;return _0x22b3ac[_0xc044f1(0x1cc)](_0xe61f71[_0xc044f1(0x227)](0x3e8,_0x448881['pow'](0x2,_0x23ae50['previ'+'ousRe'+_0xc044f1(0x172)+_0xc044f1(0x273)])),0x7530);}else await this[_0xc044f1(0x1d3)+_0xc044f1(0x1ed)+'e'](_0x68808d);}catch{}}await this['conne'+'ction']['stop']();}})()),_0x50f3ad]);}catch(_0x3bd9ee){}this['conne'+'ction']=null,this[_0x4ca1af(0x245)+_0x4ca1af(0x266)]=![],this[_0x4ca1af(0x288)+_0x4ca1af(0x257)+_0x4ca1af(0x1a9)][_0x4ca1af(0x193)]();}}['isCon'+'necte'+'d'](){const _0xc371a1=_0x1eb6ef,_0x56931a={};_0x56931a[_0xc371a1(0x1bb)]=function(_0xf0659c,_0x3e17a1){return _0xf0659c===_0x3e17a1;};const _0x2a68ea=_0x56931a;return this[_0xc371a1(0x245)+_0xc371a1(0x266)]&&_0x2a68ea['fwSoD'](this[_0xc371a1(0x245)+_0xc371a1(0x1aa)]?.[_0xc371a1(0x1db)],_0xc371a1(0x21a)+_0xc371a1(0x266));}[_0x1eb6ef(0x247)+'bscri'+_0x1eb6ef(0x22d)+'s'](){const _0x140023=_0x1eb6ef;return Array[_0x140023(0x19c)](this[_0x140023(0x288)+_0x140023(0x257)+_0x140023(0x1a9)]);}}const _0x199d3d={};_0x199d3d['Marke'+_0x1eb6ef(0x283)+_0x1eb6ef(0x229)]=MarketDataFeed,module[_0x1eb6ef(0x1b2)+'ts']=_0x199d3d;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.4.18",
3
+ "version": "2.4.19",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -428,17 +428,31 @@ const launchAlgo = async (service, account, contract, config) => {
428
428
  }, 100);
429
429
  });
430
430
 
431
- // Cleanup
431
+ // Cleanup with timeout protection
432
432
  clearInterval(refreshInterval);
433
433
  clearInterval(pnlInterval);
434
- await marketFeed.disconnect();
435
- if (cleanupKeys) cleanupKeys();
436
- ui.cleanup();
437
434
 
438
- if (process.stdin.isTTY) {
439
- process.stdin.setRawMode(false);
440
- }
441
- process.stdin.resume();
435
+ // Disconnect market feed with timeout
436
+ try {
437
+ await Promise.race([
438
+ marketFeed.disconnect(),
439
+ new Promise(r => setTimeout(r, 3000))
440
+ ]);
441
+ } catch {}
442
+
443
+ // Cleanup keyboard handler
444
+ try { if (cleanupKeys) cleanupKeys(); } catch {}
445
+
446
+ // Cleanup UI
447
+ try { ui.cleanup(); } catch {}
448
+
449
+ // Reset stdin
450
+ try {
451
+ if (process.stdin.isTTY) {
452
+ process.stdin.setRawMode(false);
453
+ }
454
+ process.stdin.resume();
455
+ } catch {}
442
456
 
443
457
  // Duration
444
458
  const durationMs = Date.now() - stats.startTime;