hedgequantx 2.4.17 → 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 +1 -1
- package/package.json +1 -1
- package/src/pages/algo/one-account.js +24 -9
package/dist/lib/data.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x1ea4c1=_0x5d33;(function(_0x7d4d79,_0x32a60d){const _0x50aa9b=_0x5d33,_0x26e8a8=_0x7d4d79();while(!![]){try{const _0x2105dd=parseInt(_0x50aa9b(0xc6))/0x1+parseInt(_0x50aa9b(0x106))/0x2*(-parseInt(_0x50aa9b(0xe5))/0x3)+parseInt(_0x50aa9b(0x156))/0x4+-parseInt(_0x50aa9b(0x186))/0x5*(parseInt(_0x50aa9b(0x168))/0x6)+parseInt(_0x50aa9b(0x91))/0x7*(-parseInt(_0x50aa9b(0xb6))/0x8)+-parseInt(_0x50aa9b(0xa1))/0x9+parseInt(_0x50aa9b(0x197))/0xa*(parseInt(_0x50aa9b(0xce))/0xb);if(_0x2105dd===_0x32a60d)break;else _0x26e8a8['push'](_0x26e8a8['shift']());}catch(_0xc15b02){_0x26e8a8['push'](_0x26e8a8['shift']());}}}(_0x132d,0x30485));const EventEmitter=require('event'+'s'),{HubConnectionBuilder,HttpTransportType,LogLevel}=require(_0x1ea4c1(0x133)+_0x1ea4c1(0x105)+_0x1ea4c1(0x190)+_0x1ea4c1(0x195)),_0x41c122={};_0x41c122[_0x1ea4c1(0x11e)+'ayApi']=_0x1ea4c1(0xd5)+_0x1ea4c1(0x94)+_0x1ea4c1(0xbe)+'m';const _0x339555={};_0x339555[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0x161)+'lphaf'+_0x1ea4c1(0xfa)+_0x1ea4c1(0x196)+'jectx'+_0x1ea4c1(0xaf);const _0x1b8b6e={};_0x1b8b6e[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0xd5)+_0x1ea4c1(0x125)+_0x1ea4c1(0xdd)+'der.p'+'rojec'+_0x1ea4c1(0x171)+'m';const _0x23ab91={};_0x23ab91['gatew'+_0x1ea4c1(0x135)]=_0x1ea4c1(0x12c)+'uleno'+'x.pro'+_0x1ea4c1(0xfe)+'.com';const _0x20fb21={};_0x20fb21[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0xd5)+_0x1ea4c1(0x19c)+_0x1ea4c1(0x10a)+'oject'+_0x1ea4c1(0xbf);const _0x5250aa={};_0x5250aa[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0x12c)+_0x1ea4c1(0xa2)+_0x1ea4c1(0xb9)+_0x1ea4c1(0x11d)+'com';const _0x323da7={};_0x323da7[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]='api.g'+_0x1ea4c1(0xac)+_0x1ea4c1(0x179)+_0x1ea4c1(0xb9)+_0x1ea4c1(0x11d)+'com';const _0x326839={};_0x326839['gatew'+_0x1ea4c1(0x135)]=_0x1ea4c1(0xd5)+_0x1ea4c1(0xc3)+'uresd'+_0x1ea4c1(0xbc)+'rojec'+_0x1ea4c1(0x171)+'m';const _0x3e6bbe={};_0x3e6bbe[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0x147)+_0x1ea4c1(0xe6)+'ders.'+_0x1ea4c1(0x146)+_0x1ea4c1(0xf7)+'om';const _0x3e9b1d={};_0x3e9b1d[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0x13e)+_0x1ea4c1(0xaa)+_0x1ea4c1(0x100)+_0x1ea4c1(0x169)+_0x1ea4c1(0x171)+'m';const _0x1b05db={};_0x1b05db[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0x12c)+_0x1ea4c1(0x126)+_0x1ea4c1(0xda)+'nfutu'+_0x1ea4c1(0x100)+_0x1ea4c1(0x169)+_0x1ea4c1(0x171)+'m';const _0x9da6f3={};_0x9da6f3[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0x12d)+_0x1ea4c1(0xfa)+_0x1ea4c1(0x10f)+'e.pro'+_0x1ea4c1(0xfe)+'.com';const _0x12d0d2={};_0x12d0d2[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0x12d)+'xify.'+_0x1ea4c1(0x146)+_0x1ea4c1(0xf7)+'om';const _0x323428={};_0x323428[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0x128)+_0x1ea4c1(0x185)+_0x1ea4c1(0xf5)+_0x1ea4c1(0x169)+_0x1ea4c1(0x171)+'m';const _0x56c73b={};_0x56c73b[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0xd5)+'opone'+_0x1ea4c1(0x193)+_0x1ea4c1(0xed)+'oject'+'x.com';const _0x122e79={};_0x122e79[_0x1ea4c1(0x11e)+'ayApi']='api.f'+_0x1ea4c1(0x8c)+_0x1ea4c1(0xc4)+_0x1ea4c1(0x100)+_0x1ea4c1(0x169)+_0x1ea4c1(0x171)+'m';const _0x5ac477={};_0x5ac477['gatew'+_0x1ea4c1(0x135)]='api.t'+_0x1ea4c1(0x136)+_0x1ea4c1(0xfb)+_0x1ea4c1(0x146)+_0x1ea4c1(0xf7)+'om';const _0x2fc2aa={};_0x2fc2aa[_0x1ea4c1(0x11e)+_0x1ea4c1(0x135)]=_0x1ea4c1(0x132)+'ucidt'+_0x1ea4c1(0xbb)+_0x1ea4c1(0x144)+'jectx'+'.com';const _0x455acc={};_0x455acc['gatew'+'ayApi']='api.t'+'radei'+_0x1ea4c1(0xad)+_0x1ea4c1(0x188)+'x.com';const _0xe06f70={};function _0x5d33(_0x3c9875,_0x5552b3){_0x3c9875=_0x3c9875-0x8c;const _0x132d97=_0x132d();let _0x5d332e=_0x132d97[_0x3c9875];if(_0x5d33['tjLhqC']===undefined){var _0x1a74da=function(_0x4a365c){const _0x1efe92='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xfdd385='',_0x85ab35='';for(let _0x5ec486=0x0,_0x409ec6,_0x35aad3,_0x483d1c=0x0;_0x35aad3=_0x4a365c['charAt'](_0x483d1c++);~_0x35aad3&&(_0x409ec6=_0x5ec486%0x4?_0x409ec6*0x40+_0x35aad3:_0x35aad3,_0x5ec486++%0x4)?_0xfdd385+=String['fromCharCode'](0xff&_0x409ec6>>(-0x2*_0x5ec486&0x6)):0x0){_0x35aad3=_0x1efe92['indexOf'](_0x35aad3);}for(let _0x26461d=0x0,_0x49606c=_0xfdd385['length'];_0x26461d<_0x49606c;_0x26461d++){_0x85ab35+='%'+('00'+_0xfdd385['charCodeAt'](_0x26461d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x85ab35);};_0x5d33['BZSzum']=_0x1a74da,_0x5d33['TFuBuF']={},_0x5d33['tjLhqC']=!![];}const _0x5dd680=_0x132d97[0x0],_0x17e331=_0x3c9875+_0x5dd680,_0x1193e7=_0x5d33['TFuBuF'][_0x17e331];return!_0x1193e7?(_0x5d332e=_0x5d33['BZSzum'](_0x5d332e),_0x5d33['TFuBuF'][_0x17e331]=_0x5d332e):_0x5d332e=_0x1193e7,_0x5d332e;}_0xe06f70[_0x1ea4c1(0x14b)+'ep']=_0x41c122,_0xe06f70[_0x1ea4c1(0x18a)+_0x1ea4c1(0xf6)+_0x1ea4c1(0xb1)]=_0x339555,_0xe06f70[_0x1ea4c1(0xe1)+_0x1ea4c1(0xc2)+_0x1ea4c1(0x173)]=_0x1b8b6e,_0xe06f70[_0x1ea4c1(0x149)+'ox']=_0x23ab91,_0xe06f70[_0x1ea4c1(0x104)+'day']=_0x20fb21,_0xe06f70[_0x1ea4c1(0xba)+'y']=_0x5250aa,_0xe06f70['goat_'+_0x1ea4c1(0x193)+'es']=_0x323da7,_0xe06f70[_0x1ea4c1(0x193)+_0x1ea4c1(0x14f)+'sk']=_0x326839,_0xe06f70[_0x1ea4c1(0xa5)+'aders']=_0x3e6bbe,_0xe06f70[_0x1ea4c1(0xd2)+_0x1ea4c1(0x179)]=_0x3e9b1d,_0xe06f70['blue_'+_0x1ea4c1(0x14e)+_0x1ea4c1(0x18b)]=_0x1b05db,_0xe06f70[_0x1ea4c1(0x193)+'es_el'+_0x1ea4c1(0x153)]=_0x9da6f3,_0xe06f70[_0x1ea4c1(0x9a)]=_0x12d0d2,_0xe06f70[_0x1ea4c1(0x160)+_0x1ea4c1(0x17f)]=_0x323428,_0xe06f70['top_o'+'ne_fu'+_0x1ea4c1(0x179)]=_0x56c73b,_0xe06f70[_0x1ea4c1(0x114)+_0x1ea4c1(0x163)+_0x1ea4c1(0x179)]=_0x122e79,_0xe06f70[_0x1ea4c1(0x11a)+_0x1ea4c1(0x8c)+'g']=_0x5ac477,_0xe06f70[_0x1ea4c1(0xf4)+_0x1ea4c1(0xd6)+_0x1ea4c1(0xa4)]=_0x2fc2aa,_0xe06f70[_0x1ea4c1(0x104)+_0x1ea4c1(0x145)]=_0x455acc;const PROPFIRMS=_0xe06f70;class MarketDataFeed extends EventEmitter{constructor(_0x32115b={}){const _0x2b7ce0=_0x1ea4c1,_0x4392f7=(_0x2b7ce0(0x13b)+'|1|5|'+_0x2b7ce0(0x192))[_0x2b7ce0(0x194)]('|');let _0x5f468d=0x0;while(!![]){switch(_0x4392f7[_0x5f468d++]){case'0':this[_0x2b7ce0(0x10c)+_0x2b7ce0(0x129)+'ctAtt'+'empts']=0x5;continue;case'1':this['conne'+_0x2b7ce0(0x119)]=![];continue;case'2':super();continue;case'3':this[_0x2b7ce0(0x167)+_0x2b7ce0(0x154)+_0x2b7ce0(0x162)+'ts']=0x0;continue;case'4':this[_0x2b7ce0(0x129)+_0x2b7ce0(0xd0)]=null;continue;case'5':this[_0x2b7ce0(0xb2)+'ripti'+'ons']=new Set();continue;case'6':this['propf'+'irmKe'+'y']=(_0x32115b[_0x2b7ce0(0x170)+'irm']||_0x2b7ce0(0x14b)+'ep')[_0x2b7ce0(0x139)+_0x2b7ce0(0x148)+'e']()[_0x2b7ce0(0x178)+'ce'](/\s+/g,'_');continue;}break;}}[_0x1ea4c1(0x174)+_0x1ea4c1(0xde)+'HubUr'+'l'](_0x16f100){const _0x324613=_0x1ea4c1,_0xc35e11={};_0xc35e11['LoSmM']=_0x324613(0x104),_0xc35e11[_0x324613(0xbd)]=function(_0x37131f,_0x31bdf2){return _0x37131f===_0x31bdf2;},_0xc35e11[_0x324613(0xf1)]=_0x324613(0x140),_0xc35e11[_0x324613(0xcb)]='sell',_0xc35e11[_0x324613(0x10e)]=function(_0x216bf0,_0x523815){return _0x216bf0!==_0x523815;},_0xc35e11[_0x324613(0x18e)]='rtc.',_0xc35e11[_0x324613(0xf9)]='https'+_0x324613(0x165)+_0x324613(0xd3)+_0x324613(0x10d)+_0x324613(0x96)+_0x324613(0xd4)+'marke'+'t';const _0x5921e2=_0xc35e11,_0x59aeba=PROPFIRMS[_0x16f100]||PROPFIRMS[_0x324613(0x14b)+'ep'];if(_0x59aeba['gatew'+'ayApi']){if(_0x5921e2['LqRCg']('TQEgc','TQEgc')){const _0xb9a16a={'type':_0x5921e2[_0x324613(0x10b)],'contractId':_0x589e25[_0x324613(0xcc)+_0x324613(0x134)],'price':_0x3df150[_0x324613(0xdf)],'volume':_0x4d8c8d[_0x324613(0x137)+'e'],'side':_0x5921e2[_0x324613(0xbd)](_0x51eb28[_0x324613(0x16e)],0x0)?_0x5921e2['MACZw']:_0x5921e2[_0x324613(0xcb)],'lastTradeSide':_0x5921e2[_0x324613(0xbd)](_0x2fecdd[_0x324613(0x16e)],0x0)?_0x5921e2[_0x324613(0xf1)]:_0x324613(0x16d),'timestamp':_0x1e037f[_0x324613(0x11b)+'tamp']?new _0x3a6b85(_0x509a38['times'+_0x324613(0xec)])[_0x324613(0x18d)+'me']():_0x4d43f9[_0x324613(0xd8)]()};this['emit']('tick',_0xb9a16a),this[_0x324613(0xc8)](_0x324613(0x104),_0xb9a16a);}else{const _0x1efee9=_0x59aeba['gatew'+'ayApi'][_0x324613(0x178)+'ce'](/^api\./,_0x5921e2[_0x324613(0x18e)]);return _0x324613(0x15e)+'://'+_0x1efee9+('/hubs'+_0x324613(0x113)+'et');}}return _0x5921e2[_0x324613(0xf9)];}async[_0x1ea4c1(0x129)+'ct'](_0x2648d2,_0x257e8a,_0x3966e1=null){const _0x1968ab=_0x1ea4c1,_0x4208d5={};_0x4208d5[_0x1968ab(0xb0)]=_0x1968ab(0x15e)+'://rt'+_0x1968ab(0xd3)+_0x1968ab(0x10d)+'.com/'+_0x1968ab(0xd4)+_0x1968ab(0x164)+'t',_0x4208d5[_0x1968ab(0x182)]=function(_0x1aa625,_0x26bd61){return _0x1aa625!==_0x26bd61;},_0x4208d5[_0x1968ab(0x12f)]='ESfdy',_0x4208d5['dqtiw']=_0x1968ab(0x129)+_0x1968ab(0x119),_0x4208d5[_0x1968ab(0x17c)]=_0x1968ab(0xc9);const _0x1eb174=_0x4208d5;if(this[_0x1968ab(0x129)+_0x1968ab(0x119)])return;this[_0x1968ab(0x170)+_0x1968ab(0x8e)+'y']=_0x257e8a||this['propf'+_0x1968ab(0x8e)+'y'],this[_0x1968ab(0x155)]=_0x2648d2;const _0x38b348=this[_0x1968ab(0x174)+'arket'+_0x1968ab(0x14c)+'l'](this[_0x1968ab(0x170)+_0x1968ab(0x8e)+'y']);try{if(_0x1eb174[_0x1968ab(0x182)](_0x1968ab(0x15c),_0x1eb174[_0x1968ab(0x12f)]))this[_0x1968ab(0x129)+_0x1968ab(0xd0)]=new HubConnectionBuilder()['withU'+'rl'](_0x38b348,{'accessTokenFactory':()=>this[_0x1968ab(0x155)]})[_0x1968ab(0x90)+_0x1968ab(0xa8)+'ticRe'+_0x1968ab(0x129)+'ct']({'nextRetryDelayInMilliseconds':_0x36b6be=>{const _0x376781=_0x1968ab;if(_0x36b6be['previ'+_0x376781(0x103)+_0x376781(0xe3)+_0x376781(0x17d)]>=this[_0x376781(0x10c)+_0x376781(0x129)+_0x376781(0x19e)+'empts'])return null;return Math[_0x376781(0x13c)](0x3e8*Math[_0x376781(0x16a)](0x2,_0x36b6be['previ'+_0x376781(0x103)+_0x376781(0xe3)+_0x376781(0x17d)]),0x7530);}})[_0x1968ab(0x118)+'gureL'+_0x1968ab(0x111)+'g'](LogLevel['Warni'+'ng'])[_0x1968ab(0xf8)](),this[_0x1968ab(0x129)+_0x1968ab(0xd0)]['serve'+_0x1968ab(0x9e)+_0x1968ab(0x198)+'Milli'+'secon'+'ds']=0xea60,this[_0x1968ab(0x129)+_0x1968ab(0xd0)][_0x1968ab(0xae)+_0x1968ab(0x9c)+_0x1968ab(0xa9)+_0x1968ab(0x95)+'illis'+_0x1968ab(0xd7)+'s']=0x3a98,this['_setu'+_0x1968ab(0x16b)+'tHand'+_0x1968ab(0xf0)](),await this['conne'+_0x1968ab(0xd0)][_0x1968ab(0x180)](),this['conne'+_0x1968ab(0x119)]=!![],this[_0x1968ab(0x167)+_0x1968ab(0x154)+'ttemp'+'ts']=0x0,this[_0x1968ab(0xc8)](_0x1eb174[_0x1968ab(0xb3)]),_0x3966e1&&await this['subsc'+_0x1968ab(0x9f)](null,_0x3966e1);else{const _0x261cfd=_0x409ec6[_0x35aad3]||_0x483d1c[_0x1968ab(0x14b)+'ep'];if(_0x261cfd[_0x1968ab(0x11e)+'ayApi']){const _0x3372e4=_0x261cfd[_0x1968ab(0x11e)+_0x1968ab(0x135)][_0x1968ab(0x178)+'ce'](/^api\./,_0x1968ab(0x101));return _0x1968ab(0x15e)+_0x1968ab(0xf2)+_0x3372e4+(_0x1968ab(0x120)+_0x1968ab(0x113)+'et');}return _0x1eb174['ACRdt'];}}catch(_0x388933){this[_0x1968ab(0x129)+'cted']=![],this[_0x1968ab(0xc8)](_0x1eb174['rKMDf'],_0x388933);throw _0x388933;}}[_0x1ea4c1(0x17a)+_0x1ea4c1(0x16b)+'tHand'+'lers'](){const _0x3cd888=_0x1ea4c1,_0x407b16={'TdABP':_0x3cd888(0x172),'cBfFd':_0x3cd888(0x93),'dnUap':function(_0x29aa78,_0x4ba732){return _0x29aa78===_0x4ba732;},'uWgcO':'sell','wWNnc':_0x3cd888(0x104),'EsiLu':function(_0x2c9326,_0xf24b05){return _0x2c9326===_0xf24b05;},'QTRdS':_0x3cd888(0x14d),'HNEDN':'depth','NRERA':_0x3cd888(0x127),'NkLsr':_0x3cd888(0x18f),'lwQTl':_0x3cd888(0xa3)+'cted','tvwMi':function(_0x55b1ba,_0x51ff2e){return _0x55b1ba!==_0x51ff2e;},'uQJAM':_0x3cd888(0x157),'iyvxL':_0x3cd888(0x167)+_0x3cd888(0x184)+'d','KDbdH':_0x3cd888(0xdb),'yutkH':'SSNak','uYRMp':function(_0x42a0bc,_0x18a6ba){return _0x42a0bc(_0x18a6ba);},'GbRWr':_0x3cd888(0x12e)+'wn','ssGyx':_0x3cd888(0xd1)+_0x3cd888(0xf3)+'ed','msGfz':_0x3cd888(0x108)+'ayQuo'+'te','icmfg':_0x3cd888(0x108)+_0x3cd888(0x189)+'de','LebgH':_0x3cd888(0x108)+_0x3cd888(0x117)+'th'};if(!this[_0x3cd888(0x129)+'ction'])return;this[_0x3cd888(0x129)+_0x3cd888(0xd0)]['on'](_0x407b16['msGfz'],_0x22c410=>{const _0x57c887=_0x3cd888,_0x1ff27c={'type':_0x407b16[_0x57c887(0x9b)],'contractId':_0x22c410['symbo'+'l']||_0x22c410[_0x57c887(0xcc)+_0x57c887(0x134)],'symbol':_0x22c410[_0x57c887(0xcc)+_0x57c887(0xdc)]||_0x22c410[_0x57c887(0xcc)+'l'],'price':_0x22c410[_0x57c887(0x13f)+_0x57c887(0x17e)],'bid':_0x22c410[_0x57c887(0x11c)+'id'],'ask':_0x22c410['bestA'+'sk'],'change':_0x22c410['chang'+'e'],'changePercent':_0x22c410[_0x57c887(0x191)+_0x57c887(0x15b)+_0x57c887(0x109)],'open':_0x22c410['open'],'high':_0x22c410[_0x57c887(0x11f)],'low':_0x22c410[_0x57c887(0x8f)],'volume':_0x22c410['volum'+'e'],'timestamp':_0x22c410[_0x57c887(0x11b)+_0x57c887(0xec)]?new Date(_0x22c410['times'+_0x57c887(0xec)])[_0x57c887(0x18d)+'me']():Date[_0x57c887(0xd8)]()};this[_0x57c887(0xc8)](_0x407b16['cBfFd'],_0x1ff27c),this['emit'](_0x407b16[_0x57c887(0x9b)],_0x1ff27c);}),this[_0x3cd888(0x129)+'ction']['on'](_0x407b16['icmfg'],_0xbd01a9=>{const _0x4e209f=_0x3cd888,_0x17d3d4={'type':_0x4e209f(0x104),'contractId':_0xbd01a9[_0x4e209f(0xcc)+_0x4e209f(0x134)],'price':_0xbd01a9[_0x4e209f(0xdf)],'volume':_0xbd01a9[_0x4e209f(0x137)+'e'],'side':_0x407b16[_0x4e209f(0xe2)](_0xbd01a9[_0x4e209f(0x16e)],0x0)?_0x4e209f(0x140):_0x407b16[_0x4e209f(0x150)],'lastTradeSide':_0x407b16['dnUap'](_0xbd01a9[_0x4e209f(0x16e)],0x0)?_0x4e209f(0x140):_0x407b16[_0x4e209f(0x150)],'timestamp':_0xbd01a9[_0x4e209f(0x11b)+'tamp']?new Date(_0xbd01a9[_0x4e209f(0x11b)+_0x4e209f(0xec)])[_0x4e209f(0x18d)+'me']():Date['now']()};this['emit'](_0x407b16['cBfFd'],_0x17d3d4),this['emit'](_0x407b16[_0x4e209f(0xab)],_0x17d3d4);}),this[_0x3cd888(0x129)+_0x3cd888(0xd0)]['on'](_0x407b16[_0x3cd888(0x143)],_0x1ffe4f=>{const _0x4dc59f=_0x3cd888,_0xaa99e2={'type':_0x4dc59f(0xff),'price':_0x1ffe4f['price'],'volume':_0x1ffe4f[_0x4dc59f(0x137)+'e'],'currentVolume':_0x1ffe4f[_0x4dc59f(0xc1)+_0x4dc59f(0x138)+_0x4dc59f(0xfc)],'side':_0x407b16[_0x4dc59f(0xe0)](_0x1ffe4f[_0x4dc59f(0x16e)],0x0)?'bid':_0x407b16[_0x4dc59f(0x14a)],'timestamp':_0x1ffe4f[_0x4dc59f(0x11b)+'tamp']?new Date(_0x1ffe4f['times'+_0x4dc59f(0xec)])['getTi'+'me']():Date[_0x4dc59f(0xd8)]()};this[_0x4dc59f(0xc8)](_0x407b16[_0x4dc59f(0xe7)],_0xaa99e2),this['emit'](_0x407b16['NRERA'],_0xaa99e2);}),this['conne'+_0x3cd888(0xd0)][_0x3cd888(0x176)+'onnec'+_0x3cd888(0xb8)](_0x5c7301=>{const _0x47b80a=_0x3cd888;if(_0x407b16[_0x47b80a(0x142)]===_0x47b80a(0x131))throw new _0x8c7a4a(_0x47b80a(0x181)+_0x47b80a(0xc7)+_0x47b80a(0x15a));else this[_0x47b80a(0x129)+_0x47b80a(0x119)]=![],this['emit'](_0x47b80a(0x167)+'necti'+'ng',_0x5c7301);}),this['conne'+'ction'][_0x3cd888(0x176)+_0x3cd888(0xc7)+'ted'](_0x1231ba=>{const _0x39e14=_0x3cd888,_0x7b14b8={};_0x7b14b8['lxDEQ']=function(_0x269a56,_0x23885f){return _0x269a56===_0x23885f;},_0x7b14b8[_0x39e14(0x98)]=_0x407b16['lwQTl'];const _0x2a4d4c=_0x7b14b8;if(_0x407b16[_0x39e14(0x151)](_0x39e14(0x157),_0x407b16[_0x39e14(0x13d)]))return this[_0x39e14(0x129)+_0x39e14(0x119)]&&_0x2a4d4c[_0x39e14(0x130)](this[_0x39e14(0x129)+_0x39e14(0xd0)]?.[_0x39e14(0x19d)],_0x2a4d4c['arhVm']);else this[_0x39e14(0x129)+_0x39e14(0x119)]=!![],this[_0x39e14(0x167)+'nectA'+_0x39e14(0x162)+'ts']=0x0,this['emit'](_0x407b16['iyvxL'],_0x1231ba),this[_0x39e14(0x187)+_0x39e14(0x175)+_0x39e14(0xea)]();}),this[_0x3cd888(0x129)+_0x3cd888(0xd0)]['onclo'+'se'](_0xb1c4d5=>{const _0x2b13ff=_0x3cd888;if(_0x407b16[_0x2b13ff(0xe9)]===_0x407b16[_0x2b13ff(0xa6)])this[_0x2b13ff(0x129)+_0x2b13ff(0x119)]=!![],this[_0x2b13ff(0x167)+_0x2b13ff(0x154)+_0x2b13ff(0x162)+'ts']=0x0,this[_0x2b13ff(0xc8)](_0x2b13ff(0x167)+'necte'+'d',_0x38fd73),this[_0x2b13ff(0x187)+_0x2b13ff(0x175)+'beAll']();else{this['conne'+_0x2b13ff(0x119)]=![];const _0x28979d=_0xb1c4d5?_0xb1c4d5[_0x2b13ff(0x152)+'ge']||_0x407b16['uYRMp'](String,_0xb1c4d5):_0x407b16['GbRWr'];this[_0x2b13ff(0xc8)](_0x407b16[_0x2b13ff(0xd9)],new Error(_0x28979d));}});}async[_0x1ea4c1(0xb2)+_0x1ea4c1(0x9f)](_0x1f55b0,_0x14c5b0){const _0x476bbb=_0x1ea4c1,_0x42d3a7={};_0x42d3a7[_0x476bbb(0xa7)]='Not\x20c'+'onnec'+_0x476bbb(0x15a),_0x42d3a7[_0x476bbb(0x13a)]=function(_0x42ca9a,_0x29d1b8){return _0x42ca9a||_0x29d1b8;},_0x42d3a7['wDUbl']=_0x476bbb(0xe8)+_0x476bbb(0xca)+_0x476bbb(0x107)+'ctQuo'+_0x476bbb(0x18c),_0x42d3a7[_0x476bbb(0x12a)]=_0x476bbb(0xe8)+_0x476bbb(0xca)+_0x476bbb(0x107)+_0x476bbb(0x17b)+'des',_0x42d3a7['cogtj']=_0x476bbb(0xb2)+_0x476bbb(0x92),_0x42d3a7['hyKOC']=_0x476bbb(0xc9);const _0xdb5abd=_0x42d3a7;if(!this[_0x476bbb(0x129)+_0x476bbb(0xd0)]||!this[_0x476bbb(0x129)+_0x476bbb(0x119)])throw new Error(_0xdb5abd[_0x476bbb(0xa7)]);const _0x5abf00=_0xdb5abd[_0x476bbb(0x13a)](_0x14c5b0,_0x1f55b0);try{await this[_0x476bbb(0x129)+_0x476bbb(0xd0)][_0x476bbb(0xb7)+'e'](_0xdb5abd[_0x476bbb(0x124)],_0x5abf00),await this[_0x476bbb(0x129)+_0x476bbb(0xd0)]['invok'+'e'](_0xdb5abd[_0x476bbb(0x12a)],_0x5abf00),await this['conne'+_0x476bbb(0xd0)][_0x476bbb(0xb7)+'e'](_0x476bbb(0xe8)+_0x476bbb(0xca)+_0x476bbb(0x107)+_0x476bbb(0x183)+'ketDe'+'pth',_0x5abf00),this[_0x476bbb(0xb2)+_0x476bbb(0xc5)+'ons'][_0x476bbb(0x122)](_0x5abf00);const _0x31a2eb={};_0x31a2eb[_0x476bbb(0xcc)+'l']=_0x1f55b0,_0x31a2eb[_0x476bbb(0x19b)+'actId']=_0x5abf00,this[_0x476bbb(0xc8)](_0xdb5abd[_0x476bbb(0xee)],_0x31a2eb);}catch(_0x171cf5){this[_0x476bbb(0xc8)](_0xdb5abd[_0x476bbb(0xcf)],new Error('Subsc'+_0x476bbb(0x15d)+_0x476bbb(0x97)+_0x476bbb(0xb5)+_0x171cf5[_0x476bbb(0x152)+'ge']));throw _0x171cf5;}}async[_0x1ea4c1(0x99)+_0x1ea4c1(0xa0)+'e'](_0x2f8ce4){const _0x489048=_0x1ea4c1,_0x3e5972={};_0x3e5972[_0x489048(0x102)]='4|3|2'+_0x489048(0xc0),_0x3e5972['ubtRT']='unsub'+_0x489048(0xa0)+'ed',_0x3e5972[_0x489048(0xcd)]=_0x489048(0x123)+_0x489048(0xa0)+_0x489048(0x9d)+'ractM'+_0x489048(0xde)+'Depth',_0x3e5972['GkSvS']=_0x489048(0x123)+'scrib'+_0x489048(0x9d)+_0x489048(0xe4)+_0x489048(0x199);const _0x4141ca=_0x3e5972;if(!this[_0x489048(0x129)+_0x489048(0xd0)]||!this[_0x489048(0x129)+_0x489048(0x119)])return;try{const _0x1f952d=_0x4141ca[_0x489048(0x102)][_0x489048(0x194)]('|');let _0x358e07=0x0;while(!![]){switch(_0x1f952d[_0x358e07++]){case'0':this[_0x489048(0xb2)+_0x489048(0xc5)+_0x489048(0xfd)][_0x489048(0x141)+'e'](_0x2f8ce4);continue;case'1':const _0x25d7d5={};_0x25d7d5[_0x489048(0x19b)+'actId']=_0x2f8ce4,this[_0x489048(0xc8)](_0x4141ca[_0x489048(0x16f)],_0x25d7d5);continue;case'2':await this[_0x489048(0x129)+_0x489048(0xd0)]['invok'+'e'](_0x4141ca['XKdvT'],_0x2f8ce4);continue;case'3':await this[_0x489048(0x129)+_0x489048(0xd0)][_0x489048(0xb7)+'e']('Unsub'+_0x489048(0xa0)+_0x489048(0x9d)+_0x489048(0x112)+_0x489048(0x110),_0x2f8ce4);continue;case'4':await this[_0x489048(0x129)+_0x489048(0xd0)]['invok'+'e'](_0x4141ca[_0x489048(0x8d)],_0x2f8ce4);continue;}break;}}catch(_0x4b8afa){}}async[_0x1ea4c1(0x187)+_0x1ea4c1(0x175)+_0x1ea4c1(0xea)](){const _0x22210c=_0x1ea4c1,_0x43a9de={};_0x43a9de[_0x22210c(0x166)]='Subsc'+_0x22210c(0xca)+'ontra'+_0x22210c(0x17b)+_0x22210c(0xb4),_0x43a9de[_0x22210c(0x177)]=_0x22210c(0xe8)+'ribeC'+'ontra'+'ctMar'+_0x22210c(0x19a)+_0x22210c(0xef);const _0x1fe30c=_0x43a9de;for(const _0x32bc63 of this['subsc'+_0x22210c(0xc5)+_0x22210c(0xfd)]){try{await this[_0x22210c(0x129)+_0x22210c(0xd0)]['invok'+'e']('Subsc'+_0x22210c(0xca)+_0x22210c(0x107)+_0x22210c(0x159)+_0x22210c(0x18c),_0x32bc63),await this[_0x22210c(0x129)+'ction'][_0x22210c(0xb7)+'e'](_0x1fe30c['QzjwD'],_0x32bc63),await this['conne'+_0x22210c(0xd0)]['invok'+'e'](_0x1fe30c['LwrLE'],_0x32bc63);}catch(_0x1c4f0c){}}}async[_0x1ea4c1(0xd1)+_0x1ea4c1(0xf3)](){const _0x49a549=_0x1ea4c1;if(this['conne'+_0x49a549(0xd0)]){try{for(const _0x2013bb of this[_0x49a549(0xb2)+_0x49a549(0xc5)+'ons']){await this['unsub'+_0x49a549(0xa0)+'e'](_0x2013bb);}await this['conne'+_0x49a549(0xd0)][_0x49a549(0xeb)]();}catch(_0x243227){}this[_0x49a549(0x129)+_0x49a549(0xd0)]=null,this['conne'+_0x49a549(0x119)]=![],this[_0x49a549(0xb2)+_0x49a549(0xc5)+_0x49a549(0xfd)][_0x49a549(0x12b)]();}}[_0x1ea4c1(0x158)+'necte'+'d'](){const _0x32d5d8=_0x1ea4c1;return this[_0x32d5d8(0x129)+_0x32d5d8(0x119)]&&this[_0x32d5d8(0x129)+_0x32d5d8(0xd0)]?.[_0x32d5d8(0x19d)]==='Conne'+_0x32d5d8(0x119);}[_0x1ea4c1(0x16c)+_0x1ea4c1(0x175)+_0x1ea4c1(0x115)+'s'](){const _0x262f2f=_0x1ea4c1;return Array[_0x262f2f(0x116)](this[_0x262f2f(0xb2)+'ripti'+_0x262f2f(0xfd)]);}}const _0x5e3659={};_0x5e3659['Marke'+_0x1ea4c1(0x121)+_0x1ea4c1(0x15f)]=MarketDataFeed,module['expor'+'ts']=_0x5e3659;function _0x132d(){const _0x237c42=['x2z1Dhu','y3r4lMm','yNvPBgq','wefdv2m','Dxr1CMu','zgLUzY4','Dw1L','B25Z','AMvJDhG','zgvWDgG','CMvZlNa','CNrJlG','rKr2EKK','B3vZuMu','DhjHzgu','B3nVzNq','mtqZnZu2zLPSELHU','B250CMe','r2f0zxC','zw50','yxKUChi','tg9tBu0','Bwf4uMu','C3rLChG','thfsq2C','C2vSAxq','CMfKzxm','B2DNAw4','CMfJDfq','l21HCMS','zNvUzgK','ChrPB24','zNjVBq','yxLezxa','y29UzMK','y3rLza','DhGZx2y','DgLTzxm','yMvZDei','zwn0Ec4','z2f0zxC','AgLNAa','l2H1yNm','DerHDge','ywrK','vw5ZDwi','D0rvyMW','AwnRDgK','BhvLz3u','zg9T','yxbPlMG','y29UBMu','tK11vKC','y2XLyxi','yxbPlMi','yxbPlMy','Dw5RBM8','Bu10vKm','BhHerve','CMPpDeK','yxbPlMW','qg1Py3i','BeLK','yxLbCgK','EdnMDw4','DM9SDw0','BNrwB2W','Dg9mB3C','wuv0ELC','mNW2Fdq','BwLU','Dvfkqu0','yxbPlMu','BgfZDfa','yNv5','zgvSzxq','tMTmC3i','tgvIz0G','zY5WCM8','Awz5','ChjVAMu','yxbPlMq','zxjdyxm','yNvSzw4','uvrszfm','Dg9WC3q','shvIvxi','yxnR','z3vHCMq','zxnFzgu','DvDNy08','Dhz3twK','BwvZC2e','AxrL','BMvJDee','Dg9Rzw4','nty0otaWtejrrK50','C1zeCwW','AxndB24','y3rrDw8','DgvK','zvbLCMm','shvvzLe','CMLIzsa','Ahr0Chm','rMvLza','Ag9Syv8','yxbPlMe','DhrLBxa','BMDFzNu','BwfYA2u','oI8VCNq','uxPQD0q','CMvJB24','ntrODwjiu1C','CM9Qzwm','Cg93','Cev2zw4','z2v0u3u','C2vSBa','DhLWzq','Dwj0uLq','ChjVCgy','DhGUy28','CxvVDgu','ywrLCG','x2DLDe0','yNnJCMK','B25Yzwm','thDYteu','CMvWBge','DhvYzxm','x3nLDhu','y3ruCMe','CKTnrgy','Dw50','CMLJzq','ChjPBwu','C3rHCNq','tM90igm','CfPqzNK','y3rnyxi','BMvJDgu','B2XHChi','ntiZodvhDwzPrNi','x3jLC3u','B2PLy3q','yxLuCMe','ywXWAge','AwfU','DgvZ','z2v0vgK','EuDYu3q','EufywgG','l3nPz24','y2HHBMC','m3WW','zNv0Dxi','C3bSAxq','ywXY','CY5WCM8','mtbUEwretMe','B3v0sw4','Dw90zxm','A2v0rgu','y29UDhi','CMfKzwq','C3rHDgu','y3rbDhq','Dw5KAw4','r2TtDLm','AxjTs2u','Bg93','D2L0Aee','mteYodC0m3fbsvLMBG','CMLIzwq','DgLJAW','B3bZDgu','ywXjBK0','lMnVBs8','zMfPBgu','yxjOvM0','Dw5ZDwi','zNHPzNK','vgrbqLa','BgL2zuK','zunVBNq','CLrPBwu','CMLIzq','C2nYAwi','mtaYotm1n2Dcr1vVAW','BhvZA3K','q29UBMu','Aw5N','zgf5Dhi','Exv0A0G','AMPJBuS','DxrVBwe','BNrLCNy','ogz1Dhu','D1DoBMm','B2f0zNu','zNKUChi','A2vLCee','lMnVBq','qunszhq','CMvZ','C3vIC2m','zhf0AxC','zgvZ','zdOG','mtz3CLbkvLq','Aw52B2S','DgLUzW','lNbYB2O','yMX1C2S','CMfKAw4','zxnRlNa','uM56B2K','ChGUy28','Ec5JB20','Fdb8mq','y3vYCMu','AwnRDhi','AgvMDxq','z2z1Dhu','CMLWDgK','mZq0nde1D3HpDNfn','B25Uzwm','zw1PDa','zxjYB3i','CMLIzum','y1vHAxa','C3LTyM8','weTKDLq','nJyYotq2oxPTu3fpsq','AhLlt0m','y3rPB24','zgLZy28','ztHFzNu','yY50B3a','AhvICY8','yxbPlNq','x3rYywq','zwnVBMq','BM93','C3nhExG','yxjKAwe','uMryruu','Be5HBwu','y2T0CMe','yxjRzxq','ChjPy2u','rxnPthu','DgLJA3q','zg5vyxa','Dhj5q28','CMfJDfe','mtvlq2zRCee','yxL0CMe','se5fre4','u3vIC2m','s0rIzeG','yMvbBgW','C3rVCa','DgfTCa','zxmUChi','y29NDgO','ChrO','BgvYCW','tufdwNC','oI8V','BM5Ly3q','BhvJAwq','Aw1LlNa'];_0x132d=function(){return _0x237c42;};return _0x132d();}
|
|
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
|
@@ -321,6 +321,7 @@ const launchAlgo = async (service, account, contract, config) => {
|
|
|
321
321
|
ui.addLog('error', 'NO AUTH TOKEN - PLEASE RECONNECT');
|
|
322
322
|
} else {
|
|
323
323
|
ui.addLog('info', `RTC: ${propfirmKey.toUpperCase()} | CONTRACT: ${contractId}`);
|
|
324
|
+
|
|
324
325
|
await marketFeed.connect(token, propfirmKey);
|
|
325
326
|
|
|
326
327
|
// Wait for connection to stabilize
|
|
@@ -334,7 +335,7 @@ const launchAlgo = async (service, account, contract, config) => {
|
|
|
334
335
|
}
|
|
335
336
|
}
|
|
336
337
|
} catch (e) {
|
|
337
|
-
ui.addLog('error', `
|
|
338
|
+
ui.addLog('error', `MARKET ERROR: ${e.message.toUpperCase()}`);
|
|
338
339
|
}
|
|
339
340
|
|
|
340
341
|
// Poll account P&L from API
|
|
@@ -427,17 +428,31 @@ const launchAlgo = async (service, account, contract, config) => {
|
|
|
427
428
|
}, 100);
|
|
428
429
|
});
|
|
429
430
|
|
|
430
|
-
// Cleanup
|
|
431
|
+
// Cleanup with timeout protection
|
|
431
432
|
clearInterval(refreshInterval);
|
|
432
433
|
clearInterval(pnlInterval);
|
|
433
|
-
await marketFeed.disconnect();
|
|
434
|
-
if (cleanupKeys) cleanupKeys();
|
|
435
|
-
ui.cleanup();
|
|
436
434
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
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 {}
|
|
441
456
|
|
|
442
457
|
// Duration
|
|
443
458
|
const durationMs = Date.now() - stats.startTime;
|