hedgequantx 2.4.19 → 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 _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;
|
|
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
|
@@ -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', `
|
|
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', `
|
|
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,
|
|
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', `
|
|
339
|
+
ui.addLog('error', `ERR: ${e.message.substring(0, 60).toUpperCase()}`);
|
|
339
340
|
}
|
|
340
341
|
|
|
341
342
|
// Poll account P&L from API
|