New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@compendiumfi/pendax

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compendiumfi/pendax - npm Package Compare versions

Comparing version 1.1.16 to 1.1.17

exchanges/blofin.js

2

common/pendaxsocket.js

@@ -1,1 +0,1 @@

function a0_0x3feb(_0x1cc63a,_0x7a5ac9){const _0x40cee9=a0_0x40ce();return a0_0x3feb=function(_0x3febce,_0x27d85a){_0x3febce=_0x3febce-0xb1;let _0x1374f8=_0x40cee9[_0x3febce];return _0x1374f8;},a0_0x3feb(_0x1cc63a,_0x7a5ac9);}const a0_0x584f2c=a0_0x3feb;(function(_0x4ba61e,_0x25ed5f){const _0x337932=a0_0x3feb,_0x2c8142=_0x4ba61e();while(!![]){try{const _0x23c994=-parseInt(_0x337932(0x102))/0x1*(-parseInt(_0x337932(0xeb))/0x2)+parseInt(_0x337932(0xf6))/0x3+parseInt(_0x337932(0xbe))/0x4+parseInt(_0x337932(0xdb))/0x5*(parseInt(_0x337932(0x100))/0x6)+parseInt(_0x337932(0xe5))/0x7+parseInt(_0x337932(0xb5))/0x8+-parseInt(_0x337932(0xd5))/0x9;if(_0x23c994===_0x25ed5f)break;else _0x2c8142['push'](_0x2c8142['shift']());}catch(_0x27a32f){_0x2c8142['push'](_0x2c8142['shift']());}}}(a0_0x40ce,0x9e296));import a0_0x406983 from'ws';import*as a0_0x587f81 from'crypto';import{v4}from'uuid';export class PendaxSocket extends a0_0x406983{#pings=0x0;#pongs=0x0;#pingIntervalTimer;#defaultPingInterval=0x3a98;#defaultReconnectWaitTime=0x1f4;#reconnectTries=0x0;#defaultMaxReconnectTries=-0x1;#options={};#url='';[a0_0x584f2c(0xe8)]=![];[a0_0x584f2c(0xe3)]=![];#closeCode_NORMAL=0xfa0;#closeCode_NOPONG=0xfa1;#closeCode_CLIENTKILL=0xfa2;#closeCode_UNHANDLEDERROR=0xfa3;#closedReason='';#defaultOptions={'name':v4(),'key':a0_0x584f2c(0xb1),'secret':a0_0x584f2c(0xb1),'pingInterval':0x3a98,'autoReconnectOnError':![],'autoReconnectOnClose':![],'retryNumber':0x0,'maxRetries':this.#defaultMaxReconnectTries,'timestampPings':![]};['subscriptions']={};constructor(_0x525e30){const _0x16b8eb=a0_0x584f2c;let _0x140688=_0x525e30?_0x525e30[_0x16b8eb(0x101)]||'':'';super(_0x140688),this[_0x16b8eb(0xee)](),this.#url=_0x140688,this.#options={...this.#defaultOptions,..._0x525e30},this.#options[_0x16b8eb(0xb2)]=this[_0x16b8eb(0xb2)],!this.#options[_0x16b8eb(0xc7)]&&(_0x16b8eb(0xfd)!==_0x16b8eb(0xfb)?this.#options[_0x16b8eb(0xc7)]=this.#defaultMaxReconnectTries:(_0x2a01c9=this[_0x16b8eb(0xb3)][0x0],_0xd09991=this[_0x16b8eb(0xb3)][0x1]||![]));}['getConnectionName'](){const _0x50d7e4=a0_0x584f2c;return this.#options[_0x50d7e4(0xe9)];}['getConnectionUrl'](){return this.#url;}[a0_0x584f2c(0x104)](){const _0x2f88e3=a0_0x584f2c;return this.#options[_0x2f88e3(0x10d)]||this.#defaultPingInterval;}[a0_0x584f2c(0xf3)](){const _0xd29042=a0_0x584f2c;return this.#options[_0xd29042(0xb6)]||!![];}['getSocketState'](){const _0x56037a=a0_0x584f2c;return this[_0x56037a(0x106)];}[a0_0x584f2c(0xd8)](){return this.#options;}[a0_0x584f2c(0xc6)](){const _0x3f8315=a0_0x584f2c;return this.#options[_0x3f8315(0x105)];}['getClosedReason'](){return this.#closedReason;}[a0_0x584f2c(0xcb)](){const _0x49847d=a0_0x584f2c;return this[_0x49847d(0x103)];}[a0_0x584f2c(0xb8)](){const _0x904e5e=a0_0x584f2c;return this[_0x904e5e(0xe8)]==!![];}[a0_0x584f2c(0xba)](){const _0x3874db=a0_0x584f2c;this[_0x3874db(0xe8)]=![];}[a0_0x584f2c(0xc1)](){const _0xb47707=a0_0x584f2c;return this[_0xb47707(0xe0)];}[a0_0x584f2c(0xf9)](){return this['privateChannels'];}[a0_0x584f2c(0xd0)](_0x2766d6){const _0x345c5=a0_0x584f2c;return this[_0x345c5(0xe0)][_0x345c5(0xcf)](_0x2766d6);}[a0_0x584f2c(0xe1)](_0x10c7ae){const _0x39c822=a0_0x584f2c,_0x535049=JSON['stringify'](_0x10c7ae),_0x24b3f9=a0_0x587f81[_0x39c822(0xe6)](_0x39c822(0xd3),this.#options[_0x39c822(0xf5)])[_0x39c822(0xc5)](_0x535049)[_0x39c822(0xc9)](_0x39c822(0xdf));return _0x24b3f9;}#heartbeat(){const _0x5e7c23=a0_0x584f2c;let _0x252ed8=this[_0x5e7c23(0xb3)][0x0];if(_0x252ed8[_0x5e7c23(0x106)]==_0x252ed8[_0x5e7c23(0xde)]){if(_0x252ed8.#pongs<_0x252ed8.#pings)_0x252ed8.#disconnect({'code':_0x252ed8.#closeCode_NOPONG,'msg':_0x5e7c23(0xd9),'socketObject':_0x252ed8},!![]);else{if('FYrzT'===_0x5e7c23(0xd6))_0x252ed8.#pings=_0x252ed8.#pings+0x1,_0x252ed8.#options[_0x5e7c23(0xbc)]===!![]?console[_0x5e7c23(0xda)](_0x5e7c23(0xea)+_0x252ed8.#pings+':\x20'+new Date()['toUTCString']()):console['log']('ping\x20'+_0x252ed8.#pings),_0x252ed8[_0x5e7c23(0xf7)](),_0x252ed8.#options[_0x5e7c23(0xb9)]&&_0x252ed8.#options[_0x5e7c23(0xb9)]();else throw _0x5e7c23(0x108);}}}[a0_0x584f2c(0xee)](){const _0x590252=a0_0x584f2c;this['on'](_0x590252(0xc3),this[_0x590252(0x10f)]),this['on']('close',this['onClose']),this['on']('error',this[_0x590252(0xf4)]),this['on'](_0x590252(0xbf),this[_0x590252(0xf8)]),this['on']('pong',this.#onPong);}[a0_0x584f2c(0x109)](_0x54c685,_0x20a807){const _0x5e93b0=a0_0x584f2c;let _0x14e809,_0x2743a0;if(_0x54c685)_0x14e809=_0x54c685,_0x2743a0=_0x20a807||![];else{if(this[_0x5e93b0(0xb3)]&&this[_0x5e93b0(0xb3)][_0x5e93b0(0xd1)]>0x0)_0x5e93b0(0xf2)!==_0x5e93b0(0xc2)?(_0x14e809=this[_0x5e93b0(0xb3)][0x0],_0x2743a0=this[_0x5e93b0(0xb3)][0x1]||![]):(_0x1bab65=_0x16d02a,_0x4452d4=_0x19f21a||![]);else throw'kill()\x20called\x20with\x20no\x20source';}_0x14e809.#disconnect({'code':_0x14e809.#closeCode_CLIENTKILL,'msg':_0x5e93b0(0xbd),'socketObject':_0x14e809},_0x2743a0);}[a0_0x584f2c(0x10f)](){const _0x20955a=a0_0x584f2c;this.#options[_0x20955a(0xfc)]=this,console['log'](_0x20955a(0xed)),this.#startPingTimer(),this[_0x20955a(0xe3)]=!![];if(this.#options[_0x20955a(0xca)])this.#options[_0x20955a(0xca)](this.#options);else this.#options['clientOnOpen']&&this.#options[_0x20955a(0x107)](this.#options);}[a0_0x584f2c(0x10e)](_0x4fd487,_0x1b1ec9){const _0x28811d=a0_0x584f2c;this.#pingIntervalTimer&&(clearInterval(this.#pingIntervalTimer),this.#pingIntervalTimer=undefined);this.#options[_0x28811d(0xe7)]&&_0x4fd487!==this.#closeCode_NORMAL&&this.#options[_0x28811d(0xdd)]&&(this[_0x28811d(0xb4)](),this.#startReconnectTimer(_0x4fd487));if(this.#options['subclassOnClose'])this.#options[_0x28811d(0x10c)](_0x4fd487,_0x1b1ec9,this.#options);else this.#options[_0x28811d(0xbb)]?this.#options[_0x28811d(0xbb)](_0x4fd487,_0x1b1ec9,this.#options):console[_0x28811d(0xda)](_0x28811d(0xb7)+_0x4fd487+_0x28811d(0xfe)+_0x1b1ec9);this[_0x28811d(0xe3)]=![],this['loggedIn']=![];}[a0_0x584f2c(0xf4)](_0x562baf){const _0x2c3d28=a0_0x584f2c;this.#pingIntervalTimer&&(clearInterval(this.#pingIntervalTimer),this.#pingIntervalTimer=undefined);this.#options[_0x2c3d28(0xff)]===!![]&&this.#options[_0x2c3d28(0xdd)]&&(this['bumpRetries'](),this.#startReconnectTimer());if(this.#options[_0x2c3d28(0xce)]){if(_0x2c3d28(0x110)!==_0x2c3d28(0x110))return this[_0x2c3d28(0xe0)]['includes'](_0x8f8c57);else this.#options['subclassOnError'](_0x562baf,this.#options);}else this.#options['clientOnError']?this.#options['clientOnError'](_0x562baf,this.#options):_0x2c3d28(0xdc)!==_0x2c3d28(0xf1)?console[_0x2c3d28(0xda)](_0x562baf):this['close'](_0x121f19,_0x2de2e1);this['connected']=![],this[_0x2c3d28(0xe8)]=![];}[a0_0x584f2c(0xf8)](_0x69747e){const _0x5c2e3f=a0_0x584f2c;if(this.#options['subclassOnMessage'])this.#options[_0x5c2e3f(0xef)](this,_0x69747e,this.#options);else{if(this.#options[_0x5c2e3f(0xcc)]){if(_0x5c2e3f(0xd7)==='OPNqn')this.#options['clientOnError'](_0x69747e,this.#options);else return this[_0x5c2e3f(0x106)];}}}#onPong(_0x5986da){const _0x5619b9=a0_0x584f2c;if(this.#options[_0x5619b9(0xc0)])_0x5619b9(0xf0)!==_0x5619b9(0xc4)?this.#options[_0x5619b9(0xc0)](this,_0x5986da,this.#options):_0xdbf1da[_0x5619b9(0xda)](_0x5619b9(0xb7)+_0x4a15fc+_0x5619b9(0xfe)+_0x1797a4);else{if(_0x5619b9(0xe4)===_0x5619b9(0xc8))return this[_0x5619b9(0xe0)];else this.#pongs=this.#pongs+0x1,console['log'](_0x5619b9(0xcd)+this.#pongs);}}#disconnect(_0x2f3fdc,_0x1323ee){const _0x3d2297=a0_0x584f2c;let _0x2d919a=parseInt(_0x2f3fdc['code'])||0x0,_0x551cae=_0x2f3fdc[_0x3d2297(0xe2)]||'';this.#closedReason=_0x551cae;if(_0x1323ee){if(_0x3d2297(0xd4)===_0x3d2297(0xec))return this['privateChannels'];else this[_0x3d2297(0x10b)]();}else this[_0x3d2297(0xd2)](_0x2d919a,_0x551cae);}['bumpRetries'](){const _0x447e44=a0_0x584f2c;this.#options[_0x447e44(0x105)]=this.#options['retryNumber']+0x1;}[a0_0x584f2c(0x10a)](){this.#options['retryNumber']=0x0;}#startPingTimer(){const _0x5a20c1=a0_0x584f2c;this.#pingIntervalTimer=setInterval(this.#heartbeat,this.#options[_0x5a20c1(0x10d)]||this.#defaultPingInterval,this);}#startReconnectTimer(_0x118b0b){const _0x569d26=a0_0x584f2c;this.#options[_0x569d26(0xdd)]&&('xtBhD'==='xtBhD'?setTimeout(this.#options['clientReconnect'],this.#options[_0x569d26(0xfa)]||this.#defaultReconnectWaitTime,this,_0x118b0b):_0xa5ab7c[_0x569d26(0xda)](_0x1040a2));}}function a0_0x40ce(){const _0x193fa4=['352377UFTHxH','subscriptions','getPingInterval','retryNumber','readyState','clientOnOpen','kill()\x20called\x20with\x20no\x20source','kill','resetRetries','terminate','subclassOnClose','pingInterval','onClose','onOpen','psghk','none','removeSubscriptionHavingArgs','_timerArgs','bumpRetries','7292656iVTcDK','autoReconnect','closed:\x20code\x20=\x20','isLoggedIn','customPing','loggedOut','clientOnClose','timestampPings','closed\x20from\x20client','4890592wGHQVE','message','subclassOnPong','getPublicChannels','CXaVi','open','DwDcf','update','getRetryNumber','maxRetries','rTcKO','digest','subclassOnOpen','getSubscriptions','clientOnMessage','pong:\x20','subclassOnError','includes','isPublic','length','close','sha256','SlWMm','35594163HUUreq','FYrzT','OPNqn','getOptions','closed\x20from\x20ping()','log','4065fdXlEJ','VMDmF','clientReconnect','OPEN','hex','publicChannels','getSubscriptionArgsHash','msg','connected','AEcPg','8640975cTOwFR','Hmac','autoReconnectOnClose','loggedIn','name','ping\x20','2fNuxFU','gMlmt','opened','connect','subclassOnMessage','pJFhe','NJaUl','ytyon','getAutoReconnect','onError','secret','659769qUFUhy','ping','onMessage','getPrivateChannels','reconnectWaitTime','yuNvE','socket','tJsZH',',\x20msg\x20=\x20','autoReconnectOnError','4884jrtjBi','url'];a0_0x40ce=function(){return _0x193fa4;};return a0_0x40ce();}
function a0_0x29da(_0x18c980,_0x4ce86c){const _0x2b5ac8=a0_0x2b5a();return a0_0x29da=function(_0x29da81,_0x1852c6){_0x29da81=_0x29da81-0x66;let _0x101813=_0x2b5ac8[_0x29da81];return _0x101813;},a0_0x29da(_0x18c980,_0x4ce86c);}const a0_0x3a9946=a0_0x29da;(function(_0x4454d6,_0x38c8b2){const _0xdb36c7=a0_0x29da,_0x244c66=_0x4454d6();while(!![]){try{const _0x1c2734=parseInt(_0xdb36c7(0xbd))/0x1*(-parseInt(_0xdb36c7(0xa8))/0x2)+parseInt(_0xdb36c7(0x9c))/0x3*(-parseInt(_0xdb36c7(0x6f))/0x4)+parseInt(_0xdb36c7(0xa7))/0x5+parseInt(_0xdb36c7(0x7a))/0x6+-parseInt(_0xdb36c7(0x86))/0x7+-parseInt(_0xdb36c7(0x83))/0x8*(-parseInt(_0xdb36c7(0xad))/0x9)+parseInt(_0xdb36c7(0x8c))/0xa*(-parseInt(_0xdb36c7(0xa6))/0xb);if(_0x1c2734===_0x38c8b2)break;else _0x244c66['push'](_0x244c66['shift']());}catch(_0xab512d){_0x244c66['push'](_0x244c66['shift']());}}}(a0_0x2b5a,0x532a5));import a0_0x4cb359 from'ws';import*as a0_0x5202be from'crypto';import{v4}from'uuid';function a0_0x2b5a(){const _0x56e4b=['publicChannels','eyANg','1208NPBWkr','none','connected','4158938ARYjko','hNzPm','clientOnOpen','ping\x20','nVnDU','timestampPings','1180WcCewf','subclassOnPong','reconnectWaitTime','clientOnMessage','bumpRetries','message','stringify','getPublicChannels','subclassOnClose',',\x20msg\x20=\x20','_timerArgs','autoReconnectOnClose','getConnectionName','terminate','MVimm','privateChannels','401118WHFXnm','getConnectionUrl','closed\x20from\x20ping()','isLoggedIn','msg','mnOKo','onOpen','WgEFO','onError','hex','67111SWmFSK','2438615tARuTi','23624GETIBt','MJtRx','log','getAutoReconnect','loggedOut','40383dvWFtA','open','connect','loggedIn','clientOnClose','ping','getPrivateChannels','clientOnError','code','getOptions','readyState','sha256','onClose','clientReconnect','subclassOnOpen','pong:\x20','1XaoACa','digest','EsOIa','retryNumber','vULjQ','Hmac','isPublic','pingInterval','LGgeM','includes','close','subclassOnError','secret','name','YdURd','onMessage','4UAQayg','customPing','pong','YunEq','autoReconnect','subscriptions','closed:\x20code\x20=\x20','HOqTi','subclassOnMessage','oKilm','removeSubscriptionHavingArgs','3809730VRNIpW','closed\x20from\x20client','getSubscriptionArgsHash','maxRetries','opened','url','getSubscriptions'];a0_0x2b5a=function(){return _0x56e4b;};return a0_0x2b5a();}export class PendaxSocket extends a0_0x4cb359{#pings=0x0;#pongs=0x0;#pingIntervalTimer;#defaultPingInterval=0x3a98;#defaultReconnectWaitTime=0x1f4;#reconnectTries=0x0;#defaultMaxReconnectTries=-0x1;#options={};#url='';[a0_0x3a9946(0xb0)]=![];[a0_0x3a9946(0x85)]=![];#closeCode_NORMAL=0xfa0;#closeCode_NOPONG=0xfa1;#closeCode_CLIENTKILL=0xfa2;#closeCode_UNHANDLEDERROR=0xfa3;#closedReason='';#defaultOptions={'name':v4(),'key':a0_0x3a9946(0x84),'secret':'none','pingInterval':0x3a98,'autoReconnectOnError':![],'autoReconnectOnClose':![],'retryNumber':0x0,'maxRetries':this.#defaultMaxReconnectTries,'timestampPings':![]};[a0_0x3a9946(0x74)]={};constructor(_0x5b0261){const _0x175385=a0_0x3a9946;let _0x25037c=_0x5b0261?_0x5b0261[_0x175385(0x7f)]||'':'';super(_0x25037c),this[_0x175385(0xaf)](),this.#url=_0x25037c,this.#options={...this.#defaultOptions,..._0x5b0261},this.#options[_0x175385(0x79)]=this[_0x175385(0x79)],!this.#options[_0x175385(0x7d)]&&(this.#options[_0x175385(0x7d)]=this.#defaultMaxReconnectTries);}[a0_0x3a9946(0x98)](){const _0x226363=a0_0x3a9946;return this.#options[_0x226363(0x6c)];}[a0_0x3a9946(0x9d)](){return this.#url;}['getPingInterval'](){return this.#options['pingInterval']||this.#defaultPingInterval;}[a0_0x3a9946(0xab)](){const _0x32d0b8=a0_0x3a9946;return this.#options[_0x32d0b8(0x73)]||!![];}['getSocketState'](){const _0x2d4910=a0_0x3a9946;return this[_0x2d4910(0xb7)];}[a0_0x3a9946(0xb6)](){return this.#options;}['getRetryNumber'](){const _0x11f47f=a0_0x3a9946;return this.#options[_0x11f47f(0xc0)];}['getClosedReason'](){return this.#closedReason;}[a0_0x3a9946(0x80)](){return this['subscriptions'];}[a0_0x3a9946(0x9f)](){return this['loggedIn']==!![];}[a0_0x3a9946(0xac)](){const _0x514eca=a0_0x3a9946;this[_0x514eca(0xb0)]=![];}[a0_0x3a9946(0x93)](){return this['publicChannels'];}[a0_0x3a9946(0xb3)](){const _0x56a1d8=a0_0x3a9946;return this[_0x56a1d8(0x9b)];}[a0_0x3a9946(0xc3)](_0x5ed041){const _0x34bbca=a0_0x3a9946;return this['publicChannels'][_0x34bbca(0x68)](_0x5ed041);}[a0_0x3a9946(0x7c)](_0xe56bdc){const _0x2ad237=a0_0x3a9946,_0x4ada06=JSON[_0x2ad237(0x92)](_0xe56bdc),_0x592559=a0_0x5202be[_0x2ad237(0xc2)](_0x2ad237(0xb8),this.#options[_0x2ad237(0x6b)])['update'](_0x4ada06)[_0x2ad237(0xbe)](_0x2ad237(0xa5));return _0x592559;}#heartbeat(){const _0x59312f=a0_0x3a9946;let _0xd5a718=this[_0x59312f(0x96)][0x0];if(_0xd5a718[_0x59312f(0xb7)]==_0xd5a718['OPEN']){if(_0xd5a718.#pongs<_0xd5a718.#pings)_0xd5a718.#disconnect({'code':_0xd5a718.#closeCode_NOPONG,'msg':_0x59312f(0x9e),'socketObject':_0xd5a718},!![]);else{_0xd5a718.#pings=_0xd5a718.#pings+0x1;if(_0xd5a718.#options[_0x59312f(0x8b)]===!![])_0x59312f(0x78)===_0x59312f(0x82)?this['loggedIn']=![]:console['log']('ping\x20'+_0xd5a718.#pings+':\x20'+new Date()['toUTCString']());else{if(_0x59312f(0xa1)===_0x59312f(0xa1))console[_0x59312f(0xaa)](_0x59312f(0x89)+_0xd5a718.#pings);else return this['loggedIn']==!![];}_0xd5a718[_0x59312f(0xb2)](),_0xd5a718.#options[_0x59312f(0x70)]&&('FkpXa'===_0x59312f(0xc1)?(_0x102b12=_0x178ac5,_0x1d3ecc=_0x2f6560||![]):_0xd5a718.#options['customPing']());}}}['connect'](){const _0x28eb05=a0_0x3a9946;this['on'](_0x28eb05(0xae),this[_0x28eb05(0xa2)]),this['on']('close',this[_0x28eb05(0xb9)]),this['on']('error',this[_0x28eb05(0xa4)]),this['on'](_0x28eb05(0x91),this[_0x28eb05(0x6e)]),this['on'](_0x28eb05(0x71),this.#onPong);}['kill'](_0x2627db,_0x4651e6){const _0x3156bf=a0_0x3a9946;let _0x3162e4,_0x1273b7;if(_0x2627db)_0x3162e4=_0x2627db,_0x1273b7=_0x4651e6||![];else{if(this['_timerArgs']&&this[_0x3156bf(0x96)]['length']>0x0)_0x3162e4=this[_0x3156bf(0x96)][0x0],_0x1273b7=this[_0x3156bf(0x96)][0x1]||![];else{if(_0x3156bf(0x76)!==_0x3156bf(0x72))throw'kill()\x20called\x20with\x20no\x20source';else this['close'](_0x5b4a4b,_0x81bf98);}}_0x3162e4.#disconnect({'code':_0x3162e4.#closeCode_CLIENTKILL,'msg':_0x3156bf(0x7b),'socketObject':_0x3162e4},_0x1273b7);}[a0_0x3a9946(0xa2)](){const _0x3570db=a0_0x3a9946;this.#options['socket']=this,console[_0x3570db(0xaa)](_0x3570db(0x7e)),this.#startPingTimer(),this['connected']=!![];if(this.#options[_0x3570db(0xbb)])this.#options['subclassOnOpen'](this.#options);else this.#options[_0x3570db(0x88)]&&this.#options[_0x3570db(0x88)](this.#options);}['onClose'](_0x1206c1,_0x5bd153){const _0x2186cc=a0_0x3a9946;this.#pingIntervalTimer&&(clearInterval(this.#pingIntervalTimer),this.#pingIntervalTimer=undefined);this.#options[_0x2186cc(0x97)]&&_0x1206c1!==this.#closeCode_NORMAL&&this.#options[_0x2186cc(0xba)]&&(this[_0x2186cc(0x90)](),this.#startReconnectTimer(_0x1206c1));if(this.#options[_0x2186cc(0x94)])this.#options[_0x2186cc(0x94)](_0x1206c1,_0x5bd153,this.#options);else{if(this.#options[_0x2186cc(0xb1)])this.#options[_0x2186cc(0xb1)](_0x1206c1,_0x5bd153,this.#options);else{if(_0x2186cc(0x8a)===_0x2186cc(0xa9))return this[_0x2186cc(0x9b)];else console[_0x2186cc(0xaa)](_0x2186cc(0x75)+_0x1206c1+',\x20msg\x20=\x20'+_0x5bd153);}}this[_0x2186cc(0x85)]=![],this[_0x2186cc(0xb0)]=![];}[a0_0x3a9946(0xa4)](_0x9f9b5d){const _0x1615cd=a0_0x3a9946;this.#pingIntervalTimer&&(clearInterval(this.#pingIntervalTimer),this.#pingIntervalTimer=undefined);this.#options['autoReconnectOnError']===!![]&&this.#options[_0x1615cd(0xba)]&&(_0x1615cd(0x67)!==_0x1615cd(0xbf)?(this['bumpRetries'](),this.#startReconnectTimer()):this[_0x1615cd(0x99)]());if(this.#options['subclassOnError'])this.#options[_0x1615cd(0x6a)](_0x9f9b5d,this.#options);else{if(this.#options['clientOnError']){if(_0x1615cd(0x6d)!==_0x1615cd(0x87))this.#options[_0x1615cd(0xb4)](_0x9f9b5d,this.#options);else return this[_0x1615cd(0x81)];}else console[_0x1615cd(0xaa)](_0x9f9b5d);}this[_0x1615cd(0x85)]=![],this[_0x1615cd(0xb0)]=![];}['onMessage'](_0x3c536c){const _0x39a7e0=a0_0x3a9946;if(this.#options['subclassOnMessage'])this.#options[_0x39a7e0(0x77)](this,_0x3c536c,this.#options);else{if(this.#options[_0x39a7e0(0x8f)]){if('oJpwu'===_0x39a7e0(0x9a))return this[_0x39a7e0(0xb7)];else this.#options[_0x39a7e0(0xb4)](_0x3c536c,this.#options);}}}#onPong(_0x52d5a2){const _0x54b0ea=a0_0x3a9946;this.#options[_0x54b0ea(0x8d)]?'WgEFO'!==_0x54b0ea(0xa3)?_0x47051f[_0x54b0ea(0xaa)]('closed:\x20code\x20=\x20'+_0x46db5a+_0x54b0ea(0x95)+_0xadfd13):this.#options[_0x54b0ea(0x8d)](this,_0x52d5a2,this.#options):(this.#pongs=this.#pongs+0x1,console['log'](_0x54b0ea(0xbc)+this.#pongs));}#disconnect(_0x2ee0eb,_0x5caf9e){const _0x5cbeac=a0_0x3a9946;let _0x58a6cc=parseInt(_0x2ee0eb[_0x5cbeac(0xb5)])||0x0,_0x321944=_0x2ee0eb[_0x5cbeac(0xa0)]||'';this.#closedReason=_0x321944,_0x5caf9e?this[_0x5cbeac(0x99)]():this[_0x5cbeac(0x69)](_0x58a6cc,_0x321944);}[a0_0x3a9946(0x90)](){const _0x1bd372=a0_0x3a9946;this.#options[_0x1bd372(0xc0)]=this.#options[_0x1bd372(0xc0)]+0x1;}['resetRetries'](){this.#options['retryNumber']=0x0;}#startPingTimer(){const _0x4dbd50=a0_0x3a9946;this.#pingIntervalTimer=setInterval(this.#heartbeat,this.#options[_0x4dbd50(0x66)]||this.#defaultPingInterval,this);}#startReconnectTimer(_0x3e41b1){const _0x136534=a0_0x3a9946;this.#options['clientReconnect']&&setTimeout(this.#options[_0x136534(0xba)],this.#options[_0x136534(0x8e)]||this.#defaultReconnectWaitTime,this,_0x3e41b1);}}

@@ -1,1 +0,1 @@

const a0_0x1cd4b5=a0_0x5d77;(function(_0x162da6,_0x39e2e2){const _0x4223db=a0_0x5d77,_0x577fb5=_0x162da6();while(!![]){try{const _0x228d15=-parseInt(_0x4223db(0x143))/0x1*(parseInt(_0x4223db(0x155))/0x2)+-parseInt(_0x4223db(0x160))/0x3+parseInt(_0x4223db(0x147))/0x4*(parseInt(_0x4223db(0x13c))/0x5)+-parseInt(_0x4223db(0x132))/0x6+parseInt(_0x4223db(0x137))/0x7*(-parseInt(_0x4223db(0x142))/0x8)+-parseInt(_0x4223db(0x148))/0x9*(parseInt(_0x4223db(0x153))/0xa)+parseInt(_0x4223db(0x161))/0xb*(parseInt(_0x4223db(0x157))/0xc);if(_0x228d15===_0x39e2e2)break;else _0x577fb5['push'](_0x577fb5['shift']());}catch(_0x2fdef4){_0x577fb5['push'](_0x577fb5['shift']());}}}(a0_0x3498,0xaabcf));import a0_0x533016 from'axios';function a0_0x5d77(_0x108cb2,_0x516896){const _0x3498ab=a0_0x3498();return a0_0x5d77=function(_0x5d77ae,_0x14e4b8){_0x5d77ae=_0x5d77ae-0x12e;let _0xceda31=_0x3498ab[_0x5d77ae];return _0xceda31;},a0_0x5d77(_0x108cb2,_0x516896);}import a0_0x4c99be from'crypto';import{BinanceSocket}from'../sockets/binancesocket.js';function a0_0x3498(){const _0x37f679=['TRADE','Hmac','apiKey','7006278coVFTe','digest','recvWindow','push','join','512757JPSrDq','apiSecret','usdt','&signature=','exchange','7095HlfavX','createSignature','aLPqW','sockets','XKQNn','getServerTime','88BRmBWF','16765FhsNtE','secret','authenticate','https://api.binance.com','244TrqOIx','9YlOxwE','hex','recvWindow=','sha256','exchangename','publicApis','binance','update','filter','keys','label','988850ZWIvPF','futuresMarginType','110tAabUf','McFdB','23394852BIsveC','queryString','margintype','key','log','timestamp','executeRequest','name','exchangeid','875772iSDJNi','22OOpbOz','createHeader','url','now','Missing\x20params:\x20','/api/v3/ping?','formatQuery'];a0_0x3498=function(){return _0x37f679;};return a0_0x3498();}import a0_0xe6832b from'short-unique-id';export class Binance{[a0_0x1cd4b5(0x14d)]=new Array();[a0_0x1cd4b5(0x13f)]={};constructor(_0x7f8b6a){const _0x414ab7=a0_0x1cd4b5;this['url']=_0x414ab7(0x146),this[_0x414ab7(0x145)]=_0x7f8b6a[_0x414ab7(0x145)]==undefined?!![]:_0x7f8b6a[_0x414ab7(0x145)],this[_0x414ab7(0x15e)]=_0x7f8b6a[_0x414ab7(0x13b)][_0x414ab7(0x14c)]==undefined?_0x414ab7(0x14e):_0x7f8b6a['exchange'][_0x414ab7(0x14c)],this[_0x414ab7(0x15f)]=_0x7f8b6a[_0x414ab7(0x13b)]['id'],this[_0x414ab7(0x131)]=_0x7f8b6a[_0x414ab7(0x15a)]==undefined?'':_0x7f8b6a[_0x414ab7(0x15a)],this['apiSecret']=_0x7f8b6a[_0x414ab7(0x144)]==undefined?'':_0x7f8b6a[_0x414ab7(0x144)],this[_0x414ab7(0x152)]=_0x7f8b6a[_0x414ab7(0x152)],this[_0x414ab7(0x154)]=_0x7f8b6a[_0x414ab7(0x159)]?_0x7f8b6a[_0x414ab7(0x159)]:_0x414ab7(0x139),this[_0x414ab7(0x14d)]['push'](['testConnectivity',_0x414ab7(0x141)]);}async[a0_0x1cd4b5(0x162)](){const _0x275416=a0_0x1cd4b5;let _0x5b3969={'X-MBX-APIKEY':this[_0x275416(0x131)]};return _0x5b3969;}[a0_0x1cd4b5(0x13d)](_0x518bb6,_0x56bede){const _0x2c05c0=a0_0x1cd4b5;return a0_0x4c99be[_0x2c05c0(0x130)](_0x2c05c0(0x14b),_0x56bede)[_0x2c05c0(0x14f)](_0x518bb6)[_0x2c05c0(0x133)]('hex');}async[a0_0x1cd4b5(0x15d)](_0x21a283,_0x292329,_0x4e8217,_0xb1e2a4){const _0x19f379=a0_0x1cd4b5;let _0x26ff2d=Date[_0x19f379(0x164)](),_0x214db5=await this[_0x19f379(0x162)]();const _0xf52b95=0x1388;let _0x1b3c30=_0xb1e2a4!=null?_0x4e8217[_0x19f379(0x150)](_0x121a24=>!Object[_0x19f379(0x151)](_0xb1e2a4)['includes'](_0x121a24)):_0x4e8217;if(_0x1b3c30['length']==0x0){let _0xa2272d=new Array();for(const _0x92758f in _0xb1e2a4){if(_0x19f379(0x140)===_0x19f379(0x13e)){let _0xfeb122=_0x1e6249[_0x19f379(0x158)]['join']('&');_0xfeb122!=''&&(_0xfeb122=_0xfeb122+'&');_0xfeb122=_0xfeb122+_0x19f379(0x14a)+_0x5b5eed[_0x19f379(0x134)]+'&timestamp='+_0x8751f[_0x19f379(0x15c)];let _0x57f247=this['createSignature'](_0xfeb122,this[_0x19f379(0x138)]);return _0xfeb122=_0xfeb122+_0x19f379(0x13a)+_0x57f247,_0xfeb122;}else _0xa2272d[_0x19f379(0x135)](_0x92758f+'='+_0xb1e2a4[_0x92758f]);}let _0x83c999=this[_0x19f379(0x12e)]({'timestamp':_0x26ff2d,'recvWindow':_0xf52b95,'queryString':_0xa2272d},_0x19f379(0x12f)),_0x47a30e={'baseURL':this[_0x19f379(0x163)],'url':_0x21a283+_0x83c999,'method':_0x292329,'headers':_0x214db5};console[_0x19f379(0x15b)](_0x47a30e);const _0x3b5b3b=await a0_0x533016(_0x47a30e);return _0x3b5b3b;}else{if(_0x19f379(0x156)!==_0x19f379(0x156))return _0x23fcb2['Hmac']('sha256',_0x3b6b1d)[_0x19f379(0x14f)](_0x301975)[_0x19f379(0x133)](_0x19f379(0x149));else throw{'message':_0x19f379(0x165)+_0x1b3c30['join'](',')};}}async['testConnectivity'](){const _0x3698f5=a0_0x1cd4b5,_0x3cc8a2=await this[_0x3698f5(0x15d)](_0x3698f5(0x166),'GET',[]);return _0x3cc8a2;}[a0_0x1cd4b5(0x12e)](_0x394c1){const _0x3dc5b1=a0_0x1cd4b5;let _0x221025=_0x394c1['queryString'][_0x3dc5b1(0x136)]('&');if(_0x221025!=''){if('OMkoy'!=='McaJS')_0x221025=_0x221025+'&';else{let _0x5c7e5b={'X-MBX-APIKEY':this[_0x3dc5b1(0x131)]};return _0x5c7e5b;}}_0x221025=_0x221025+_0x3dc5b1(0x14a)+_0x394c1['recvWindow']+'&timestamp='+_0x394c1['timestamp'];let _0x238447=this[_0x3dc5b1(0x13d)](_0x221025,this['apiSecret']);return _0x221025=_0x221025+_0x3dc5b1(0x13a)+_0x238447,_0x221025;}}
const a0_0x24572e=a0_0x346b;(function(_0x56eb4c,_0x2fc240){const _0x4d6117=a0_0x346b,_0x160e00=_0x56eb4c();while(!![]){try{const _0x1517bb=-parseInt(_0x4d6117(0x178))/0x1+parseInt(_0x4d6117(0x14f))/0x2+parseInt(_0x4d6117(0x171))/0x3+-parseInt(_0x4d6117(0x159))/0x4*(-parseInt(_0x4d6117(0x14d))/0x5)+-parseInt(_0x4d6117(0x161))/0x6+-parseInt(_0x4d6117(0x155))/0x7+-parseInt(_0x4d6117(0x167))/0x8*(-parseInt(_0x4d6117(0x15d))/0x9);if(_0x1517bb===_0x2fc240)break;else _0x160e00['push'](_0x160e00['shift']());}catch(_0x43fd33){_0x160e00['push'](_0x160e00['shift']());}}}(a0_0x28b2,0xdb183));function a0_0x28b2(){const _0x1c99ce=['recvWindow','executeRequest','recvWindow=','name','keys','label','TRADE','5259057MHqmkj','join','createHeader','update','sockets','sha256','formatQuery','1777767zGURZk','https://api.binance.com','testConnectivity','createSignature','Missing\x20params:\x20','url','hex','GET','push','2932545bRdoUV','futuresMarginType','1168104TjVYom','includes','apiSecret','authenticate','digest','exchangename','5863893eUvFII','&timestamp=','secret','log','4KmmdtT','margintype','publicApis','timestamp','218223SjXpAw','/api/v3/ping?','vFlio','&signature=','1410606LWRkBT','binance','exchangeid','getServerTime','usdt','exchange','272LaIAjE','apiKey','key'];a0_0x28b2=function(){return _0x1c99ce;};return a0_0x28b2();}function a0_0x346b(_0x16d484,_0x588f5a){const _0x28b252=a0_0x28b2();return a0_0x346b=function(_0x346b21,_0x16822b){_0x346b21=_0x346b21-0x148;let _0x3b8e56=_0x28b252[_0x346b21];return _0x3b8e56;},a0_0x346b(_0x16d484,_0x588f5a);}import a0_0x59e668 from'axios';import a0_0x2d60c5 from'crypto';import{BinanceSocket}from'../sockets/binancesocket.js';import a0_0x3d8c40 from'short-unique-id';export class Binance{[a0_0x24572e(0x15b)]=new Array();[a0_0x24572e(0x175)]={};constructor(_0x3fad1b){const _0x302352=a0_0x24572e;this[_0x302352(0x149)]=_0x302352(0x179),this[_0x302352(0x152)]=_0x3fad1b[_0x302352(0x152)]==undefined?!![]:_0x3fad1b[_0x302352(0x152)],this[_0x302352(0x16d)]=_0x3fad1b[_0x302352(0x166)][_0x302352(0x154)]==undefined?_0x302352(0x162):_0x3fad1b[_0x302352(0x166)][_0x302352(0x154)],this[_0x302352(0x163)]=_0x3fad1b[_0x302352(0x166)]['id'],this[_0x302352(0x168)]=_0x3fad1b[_0x302352(0x169)]==undefined?'':_0x3fad1b[_0x302352(0x169)],this[_0x302352(0x151)]=_0x3fad1b[_0x302352(0x157)]==undefined?'':_0x3fad1b[_0x302352(0x157)],this[_0x302352(0x16f)]=_0x3fad1b[_0x302352(0x16f)],this[_0x302352(0x14e)]=_0x3fad1b[_0x302352(0x15a)]?_0x3fad1b[_0x302352(0x15a)]:_0x302352(0x165),this[_0x302352(0x15b)][_0x302352(0x14c)]([_0x302352(0x17a),_0x302352(0x164)]);}async[a0_0x24572e(0x173)](){const _0x4d2d5f=a0_0x24572e;let _0x56de5d={'X-MBX-APIKEY':this[_0x4d2d5f(0x168)]};return _0x56de5d;}[a0_0x24572e(0x17b)](_0x5c7639,_0x1520de){const _0x4d0dd7=a0_0x24572e;return a0_0x2d60c5['Hmac'](_0x4d0dd7(0x176),_0x1520de)[_0x4d0dd7(0x174)](_0x5c7639)['digest'](_0x4d0dd7(0x14a));}async[a0_0x24572e(0x16b)](_0x154a2c,_0x13b0cf,_0x67c77b,_0x13f5b2){const _0x2ec9a9=a0_0x24572e;let _0x91caf2=Date['now'](),_0x389f63=await this[_0x2ec9a9(0x173)]();const _0x14af3d=0x1388;let _0x1cccf6=_0x13f5b2!=null?_0x67c77b['filter'](_0x2a0e09=>!Object[_0x2ec9a9(0x16e)](_0x13f5b2)[_0x2ec9a9(0x150)](_0x2a0e09)):_0x67c77b;if(_0x1cccf6['length']==0x0){let _0x26bbd7=new Array();for(const _0x190896 in _0x13f5b2){_0x26bbd7[_0x2ec9a9(0x14c)](_0x190896+'='+_0x13f5b2[_0x190896]);}let _0x5630f5=this[_0x2ec9a9(0x177)]({'timestamp':_0x91caf2,'recvWindow':_0x14af3d,'queryString':_0x26bbd7},_0x2ec9a9(0x170)),_0x242b73={'baseURL':this[_0x2ec9a9(0x149)],'url':_0x154a2c+_0x5630f5,'method':_0x13b0cf,'headers':_0x389f63};console[_0x2ec9a9(0x158)](_0x242b73);const _0x44b0e7=await a0_0x59e668(_0x242b73);return _0x44b0e7;}else{if('VEPLD'===_0x2ec9a9(0x15f))return _0x546e94['Hmac'](_0x2ec9a9(0x176),_0x54d73b)[_0x2ec9a9(0x174)](_0x20f109)[_0x2ec9a9(0x153)]('hex');else throw{'message':_0x2ec9a9(0x148)+_0x1cccf6['join'](',')};}}async[a0_0x24572e(0x17a)](){const _0x236b35=a0_0x24572e,_0x413259=await this['executeRequest'](_0x236b35(0x15e),_0x236b35(0x14b),[]);return _0x413259;}['formatQuery'](_0x2dc1cd){const _0x327e1b=a0_0x24572e;let _0x1a0801=_0x2dc1cd['queryString'][_0x327e1b(0x172)]('&');_0x1a0801!=''&&(_0x1a0801=_0x1a0801+'&');_0x1a0801=_0x1a0801+_0x327e1b(0x16c)+_0x2dc1cd[_0x327e1b(0x16a)]+_0x327e1b(0x156)+_0x2dc1cd[_0x327e1b(0x15c)];let _0x2d3876=this['createSignature'](_0x1a0801,this[_0x327e1b(0x151)]);return _0x1a0801=_0x1a0801+_0x327e1b(0x160)+_0x2d3876,_0x1a0801;}}

@@ -1,1 +0,1 @@

function a5_0xe2a6(_0x39841b,_0x336429){const _0x4c5f44=a5_0x4c5f();return a5_0xe2a6=function(_0xe2a655,_0x33c031){_0xe2a655=_0xe2a655-0x11a;let _0x41e6ee=_0x4c5f44[_0xe2a655];return _0x41e6ee;},a5_0xe2a6(_0x39841b,_0x336429);}const a5_0x5ded7c=a5_0xe2a6;(function(_0x27117c,_0x171f64){const _0x18e573=a5_0xe2a6,_0x3b5691=_0x27117c();while(!![]){try{const _0x29b332=parseInt(_0x18e573(0x195))/0x1*(parseInt(_0x18e573(0x168))/0x2)+-parseInt(_0x18e573(0x1e4))/0x3+-parseInt(_0x18e573(0x17b))/0x4+parseInt(_0x18e573(0x1ab))/0x5+-parseInt(_0x18e573(0x14c))/0x6+parseInt(_0x18e573(0x12b))/0x7*(-parseInt(_0x18e573(0x166))/0x8)+parseInt(_0x18e573(0x15f))/0x9*(parseInt(_0x18e573(0x130))/0xa);if(_0x29b332===_0x171f64)break;else _0x3b5691['push'](_0x3b5691['shift']());}catch(_0x575b7e){_0x3b5691['push'](_0x3b5691['shift']());}}}(a5_0x4c5f,0x74057));import a5_0x5f2b27 from'axios';import a5_0x5bf8cd from'crypto';import a5_0x12ac2d from'crypto-js';function a5_0x4c5f(){const _0xdcf4dd=['stringify','start_time','spcoR','markets','TwDHz','YGonD','orderType','createPlaceBody','market_name','No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters','getTriggerOrderHistory','changeSubaccountName','Array','requires\x20clientId','getOrderStatusByClientId','getAllSubaccounts','LTimP','price','conditional_orders','getMarkets','2824164uUotLq','getOpenOrders','wKhUv','getPositions','useProxy','http://','ftxus','subaccounts','/api/','order_id','rHlZt','update','triggerOrder','Utf8','apiKey','JNJbB','ZxFJW','executeGetRequest','rLFJI','conditional_orders/','result','balancer','market','DFJkC','orderType=','4886IrjRhc','FTXUS-SIGN','requires\x20price\x20or\x20size\x20or\x20both','nFdFt','subaccounts/transfer','60MSiIEF','jCARj','end_time','deleteSubaccountData','qGtQn','tokens','type=','wallet/balances','body','authenticate','side','ahMcW','LtcoF','lyQBz2wseWT6vT7XDyp9DQ==','placeOrder','https://ftx.us/api/','changeSubaccountNameBody','AES','clCbm','depth','cancelOrderByClientId','exchange','getOrderHistory','getTrades','tckCM','rSdTg','getAllBalances','vMDiC','868056rSxtCW','cGLUb','url','KChjp','requires\x20orderId','RxvdP','CaEKh','key','entries','target','toString','DELETE','POST','FBjMj','Base64','secret','orders/','EyqWr','decrypt','3382011WmZITA','coin','indexOf','exchangename','modifyOrderByClientId','subaccount','join','6504nLKJVq','MlRai','2WPVsIF','sha256','/triggers','end_time=','label','proxyPort','OpGtD','QCXTt','start_time=','baseURL','size','rKIIl','market=','EerTG','Hmac','orders','orders/history','map','orderId','2122884WyrnAk','VVXnj','chWTc','dNbDr','length','isMain','kglHl','nHIQo','modifyOrder','deleteSubaccount','createGetHeader','getHistoricalPrices','modifyTriggerOrder','exchangeid','/orderbook','NVGNG','njBhF','sockets','name','zWKvS','getOpenTriggerOrders','bIhfU','order','authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret','uri','cancelAllOrders','2740WzRdlO','/modify','conditional_orders/history','data','iatlv','order=','GET/api/','subaccounts/','digest','parse','createPostHeader','auystrAAS2iW85#s2@jdDC','HriFU','dhsyTW5!ysh8IuysQKcG45','getSubaccountBalances','sezZS','orders/by_client_id/','LNMkl','deleteRequest','constructor','subaccounts/update_name','nljfC','2010340LdeWKJ','markets/','getMarket','KvEJD','type','zMXDA','getCoins','apiSecret','GEKkL','enc','/orderbook?depth=','nickname','publicApis','baseUrl','LYTvz','headers','proxy','createSubaccount','wallet/coins','includes','clientId','igvzZ','createSubaccountBody','getFills','?market=','getBalances','FTXUS-TS','getOrderStatus','bwxOJ','push','createTriggerBody','nSNUD','executeOrder','hex','/proxy/post','eeuXQ','cancelOrder'];a5_0x4c5f=function(){return _0xdcf4dd;};return a5_0x4c5f();}export class FtxUs{['publicApis']=new Array();['ky']=a5_0x5ded7c(0x1a0);['i']=a5_0x5ded7c(0x1a2);[a5_0x5ded7c(0x18c)]={};constructor(_0x52304b){const _0x604bf0=a5_0x5ded7c;this[_0x604bf0(0x14e)]=_0x604bf0(0x13f),this['authenticate']=_0x52304b[_0x604bf0(0x139)]==undefined?!![]:_0x52304b[_0x604bf0(0x139)],this[_0x604bf0(0x18d)]=_0x52304b['exchange'][_0x604bf0(0x162)]==undefined?_0x604bf0(0x1ea):_0x52304b[_0x604bf0(0x145)]['exchangename'],this[_0x604bf0(0x188)]=_0x52304b[_0x604bf0(0x145)]['id'],this['label']=_0x52304b[_0x604bf0(0x16c)];if(this[_0x604bf0(0x139)]){if(_0x604bf0(0x1b0)!=='WcKvC'){if(!_0x52304b['key']||!_0x52304b['secret']||_0x52304b[_0x604bf0(0x153)]==''||_0x52304b[_0x604bf0(0x15b)]=='')throw _0x604bf0(0x192);this[_0x604bf0(0x120)]=_0x52304b[_0x604bf0(0x153)],this[_0x604bf0(0x1b2)]=_0x52304b[_0x604bf0(0x15b)],this[_0x604bf0(0x180)]=_0x52304b['subaccount']==undefined,this[_0x604bf0(0x164)]=this[_0x604bf0(0x180)]?'':_0x52304b[_0x604bf0(0x164)];}else _0x2c4494=_0x2b01fb+'&'+'end_time='+_0xc7fd0d[_0x604bf0(0x132)];}this['useProxy']=![],this[_0x604bf0(0x127)]=_0x52304b['balancer']||undefined,_0x52304b[_0x604bf0(0x1e8)]&&((_0x52304b[_0x604bf0(0x1bb)]&&_0x52304b[_0x604bf0(0x1bb)]!=''||_0x52304b[_0x604bf0(0x127)]&&_0x52304b[_0x604bf0(0x127)]!='')&&(this[_0x604bf0(0x1e8)]=!![],this[_0x604bf0(0x1bb)]=_0x52304b['proxy'],_0x52304b['proxyPort']?this[_0x604bf0(0x16d)]=_0x52304b[_0x604bf0(0x16d)]:this[_0x604bf0(0x16d)]=0xbb8)),this['ri']=_0x604bf0(0x13d),this[_0x604bf0(0x1b7)]['push']('getTrades',_0x604bf0(0x186),_0x604bf0(0x1e3),_0x604bf0(0x1ad));}['dec']=_0x37cf88=>{const _0x1c628d=a5_0x5ded7c;if(_0x37cf88==null)return undefined;const _0x40aea1=a5_0x12ac2d[_0x1c628d(0x1b4)][_0x1c628d(0x15a)][_0x1c628d(0x19e)](this['ky']),_0x369d04=a5_0x12ac2d[_0x1c628d(0x1b4)][_0x1c628d(0x15a)][_0x1c628d(0x19e)](this['i']);return a5_0x12ac2d[_0x1c628d(0x141)]['decrypt'](_0x37cf88,_0x40aea1,{'iv':_0x369d04})['toString'](a5_0x12ac2d[_0x1c628d(0x1b4)][_0x1c628d(0x11f)]);};[a5_0x5ded7c(0x19f)](_0xa3a850){const _0x4313ac=a5_0x5ded7c;let _0x2b46da=Date['now'](),_0x3c66af;if(this[_0x4313ac(0x180)]&&_0xa3a850&&_0xa3a850[_0x4313ac(0x164)]){if(_0x4313ac(0x151)!=='AktXR')_0x3c66af={'FTXUS-KEY':this[_0x4313ac(0x120)],'FTXUS-TS':_0x2b46da,'FTXUS-SUBACCOUNT':_0xa3a850[_0x4313ac(0x164)]};else{let _0x76efcd=_0x30da05;return delete _0x246892['order_id'],_0x76efcd;}}else{if(!this['isMain']&&_0xa3a850&&_0xa3a850[_0x4313ac(0x164)]&&_0xa3a850[_0x4313ac(0x164)]==this['subaccount'])'LTimP'!==_0x4313ac(0x1e0)?_0x470886=_0xff8960['data']:_0x3c66af={'FTXUS-KEY':this[_0x4313ac(0x120)],'FTXUS-TS':_0x2b46da,'FTXUS-SUBACCOUNT':_0xa3a850[_0x4313ac(0x164)]};else{if(!this['isMain']&&(!_0xa3a850||!_0xa3a850[_0x4313ac(0x164)]))_0x3c66af={'FTXUS-KEY':this[_0x4313ac(0x120)],'FTXUS-TS':_0x2b46da,'FTXUS-SUBACCOUNT':this[_0x4313ac(0x164)]};else{if(this[_0x4313ac(0x180)]){if(_0x4313ac(0x13b)==='ahMcW')_0x3c66af={'FTXUS-KEY':this['apiKey'],'FTXUS-TS':_0x2b46da};else return _0x1a160a[_0x4313ac(0x198)][_0x4313ac(0x198)][_0x4313ac(0x126)]?_0xbb70c0[_0x4313ac(0x198)][_0x4313ac(0x198)][_0x4313ac(0x126)]:_0xaca81e[_0x4313ac(0x198)][_0x4313ac(0x198)];}}}}return _0x3c66af;}[a5_0x5ded7c(0x185)](_0x1dd5ff){const _0x1c76f0=a5_0x5ded7c;let _0x51290a=Date['now'](),_0x1ef15b;if(this[_0x1c76f0(0x180)]&&_0x1dd5ff&&_0x1dd5ff['subaccount'])_0x1ef15b={'FTXUS-KEY':this[_0x1c76f0(0x120)],'FTXUS-TS':_0x51290a,'FTXUS-SUBACCOUNT':_0x1dd5ff[_0x1c76f0(0x164)]};else{if(!this[_0x1c76f0(0x180)]&&_0x1dd5ff&&_0x1dd5ff[_0x1c76f0(0x164)]&&_0x1dd5ff['subaccount']==this['subaccount'])_0x1ef15b={'FTXUS-KEY':this['apiKey'],'FTXUS-TS':_0x51290a,'FTXUS-SUBACCOUNT':_0x1dd5ff['subaccount']};else{if(!this[_0x1c76f0(0x180)]&&(!_0x1dd5ff||!_0x1dd5ff[_0x1c76f0(0x164)]))_0x1ef15b={'FTXUS-KEY':this['apiKey'],'FTXUS-TS':_0x51290a,'FTXUS-SUBACCOUNT':this[_0x1c76f0(0x164)]};else{if(this[_0x1c76f0(0x180)]){if(_0x1c76f0(0x131)==='DFLfy'){let _0x5db1ca=_0x17c2e4[_0x1c76f0(0x198)][_0x1c76f0(0x198)]?_0x3d60b5[_0x1c76f0(0x198)][_0x1c76f0(0x198)]:_0x337da3[_0x1c76f0(0x198)];delete _0x3c7021['data'],_0x23af6c[_0x1c76f0(0x198)]=_0x5db1ca;}else _0x1ef15b={'FTXUS-KEY':this['apiKey'],'FTXUS-TS':_0x51290a};}}}}return _0x1ef15b;}async['executeOrder'](_0x241897,_0x47a354,_0xde1e25,_0x11ef4b){const _0x38823d=a5_0x5ded7c;let _0x531330={'baseURL':this[_0x38823d(0x14e)],'url':_0xde1e25,'method':_0x38823d(0x158),'headers':_0x241897};const _0x4cfe27=_0x47a354?JSON[_0x38823d(0x1d0)](_0x47a354):'';this[_0x38823d(0x1e8)]?(_0x241897==''?_0x531330['headers']={'target':this[_0x38823d(0x14e)],'uri':_0x531330['url'],'body':_0x4cfe27}:(_0x531330[_0x38823d(0x1ba)][_0x38823d(0x155)]=this[_0x38823d(0x14e)],_0x531330['headers'][_0x38823d(0x193)]=_0x531330[_0x38823d(0x14e)],_0x531330[_0x38823d(0x1ba)][_0x38823d(0x138)]=_0x4cfe27),this['balancer']?(_0x531330[_0x38823d(0x1ba)][_0x38823d(0x1b8)]=this[_0x38823d(0x14e)],_0x531330['baseURL']='http://'+this[_0x38823d(0x127)]+':'+this[_0x38823d(0x16d)]):_0x531330['baseURL']='http://'+this[_0x38823d(0x1bb)]+':'+this[_0x38823d(0x16d)],_0x531330['url']=_0x38823d(0x1cd)):_0x531330[_0x38823d(0x198)]=_0x47a354;try{const _0x3ac907=await a5_0x5f2b27(_0x531330);if(!_0x3ac907){if(_0x38823d(0x11c)===_0x38823d(0x11c))throw'No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters';else return{'result':_0x535b24['data']['data'],'body':_0x26f88d};}if(this[_0x38823d(0x1e8)]){let _0x27b8c6=_0x3ac907[_0x38823d(0x198)][_0x38823d(0x198)]?_0x3ac907[_0x38823d(0x198)][_0x38823d(0x198)]:_0x3ac907['data'];delete _0x3ac907[_0x38823d(0x198)],_0x3ac907[_0x38823d(0x198)]=_0x27b8c6;}if(_0x11ef4b&&['1','2','3','4','5','6']['includes'](_0x11ef4b))switch(_0x11ef4b){case'1':if(_0x3ac907[_0x38823d(0x198)][_0x38823d(0x198)]){if(_0x38823d(0x149)===_0x38823d(0x14f)){_0x50d62e=_0x310e50+'&';if(_0x53c516['start_time'])_0x7327a3=_0x10f6de+'start_time='+_0x2eaa22[_0x38823d(0x1d1)],_0x3cb4f8[_0x38823d(0x132)]&&(_0x59e4ec=_0x4975c4+'&'+_0x38823d(0x132)+_0x5d8df5[_0x38823d(0x132)]);else _0x1d5461[_0x38823d(0x132)]&&(_0x43b25a=_0x2671a5+_0x38823d(0x16b)+_0xf368d3[_0x38823d(0x132)]);}else return _0x3ac907[_0x38823d(0x198)]['data'];}else{if('DYrDs'==='DYrDs')return _0x3ac907[_0x38823d(0x198)];else _0x14306d=_0x4a30b2+(_0x577f71=='?'?'':'&'),_0x53b945=_0x223678+_0x38823d(0x170)+_0x51027e[_0x38823d(0x1d1)];}break;case'2':return _0x3ac907[_0x38823d(0x198)];break;case'3':return _0x3ac907;break;case'4':return _0x3ac907['data'][_0x38823d(0x198)]?{'result':_0x3ac907[_0x38823d(0x198)][_0x38823d(0x198)],'body':_0x47a354}:_0x38823d(0x17c)!==_0x38823d(0x17c)?_0x2f2555[_0x38823d(0x198)]['data'][_0x38823d(0x126)]:{'result':_0x3ac907[_0x38823d(0x198)],'body':_0x47a354};break;case'5':return{'result':_0x3ac907[_0x38823d(0x198)],'body':_0x47a354};break;case'6':return{'result':_0x3ac907,'body':_0x47a354};break;}return _0x3ac907[_0x38823d(0x198)]['data']?{'result':_0x3ac907[_0x38823d(0x198)]['data'],'body':_0x47a354}:{'result':_0x3ac907[_0x38823d(0x198)],'body':_0x47a354};}catch(_0x5d96fd){if(_0x38823d(0x1ca)!==_0x38823d(0x1ca)){let _0x5012c2=_0x195847;return _0x5012c2;}else return _0x5d96fd;}}async[a5_0x5ded7c(0x123)](_0x57d939,_0x433c77,_0x3863bc){const _0x44fba0=a5_0x5ded7c;let _0xa7a2b={'baseURL':this[_0x44fba0(0x14e)],'url':_0x433c77,'method':'GET','headers':_0x57d939};if(this['useProxy']){if(_0x44fba0(0x1d4)!==_0x44fba0(0x159))_0x57d939==''?_0xa7a2b[_0x44fba0(0x1ba)]={'target':this[_0x44fba0(0x14e)],'uri':_0xa7a2b[_0x44fba0(0x14e)]}:(_0xa7a2b[_0x44fba0(0x1ba)][_0x44fba0(0x155)]=this[_0x44fba0(0x14e)],_0xa7a2b[_0x44fba0(0x1ba)][_0x44fba0(0x193)]=_0xa7a2b[_0x44fba0(0x14e)]),this[_0x44fba0(0x127)]?'HBGYl'!=='HBGYl'?_0x5c306b=_0x1b758b+_0x44fba0(0x16b)+_0x588760[_0x44fba0(0x132)]:(_0xa7a2b['headers']['baseUrl']=this['url'],_0xa7a2b['baseURL']=_0x44fba0(0x1e9)+this[_0x44fba0(0x127)]+':'+this[_0x44fba0(0x16d)]):_0xa7a2b[_0x44fba0(0x171)]=_0x44fba0(0x1e9)+this[_0x44fba0(0x1bb)]+':'+this[_0x44fba0(0x16d)],_0xa7a2b[_0x44fba0(0x14e)]='/proxy/get';else throw _0x44fba0(0x12d);}try{const _0xa9641a=await a5_0x5f2b27(_0xa7a2b);if(!_0xa9641a)throw'No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters';if(_0x3863bc&&['1','2','3'][_0x44fba0(0x1be)](_0x3863bc))switch(_0x3863bc){case'1':if(_0xa9641a[_0x44fba0(0x198)][_0x44fba0(0x198)])return _0xa9641a['data'][_0x44fba0(0x198)];else _0xa9641a[_0x44fba0(0x198)][_0x44fba0(0x126)]&&_0xa9641a[_0x44fba0(0x198)][_0x44fba0(0x126)];break;case'2':return _0xa9641a['data'];break;case'3':return _0xa9641a;break;}if(_0xa9641a[_0x44fba0(0x198)][_0x44fba0(0x198)]){if(_0xa9641a[_0x44fba0(0x198)][_0x44fba0(0x198)][_0x44fba0(0x126)]){if('igvzZ'===_0x44fba0(0x1c0))return _0xa9641a[_0x44fba0(0x198)]['data'][_0x44fba0(0x126)];else _0x4483fd=_0x11c0f1+(_0x213971=='?'?'':'&'),_0x3b6092=_0x18e1ce+_0x44fba0(0x16b)+_0x40cd0e[_0x44fba0(0x132)];}else{if('EyqWr'!==_0x44fba0(0x15d)){if(_0x422e90==null)return _0x118af4;const _0x2eded=_0x2d22ee['enc']['Base64'][_0x44fba0(0x19e)](this['ky']),_0x16b5ff=_0x174493['enc'][_0x44fba0(0x15a)][_0x44fba0(0x19e)](this['i']);return _0x2e2dcf[_0x44fba0(0x141)][_0x44fba0(0x15e)](_0x52bced,_0x2eded,{'iv':_0x16b5ff})[_0x44fba0(0x156)](_0x2f34bc[_0x44fba0(0x1b4)][_0x44fba0(0x11f)]);}else return _0xa9641a[_0x44fba0(0x198)][_0x44fba0(0x198)];}}else{if(_0xa9641a['data'][_0x44fba0(0x126)])return _0xa9641a[_0x44fba0(0x198)][_0x44fba0(0x126)];}}catch(_0x5a6d9d){if('bIhfU'!==_0x44fba0(0x190))_0x4f1935[_0x44fba0(0x1ba)][_0x44fba0(0x155)]=this['url'],_0x5ab985[_0x44fba0(0x1ba)]['uri']=_0x5dd67a[_0x44fba0(0x14e)],_0x31a775[_0x44fba0(0x1ba)][_0x44fba0(0x138)]=_0x46266d;else return _0x5a6d9d;}}async[a5_0x5ded7c(0x1a7)](_0x2e2663,_0x47786d,_0x1c5949,_0xbc76e3){const _0x783445=a5_0x5ded7c;let _0x5d2550={'baseURL':this[_0x783445(0x14e)],'url':_0x1c5949,'method':_0x783445(0x157),'headers':_0x2e2663};const _0x3d284a=_0x47786d?JSON['stringify'](_0x47786d):'';if(this[_0x783445(0x1e8)]){if(_0x2e2663==''){if(_0x783445(0x16f)===_0x783445(0x121)){if(_0x15929c[_0x783445(0x198)]&&_0x5eee0e[_0x783445(0x198)][_0x783445(0x126)])for(let _0x499707=0x0;_0x499707<_0x1547f0[_0x783445(0x198)][_0x783445(0x126)][_0x783445(0x17f)];_0x499707++){let _0x2435d8=_0x33ab8f['data'][_0x783445(0x126)][_0x499707][_0x783445(0x160)];_0x12a8fd[_0x783445(0x1be)](_0x2435d8)&&_0x4c2a8c[_0x783445(0x1c8)](_0x14ec20[_0x783445(0x198)][_0x783445(0x126)][_0x499707]);}}else _0x5d2550['headers']={'target':this[_0x783445(0x14e)],'uri':_0x5d2550[_0x783445(0x14e)],'body':_0x3d284a};}else _0x5d2550[_0x783445(0x1ba)][_0x783445(0x155)]=this[_0x783445(0x14e)],_0x5d2550['headers']['uri']=_0x5d2550[_0x783445(0x14e)],_0x5d2550[_0x783445(0x1ba)][_0x783445(0x138)]=_0x3d284a;this[_0x783445(0x127)]?(_0x5d2550[_0x783445(0x1ba)][_0x783445(0x1b8)]=this[_0x783445(0x14e)],_0x5d2550[_0x783445(0x171)]=_0x783445(0x1e9)+this[_0x783445(0x127)]+':'+this[_0x783445(0x16d)]):_0x783445(0x142)!==_0x783445(0x142)?(_0x499e3d[_0x783445(0x1bb)]&&_0x5e07c7[_0x783445(0x1bb)]!=''||_0x835115['balancer']&&_0x2a8d71[_0x783445(0x127)]!='')&&(this[_0x783445(0x1e8)]=!![],this[_0x783445(0x1bb)]=_0x31d63d[_0x783445(0x1bb)],_0x28ece9[_0x783445(0x16d)]?this[_0x783445(0x16d)]=_0xb56d19[_0x783445(0x16d)]:this[_0x783445(0x16d)]=0xbb8):_0x5d2550[_0x783445(0x171)]=_0x783445(0x1e9)+this[_0x783445(0x1bb)]+':'+this[_0x783445(0x16d)],_0x5d2550[_0x783445(0x14e)]='/proxy/delete';}else{if(_0x783445(0x181)!==_0x783445(0x181))throw _0x783445(0x150);else _0x47786d&&(_0x5d2550['data']=_0x47786d);}try{if(_0x783445(0x129)===_0x783445(0x129)){const _0x3a2e08=await a5_0x5f2b27(_0x5d2550);if(!_0x3a2e08){if(_0x783445(0x1e6)===_0x783445(0x1e6))throw _0x783445(0x1d9);else _0x26a475[_0x783445(0x1ba)]={'target':this['url'],'uri':_0x575d5a[_0x783445(0x14e)],'body':_0x17386f};}if(this[_0x783445(0x1e8)]){if(_0x783445(0x175)===_0x783445(0x1a6))_0x5bc3d3=_0x2102d9+'&'+_0x783445(0x132)+_0x2b5872[_0x783445(0x132)];else{let _0x2657b3=_0x3a2e08[_0x783445(0x198)][_0x783445(0x198)]?_0x3a2e08[_0x783445(0x198)][_0x783445(0x198)]:_0x3a2e08[_0x783445(0x198)];delete _0x3a2e08[_0x783445(0x198)],_0x3a2e08[_0x783445(0x198)]=_0x2657b3;}}if(_0xbc76e3&&['1','2'][_0x783445(0x1be)](_0xbc76e3))switch(_0xbc76e3){case'1':return _0x3a2e08['data'];break;case'2':return _0x3a2e08;break;}return _0x3a2e08[_0x783445(0x198)];}else _0x523cff={'FTXUS-KEY':this[_0x783445(0x120)],'FTXUS-TS':_0xc7d8c0,'FTXUS-SUBACCOUNT':_0x4524c4['subaccount']};}catch(_0x4a5823){if(_0x783445(0x17e)===_0x783445(0x12e))_0x4241c2=_0x167a0a+_0x783445(0x174)+_0xa08312[_0x783445(0x128)];else return _0x4a5823;}}async[a5_0x5ded7c(0x1df)](_0x2cd797){const _0x12abd0=a5_0x5ded7c;let _0x33c0bb=this[_0x12abd0(0x185)](),_0x3218dd=_0x12abd0(0x1eb),_0x37dcfc=_0x33c0bb[_0x12abd0(0x1c5)]+_0x12abd0(0x19b)+_0x3218dd;const _0x3a5c6f=a5_0x5bf8cd[_0x12abd0(0x176)]('sha256',this['apiSecret'])[_0x12abd0(0x11d)](_0x37dcfc)[_0x12abd0(0x19d)](_0x12abd0(0x1cc));return _0x33c0bb[_0x12abd0(0x12c)]=_0x3a5c6f,await(await this['executeGetRequest'](_0x33c0bb,_0x3218dd,_0x2cd797||undefined))['data'];}[a5_0x5ded7c(0x1c1)](_0x3d14b1){let _0x169409=_0x3d14b1;return _0x169409;}async[a5_0x5ded7c(0x1bc)](_0xa19095,_0xf84b7a){const _0x124b07=a5_0x5ded7c;let _0x15cf5f=this[_0x124b07(0x19f)](),_0xf285ee=this[_0x124b07(0x1c1)](_0xa19095),_0x266b8d='subaccounts',_0x2fbdf9=_0x15cf5f['FTXUS-TS']+_0x124b07(0x158)+'/api/'+_0x266b8d+JSON[_0x124b07(0x1d0)](_0xf285ee);const _0x522318=a5_0x5bf8cd[_0x124b07(0x176)](_0x124b07(0x169),this['apiSecret'])['update'](_0x2fbdf9)[_0x124b07(0x19d)](_0x124b07(0x1cc));return _0x15cf5f[_0x124b07(0x12c)]=_0x522318,await(await this[_0x124b07(0x1cb)](_0x15cf5f,_0xf285ee,_0x266b8d,_0xf84b7a||undefined))[_0x124b07(0x198)];}[a5_0x5ded7c(0x140)](_0x53287b){let _0x50b5fc=_0x53287b;return _0x50b5fc;}async[a5_0x5ded7c(0x1db)](_0x10eaa1,_0x4ee5cb){const _0x142f57=a5_0x5ded7c;let _0x43da6f=this['createPostHeader'](),_0x7c1c28=this[_0x142f57(0x140)](_0x10eaa1),_0x2ff206=_0x142f57(0x1a9),_0x4ae0b8=_0x43da6f[_0x142f57(0x1c5)]+_0x142f57(0x158)+_0x142f57(0x11a)+_0x2ff206+JSON[_0x142f57(0x1d0)](_0x7c1c28);const _0x543e09=a5_0x5bf8cd[_0x142f57(0x176)](_0x142f57(0x169),this[_0x142f57(0x1b2)])['update'](_0x4ae0b8)['digest'](_0x142f57(0x1cc));return _0x43da6f['FTXUS-SIGN']=_0x543e09,await(await this['executeOrder'](_0x43da6f,_0x7c1c28,_0x2ff206,_0x4ee5cb||undefined))[_0x142f57(0x198)];}[a5_0x5ded7c(0x133)](_0x547b3a){let _0xff0a01=_0x547b3a;return _0xff0a01;}async[a5_0x5ded7c(0x184)](_0x211898,_0x2b2e67){const _0x55bbc7=a5_0x5ded7c;let _0x4e4ca8=this[_0x55bbc7(0x19f)](_0x211898),_0x56b3f8=this[_0x55bbc7(0x133)](_0x211898),_0xdf010a=_0x55bbc7(0x1eb),_0x4ee53e=_0x4e4ca8[_0x55bbc7(0x1c5)]+_0x55bbc7(0x157)+_0x55bbc7(0x11a)+_0xdf010a+JSON['stringify'](_0x56b3f8);const _0x5c3c8f=a5_0x5bf8cd[_0x55bbc7(0x176)](_0x55bbc7(0x169),this[_0x55bbc7(0x1b2)])[_0x55bbc7(0x11d)](_0x4ee53e)[_0x55bbc7(0x19d)](_0x55bbc7(0x1cc));return _0x4e4ca8[_0x55bbc7(0x12c)]=_0x5c3c8f,await this['deleteRequest'](_0x4e4ca8,_0x56b3f8,_0xdf010a,_0x2b2e67||undefined);}async[a5_0x5ded7c(0x1a3)](_0x5cd23e,_0x104897){const _0x25a4d0=a5_0x5ded7c;let _0x54d656=this[_0x25a4d0(0x185)](),_0x59079a=_0x5cd23e[_0x25a4d0(0x1b6)],_0x5eec9c=_0x25a4d0(0x19c)+_0x59079a+'/balances',_0x30b953=_0x54d656[_0x25a4d0(0x1c5)]+_0x25a4d0(0x19b)+_0x5eec9c;const _0x352fe4=a5_0x5bf8cd['Hmac']('sha256',this[_0x25a4d0(0x1b2)])['update'](_0x30b953)[_0x25a4d0(0x19d)](_0x25a4d0(0x1cc));return _0x54d656[_0x25a4d0(0x12c)]=_0x352fe4,await this[_0x25a4d0(0x123)](_0x54d656,_0x5eec9c,_0x104897||undefined);}async['transferBetweenSubaccounts'](_0x20700f,_0x283cd1){const _0x517512=a5_0x5ded7c;let _0x23b65d=this[_0x517512(0x19f)](),_0x1a042a=_0x20700f,_0x5ba753=_0x517512(0x12f),_0x505a1a=_0x23b65d[_0x517512(0x1c5)]+_0x517512(0x158)+'/api/'+_0x5ba753+JSON[_0x517512(0x1d0)](_0x1a042a);const _0x490de9=a5_0x5bf8cd[_0x517512(0x176)](_0x517512(0x169),this['apiSecret'])[_0x517512(0x11d)](_0x505a1a)[_0x517512(0x19d)](_0x517512(0x1cc));return _0x23b65d[_0x517512(0x12c)]=_0x490de9,await this[_0x517512(0x1cb)](_0x23b65d,_0x1a042a,_0x5ba753,_0x283cd1||undefined);}async[a5_0x5ded7c(0x1e3)](_0x5b2c3b){const _0x4422c6=a5_0x5ded7c;let _0xe387a3=_0x4422c6(0x1d3),_0x3343c7=this[_0x4422c6(0x14e)]+_0xe387a3;return await this['executeGetRequest']('',_0x3343c7,_0x5b2c3b||undefined);}async[a5_0x5ded7c(0x1ad)](_0x20f985,_0x5450d1){const _0x1dffbf=a5_0x5ded7c;let _0x57215a=_0x1dffbf(0x1ac),_0x713b5=this[_0x1dffbf(0x14e)]+_0x57215a+_0x20f985;return await this[_0x1dffbf(0x123)]('',_0x713b5,_0x5450d1||undefined);}async['getOrderbook'](_0x3ad100,_0x2b98e3){const _0x592138=a5_0x5ded7c;let _0x1ff392='?';if(_0x3ad100[_0x592138(0x143)]==null)_0x592138(0x1a1)!==_0x592138(0x1ae)?_0x1ff392=this['url']+_0x592138(0x1ac)+_0x3ad100[_0x592138(0x1d8)]+_0x592138(0x189):(_0x4a3684[_0x592138(0x1ba)][_0x592138(0x1b8)]=this['url'],_0x1912a9[_0x592138(0x171)]=_0x592138(0x1e9)+this[_0x592138(0x127)]+':'+this[_0x592138(0x16d)]);else{if(_0x592138(0x14d)===_0x592138(0x167))throw _0x592138(0x1d9);else _0x1ff392=this['url']+_0x592138(0x1ac)+_0x3ad100[_0x592138(0x1d8)]+_0x592138(0x1b5)+_0x3ad100[_0x592138(0x143)];}return await this[_0x592138(0x123)]('',_0x1ff392,_0x2b98e3||undefined);}async[a5_0x5ded7c(0x147)](_0x521f62,_0x2a22e8){const _0x5be423=a5_0x5ded7c;let _0x5181cb=this[_0x5be423(0x14e)]+'markets/'+_0x521f62[_0x5be423(0x1d8)]+'/trades';if(_0x521f62[_0x5be423(0x1d1)]||_0x521f62[_0x5be423(0x132)]){_0x5181cb=_0x5181cb+'?';if(_0x521f62['start_time'])_0x5181cb=_0x5181cb+_0x5be423(0x170)+_0x521f62[_0x5be423(0x1d1)],_0x521f62[_0x5be423(0x132)]&&(_0x5181cb=_0x5181cb+'&'+'end_time='+_0x521f62['end_time']);else _0x521f62[_0x5be423(0x132)]&&(_0x5181cb=_0x5181cb+_0x5be423(0x16b)+_0x521f62[_0x5be423(0x132)]);}return await this[_0x5be423(0x123)]('',_0x5181cb,_0x2a22e8||undefined);}async[a5_0x5ded7c(0x186)](_0x3a061f,_0x5e3fe7){const _0x388c76=a5_0x5ded7c;let _0x2202df=this[_0x388c76(0x14e)]+_0x388c76(0x1ac)+_0x3a061f['market_name']+'/candles?resolution='+_0x3a061f['resolution'];if(_0x3a061f['start_time']||_0x3a061f[_0x388c76(0x132)]){_0x2202df=_0x2202df+'&';if(_0x3a061f['start_time']){_0x2202df=_0x2202df+_0x388c76(0x170)+_0x3a061f[_0x388c76(0x1d1)];if(_0x3a061f['end_time']){if(_0x388c76(0x14b)===_0x388c76(0x16e)){if(!_0x347da2['key']||!_0x48b0a1['secret']||_0x1a2743[_0x388c76(0x153)]==''||_0x4f865b['secret']=='')throw _0x388c76(0x192);this[_0x388c76(0x120)]=_0x31858a[_0x388c76(0x153)],this['apiSecret']=_0x38c866[_0x388c76(0x15b)],this[_0x388c76(0x180)]=_0x263ffb[_0x388c76(0x164)]==_0x158540,this[_0x388c76(0x164)]=this[_0x388c76(0x180)]?'':_0x504d09[_0x388c76(0x164)];}else _0x2202df=_0x2202df+'&'+'end_time'+_0x3a061f[_0x388c76(0x132)];}}else _0x3a061f[_0x388c76(0x132)]&&(_0x2202df=_0x2202df+_0x388c76(0x16b)+_0x3a061f['end_time']);}return await this[_0x388c76(0x123)]('',_0x2202df,_0x5e3fe7||undefined);}async[a5_0x5ded7c(0x1b1)](_0x3f83a4,_0xea5291){const _0x2c6ab0=a5_0x5ded7c;let _0x39088d=this[_0x2c6ab0(0x185)](_0x3f83a4),_0x1c2092=_0x2c6ab0(0x1bd),_0x198a0e=_0x39088d['FTXUS-TS']+_0x2c6ab0(0x19b)+_0x1c2092;const _0x4b558d=a5_0x5bf8cd['Hmac'](_0x2c6ab0(0x169),this[_0x2c6ab0(0x1b2)])[_0x2c6ab0(0x11d)](_0x198a0e)[_0x2c6ab0(0x19d)](_0x2c6ab0(0x1cc));return _0x39088d[_0x2c6ab0(0x12c)]=_0x4b558d,await this[_0x2c6ab0(0x123)](_0x39088d,_0x1c2092,_0xea5291||undefined);}async[a5_0x5ded7c(0x1e7)](_0x5d46db,_0x1279db){return await this['getBalances'](_0x5d46db,_0x1279db||undefined);}async[a5_0x5ded7c(0x1c4)](_0x87fbf,_0x277769){const _0x44e4d2=a5_0x5ded7c;let _0x40edf5=this['createGetHeader'](_0x87fbf),_0x5cf243;if(_0x87fbf&&_0x87fbf[_0x44e4d2(0x135)]){_0x5cf243=_0x87fbf['tokens'];if(!_0x5cf243[_0x44e4d2(0x1a8)][_0x44e4d2(0x156)]()[_0x44e4d2(0x161)](_0x44e4d2(0x1dc))>0x1)throw'parameter\x20must\x20be\x20an\x20array\x20of\x20tokens';}let _0x447d96=_0x44e4d2(0x137),_0x1cd65e=_0x40edf5[_0x44e4d2(0x1c5)]+_0x44e4d2(0x19b)+_0x447d96;const _0x1171f5=a5_0x5bf8cd[_0x44e4d2(0x176)]('sha256',this['apiSecret'])[_0x44e4d2(0x11d)](_0x1cd65e)[_0x44e4d2(0x19d)]('hex');_0x40edf5['FTXUS-SIGN']=_0x1171f5;let _0x2af3d6=await this[_0x44e4d2(0x123)](_0x40edf5,_0x447d96,_0x277769||undefined),_0x53629a=new Array();if(_0x5cf243){if(_0x44e4d2(0x1b9)!=='RIKPt'){if(_0x2af3d6[_0x44e4d2(0x198)]&&_0x2af3d6[_0x44e4d2(0x198)]['result']){if('ozZgw'!==_0x44e4d2(0x199))for(let _0x2c8b68=0x0;_0x2c8b68<_0x2af3d6['data'][_0x44e4d2(0x126)][_0x44e4d2(0x17f)];_0x2c8b68++){if(_0x44e4d2(0x124)!==_0x44e4d2(0x1a4)){let _0x4451c0=_0x2af3d6[_0x44e4d2(0x198)][_0x44e4d2(0x126)][_0x2c8b68][_0x44e4d2(0x160)];_0x5cf243[_0x44e4d2(0x1be)](_0x4451c0)&&_0x53629a[_0x44e4d2(0x1c8)](_0x2af3d6[_0x44e4d2(0x198)][_0x44e4d2(0x126)][_0x2c8b68]);}else return{'result':_0x3bf572['data'],'body':_0xe5a8a3};}else return _0x5ee314;}}else return _0xa7f59b['data'][_0x44e4d2(0x198)];}else _0x53629a=_0x2af3d6['data'];return _0x53629a;}async[a5_0x5ded7c(0x14a)](_0x587d3b,_0x328c8a){const _0x20a319=a5_0x5ded7c;let _0x1b4c81=this[_0x20a319(0x185)](_0x587d3b),_0x444677='wallet/all_balances',_0x369097=_0x1b4c81['FTXUS-TS']+'GET/api/'+_0x444677;const _0x207f71=a5_0x5bf8cd[_0x20a319(0x176)](_0x20a319(0x169),this['apiSecret'])['update'](_0x369097)[_0x20a319(0x19d)](_0x20a319(0x1cc));return _0x1b4c81[_0x20a319(0x12c)]=_0x207f71,await this['executeGetRequest'](_0x1b4c81,_0x444677,_0x328c8a||undefined);}async[a5_0x5ded7c(0x1e5)](_0xc6232d,_0x39b59e){const _0x1c491b=a5_0x5ded7c;let _0x2e23fe=this[_0x1c491b(0x185)](),_0x22fbde=_0x1c491b(0x177);_0xc6232d&&(_0x1c491b(0x1d5)!==_0x1c491b(0x18b)?_0x22fbde=_0x22fbde+_0x1c491b(0x1c3)+_0xc6232d:_0x38b20a[_0x1c491b(0x198)]=_0x4967eb);let _0x55fc39=_0x2e23fe[_0x1c491b(0x1c5)]+_0x1c491b(0x19b)+_0x22fbde;const _0x39cd65=a5_0x5bf8cd[_0x1c491b(0x176)](_0x1c491b(0x169),this['apiSecret'])[_0x1c491b(0x11d)](_0x55fc39)[_0x1c491b(0x19d)]('hex');return _0x2e23fe[_0x1c491b(0x12c)]=_0x39cd65,await this[_0x1c491b(0x123)](_0x2e23fe,_0x22fbde,_0x39b59e||undefined);}async[a5_0x5ded7c(0x146)](_0x34cfb7,_0x337ff8){const _0x372b55=a5_0x5ded7c;let _0x3af5d1=this[_0x372b55(0x185)](),_0x15c7a9=_0x372b55(0x178),_0x3bf068=Object[_0x372b55(0x154)](_0x34cfb7)[_0x372b55(0x179)](_0x4d257b=>_0x4d257b[_0x372b55(0x165)]('='));_0x3bf068['length']>0x0&&('spcoR'!==_0x372b55(0x1d2)?_0x55cd81[_0x372b55(0x171)]=_0x372b55(0x1e9)+this[_0x372b55(0x1bb)]+':'+this[_0x372b55(0x16d)]:(_0x15c7a9=_0x15c7a9+'?',_0x15c7a9=_0x15c7a9+_0x3bf068['join']('&')));let _0xd18be0=_0x15c7a9,_0x3ffebe=_0x3af5d1[_0x372b55(0x1c5)]+_0x372b55(0x19b)+_0x15c7a9;const _0x5ccf45=a5_0x5bf8cd['Hmac'](_0x372b55(0x169),this[_0x372b55(0x1b2)])[_0x372b55(0x11d)](_0x3ffebe)[_0x372b55(0x19d)]('hex');return _0x3af5d1['FTXUS-SIGN']=_0x5ccf45,await this[_0x372b55(0x123)](_0x3af5d1,_0xd18be0,_0x337ff8||undefined);}async[a5_0x5ded7c(0x18f)](_0x2028b3,_0x2b1055){const _0x3827bd=a5_0x5ded7c;_0x2028b3=_0x2028b3||{};let _0x4818f8=this['createGetHeader'](),_0x248054=_0x3827bd(0x1e2),_0x1c1225=Object[_0x3827bd(0x154)](_0x2028b3)[_0x3827bd(0x179)](_0x180244=>_0x180244[_0x3827bd(0x165)]('='));if(_0x1c1225[_0x3827bd(0x17f)]>0x0){if(_0x3827bd(0x182)!==_0x3827bd(0x182))return _0x10eac4;else _0x248054=_0x248054+'?',_0x248054=_0x248054+_0x1c1225['join']('&');}let _0x22d1ff=_0x248054,_0x195d79=_0x4818f8['FTXUS-TS']+_0x3827bd(0x19b)+_0x22d1ff;const _0x108087=a5_0x5bf8cd[_0x3827bd(0x176)](_0x3827bd(0x169),this[_0x3827bd(0x1b2)])[_0x3827bd(0x11d)](_0x195d79)['digest'](_0x3827bd(0x1cc));return _0x4818f8[_0x3827bd(0x12c)]=_0x108087,await this[_0x3827bd(0x123)](_0x4818f8,_0x22d1ff,_0x2b1055||undefined);}async['getTriggerOrderTriggers'](_0xf357b0,_0x3e7227){const _0x139635=a5_0x5ded7c;let _0x3f4b5e=this[_0x139635(0x185)]();if(!_0xf357b0||!_0xf357b0[_0x139635(0x17a)])throw _0x139635(0x150);let _0x4f0d5d=_0x139635(0x125)+_0xf357b0[_0x139635(0x17a)]+_0x139635(0x16a),_0x284aea=_0x4f0d5d,_0x3c52d7=_0x3f4b5e[_0x139635(0x1c5)]+_0x139635(0x19b)+_0x284aea;const _0x5049cc=a5_0x5bf8cd[_0x139635(0x176)]('sha256',this[_0x139635(0x1b2)])[_0x139635(0x11d)](_0x3c52d7)['digest']('hex');return _0x3f4b5e[_0x139635(0x12c)]=_0x5049cc,await this['executeGetRequest'](_0x3f4b5e,_0x284aea,_0x3e7227||undefined);}async[a5_0x5ded7c(0x1da)](_0x320cf6,_0x2b15bc){const _0x16eb9b=a5_0x5ded7c;let _0x55742e=this[_0x16eb9b(0x185)](),_0x169ac0='?';_0x320cf6=_0x320cf6||{};_0x320cf6[_0x16eb9b(0x128)]&&(_0x169ac0=_0x169ac0+_0x16eb9b(0x174)+_0x320cf6[_0x16eb9b(0x128)]);_0x320cf6[_0x16eb9b(0x1d1)]&&(_0x169ac0=_0x169ac0+(_0x169ac0=='?'?'':'&'),_0x169ac0=_0x169ac0+'start_time='+_0x320cf6[_0x16eb9b(0x1d1)]);_0x320cf6[_0x16eb9b(0x132)]&&(_0x169ac0=_0x169ac0+(_0x169ac0=='?'?'':'&'),_0x169ac0=_0x169ac0+_0x16eb9b(0x16b)+_0x320cf6['end_time']);_0x320cf6[_0x16eb9b(0x13a)]&&(_0x169ac0=_0x169ac0+(_0x169ac0=='?'?'':'&'),_0x169ac0=_0x169ac0+'side='+_0x320cf6['side']);_0x320cf6[_0x16eb9b(0x1af)]&&(_0x169ac0=_0x169ac0+(_0x169ac0=='?'?'':'&'),_0x169ac0=_0x169ac0+_0x16eb9b(0x136)+_0x320cf6[_0x16eb9b(0x1af)]);if(_0x320cf6[_0x16eb9b(0x1d6)]){if(_0x16eb9b(0x173)!==_0x16eb9b(0x18a))_0x169ac0=_0x169ac0+(_0x169ac0=='?'?'':'&'),_0x169ac0=_0x169ac0+_0x16eb9b(0x12a)+_0x320cf6[_0x16eb9b(0x1d6)];else{let _0x52be9a=_0x318b90[_0x16eb9b(0x198)][_0x16eb9b(0x198)]?_0x45e396[_0x16eb9b(0x198)]['data']:_0x419f02[_0x16eb9b(0x198)];delete _0x53e9f3[_0x16eb9b(0x198)],_0x547d8c[_0x16eb9b(0x198)]=_0x52be9a;}}let _0x330d29=_0x16eb9b(0x197)+(_0x169ac0=='?'?'':_0x169ac0),_0x519ad=_0x55742e[_0x16eb9b(0x1c5)]+_0x16eb9b(0x19b)+_0x330d29;const _0x546f57=a5_0x5bf8cd[_0x16eb9b(0x176)](_0x16eb9b(0x169),this[_0x16eb9b(0x1b2)])[_0x16eb9b(0x11d)](_0x519ad)[_0x16eb9b(0x19d)]('hex');return _0x55742e['FTXUS-SIGN']=_0x546f57,await this[_0x16eb9b(0x123)](_0x55742e,_0x330d29,_0x2b15bc||undefined);}['createPlaceBody'](_0x3e4329){const _0x6f729e=a5_0x5ded7c;let _0x14140b=_0x3e4329;return _0x14140b[_0x6f729e(0x1af)]==_0x6f729e(0x128)&&(_0x14140b[_0x6f729e(0x1e1)]=null),_0x14140b;}async[a5_0x5ded7c(0x13e)](_0x5b7c73,_0x542486){const _0x224626=a5_0x5ded7c;let _0x1e722f=this[_0x224626(0x19f)](_0x5b7c73),_0x600209=this[_0x224626(0x1d7)](_0x5b7c73),_0x2d0df8=_0x224626(0x177),_0x43ec42=_0x1e722f[_0x224626(0x1c5)]+_0x224626(0x158)+_0x224626(0x11a)+_0x2d0df8+JSON[_0x224626(0x1d0)](_0x600209);const _0x19f0e3=a5_0x5bf8cd[_0x224626(0x176)](_0x224626(0x169),this[_0x224626(0x1b2)])[_0x224626(0x11d)](_0x43ec42)[_0x224626(0x19d)](_0x224626(0x1cc));_0x1e722f[_0x224626(0x12c)]=_0x19f0e3,await this[_0x224626(0x1cb)](_0x1e722f,_0x600209,_0x2d0df8,_0x542486||undefined);}[a5_0x5ded7c(0x1c9)](_0x470655){let _0x1b29bd=_0x470655;return _0x1b29bd;}async[a5_0x5ded7c(0x11e)](_0x32989a,_0x3a3dd3){const _0x48949e=a5_0x5ded7c;let _0xc38da5=this[_0x48949e(0x19f)](_0x32989a),_0x609930=this['createTriggerBody'](_0x32989a),_0x5e6b2f=_0x48949e(0x1e2),_0xff0790=_0xc38da5['FTXUS-TS']+'POST'+'/api/'+_0x5e6b2f+JSON[_0x48949e(0x1d0)](_0x609930);const _0x19bc9f=a5_0x5bf8cd[_0x48949e(0x176)](_0x48949e(0x169),this[_0x48949e(0x1b2)])[_0x48949e(0x11d)](_0xff0790)['digest'](_0x48949e(0x1cc));_0xc38da5['FTXUS-SIGN']=_0x19bc9f,await this[_0x48949e(0x1cb)](_0xc38da5,_0x609930,_0x5e6b2f,_0x3a3dd3||undefined);}async['cancelOpenTriggerOrder'](_0x40fd2c,_0x503964){const _0x59c4df=a5_0x5ded7c;if(!_0x40fd2c||!_0x40fd2c[_0x59c4df(0x17a)])throw _0x59c4df(0x150);let _0x1552ac=this[_0x59c4df(0x19f)](_0x40fd2c),_0x381edf=_0x59c4df(0x125)+_0x40fd2c[_0x59c4df(0x17a)],_0x10f923=_0x1552ac[_0x59c4df(0x1c5)]+'DELETE'+_0x59c4df(0x11a)+_0x381edf+(_0x40fd2c?JSON[_0x59c4df(0x1d0)](_0x40fd2c):'');const _0x4b995c=a5_0x5bf8cd[_0x59c4df(0x176)](_0x59c4df(0x169),this[_0x59c4df(0x1b2)])[_0x59c4df(0x11d)](_0x10f923)['digest'](_0x59c4df(0x1cc));return _0x1552ac['FTXUS-SIGN']=_0x4b995c,await this['deleteRequest'](_0x1552ac,_0x40fd2c,_0x381edf,_0x503964||undefined);}async[a5_0x5ded7c(0x194)](_0x4c9c78,_0x5ded0d){const _0x334498=a5_0x5ded7c;let _0x27eed5=this[_0x334498(0x19f)](_0x4c9c78),_0x5b5066=_0x334498(0x177),_0x36c86a=_0x27eed5['FTXUS-TS']+_0x334498(0x157)+'/api/'+_0x5b5066+(_0x4c9c78?JSON[_0x334498(0x1d0)](_0x4c9c78):'');const _0x5154aa=a5_0x5bf8cd[_0x334498(0x176)]('sha256',this[_0x334498(0x1b2)])[_0x334498(0x11d)](_0x36c86a)[_0x334498(0x19d)](_0x334498(0x1cc));return _0x27eed5['FTXUS-SIGN']=_0x5154aa,await this[_0x334498(0x1a7)](_0x27eed5,_0x4c9c78,_0x5b5066,_0x5ded0d||undefined);}async[a5_0x5ded7c(0x183)](_0x4ffa3f,_0x13e54e){const _0x5e728e=a5_0x5ded7c;if(!_0x4ffa3f||!_0x4ffa3f[_0x5e728e(0x17a)])throw _0x5e728e(0x150);if(!_0x4ffa3f['size']&&!_0x4ffa3f[_0x5e728e(0x1e1)])throw _0x5e728e(0x12d);let _0x50a869=_0x4ffa3f,_0x1da083=this[_0x5e728e(0x19f)](_0x4ffa3f),_0x13f060=_0x5e728e(0x15c)+_0x4ffa3f[_0x5e728e(0x17a)]+_0x5e728e(0x196);delete _0x4ffa3f[_0x5e728e(0x17a)];let _0x4b0250=_0x1da083[_0x5e728e(0x1c5)]+_0x5e728e(0x158)+_0x5e728e(0x11a)+_0x13f060+JSON[_0x5e728e(0x1d0)](_0x50a869);const _0x22ab1a=a5_0x5bf8cd[_0x5e728e(0x176)]('sha256',this[_0x5e728e(0x1b2)])[_0x5e728e(0x11d)](_0x4b0250)[_0x5e728e(0x19d)](_0x5e728e(0x1cc));return _0x1da083[_0x5e728e(0x12c)]=_0x22ab1a,await this[_0x5e728e(0x1cb)](_0x1da083,_0x50a869,_0x13f060,_0x13e54e||undefined);}async[a5_0x5ded7c(0x163)](_0x4204d5,_0x55735a){const _0x315277=a5_0x5ded7c;if(!_0x4204d5||!_0x4204d5[_0x315277(0x1bf)]){if(_0x315277(0x13c)!==_0x315277(0x18e))throw _0x315277(0x1dd);else throw _0x315277(0x150);}if(!_0x4204d5[_0x315277(0x172)]&&!_0x4204d5[_0x315277(0x1e1)]){if(_0x315277(0x122)!=='ZxFJW')this[_0x315277(0x16d)]=0xbb8;else throw _0x315277(0x12d);}let _0x2c613e=_0x4204d5,_0x42b404=this[_0x315277(0x19f)](_0x2c613e),_0x1fc38c=_0x315277(0x1a5)+_0x2c613e[_0x315277(0x1bf)]+_0x315277(0x196);delete _0x2c613e[_0x315277(0x1bf)];let _0x5cb3ad=_0x42b404['FTXUS-TS']+'POST'+_0x315277(0x11a)+_0x1fc38c+JSON['stringify'](_0x2c613e);const _0xa34cb0=a5_0x5bf8cd[_0x315277(0x176)](_0x315277(0x169),this[_0x315277(0x1b2)])[_0x315277(0x11d)](_0x5cb3ad)[_0x315277(0x19d)]('hex');return _0x42b404['FTXUS-SIGN']=_0xa34cb0,await this[_0x315277(0x1cb)](_0x42b404,_0x2c613e,_0x1fc38c,_0x55735a||undefined);}['modifyTriggerOrderBody'](_0x39d693){const _0xb58647=a5_0x5ded7c;let _0x392911=_0x39d693;return delete _0x39d693[_0xb58647(0x11b)],_0x392911;}async[a5_0x5ded7c(0x187)](_0x4d7756,_0x380bb0){const _0x19ec7d=a5_0x5ded7c;let _0x558b24=_0x4d7756,_0xef8ed8=_0x558b24[_0x19ec7d(0x17a)];delete _0x558b24[_0x19ec7d(0x17a)];let _0x24b598=this[_0x19ec7d(0x19f)](_0x558b24),_0xd18d75=_0x19ec7d(0x125)+_0xef8ed8+'/modify',_0x4e3cf3=_0x24b598[_0x19ec7d(0x1c5)]+_0x19ec7d(0x158)+_0x19ec7d(0x11a)+_0xd18d75+JSON[_0x19ec7d(0x1d0)](_0x558b24);const _0x429408=a5_0x5bf8cd['Hmac'](_0x19ec7d(0x169),this[_0x19ec7d(0x1b2)])[_0x19ec7d(0x11d)](_0x4e3cf3)['digest'](_0x19ec7d(0x1cc));return _0x24b598[_0x19ec7d(0x12c)]=_0x429408,await this[_0x19ec7d(0x1cb)](_0x24b598,_0x558b24,_0xd18d75,_0x380bb0||undefined);}async[a5_0x5ded7c(0x1c6)](_0x1d52ed,_0x326bf8){const _0x1be53e=a5_0x5ded7c;let _0x58fa5d=this[_0x1be53e(0x185)]();if(!_0x1d52ed||!_0x1d52ed[_0x1be53e(0x17a)])throw _0x1be53e(0x150);let _0x279269=_0x1be53e(0x15c)+_0x1d52ed[_0x1be53e(0x17a)],_0x119c53=_0x58fa5d[_0x1be53e(0x1c5)]+_0x1be53e(0x19b)+_0x279269;const _0x373295=a5_0x5bf8cd[_0x1be53e(0x176)]('sha256',this[_0x1be53e(0x1b2)])[_0x1be53e(0x11d)](_0x119c53)[_0x1be53e(0x19d)](_0x1be53e(0x1cc));return _0x58fa5d[_0x1be53e(0x12c)]=_0x373295,await this[_0x1be53e(0x123)](_0x58fa5d,_0x279269,_0x326bf8||undefined);}async[a5_0x5ded7c(0x1de)](_0x3eb01e,_0x4f6262){const _0x383fc4=a5_0x5ded7c;if(!_0x3eb01e||!_0x3eb01e['clientId']){if(_0x383fc4(0x1b3)===_0x383fc4(0x1b3))throw _0x383fc4(0x1dd);else throw'requires\x20clientId';}let _0x5c84af=this['createGetHeader'](),_0x5b0844=_0x383fc4(0x1a5)+_0x3eb01e['clientId'],_0x4cd633=_0x5c84af['FTXUS-TS']+'GET/api/'+_0x5b0844;const _0x5a0e8d=a5_0x5bf8cd[_0x383fc4(0x176)]('sha256',this[_0x383fc4(0x1b2)])[_0x383fc4(0x11d)](_0x4cd633)['digest']('hex');return _0x5c84af[_0x383fc4(0x12c)]=_0x5a0e8d,await this['executeGetRequest'](_0x5c84af,_0x5b0844,_0x4f6262||undefined);}async[a5_0x5ded7c(0x1cf)](_0x864f21,_0x3dfe8c){const _0x48d04c=a5_0x5ded7c;if(!_0x864f21||!_0x864f21[_0x48d04c(0x17a)]){if('lHfJM'===_0x48d04c(0x1aa))throw'requires\x20clientId';else throw _0x48d04c(0x150);}let _0x4eefd6=this[_0x48d04c(0x19f)](_0x864f21),_0x6c5148=_0x48d04c(0x15c)+_0x864f21[_0x48d04c(0x17a)],_0x38239a=_0x4eefd6[_0x48d04c(0x1c5)]+_0x48d04c(0x157)+_0x48d04c(0x11a)+_0x6c5148+(_0x864f21?JSON[_0x48d04c(0x1d0)](_0x864f21):'');const _0x1ada9c=a5_0x5bf8cd['Hmac']('sha256',this[_0x48d04c(0x1b2)])['update'](_0x38239a)[_0x48d04c(0x19d)](_0x48d04c(0x1cc));return _0x4eefd6['FTXUS-SIGN']=_0x1ada9c,await this[_0x48d04c(0x1a7)](_0x4eefd6,_0x864f21,_0x6c5148,_0x3dfe8c||undefined);}async[a5_0x5ded7c(0x144)](_0x183aa5,_0xc70149){const _0x5f4d8c=a5_0x5ded7c;if(!_0x183aa5||!_0x183aa5[_0x5f4d8c(0x1bf)])throw _0x5f4d8c(0x1dd);let _0x1aa6b3=this[_0x5f4d8c(0x19f)](_0x183aa5),_0x115d18='orders/by_client_id/'+_0x183aa5[_0x5f4d8c(0x1bf)],_0x245e9b=_0x1aa6b3['FTXUS-TS']+_0x5f4d8c(0x157)+'/api/'+_0x115d18+(_0x183aa5?JSON[_0x5f4d8c(0x1d0)](_0x183aa5):'');const _0x4a7aaf=a5_0x5bf8cd[_0x5f4d8c(0x176)](_0x5f4d8c(0x169),this[_0x5f4d8c(0x1b2)])['update'](_0x245e9b)[_0x5f4d8c(0x19d)](_0x5f4d8c(0x1cc));return _0x1aa6b3[_0x5f4d8c(0x12c)]=_0x4a7aaf,await this[_0x5f4d8c(0x1a7)](_0x1aa6b3,_0x183aa5,_0x115d18,_0xc70149||undefined);}async[a5_0x5ded7c(0x1c2)](_0x5d7c47,_0x31fe79){const _0x12ef65=a5_0x5ded7c;let _0x218684=this[_0x12ef65(0x185)](),_0x6638d8='?';_0x5d7c47['market']&&(_0x12ef65(0x1c7)!==_0x12ef65(0x152)?_0x6638d8=_0x6638d8+'market='+_0x5d7c47[_0x12ef65(0x128)]:(_0x25e049=_0x4fce61+(_0x40723f=='?'?'':'&'),_0x126696=_0x22e776+'type='+_0x178f39[_0x12ef65(0x1af)]));_0x5d7c47[_0x12ef65(0x1d1)]&&(_0x12ef65(0x134)==='qGtQn'?(_0x6638d8=_0x6638d8+(_0x6638d8=='?'?'':'&'),_0x6638d8=_0x6638d8+'start_time='+_0x5d7c47[_0x12ef65(0x1d1)]):_0x35d610={'FTXUS-KEY':this[_0x12ef65(0x120)],'FTXUS-TS':_0x451069,'FTXUS-SUBACCOUNT':this['subaccount']});_0x5d7c47[_0x12ef65(0x132)]&&(_0x12ef65(0x17d)!==_0x12ef65(0x148)?(_0x6638d8=_0x6638d8+(_0x6638d8=='?'?'':'&'),_0x6638d8=_0x6638d8+_0x12ef65(0x16b)+_0x5d7c47[_0x12ef65(0x132)]):(_0x209792=_0x3525e5+(_0x471806=='?'?'':'&'),_0x37abbf=_0x2f15bc+_0x12ef65(0x12a)+_0x36c5fb[_0x12ef65(0x1d6)]));_0x5d7c47[_0x12ef65(0x191)]&&(_0x6638d8=_0x6638d8+(_0x6638d8=='?'?'':'&'),_0x6638d8=_0x6638d8+_0x12ef65(0x19a)+_0x5d7c47['order']);_0x5d7c47['orderId']&&('eeuXQ'!==_0x12ef65(0x1ce)?(_0x1f653e[_0x12ef65(0x1ba)]['baseUrl']=this[_0x12ef65(0x14e)],_0x5358c7['baseURL']='http://'+this[_0x12ef65(0x127)]+':'+this[_0x12ef65(0x16d)]):(_0x6638d8=_0x6638d8+(_0x6638d8=='?'?'':'&'),_0x6638d8=_0x6638d8+'orderId='+_0x5d7c47['orderId']));let _0x26a162='fills'+(_0x6638d8=='?'?'':_0x6638d8),_0x23fad2=_0x218684['FTXUS-TS']+_0x12ef65(0x19b)+_0x26a162;const _0x107efc=a5_0x5bf8cd[_0x12ef65(0x176)](_0x12ef65(0x169),this[_0x12ef65(0x1b2)])['update'](_0x23fad2)['digest'](_0x12ef65(0x1cc));return _0x218684[_0x12ef65(0x12c)]=_0x107efc,await this['executeGetRequest'](_0x218684,_0x26a162,_0x31fe79||undefined);}}
const a6_0x684c0d=a6_0x2c0f;(function(_0x200c8f,_0x2abf4c){const _0x4077d2=a6_0x2c0f,_0x2b7058=_0x200c8f();while(!![]){try{const _0xd305a3=-parseInt(_0x4077d2(0x12a))/0x1+parseInt(_0x4077d2(0x14e))/0x2*(-parseInt(_0x4077d2(0x141))/0x3)+parseInt(_0x4077d2(0xab))/0x4*(parseInt(_0x4077d2(0x123))/0x5)+-parseInt(_0x4077d2(0xf7))/0x6+-parseInt(_0x4077d2(0x10b))/0x7*(-parseInt(_0x4077d2(0xed))/0x8)+-parseInt(_0x4077d2(0xde))/0x9*(parseInt(_0x4077d2(0xe8))/0xa)+parseInt(_0x4077d2(0xe6))/0xb;if(_0xd305a3===_0x2abf4c)break;else _0x2b7058['push'](_0x2b7058['shift']());}catch(_0x3d28e3){_0x2b7058['push'](_0x2b7058['shift']());}}}(a6_0xb208,0xd9b93));import a6_0xa4a05c from'axios';function a6_0x2c0f(_0x408018,_0x404136){const _0xb20892=a6_0xb208();return a6_0x2c0f=function(_0x2c0feb,_0x461c65){_0x2c0feb=_0x2c0feb-0xa1;let _0x42346f=_0xb20892[_0x2c0feb];return _0x42346f;},a6_0x2c0f(_0x408018,_0x404136);}function a6_0xb208(){const _0x3e462c=['getTrades','http://','uGrTS','body','1489875ZlJiWP','map','conditional_orders/history','getTriggerOrderHistory','subaccounts','resolution','PhJOA','orderType','YXHeK','/trades','parameter\x20must\x20be\x20an\x20array\x20of\x20tokens','enc','publicApis','dec','sha256','changeSubaccountName','createGetHeader','dzFVa','start_time','start_time=','wallet/coins','orders/','requires\x20price\x20or\x20size\x20or\x20both','107913ffUkHN','createPostHeader','subaccounts/','dhsyTW5!ysh8IuysQKcG45','parse','executeOrder','AES','headers','uibmG','type=','/api/','POST','orders/history','6qRAQhx','exchangename','entries','market_name','/orderbook','target','getMarkets','getFills','/triggers','order_id','markets','ZiFxq','stringify','createSubaccountBody','label','Base64','uri','proxy','1564668xjCkuy','isMain','balancer','data','authenticate','cancelOrder','depth','getPositions','clientId','coin','YCSjD','exchange','deleteRequest','deleteSubaccount','apiSecret','wallet/balances','tokens','push','executeGetRequest','secret','wallet/all_balances','FTXUS-SIGN','conditional_orders/','transferBetweenSubaccounts','etNsF','Utf8','markets/','QNOCW','baseUrl','requires\x20clientId','fills','mjotv','Array','NiZxZ','HUDyc','modifyOrderByClientId','aEQzQ','key','KcHjA','eGwma','zRnHy','getHistoricalPrices','includes','getOrderbook','createTriggerBody','ydGnO','baseURL','end_time=','aMlgR','NQUHm','decrypt','225qlTNxO','result','toString','jeDzO','getOpenTriggerOrders','getBalances','auystrAAS2iW85#s2@jdDC','TBjmd','37975927PuGwTn','DYivn','471990EyFpEV','order','getOrderHistory','proxyPort','useProxy','22328VAQpGJ','EIqTK','getTriggerOrderTriggers','orderType=','GET/api/','OLPBm','join','/orderbook?depth=','price','subaccount','7105848nvCFaz','/proxy/get','length','zWdDR','market=','name','authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret','end_time','requires\x20orderId','eHDMQ','hex','getOpenOrders','deleteSubaccountData','TdBom','subaccounts/update_name','cancelOrderByClientId','/proxy/post','joOEE','changeSubaccountNameBody','type','2534mypgaD','FTXUS-TS','market','/proxy/delete','side=','side','modifyTriggerOrder','url','ayZvN','nickname','Hmac','orderId','exchangeid','sockets','DELETE','DHKcn','orders/by_client_id/','cancelAllOrders','GBPuT','digest','No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters','xapbN','createPlaceBody','/modify','5sMBDsw','apiKey','update'];a6_0xb208=function(){return _0x3e462c;};return a6_0xb208();}import a6_0x196b77 from'crypto';import a6_0xa7931b from'crypto-js';export class FtxUs{[a6_0x684c0d(0x136)]=new Array();['ky']=a6_0x684c0d(0xe4);['i']=a6_0x684c0d(0x144);[a6_0x684c0d(0x118)]={};constructor(_0x1d7e38){const _0x39d7e1=a6_0x684c0d;this['url']='https://ftx.us/api/',this[_0x39d7e1(0xaf)]=_0x1d7e38['authenticate']==undefined?!![]:_0x1d7e38[_0x39d7e1(0xaf)],this[_0x39d7e1(0xfc)]=_0x1d7e38[_0x39d7e1(0xb6)][_0x39d7e1(0x14f)]==undefined?'ftxus':_0x1d7e38[_0x39d7e1(0xb6)][_0x39d7e1(0x14f)],this[_0x39d7e1(0x117)]=_0x1d7e38[_0x39d7e1(0xb6)]['id'],this[_0x39d7e1(0xa7)]=_0x1d7e38['label'];if(this[_0x39d7e1(0xaf)]){if(!_0x1d7e38[_0x39d7e1(0xd0)]||!_0x1d7e38['secret']||_0x1d7e38['key']==''||_0x1d7e38[_0x39d7e1(0xbe)]=='')throw _0x39d7e1(0xfd);this['apiKey']=_0x1d7e38[_0x39d7e1(0xd0)],this['apiSecret']=_0x1d7e38['secret'],this[_0x39d7e1(0xac)]=_0x1d7e38[_0x39d7e1(0xf6)]==undefined,this[_0x39d7e1(0xf6)]=this[_0x39d7e1(0xac)]?'':_0x1d7e38[_0x39d7e1(0xf6)];}this['useProxy']=![],this['balancer']=_0x1d7e38[_0x39d7e1(0xad)]||undefined,_0x1d7e38['useProxy']&&((_0x1d7e38[_0x39d7e1(0xaa)]&&_0x1d7e38[_0x39d7e1(0xaa)]!=''||_0x1d7e38[_0x39d7e1(0xad)]&&_0x1d7e38[_0x39d7e1(0xad)]!='')&&(this[_0x39d7e1(0xec)]=!![],this['proxy']=_0x1d7e38[_0x39d7e1(0xaa)],_0x1d7e38[_0x39d7e1(0xeb)]?this[_0x39d7e1(0xeb)]=_0x1d7e38['proxyPort']:'vSMpq'!=='vSMpq'?(_0x4c589a['headers'][_0x39d7e1(0x153)]=this[_0x39d7e1(0x112)],_0x5c844c[_0x39d7e1(0x148)]['uri']=_0x2465af[_0x39d7e1(0x112)],_0xfe72a2[_0x39d7e1(0x148)][_0x39d7e1(0x129)]=_0x2b19f2):this['proxyPort']=0xbb8)),this['ri']='lyQBz2wseWT6vT7XDyp9DQ==',this[_0x39d7e1(0x136)][_0x39d7e1(0xbc)](_0x39d7e1(0x126),_0x39d7e1(0xd4),_0x39d7e1(0x154),'getMarket');}[a6_0x684c0d(0x137)]=_0x569614=>{const _0x81c77a=a6_0x684c0d;if(_0x569614==null){if(_0x81c77a(0xd8)!==_0x81c77a(0xc3))return undefined;else _0x4e28de[_0x81c77a(0xd9)]=_0x81c77a(0x127)+this[_0x81c77a(0xaa)]+':'+this[_0x81c77a(0xeb)];}const _0x516b36=a6_0xa7931b['enc'][_0x81c77a(0xa8)][_0x81c77a(0x145)](this['ky']),_0x502253=a6_0xa7931b[_0x81c77a(0x135)][_0x81c77a(0xa8)]['parse'](this['i']);return a6_0xa7931b[_0x81c77a(0x147)][_0x81c77a(0xdd)](_0x569614,_0x516b36,{'iv':_0x502253})[_0x81c77a(0xe0)](a6_0xa7931b[_0x81c77a(0x135)][_0x81c77a(0xc4)]);};['createPostHeader'](_0x16ef17){const _0x131814=a6_0x684c0d;let _0x2a2d9d=Date['now'](),_0x42c0be;if(this['isMain']&&_0x16ef17&&_0x16ef17[_0x131814(0xf6)])_0x42c0be={'FTXUS-KEY':this[_0x131814(0x124)],'FTXUS-TS':_0x2a2d9d,'FTXUS-SUBACCOUNT':_0x16ef17['subaccount']};else{if(!this[_0x131814(0xac)]&&_0x16ef17&&_0x16ef17[_0x131814(0xf6)]&&_0x16ef17[_0x131814(0xf6)]==this[_0x131814(0xf6)])_0x42c0be={'FTXUS-KEY':this[_0x131814(0x124)],'FTXUS-TS':_0x2a2d9d,'FTXUS-SUBACCOUNT':_0x16ef17['subaccount']};else{if(!this[_0x131814(0xac)]&&(!_0x16ef17||!_0x16ef17[_0x131814(0xf6)])){if(_0x131814(0x104)===_0x131814(0x104))_0x42c0be={'FTXUS-KEY':this['apiKey'],'FTXUS-TS':_0x2a2d9d,'FTXUS-SUBACCOUNT':this[_0x131814(0xf6)]};else throw _0x131814(0xff);}else this[_0x131814(0xac)]&&(_0x42c0be={'FTXUS-KEY':this['apiKey'],'FTXUS-TS':_0x2a2d9d});}}return _0x42c0be;}[a6_0x684c0d(0x13a)](_0x299180){const _0x447a7f=a6_0x684c0d;let _0x223230=Date['now'](),_0x454587;if(this[_0x447a7f(0xac)]&&_0x299180&&_0x299180[_0x447a7f(0xf6)])_0x454587={'FTXUS-KEY':this[_0x447a7f(0x124)],'FTXUS-TS':_0x223230,'FTXUS-SUBACCOUNT':_0x299180[_0x447a7f(0xf6)]};else{if(!this[_0x447a7f(0xac)]&&_0x299180&&_0x299180['subaccount']&&_0x299180['subaccount']==this[_0x447a7f(0xf6)])_0x454587={'FTXUS-KEY':this[_0x447a7f(0x124)],'FTXUS-TS':_0x223230,'FTXUS-SUBACCOUNT':_0x299180['subaccount']};else{if(!this[_0x447a7f(0xac)]&&(!_0x299180||!_0x299180[_0x447a7f(0xf6)]))_0x454587={'FTXUS-KEY':this[_0x447a7f(0x124)],'FTXUS-TS':_0x223230,'FTXUS-SUBACCOUNT':this[_0x447a7f(0xf6)]};else this[_0x447a7f(0xac)]&&(_0x454587={'FTXUS-KEY':this['apiKey'],'FTXUS-TS':_0x223230});}}return _0x454587;}async[a6_0x684c0d(0x146)](_0x2e385f,_0x48148b,_0x13c33a,_0x303c67){const _0x1c8467=a6_0x684c0d;let _0x36e256={'baseURL':this['url'],'url':_0x13c33a,'method':'POST','headers':_0x2e385f};const _0xeef4e4=_0x48148b?JSON[_0x1c8467(0xa5)](_0x48148b):'';if(this[_0x1c8467(0xec)]){if(_0x2e385f=='')_0x36e256[_0x1c8467(0x148)]={'target':this[_0x1c8467(0x112)],'uri':_0x36e256[_0x1c8467(0x112)],'body':_0xeef4e4};else{if(_0x1c8467(0xca)!==_0x1c8467(0xca))return _0x50fd1a[_0x1c8467(0xae)][_0x1c8467(0xae)][_0x1c8467(0xdf)];else _0x36e256[_0x1c8467(0x148)][_0x1c8467(0x153)]=this[_0x1c8467(0x112)],_0x36e256['headers'][_0x1c8467(0xa9)]=_0x36e256[_0x1c8467(0x112)],_0x36e256['headers'][_0x1c8467(0x129)]=_0xeef4e4;}this[_0x1c8467(0xad)]?(_0x36e256[_0x1c8467(0x148)][_0x1c8467(0xc7)]=this[_0x1c8467(0x112)],_0x36e256['baseURL']=_0x1c8467(0x127)+this[_0x1c8467(0xad)]+':'+this[_0x1c8467(0xeb)]):_0x36e256[_0x1c8467(0xd9)]=_0x1c8467(0x127)+this['proxy']+':'+this['proxyPort'],_0x36e256[_0x1c8467(0x112)]=_0x1c8467(0x107);}else _0x36e256[_0x1c8467(0xae)]=_0x48148b;try{const _0x16783e=await a6_0xa4a05c(_0x36e256);if(!_0x16783e)throw _0x1c8467(0x11f);if(this[_0x1c8467(0xec)]){let _0x11fd25=_0x16783e[_0x1c8467(0xae)][_0x1c8467(0xae)]?_0x16783e['data'][_0x1c8467(0xae)]:_0x16783e[_0x1c8467(0xae)];delete _0x16783e[_0x1c8467(0xae)],_0x16783e[_0x1c8467(0xae)]=_0x11fd25;}if(_0x303c67&&['1','2','3','4','5','6'][_0x1c8467(0xd5)](_0x303c67)){if(_0x1c8467(0xdb)===_0x1c8467(0xdb))switch(_0x303c67){case'1':if(_0x16783e[_0x1c8467(0xae)][_0x1c8467(0xae)]){if('EIqTK'!==_0x1c8467(0xee))_0xddfa44[_0x1c8467(0x148)][_0x1c8467(0xc7)]=this[_0x1c8467(0x112)],_0xa0679c[_0x1c8467(0xd9)]=_0x1c8467(0x127)+this[_0x1c8467(0xad)]+':'+this[_0x1c8467(0xeb)];else return _0x16783e[_0x1c8467(0xae)][_0x1c8467(0xae)];}else return _0x16783e[_0x1c8467(0xae)];break;case'2':return _0x16783e['data'];break;case'3':return _0x16783e;break;case'4':return _0x16783e[_0x1c8467(0xae)][_0x1c8467(0xae)]?{'result':_0x16783e[_0x1c8467(0xae)][_0x1c8467(0xae)],'body':_0x48148b}:{'result':_0x16783e[_0x1c8467(0xae)],'body':_0x48148b};break;case'5':return{'result':_0x16783e[_0x1c8467(0xae)],'body':_0x48148b};break;case'6':return{'result':_0x16783e,'body':_0x48148b};break;}else _0x70e8f7=_0x257286+_0x1c8467(0xda)+_0x39c507['end_time'];}if(_0x16783e['data'][_0x1c8467(0xae)])return{'result':_0x16783e['data'][_0x1c8467(0xae)],'body':_0x48148b};else{if('lFLCE'===_0x1c8467(0xdc))_0x3adee4=_0x590298+_0x1c8467(0xda)+_0x19b906[_0x1c8467(0xfe)];else return{'result':_0x16783e[_0x1c8467(0xae)],'body':_0x48148b};}}catch(_0x515223){if(_0x1c8467(0xf2)!=='OLPBm')throw _0x1c8467(0xff);else return _0x515223;}}async[a6_0x684c0d(0xbd)](_0x1d161b,_0x440995,_0x1c174b){const _0x464724=a6_0x684c0d;let _0x523270={'baseURL':this[_0x464724(0x112)],'url':_0x440995,'method':'GET','headers':_0x1d161b};if(this['useProxy']){if(_0x1d161b==''){if('dzFVa'===_0x464724(0x13b))_0x523270[_0x464724(0x148)]={'target':this[_0x464724(0x112)],'uri':_0x523270[_0x464724(0x112)]};else throw _0x464724(0xc8);}else _0x523270[_0x464724(0x148)][_0x464724(0x153)]=this[_0x464724(0x112)],_0x523270[_0x464724(0x148)][_0x464724(0xa9)]=_0x523270[_0x464724(0x112)];this['balancer']?(_0x523270[_0x464724(0x148)][_0x464724(0xc7)]=this[_0x464724(0x112)],_0x523270['baseURL']=_0x464724(0x127)+this['balancer']+':'+this[_0x464724(0xeb)]):_0x523270['baseURL']='http://'+this[_0x464724(0xaa)]+':'+this['proxyPort'],_0x523270[_0x464724(0x112)]=_0x464724(0xf8);}try{const _0x144229=await a6_0xa4a05c(_0x523270);if(!_0x144229)throw _0x464724(0x11f);if(_0x1c174b&&['1','2','3'][_0x464724(0xd5)](_0x1c174b))switch(_0x1c174b){case'1':if(_0x144229['data']['data'])return _0x144229['data'][_0x464724(0xae)];else _0x144229[_0x464724(0xae)][_0x464724(0xdf)]&&_0x144229[_0x464724(0xae)]['result'];break;case'2':return _0x144229[_0x464724(0xae)];break;case'3':return _0x144229;break;}if(_0x144229[_0x464724(0xae)][_0x464724(0xae)]){if(_0x144229['data'][_0x464724(0xae)][_0x464724(0xdf)]){if(_0x464724(0x149)!=='CaBmb')return _0x144229[_0x464724(0xae)][_0x464724(0xae)]['result'];else throw'requires\x20price\x20or\x20size\x20or\x20both';}else return _0x144229[_0x464724(0xae)][_0x464724(0xae)];}else{if(_0x144229[_0x464724(0xae)][_0x464724(0xdf)]){if('GnZCi'!==_0x464724(0x132))return _0x144229['data'][_0x464724(0xdf)];else{let _0x3764fc=_0x4001ba[_0x464724(0xae)][_0x464724(0xae)]?_0x345f0d[_0x464724(0xae)]['data']:_0xe7bc8c[_0x464724(0xae)];delete _0x4982d3[_0x464724(0xae)],_0x1c2c04[_0x464724(0xae)]=_0x3764fc;}}}}catch(_0x201e99){return _0x201e99;}}async[a6_0x684c0d(0xb7)](_0xa13756,_0x1818d1,_0x363c74,_0x196702){const _0x5467f1=a6_0x684c0d;let _0x3c757a={'baseURL':this[_0x5467f1(0x112)],'url':_0x363c74,'method':_0x5467f1(0x119),'headers':_0xa13756};const _0x3df43c=_0x1818d1?JSON[_0x5467f1(0xa5)](_0x1818d1):'';if(this[_0x5467f1(0xec)]){if(_0xa13756==''){if('eHDMQ'===_0x5467f1(0x100))_0x3c757a[_0x5467f1(0x148)]={'target':this[_0x5467f1(0x112)],'uri':_0x3c757a[_0x5467f1(0x112)],'body':_0x3df43c};else return _0xea9a5d[_0x5467f1(0xae)]['data'];}else _0x3c757a[_0x5467f1(0x148)][_0x5467f1(0x153)]=this['url'],_0x3c757a[_0x5467f1(0x148)][_0x5467f1(0xa9)]=_0x3c757a[_0x5467f1(0x112)],_0x3c757a['headers'][_0x5467f1(0x129)]=_0x3df43c;this['balancer']?(_0x3c757a['headers'][_0x5467f1(0xc7)]=this[_0x5467f1(0x112)],_0x3c757a[_0x5467f1(0xd9)]=_0x5467f1(0x127)+this['balancer']+':'+this[_0x5467f1(0xeb)]):_0x3c757a[_0x5467f1(0xd9)]='http://'+this[_0x5467f1(0xaa)]+':'+this[_0x5467f1(0xeb)],_0x3c757a[_0x5467f1(0x112)]=_0x5467f1(0x10e);}else _0x1818d1&&(_0x3c757a[_0x5467f1(0xae)]=_0x1818d1);try{if(_0x5467f1(0xe1)!==_0x5467f1(0x120)){const _0x21a950=await a6_0xa4a05c(_0x3c757a);if(!_0x21a950)throw _0x5467f1(0x11f);if(this['useProxy']){let _0x73b56a=_0x21a950[_0x5467f1(0xae)][_0x5467f1(0xae)]?_0x21a950[_0x5467f1(0xae)][_0x5467f1(0xae)]:_0x21a950[_0x5467f1(0xae)];delete _0x21a950['data'],_0x21a950[_0x5467f1(0xae)]=_0x73b56a;}if(_0x196702&&['1','2'][_0x5467f1(0xd5)](_0x196702)){if(_0x5467f1(0xe7)!=='UzyGc')switch(_0x196702){case'1':return _0x21a950['data'];break;case'2':return _0x21a950;break;}else{let _0x5930af=_0x49b7cc;return _0x5930af;}}return _0x21a950[_0x5467f1(0xae)];}else{_0x5e6971=_0x1a71fe+'&';if(_0x485cee[_0x5467f1(0x13c)])_0x30c2dc=_0x5a819a+'start_time='+_0x3b46fe['start_time'],_0x557882['end_time']&&(_0x2f8713=_0x40c3d4+'&'+_0x5467f1(0xfe)+_0x34f1c6['end_time']);else _0x49d8fb[_0x5467f1(0xfe)]&&(_0x511769=_0x4e7cce+_0x5467f1(0xda)+_0x32bda3[_0x5467f1(0xfe)]);}}catch(_0x413d59){return _0x413d59;}}async['getAllSubaccounts'](_0x20205d){const _0x544487=a6_0x684c0d;let _0x1272dc=this[_0x544487(0x13a)](),_0xf9bd8a=_0x544487(0x12e),_0x86f0cb=_0x1272dc[_0x544487(0x10c)]+'GET/api/'+_0xf9bd8a;const _0x589c17=a6_0x196b77['Hmac']('sha256',this[_0x544487(0xb9)])[_0x544487(0x125)](_0x86f0cb)[_0x544487(0x11e)](_0x544487(0x101));return _0x1272dc[_0x544487(0xc0)]=_0x589c17,await(await this['executeGetRequest'](_0x1272dc,_0xf9bd8a,_0x20205d||undefined))[_0x544487(0xae)];}[a6_0x684c0d(0xa6)](_0x351e74){let _0x3ed914=_0x351e74;return _0x3ed914;}async['createSubaccount'](_0x1b79f3,_0x2dacbc){const _0x175c0f=a6_0x684c0d;let _0x385162=this['createPostHeader'](),_0x2f2b1d=this[_0x175c0f(0xa6)](_0x1b79f3),_0x1ed883='subaccounts',_0x30902b=_0x385162[_0x175c0f(0x10c)]+_0x175c0f(0x14c)+_0x175c0f(0x14b)+_0x1ed883+JSON[_0x175c0f(0xa5)](_0x2f2b1d);const _0x3f39fb=a6_0x196b77['Hmac'](_0x175c0f(0x138),this[_0x175c0f(0xb9)])['update'](_0x30902b)[_0x175c0f(0x11e)](_0x175c0f(0x101));return _0x385162[_0x175c0f(0xc0)]=_0x3f39fb,await(await this[_0x175c0f(0x146)](_0x385162,_0x2f2b1d,_0x1ed883,_0x2dacbc||undefined))['data'];}[a6_0x684c0d(0x109)](_0x490bf1){let _0x31efeb=_0x490bf1;return _0x31efeb;}async[a6_0x684c0d(0x139)](_0x26221c,_0x18fd13){const _0x1cfa3e=a6_0x684c0d;let _0x2c8e26=this[_0x1cfa3e(0x142)](),_0x239b40=this[_0x1cfa3e(0x109)](_0x26221c),_0x5e38eb=_0x1cfa3e(0x105),_0x2ea86b=_0x2c8e26[_0x1cfa3e(0x10c)]+'POST'+'/api/'+_0x5e38eb+JSON[_0x1cfa3e(0xa5)](_0x239b40);const _0x29650a=a6_0x196b77[_0x1cfa3e(0x115)](_0x1cfa3e(0x138),this['apiSecret'])[_0x1cfa3e(0x125)](_0x2ea86b)[_0x1cfa3e(0x11e)](_0x1cfa3e(0x101));return _0x2c8e26[_0x1cfa3e(0xc0)]=_0x29650a,await(await this[_0x1cfa3e(0x146)](_0x2c8e26,_0x239b40,_0x5e38eb,_0x18fd13||undefined))['data'];}[a6_0x684c0d(0x103)](_0x271c95){let _0x37f5fe=_0x271c95;return _0x37f5fe;}async[a6_0x684c0d(0xb8)](_0xccd496,_0x1b8b7f){const _0x5aadc5=a6_0x684c0d;let _0x590291=this[_0x5aadc5(0x142)](_0xccd496),_0x4fd728=this[_0x5aadc5(0x103)](_0xccd496),_0x3d9063=_0x5aadc5(0x12e),_0x359e6c=_0x590291[_0x5aadc5(0x10c)]+'DELETE'+'/api/'+_0x3d9063+JSON[_0x5aadc5(0xa5)](_0x4fd728);const _0x489a0a=a6_0x196b77[_0x5aadc5(0x115)]('sha256',this[_0x5aadc5(0xb9)])[_0x5aadc5(0x125)](_0x359e6c)['digest'](_0x5aadc5(0x101));return _0x590291[_0x5aadc5(0xc0)]=_0x489a0a,await this[_0x5aadc5(0xb7)](_0x590291,_0x4fd728,_0x3d9063,_0x1b8b7f||undefined);}async['getSubaccountBalances'](_0x1be317,_0x48f458){const _0x1015b5=a6_0x684c0d;let _0x459913=this[_0x1015b5(0x13a)](),_0x5a06c8=_0x1be317[_0x1015b5(0x114)],_0x10f468=_0x1015b5(0x143)+_0x5a06c8+'/balances',_0x7f2168=_0x459913[_0x1015b5(0x10c)]+'GET/api/'+_0x10f468;const _0x9147ae=a6_0x196b77[_0x1015b5(0x115)](_0x1015b5(0x138),this[_0x1015b5(0xb9)])[_0x1015b5(0x125)](_0x7f2168)[_0x1015b5(0x11e)](_0x1015b5(0x101));return _0x459913[_0x1015b5(0xc0)]=_0x9147ae,await this[_0x1015b5(0xbd)](_0x459913,_0x10f468,_0x48f458||undefined);}async[a6_0x684c0d(0xc2)](_0x5d9f7c,_0x397a3a){const _0x2e64d7=a6_0x684c0d;let _0x560e5f=this['createPostHeader'](),_0x5d6c8e=_0x5d9f7c,_0x5217fe='subaccounts/transfer',_0x39ab11=_0x560e5f['FTXUS-TS']+'POST'+_0x2e64d7(0x14b)+_0x5217fe+JSON[_0x2e64d7(0xa5)](_0x5d6c8e);const _0x3eaad2=a6_0x196b77[_0x2e64d7(0x115)]('sha256',this[_0x2e64d7(0xb9)])[_0x2e64d7(0x125)](_0x39ab11)[_0x2e64d7(0x11e)](_0x2e64d7(0x101));return _0x560e5f['FTXUS-SIGN']=_0x3eaad2,await this['executeOrder'](_0x560e5f,_0x5d6c8e,_0x5217fe,_0x397a3a||undefined);}async[a6_0x684c0d(0x154)](_0x5b77b0){const _0x235daa=a6_0x684c0d;let _0x2dfd64=_0x235daa(0xa3),_0x19d4b0=this[_0x235daa(0x112)]+_0x2dfd64;return await this[_0x235daa(0xbd)]('',_0x19d4b0,_0x5b77b0||undefined);}async['getMarket'](_0x661e90,_0x6e24e5){const _0x557f78=a6_0x684c0d;let _0x59b3ce=_0x557f78(0xc5),_0x472eba=this[_0x557f78(0x112)]+_0x59b3ce+_0x661e90;return await this[_0x557f78(0xbd)]('',_0x472eba,_0x6e24e5||undefined);}async[a6_0x684c0d(0xd6)](_0x23c136,_0x5682c6){const _0x1ebd7b=a6_0x684c0d;let _0x43f8fc='?';return _0x23c136[_0x1ebd7b(0xb1)]==null?_0x43f8fc=this[_0x1ebd7b(0x112)]+_0x1ebd7b(0xc5)+_0x23c136[_0x1ebd7b(0x151)]+_0x1ebd7b(0x152):_0x43f8fc=this[_0x1ebd7b(0x112)]+'markets/'+_0x23c136[_0x1ebd7b(0x151)]+_0x1ebd7b(0xf4)+_0x23c136[_0x1ebd7b(0xb1)],await this[_0x1ebd7b(0xbd)]('',_0x43f8fc,_0x5682c6||undefined);}async[a6_0x684c0d(0x126)](_0xb4cb7e,_0x56e917){const _0x391331=a6_0x684c0d;let _0x56a3f2=this[_0x391331(0x112)]+'markets/'+_0xb4cb7e[_0x391331(0x151)]+_0x391331(0x133);if(_0xb4cb7e[_0x391331(0x13c)]||_0xb4cb7e[_0x391331(0xfe)]){if(_0x391331(0x11a)!==_0x391331(0xfa)){_0x56a3f2=_0x56a3f2+'?';if(_0xb4cb7e[_0x391331(0x13c)])_0x56a3f2=_0x56a3f2+_0x391331(0x13d)+_0xb4cb7e[_0x391331(0x13c)],_0xb4cb7e['end_time']&&(_0x56a3f2=_0x56a3f2+'&'+'end_time='+_0xb4cb7e[_0x391331(0xfe)]);else _0xb4cb7e['end_time']&&('HlRNc'!==_0x391331(0xe5)?_0x56a3f2=_0x56a3f2+_0x391331(0xda)+_0xb4cb7e[_0x391331(0xfe)]:_0xf66fa4['headers']={'target':this[_0x391331(0x112)],'uri':_0x67201e['url']});}else _0x37519a[_0x391331(0x148)]={'target':this[_0x391331(0x112)],'uri':_0x32da86['url'],'body':_0x1bbfdd};}return await this[_0x391331(0xbd)]('',_0x56a3f2,_0x56e917||undefined);}async[a6_0x684c0d(0xd4)](_0x30fe24,_0x1b6ead){const _0x13aec7=a6_0x684c0d;let _0x3bd129=this[_0x13aec7(0x112)]+_0x13aec7(0xc5)+_0x30fe24[_0x13aec7(0x151)]+'/candles?resolution='+_0x30fe24[_0x13aec7(0x12f)];if(_0x30fe24[_0x13aec7(0x13c)]||_0x30fe24['end_time']){_0x3bd129=_0x3bd129+'&';if(_0x30fe24['start_time'])_0x3bd129=_0x3bd129+_0x13aec7(0x13d)+_0x30fe24['start_time'],_0x30fe24[_0x13aec7(0xfe)]&&(_0x3bd129=_0x3bd129+'&'+'end_time'+_0x30fe24[_0x13aec7(0xfe)]);else _0x30fe24[_0x13aec7(0xfe)]&&(_0x3bd129=_0x3bd129+_0x13aec7(0xda)+_0x30fe24[_0x13aec7(0xfe)]);}return await this[_0x13aec7(0xbd)]('',_0x3bd129,_0x1b6ead||undefined);}async['getCoins'](_0x572be0,_0x21e4df){const _0x2a1225=a6_0x684c0d;let _0x512081=this['createGetHeader'](_0x572be0),_0x55d25a=_0x2a1225(0x13e),_0x3a1e71=_0x512081[_0x2a1225(0x10c)]+_0x2a1225(0xf1)+_0x55d25a;const _0x5e5d47=a6_0x196b77[_0x2a1225(0x115)](_0x2a1225(0x138),this['apiSecret'])[_0x2a1225(0x125)](_0x3a1e71)[_0x2a1225(0x11e)](_0x2a1225(0x101));return _0x512081[_0x2a1225(0xc0)]=_0x5e5d47,await this[_0x2a1225(0xbd)](_0x512081,_0x55d25a,_0x21e4df||undefined);}async[a6_0x684c0d(0xb2)](_0x3ff636,_0x43b213){const _0x4f509f=a6_0x684c0d;return await this[_0x4f509f(0xe3)](_0x3ff636,_0x43b213||undefined);}async[a6_0x684c0d(0xe3)](_0x4bf834,_0x114ff0){const _0x3b19b8=a6_0x684c0d;let _0x2b5ce8=this[_0x3b19b8(0x13a)](_0x4bf834),_0x35541d;if(_0x4bf834&&_0x4bf834[_0x3b19b8(0xbb)]){_0x35541d=_0x4bf834[_0x3b19b8(0xbb)];if(!_0x35541d['constructor'][_0x3b19b8(0xe0)]()['indexOf'](_0x3b19b8(0xcb))>0x1)throw _0x3b19b8(0x134);}let _0x235806=_0x3b19b8(0xba),_0x552154=_0x2b5ce8['FTXUS-TS']+'GET/api/'+_0x235806;const _0x526943=a6_0x196b77[_0x3b19b8(0x115)](_0x3b19b8(0x138),this[_0x3b19b8(0xb9)])[_0x3b19b8(0x125)](_0x552154)['digest'](_0x3b19b8(0x101));_0x2b5ce8[_0x3b19b8(0xc0)]=_0x526943;let _0x51026b=await this[_0x3b19b8(0xbd)](_0x2b5ce8,_0x235806,_0x114ff0||undefined),_0x27986d=new Array();if(_0x35541d){if(_0x3b19b8(0xb5)!==_0x3b19b8(0x113)){if(_0x51026b['data']&&_0x51026b['data']['result'])for(let _0x25b9e0=0x0;_0x25b9e0<_0x51026b[_0x3b19b8(0xae)][_0x3b19b8(0xdf)][_0x3b19b8(0xf9)];_0x25b9e0++){if(_0x3b19b8(0xc6)==='QNOCW'){let _0x55f55b=_0x51026b[_0x3b19b8(0xae)][_0x3b19b8(0xdf)][_0x25b9e0][_0x3b19b8(0xb4)];_0x35541d[_0x3b19b8(0xd5)](_0x55f55b)&&_0x27986d[_0x3b19b8(0xbc)](_0x51026b[_0x3b19b8(0xae)][_0x3b19b8(0xdf)][_0x25b9e0]);}else _0x37a8e5=_0x4dd01d+_0x3b19b8(0x13d)+_0x2102ff[_0x3b19b8(0x13c)],_0xe6b5f6['end_time']&&(_0x37ffa7=_0x1ae823+'&'+'end_time='+_0x3b4691[_0x3b19b8(0xfe)]);}}else _0x348e92=_0x286668+'&'+_0x3b19b8(0xfe)+_0x55982c['end_time'];}else _0x27986d=_0x51026b[_0x3b19b8(0xae)];return _0x27986d;}async['getAllBalances'](_0x532484,_0x22e4be){const _0x23cc30=a6_0x684c0d;let _0x24bd4a=this['createGetHeader'](_0x532484),_0x4d8a3a=_0x23cc30(0xbf),_0x2f4270=_0x24bd4a['FTXUS-TS']+_0x23cc30(0xf1)+_0x4d8a3a;const _0x12be16=a6_0x196b77[_0x23cc30(0x115)](_0x23cc30(0x138),this[_0x23cc30(0xb9)])[_0x23cc30(0x125)](_0x2f4270)[_0x23cc30(0x11e)]('hex');return _0x24bd4a[_0x23cc30(0xc0)]=_0x12be16,await this[_0x23cc30(0xbd)](_0x24bd4a,_0x4d8a3a,_0x22e4be||undefined);}async[a6_0x684c0d(0x102)](_0x3c4e66,_0x2befb0){const _0xb1a4a9=a6_0x684c0d;let _0x5a4613=this['createGetHeader'](),_0x3bd8a3='orders';_0x3c4e66&&(_0x3bd8a3=_0x3bd8a3+'?market='+_0x3c4e66);let _0x4529fd=_0x5a4613[_0xb1a4a9(0x10c)]+'GET/api/'+_0x3bd8a3;const _0x2b7f3a=a6_0x196b77[_0xb1a4a9(0x115)]('sha256',this[_0xb1a4a9(0xb9)])['update'](_0x4529fd)[_0xb1a4a9(0x11e)](_0xb1a4a9(0x101));return _0x5a4613['FTXUS-SIGN']=_0x2b7f3a,await this[_0xb1a4a9(0xbd)](_0x5a4613,_0x3bd8a3,_0x2befb0||undefined);}async[a6_0x684c0d(0xea)](_0x57b024,_0x186c25){const _0x1e852e=a6_0x684c0d;let _0x50caed=this[_0x1e852e(0x13a)](),_0x120ae8=_0x1e852e(0x14d),_0x1efa77=Object['entries'](_0x57b024)[_0x1e852e(0x12b)](_0x5f8d76=>_0x5f8d76[_0x1e852e(0xf3)]('='));_0x1efa77[_0x1e852e(0xf9)]>0x0&&(_0x1e852e(0x11d)===_0x1e852e(0x11d)?(_0x120ae8=_0x120ae8+'?',_0x120ae8=_0x120ae8+_0x1efa77[_0x1e852e(0xf3)]('&')):_0x220890=this[_0x1e852e(0x112)]+'markets/'+_0x6ce054[_0x1e852e(0x151)]+_0x1e852e(0xf4)+_0x40e2f9[_0x1e852e(0xb1)]);let _0x3b9800=_0x120ae8,_0x353fd7=_0x50caed[_0x1e852e(0x10c)]+_0x1e852e(0xf1)+_0x120ae8;const _0x3e650a=a6_0x196b77[_0x1e852e(0x115)]('sha256',this[_0x1e852e(0xb9)])['update'](_0x353fd7)[_0x1e852e(0x11e)](_0x1e852e(0x101));return _0x50caed[_0x1e852e(0xc0)]=_0x3e650a,await this[_0x1e852e(0xbd)](_0x50caed,_0x3b9800,_0x186c25||undefined);}async[a6_0x684c0d(0xe2)](_0x30090d,_0x59b222){const _0x31c3c7=a6_0x684c0d;_0x30090d=_0x30090d||{};let _0x37b1a1=this[_0x31c3c7(0x13a)](),_0x20c623='conditional_orders',_0x1b75f7=Object[_0x31c3c7(0x150)](_0x30090d)[_0x31c3c7(0x12b)](_0x20838c=>_0x20838c[_0x31c3c7(0xf3)]('='));_0x1b75f7[_0x31c3c7(0xf9)]>0x0&&(_0x20c623=_0x20c623+'?',_0x20c623=_0x20c623+_0x1b75f7[_0x31c3c7(0xf3)]('&'));let _0x39a032=_0x20c623,_0xfbdbc0=_0x37b1a1[_0x31c3c7(0x10c)]+_0x31c3c7(0xf1)+_0x39a032;const _0x317879=a6_0x196b77[_0x31c3c7(0x115)](_0x31c3c7(0x138),this['apiSecret'])[_0x31c3c7(0x125)](_0xfbdbc0)[_0x31c3c7(0x11e)](_0x31c3c7(0x101));return _0x37b1a1[_0x31c3c7(0xc0)]=_0x317879,await this['executeGetRequest'](_0x37b1a1,_0x39a032,_0x59b222||undefined);}async[a6_0x684c0d(0xef)](_0x403990,_0x1d9698){const _0x4f4ccd=a6_0x684c0d;let _0x30c6a5=this[_0x4f4ccd(0x13a)]();if(!_0x403990||!_0x403990[_0x4f4ccd(0x116)])throw _0x4f4ccd(0xff);let _0xa1922=_0x4f4ccd(0xc1)+_0x403990[_0x4f4ccd(0x116)]+_0x4f4ccd(0xa1),_0x3dff82=_0xa1922,_0x3b10f5=_0x30c6a5[_0x4f4ccd(0x10c)]+_0x4f4ccd(0xf1)+_0x3dff82;const _0x1dd2a2=a6_0x196b77[_0x4f4ccd(0x115)](_0x4f4ccd(0x138),this[_0x4f4ccd(0xb9)])['update'](_0x3b10f5)[_0x4f4ccd(0x11e)](_0x4f4ccd(0x101));return _0x30c6a5['FTXUS-SIGN']=_0x1dd2a2,await this[_0x4f4ccd(0xbd)](_0x30c6a5,_0x3dff82,_0x1d9698||undefined);}async[a6_0x684c0d(0x12d)](_0xfd2efc,_0x40cd9e){const _0x1b1de0=a6_0x684c0d;let _0x4d12be=this[_0x1b1de0(0x13a)](),_0x1bf0e9='?';_0xfd2efc=_0xfd2efc||{};if(_0xfd2efc[_0x1b1de0(0x10d)]){if(_0x1b1de0(0xd1)==='dgyVX')return{'result':_0x2145f3[_0x1b1de0(0xae)][_0x1b1de0(0xae)],'body':_0x610880};else _0x1bf0e9=_0x1bf0e9+_0x1b1de0(0xfb)+_0xfd2efc[_0x1b1de0(0x10d)];}_0xfd2efc['start_time']&&(_0x1bf0e9=_0x1bf0e9+(_0x1bf0e9=='?'?'':'&'),_0x1bf0e9=_0x1bf0e9+'start_time='+_0xfd2efc[_0x1b1de0(0x13c)]);_0xfd2efc['end_time']&&(_0x1bf0e9=_0x1bf0e9+(_0x1bf0e9=='?'?'':'&'),_0x1bf0e9=_0x1bf0e9+_0x1b1de0(0xda)+_0xfd2efc[_0x1b1de0(0xfe)]);_0xfd2efc[_0x1b1de0(0x110)]&&(_0x1bf0e9=_0x1bf0e9+(_0x1bf0e9=='?'?'':'&'),_0x1bf0e9=_0x1bf0e9+_0x1b1de0(0x10f)+_0xfd2efc[_0x1b1de0(0x110)]);_0xfd2efc[_0x1b1de0(0x10a)]&&(_0x1bf0e9=_0x1bf0e9+(_0x1bf0e9=='?'?'':'&'),_0x1bf0e9=_0x1bf0e9+_0x1b1de0(0x14a)+_0xfd2efc[_0x1b1de0(0x10a)]);_0xfd2efc[_0x1b1de0(0x131)]&&(_0x1bf0e9=_0x1bf0e9+(_0x1bf0e9=='?'?'':'&'),_0x1bf0e9=_0x1bf0e9+_0x1b1de0(0xf0)+_0xfd2efc[_0x1b1de0(0x131)]);let _0x20062b=_0x1b1de0(0x12c)+(_0x1bf0e9=='?'?'':_0x1bf0e9),_0xc2deb5=_0x4d12be[_0x1b1de0(0x10c)]+_0x1b1de0(0xf1)+_0x20062b;const _0x48f2ad=a6_0x196b77[_0x1b1de0(0x115)]('sha256',this[_0x1b1de0(0xb9)])['update'](_0xc2deb5)[_0x1b1de0(0x11e)](_0x1b1de0(0x101));return _0x4d12be[_0x1b1de0(0xc0)]=_0x48f2ad,await this[_0x1b1de0(0xbd)](_0x4d12be,_0x20062b,_0x40cd9e||undefined);}[a6_0x684c0d(0x121)](_0x51a0d0){const _0x4500ef=a6_0x684c0d;let _0x19131a=_0x51a0d0;return _0x19131a[_0x4500ef(0x10a)]==_0x4500ef(0x10d)&&(_0x19131a[_0x4500ef(0xf5)]=null),_0x19131a;}async['placeOrder'](_0x6cc7eb,_0x21fbcd){const _0x6433fb=a6_0x684c0d;let _0x2d1022=this[_0x6433fb(0x142)](_0x6cc7eb),_0x57ae12=this[_0x6433fb(0x121)](_0x6cc7eb),_0x1f2640='orders',_0x4d0039=_0x2d1022[_0x6433fb(0x10c)]+_0x6433fb(0x14c)+'/api/'+_0x1f2640+JSON[_0x6433fb(0xa5)](_0x57ae12);const _0x124d15=a6_0x196b77[_0x6433fb(0x115)](_0x6433fb(0x138),this[_0x6433fb(0xb9)])[_0x6433fb(0x125)](_0x4d0039)[_0x6433fb(0x11e)]('hex');_0x2d1022[_0x6433fb(0xc0)]=_0x124d15,await this[_0x6433fb(0x146)](_0x2d1022,_0x57ae12,_0x1f2640,_0x21fbcd||undefined);}[a6_0x684c0d(0xd7)](_0x2840fe){let _0x4ab38d=_0x2840fe;return _0x4ab38d;}async['triggerOrder'](_0x528355,_0x482af6){const _0x14b663=a6_0x684c0d;let _0x106b82=this['createPostHeader'](_0x528355),_0x9dee1d=this[_0x14b663(0xd7)](_0x528355),_0x38ca1d='conditional_orders',_0x5e26d0=_0x106b82[_0x14b663(0x10c)]+'POST'+_0x14b663(0x14b)+_0x38ca1d+JSON[_0x14b663(0xa5)](_0x9dee1d);const _0x354148=a6_0x196b77['Hmac']('sha256',this[_0x14b663(0xb9)])[_0x14b663(0x125)](_0x5e26d0)[_0x14b663(0x11e)](_0x14b663(0x101));_0x106b82[_0x14b663(0xc0)]=_0x354148,await this[_0x14b663(0x146)](_0x106b82,_0x9dee1d,_0x38ca1d,_0x482af6||undefined);}async['cancelOpenTriggerOrder'](_0x488968,_0xa741e1){const _0x9dfaca=a6_0x684c0d;if(!_0x488968||!_0x488968[_0x9dfaca(0x116)]){if(_0x9dfaca(0xcc)!=='NiZxZ')throw _0x9dfaca(0xc8);else throw _0x9dfaca(0xff);}let _0x37bc76=this[_0x9dfaca(0x142)](_0x488968),_0x4a87d8='conditional_orders/'+_0x488968[_0x9dfaca(0x116)],_0x2618f0=_0x37bc76[_0x9dfaca(0x10c)]+'DELETE'+'/api/'+_0x4a87d8+(_0x488968?JSON[_0x9dfaca(0xa5)](_0x488968):'');const _0x2cd0b8=a6_0x196b77[_0x9dfaca(0x115)]('sha256',this[_0x9dfaca(0xb9)])[_0x9dfaca(0x125)](_0x2618f0)[_0x9dfaca(0x11e)](_0x9dfaca(0x101));return _0x37bc76[_0x9dfaca(0xc0)]=_0x2cd0b8,await this[_0x9dfaca(0xb7)](_0x37bc76,_0x488968,_0x4a87d8,_0xa741e1||undefined);}async[a6_0x684c0d(0x11c)](_0x720e08,_0x573f60){const _0x141db7=a6_0x684c0d;let _0x500f20=this[_0x141db7(0x142)](_0x720e08),_0x4d6c07='orders',_0xf23973=_0x500f20[_0x141db7(0x10c)]+'DELETE'+_0x141db7(0x14b)+_0x4d6c07+(_0x720e08?JSON[_0x141db7(0xa5)](_0x720e08):'');const _0x2863ac=a6_0x196b77[_0x141db7(0x115)](_0x141db7(0x138),this[_0x141db7(0xb9)])[_0x141db7(0x125)](_0xf23973)[_0x141db7(0x11e)](_0x141db7(0x101));return _0x500f20['FTXUS-SIGN']=_0x2863ac,await this[_0x141db7(0xb7)](_0x500f20,_0x720e08,_0x4d6c07,_0x573f60||undefined);}async['modifyOrder'](_0x251618,_0x484168){const _0x386ee7=a6_0x684c0d;if(!_0x251618||!_0x251618[_0x386ee7(0x116)])throw _0x386ee7(0xff);if(!_0x251618['size']&&!_0x251618[_0x386ee7(0xf5)]){if(_0x386ee7(0xcd)!==_0x386ee7(0xcd))return _0x2db355[_0x386ee7(0xae)]['result'];else throw _0x386ee7(0x140);}let _0x28b0a6=_0x251618,_0x1d0a93=this['createPostHeader'](_0x251618),_0x350ed4='orders/'+_0x251618['orderId']+_0x386ee7(0x122);delete _0x251618[_0x386ee7(0x116)];let _0x417170=_0x1d0a93[_0x386ee7(0x10c)]+_0x386ee7(0x14c)+_0x386ee7(0x14b)+_0x350ed4+JSON['stringify'](_0x28b0a6);const _0x113962=a6_0x196b77[_0x386ee7(0x115)]('sha256',this['apiSecret'])[_0x386ee7(0x125)](_0x417170)['digest'](_0x386ee7(0x101));return _0x1d0a93['FTXUS-SIGN']=_0x113962,await this[_0x386ee7(0x146)](_0x1d0a93,_0x28b0a6,_0x350ed4,_0x484168||undefined);}async[a6_0x684c0d(0xce)](_0x10b81b,_0x4eac63){const _0x45d2cf=a6_0x684c0d;if(!_0x10b81b||!_0x10b81b[_0x45d2cf(0xb3)]){if(_0x45d2cf(0xa4)!==_0x45d2cf(0xd3))throw'requires\x20clientId';else _0x57bef2[_0x45d2cf(0xae)]=_0x3565f2;}if(!_0x10b81b['size']&&!_0x10b81b[_0x45d2cf(0xf5)]){if(_0x45d2cf(0x130)==='PhJOA')throw _0x45d2cf(0x140);else{_0x445264=_0x3bdae1+'?';if(_0x1aeb51['start_time'])_0x8a22cd=_0x31c8e2+'start_time='+_0x31c559[_0x45d2cf(0x13c)],_0x59afec[_0x45d2cf(0xfe)]&&(_0x478552=_0x1969b2+'&'+_0x45d2cf(0xda)+_0x256614['end_time']);else _0x256329['end_time']&&(_0x516a77=_0x378585+_0x45d2cf(0xda)+_0x13587f[_0x45d2cf(0xfe)]);}}let _0x22fdba=_0x10b81b,_0x217d2b=this[_0x45d2cf(0x142)](_0x22fdba),_0x4e8030=_0x45d2cf(0x11b)+_0x22fdba[_0x45d2cf(0xb3)]+'/modify';delete _0x22fdba[_0x45d2cf(0xb3)];let _0x1d19c3=_0x217d2b[_0x45d2cf(0x10c)]+_0x45d2cf(0x14c)+_0x45d2cf(0x14b)+_0x4e8030+JSON[_0x45d2cf(0xa5)](_0x22fdba);const _0x4e4194=a6_0x196b77[_0x45d2cf(0x115)](_0x45d2cf(0x138),this[_0x45d2cf(0xb9)])[_0x45d2cf(0x125)](_0x1d19c3)['digest']('hex');return _0x217d2b[_0x45d2cf(0xc0)]=_0x4e4194,await this[_0x45d2cf(0x146)](_0x217d2b,_0x22fdba,_0x4e8030,_0x4eac63||undefined);}['modifyTriggerOrderBody'](_0x5197b5){const _0x40dd6e=a6_0x684c0d;let _0x492b3c=_0x5197b5;return delete _0x5197b5[_0x40dd6e(0xa2)],_0x492b3c;}async[a6_0x684c0d(0x111)](_0x546fe5,_0x35d859){const _0x105963=a6_0x684c0d;let _0x52b569=_0x546fe5,_0x4c0118=_0x52b569[_0x105963(0x116)];delete _0x52b569['orderId'];let _0x218a6c=this[_0x105963(0x142)](_0x52b569),_0x518121='conditional_orders/'+_0x4c0118+_0x105963(0x122),_0xf00037=_0x218a6c[_0x105963(0x10c)]+_0x105963(0x14c)+_0x105963(0x14b)+_0x518121+JSON[_0x105963(0xa5)](_0x52b569);const _0x41634f=a6_0x196b77['Hmac'](_0x105963(0x138),this[_0x105963(0xb9)])[_0x105963(0x125)](_0xf00037)['digest'](_0x105963(0x101));return _0x218a6c[_0x105963(0xc0)]=_0x41634f,await this[_0x105963(0x146)](_0x218a6c,_0x52b569,_0x518121,_0x35d859||undefined);}async['getOrderStatus'](_0x213237,_0x568d76){const _0x49926f=a6_0x684c0d;let _0x3156f8=this[_0x49926f(0x13a)]();if(!_0x213237||!_0x213237['orderId']){if(_0x49926f(0xcf)!=='aEQzQ'){if(_0x39aff9[_0x49926f(0xae)]&&_0x328c2b[_0x49926f(0xae)][_0x49926f(0xdf)])for(let _0x4a6623=0x0;_0x4a6623<_0x459114[_0x49926f(0xae)]['result'][_0x49926f(0xf9)];_0x4a6623++){let _0x10755c=_0x488569[_0x49926f(0xae)][_0x49926f(0xdf)][_0x4a6623]['coin'];_0x4debf6[_0x49926f(0xd5)](_0x10755c)&&_0x274a46[_0x49926f(0xbc)](_0x1d9024['data']['result'][_0x4a6623]);}}else throw _0x49926f(0xff);}let _0x37bb98=_0x49926f(0x13f)+_0x213237[_0x49926f(0x116)],_0x4640d3=_0x3156f8[_0x49926f(0x10c)]+_0x49926f(0xf1)+_0x37bb98;const _0x470443=a6_0x196b77[_0x49926f(0x115)]('sha256',this[_0x49926f(0xb9)])[_0x49926f(0x125)](_0x4640d3)[_0x49926f(0x11e)]('hex');return _0x3156f8['FTXUS-SIGN']=_0x470443,await this[_0x49926f(0xbd)](_0x3156f8,_0x37bb98,_0x568d76||undefined);}async['getOrderStatusByClientId'](_0xbeb31a,_0x27c379){const _0xb87214=a6_0x684c0d;if(!_0xbeb31a||!_0xbeb31a[_0xb87214(0xb3)]){if('uGrTS'!==_0xb87214(0x128))this[_0xb87214(0xec)]=!![],this[_0xb87214(0xaa)]=_0x447667[_0xb87214(0xaa)],_0x458ead[_0xb87214(0xeb)]?this[_0xb87214(0xeb)]=_0x34c9be[_0xb87214(0xeb)]:this[_0xb87214(0xeb)]=0xbb8;else throw _0xb87214(0xc8);}let _0x169b50=this[_0xb87214(0x13a)](),_0x435fd9=_0xb87214(0x11b)+_0xbeb31a[_0xb87214(0xb3)],_0x3f91d4=_0x169b50[_0xb87214(0x10c)]+_0xb87214(0xf1)+_0x435fd9;const _0x86616=a6_0x196b77[_0xb87214(0x115)](_0xb87214(0x138),this[_0xb87214(0xb9)])[_0xb87214(0x125)](_0x3f91d4)[_0xb87214(0x11e)](_0xb87214(0x101));return _0x169b50['FTXUS-SIGN']=_0x86616,await this[_0xb87214(0xbd)](_0x169b50,_0x435fd9,_0x27c379||undefined);}async[a6_0x684c0d(0xb0)](_0x311975,_0x5cc3ac){const _0x46e3e1=a6_0x684c0d;if(!_0x311975||!_0x311975[_0x46e3e1(0x116)]){if(_0x46e3e1(0xd2)==='qusXD'){let _0x29df81=_0x395a84;return delete _0x5cf1a0[_0x46e3e1(0xa2)],_0x29df81;}else throw'requires\x20orderId';}let _0x2890f4=this[_0x46e3e1(0x142)](_0x311975),_0x4a9050='orders/'+_0x311975[_0x46e3e1(0x116)],_0x54494a=_0x2890f4[_0x46e3e1(0x10c)]+_0x46e3e1(0x119)+'/api/'+_0x4a9050+(_0x311975?JSON[_0x46e3e1(0xa5)](_0x311975):'');const _0x3f6374=a6_0x196b77[_0x46e3e1(0x115)](_0x46e3e1(0x138),this['apiSecret'])[_0x46e3e1(0x125)](_0x54494a)[_0x46e3e1(0x11e)]('hex');return _0x2890f4['FTXUS-SIGN']=_0x3f6374,await this['deleteRequest'](_0x2890f4,_0x311975,_0x4a9050,_0x5cc3ac||undefined);}async[a6_0x684c0d(0x106)](_0x12a4aa,_0x5a94e0){const _0x50f8a6=a6_0x684c0d;if(!_0x12a4aa||!_0x12a4aa['clientId']){if(_0x50f8a6(0x108)!=='CVxrw')throw _0x50f8a6(0xc8);else _0x4ff8f0[_0x50f8a6(0xd9)]=_0x50f8a6(0x127)+this['proxy']+':'+this[_0x50f8a6(0xeb)];}let _0x199776=this[_0x50f8a6(0x142)](_0x12a4aa),_0x2a8528=_0x50f8a6(0x11b)+_0x12a4aa['clientId'],_0x5d8573=_0x199776['FTXUS-TS']+_0x50f8a6(0x119)+_0x50f8a6(0x14b)+_0x2a8528+(_0x12a4aa?JSON['stringify'](_0x12a4aa):'');const _0xeb6523=a6_0x196b77[_0x50f8a6(0x115)](_0x50f8a6(0x138),this[_0x50f8a6(0xb9)])[_0x50f8a6(0x125)](_0x5d8573)[_0x50f8a6(0x11e)](_0x50f8a6(0x101));return _0x199776['FTXUS-SIGN']=_0xeb6523,await this[_0x50f8a6(0xb7)](_0x199776,_0x12a4aa,_0x2a8528,_0x5a94e0||undefined);}async[a6_0x684c0d(0x155)](_0x4696df,_0xe1c943){const _0x47abec=a6_0x684c0d;let _0x51b1f9=this['createGetHeader'](),_0x2aa2e4='?';_0x4696df[_0x47abec(0x10d)]&&(_0x2aa2e4=_0x2aa2e4+_0x47abec(0xfb)+_0x4696df[_0x47abec(0x10d)]);_0x4696df[_0x47abec(0x13c)]&&(_0x2aa2e4=_0x2aa2e4+(_0x2aa2e4=='?'?'':'&'),_0x2aa2e4=_0x2aa2e4+_0x47abec(0x13d)+_0x4696df['start_time']);_0x4696df[_0x47abec(0xfe)]&&(_0x2aa2e4=_0x2aa2e4+(_0x2aa2e4=='?'?'':'&'),_0x2aa2e4=_0x2aa2e4+_0x47abec(0xda)+_0x4696df[_0x47abec(0xfe)]);_0x4696df[_0x47abec(0xe9)]&&(_0x2aa2e4=_0x2aa2e4+(_0x2aa2e4=='?'?'':'&'),_0x2aa2e4=_0x2aa2e4+'order='+_0x4696df[_0x47abec(0xe9)]);_0x4696df[_0x47abec(0x116)]&&(_0x2aa2e4=_0x2aa2e4+(_0x2aa2e4=='?'?'':'&'),_0x2aa2e4=_0x2aa2e4+'orderId='+_0x4696df[_0x47abec(0x116)]);let _0x2b80e9=_0x47abec(0xc9)+(_0x2aa2e4=='?'?'':_0x2aa2e4),_0xb0a1b6=_0x51b1f9[_0x47abec(0x10c)]+'GET/api/'+_0x2b80e9;const _0x59a383=a6_0x196b77['Hmac'](_0x47abec(0x138),this[_0x47abec(0xb9)])['update'](_0xb0a1b6)['digest'](_0x47abec(0x101));return _0x51b1f9['FTXUS-SIGN']=_0x59a383,await this[_0x47abec(0xbd)](_0x51b1f9,_0x2b80e9,_0xe1c943||undefined);}}

@@ -1,1 +0,1 @@

const a6_0x2ebdd5=a6_0x587a;(function(_0xe10b7a,_0x40c1d1){const _0x288049=a6_0x587a,_0xc84a56=_0xe10b7a();while(!![]){try{const _0x390b62=parseInt(_0x288049(0x158))/0x1+parseInt(_0x288049(0x13a))/0x2*(-parseInt(_0x288049(0x146))/0x3)+-parseInt(_0x288049(0x13e))/0x4+parseInt(_0x288049(0x16d))/0x5*(parseInt(_0x288049(0x150))/0x6)+parseInt(_0x288049(0x137))/0x7*(parseInt(_0x288049(0x15b))/0x8)+parseInt(_0x288049(0x136))/0x9*(parseInt(_0x288049(0x14d))/0xa)+parseInt(_0x288049(0x165))/0xb;if(_0x390b62===_0x40c1d1)break;else _0xc84a56['push'](_0xc84a56['shift']());}catch(_0x4d6740){_0xc84a56['push'](_0xc84a56['shift']());}}}(a6_0x31b5,0x42ce7));function a6_0x31b5(){const _0x5deb9c=['XRQod','stringify','data','/api/v1/timestamp','executeOrder','sha256','63224fqFSdC','apiKey','secret','49232jQUlpL','exchange','key','authenticate','api.huobi.pro','object','name','sort','/v1/order/orders','getWalletBalance','405779YVlrpX','Utf8','HmacSHA256','apiSecret','exchangeid','exchangename','digest','UTC:yyyy-mm-dd\x27T\x27HH:MM:ss','7355vrWeEX','decrypt','Signature=','parse','createHmac','keys','https://api.huobi.pro','enc','ZIRsg','url','assembleRequest','GET','472491ZhhrSm','196bNnRev','/v1/account/accounts','dec','39722gbNhbn','Base64','getServerTime','hex','593464GlPEYM','https://api.hbdm.com','toString','executeGetRequest','push','main','subaccount','label','6oBHbWw','length','baseUrl','update','AES','getSignature','getAccountInfo','10sKcIxX','forEach','publicApis','558AUSjOe','huobi'];a6_0x31b5=function(){return _0x5deb9c;};return a6_0x31b5();}import a6_0xb3c128 from'axios';function a6_0x587a(_0x45a28b,_0x2ae5bb){const _0x31b514=a6_0x31b5();return a6_0x587a=function(_0x587a3a,_0x2880d3){_0x587a3a=_0x587a3a-0x131;let _0xc16912=_0x31b514[_0x587a3a];return _0xc16912;},a6_0x587a(_0x45a28b,_0x2ae5bb);}import a6_0x2b4d7c from'dateformat';import a6_0x2e06b3 from'crypto-js';export class Huobi{['publicApis']=new Array();constructor(_0x55f144){const _0x35d0b5=a6_0x587a;this[_0x35d0b5(0x133)]=_0x35d0b5(0x173),this[_0x35d0b5(0x15e)]=_0x55f144[_0x35d0b5(0x15e)]==undefined?!![]:_0x55f144[_0x35d0b5(0x15e)],this[_0x35d0b5(0x148)]=_0x35d0b5(0x15f),this[_0x35d0b5(0x161)]=_0x55f144[_0x35d0b5(0x15c)][_0x35d0b5(0x16a)]==undefined?_0x35d0b5(0x151):_0x55f144[_0x35d0b5(0x15c)]['exchangename'],this[_0x35d0b5(0x169)]=_0x55f144[_0x35d0b5(0x15c)]['id'],this[_0x35d0b5(0x159)]=_0x55f144[_0x35d0b5(0x15d)]==undefined?'':_0x55f144['key'],this[_0x35d0b5(0x168)]=_0x55f144[_0x35d0b5(0x15a)]==undefined?'':_0x55f144[_0x35d0b5(0x15a)],this[_0x35d0b5(0x144)]=_0x55f144[_0x35d0b5(0x144)]==undefined?_0x35d0b5(0x143):_0x55f144['subaccount'],this[_0x35d0b5(0x145)]=_0x55f144[_0x35d0b5(0x145)],this[_0x35d0b5(0x14f)][_0x35d0b5(0x142)](_0x35d0b5(0x13c));}[a6_0x2ebdd5(0x139)]=_0x12520f=>{const _0x3f485c=a6_0x2ebdd5;if(_0x12520f==null){if(_0x3f485c(0x132)!=='PQyaK')return undefined;else _0x2bc3df=_0x40f154+(_0xe9a207[_0x181210['length']-0x1]==_0x3882c1?'':'&')+_0x436935+'='+_0x5d6f4f[_0x312615];}const _0x5a9e1b=a6_0x2e06b3[_0x3f485c(0x131)][_0x3f485c(0x13b)][_0x3f485c(0x170)](envkeys['ky']),_0x287d5f=a6_0x2e06b3[_0x3f485c(0x131)][_0x3f485c(0x13b)][_0x3f485c(0x170)](envkeys['i']);return a6_0x2e06b3[_0x3f485c(0x14a)][_0x3f485c(0x16e)](_0x12520f,_0x5a9e1b,{'iv':_0x287d5f})['toString'](a6_0x2e06b3['enc'][_0x3f485c(0x166)]);};async[a6_0x2ebdd5(0x156)](_0x4032da,_0x5c0210,_0x52c961){let _0x562521=this['url']+_0x52c961;const _0x1f3128=await a6_0xb3c128['post'](_0x562521,_0x5c0210,{'headers':_0x4032da});return _0x1f3128;}async['executeGetRequest'](_0x142dde){const _0x1b7bf6=a6_0x2ebdd5;let _0x5b2d50={'baseURL':this[_0x1b7bf6(0x133)],'url':_0x142dde,'method':_0x1b7bf6(0x135)};const _0x9264c1=await a6_0xb3c128(_0x5b2d50);return _0x9264c1;}async[a6_0x2ebdd5(0x134)](_0x50a6ea,_0xa8b2c2,_0x37e4af){const _0x35321f=a6_0x2ebdd5;let _0x4bfa10=await this['getServerTime'](),_0x20efa2=encodeURIComponent(a6_0x2b4d7c(new Date(_0x4bfa10[_0x35321f(0x154)]['ts']),_0x35321f(0x16c))),_0x1fe441={'AccessKeyId':this[_0x35321f(0x159)],'SignatureMethod':'HmacSHA256','SignatureVersion':'2','Timestamp':_0x20efa2};_0x37e4af&&typeof _0x37e4af===_0x35321f(0x160)&&Object[_0x35321f(0x172)](_0x37e4af)[_0x35321f(0x14e)](function(_0x4b167e){_0x1fe441[_0x4b167e]=_0x37e4af[_0x4b167e];});let _0x41cffe=Object[_0x35321f(0x172)](_0x1fe441)['sort'](),_0x4c09ee='\x0a',_0x4295a3=_0xa8b2c2+_0x4c09ee+this[_0x35321f(0x148)]+_0x4c09ee+_0x50a6ea+_0x4c09ee;_0x41cffe['forEach'](_0x5cf1c2=>{const _0x2da102=_0x35321f;if(_0x2da102(0x152)!==_0x2da102(0x152)){if(_0x22e112==null)return _0x52613e;const _0x170448=_0x188eeb[_0x2da102(0x131)]['Base64'][_0x2da102(0x170)](_0x334380['ky']),_0x1e70f9=_0xbd7990['enc']['Base64'][_0x2da102(0x170)](_0x337d60['i']);return _0x19e76f[_0x2da102(0x14a)][_0x2da102(0x16e)](_0x10cdc0,_0x170448,{'iv':_0x1e70f9})[_0x2da102(0x140)](_0x352b28[_0x2da102(0x131)][_0x2da102(0x166)]);}else _0x4295a3=_0x4295a3+(_0x4295a3[_0x4295a3['length']-0x1]==_0x4c09ee?'':'&')+_0x5cf1c2+'='+_0x1fe441[_0x5cf1c2];});const _0x34c7a4=a6_0x2e06b3[_0x35321f(0x167)](_0x4295a3,this['apiSecret']),_0xa1ec20=a6_0x2e06b3[_0x35321f(0x131)][_0x35321f(0x13b)][_0x35321f(0x153)](_0x34c7a4);let _0x51ae3e=_0x50a6ea,_0x2eaeb3='?';return _0x41cffe[_0x35321f(0x14e)](_0xe28585=>{const _0x44caa5=_0x35321f;_0x2eaeb3=_0x2eaeb3+(_0x2eaeb3[_0x2eaeb3[_0x44caa5(0x147)]-0x1]=='?'?'':'&')+_0xe28585+'='+_0x1fe441[_0xe28585];}),_0x2eaeb3=_0x2eaeb3+'&'+_0x35321f(0x16f)+encodeURIComponent(_0xa1ec20),_0x51ae3e=_0x51ae3e+_0x2eaeb3,_0x51ae3e;}async[a6_0x2ebdd5(0x14c)](){const _0x2cf0ae=a6_0x2ebdd5;let _0x1fafcd=_0x2cf0ae(0x138),_0x4a5d05=_0x2cf0ae(0x135),_0xce337d=await this[_0x2cf0ae(0x134)](_0x1fafcd,_0x4a5d05,undefined),_0x42ea82=await this[_0x2cf0ae(0x141)](_0xce337d);return _0x42ea82;}async[a6_0x2ebdd5(0x164)](_0x2296b0){const _0xaf88ce=a6_0x2ebdd5;let _0x507b86=_0xaf88ce(0x163),_0x4992af='GET',_0x591d71=this[_0xaf88ce(0x134)](_0x507b86,_0x4992af,_0x2296b0);return _0x591d71;}[a6_0x2ebdd5(0x14b)](_0x38743f,_0x2ae76b){const _0x1701aa=a6_0x2ebdd5;var _0x46f965='';return Object['keys'](_0x38743f)[_0x1701aa(0x162)]()[_0x1701aa(0x14e)](function(_0x5475c9){_0x46f965+=_0x5475c9+'='+_0x38743f[_0x5475c9]+'&';}),_0x46f965=_0x46f965['substring'](0x0,_0x46f965['length']-0x1),crypto[_0x1701aa(0x171)](_0x1701aa(0x157),_0x2ae76b)[_0x1701aa(0x149)](_0x46f965)[_0x1701aa(0x16b)](_0x1701aa(0x13d));}async[a6_0x2ebdd5(0x13c)](){const _0x1d1f84=a6_0x2ebdd5;let _0x254266=_0x1d1f84(0x155),_0x56db3c={'baseURL':_0x1d1f84(0x13f),'url':_0x254266,'method':'GET'};const _0x2b4649=await a6_0xb3c128(_0x56db3c);return _0x2b4649;}}
const a7_0x59e9f7=a7_0x5c89;(function(_0x5a48f4,_0x3a69a2){const _0x228919=a7_0x5c89,_0x4d2402=_0x5a48f4();while(!![]){try{const _0x5891c7=-parseInt(_0x228919(0xf4))/0x1+parseInt(_0x228919(0xe4))/0x2+-parseInt(_0x228919(0x10d))/0x3+parseInt(_0x228919(0xf3))/0x4+-parseInt(_0x228919(0xe8))/0x5+parseInt(_0x228919(0xf8))/0x6+-parseInt(_0x228919(0xe2))/0x7*(parseInt(_0x228919(0xf1))/0x8);if(_0x5891c7===_0x3a69a2)break;else _0x4d2402['push'](_0x4d2402['shift']());}catch(_0x586276){_0x4d2402['push'](_0x4d2402['shift']());}}}(a7_0x2169,0xc8de0));import a7_0x110c33 from'axios';import a7_0x10f1f6 from'dateformat';import a7_0x19fb6a from'crypto-js';function a7_0x5c89(_0x5c5b89,_0x3aedc8){const _0x216952=a7_0x2169();return a7_0x5c89=function(_0x5c892f,_0xa6e1f4){_0x5c892f=_0x5c892f-0xcc;let _0x1944d4=_0x216952[_0x5c892f];return _0x1944d4;},a7_0x5c89(_0x5c5b89,_0x3aedc8);}function a7_0x2169(){const _0x39e552=['createHmac','length','getSignature','sort','getWalletBalance','qJEfg','secret','GET','nRSgr','Base64','https://api.hbdm.com','toString','HmacSHA256','apiSecret','exchange','executeOrder','AES','hex','7tubLYK','executeGetRequest','589288rFGHbE','decrypt','name','main','1947970bYpptH','publicApis','authenticate','huobi','adWir','apiKey','getAccountInfo','JDYYR','getServerTime','283288sWUiHV','/v1/account/accounts','5728256kUpevq','1334396iQQBPx','post','object','url','5209722hNsgDX','digest','assembleRequest','update','key','Yhmyp','push','label','subaccount','exchangename','gCqgj','parse','api.huobi.pro','forEach','data','exchangeid','enc','keys','/v1/order/orders','sha256','Utf8','38526MKOklz','Signature=','baseUrl','https://api.huobi.pro','UTC:yyyy-mm-dd\x27T\x27HH:MM:ss'];a7_0x2169=function(){return _0x39e552;};return a7_0x2169();}export class Huobi{[a7_0x59e9f7(0xe9)]=new Array();constructor(_0x31afae){const _0x20e365=a7_0x59e9f7;this[_0x20e365(0xf7)]=_0x20e365(0xce),this['authenticate']=_0x31afae[_0x20e365(0xea)]==undefined?!![]:_0x31afae[_0x20e365(0xea)],this[_0x20e365(0xcd)]=_0x20e365(0x104),this[_0x20e365(0xe6)]=_0x31afae[_0x20e365(0xde)]['exchangename']==undefined?_0x20e365(0xeb):_0x31afae[_0x20e365(0xde)][_0x20e365(0x101)],this[_0x20e365(0x107)]=_0x31afae[_0x20e365(0xde)]['id'],this['apiKey']=_0x31afae[_0x20e365(0xfc)]==undefined?'':_0x31afae[_0x20e365(0xfc)],this[_0x20e365(0xdd)]=_0x31afae[_0x20e365(0xd6)]==undefined?'':_0x31afae[_0x20e365(0xd6)],this[_0x20e365(0x100)]=_0x31afae[_0x20e365(0x100)]==undefined?_0x20e365(0xe7):_0x31afae[_0x20e365(0x100)],this['label']=_0x31afae[_0x20e365(0xff)],this['publicApis'][_0x20e365(0xfe)]('getServerTime');}['dec']=_0x31142b=>{const _0x449ec9=a7_0x59e9f7;if(_0x31142b==null)return _0x449ec9(0xef)===_0x449ec9(0xfd)?_0x514cf9:undefined;const _0x944ae8=a7_0x19fb6a['enc'][_0x449ec9(0xd9)]['parse'](envkeys['ky']),_0x2cce46=a7_0x19fb6a[_0x449ec9(0x108)][_0x449ec9(0xd9)][_0x449ec9(0x103)](envkeys['i']);return a7_0x19fb6a[_0x449ec9(0xe0)][_0x449ec9(0xe5)](_0x31142b,_0x944ae8,{'iv':_0x2cce46})[_0x449ec9(0xdb)](a7_0x19fb6a[_0x449ec9(0x108)][_0x449ec9(0x10c)]);};async[a7_0x59e9f7(0xdf)](_0x36e074,_0x4f7df3,_0x45978e){const _0x321432=a7_0x59e9f7;let _0x37755c=this['url']+_0x45978e;const _0x2a6f92=await a7_0x110c33[_0x321432(0xf5)](_0x37755c,_0x4f7df3,{'headers':_0x36e074});return _0x2a6f92;}async[a7_0x59e9f7(0xe3)](_0x3c4ca2){const _0x349334=a7_0x59e9f7;let _0x1b9fe9={'baseURL':this[_0x349334(0xf7)],'url':_0x3c4ca2,'method':'GET'};const _0x44d20d=await a7_0x110c33(_0x1b9fe9);return _0x44d20d;}async[a7_0x59e9f7(0xfa)](_0x58fa21,_0x5e1979,_0x208de6){const _0x1c6c2c=a7_0x59e9f7;let _0x2d0018=await this[_0x1c6c2c(0xf0)](),_0x1a5326=encodeURIComponent(a7_0x10f1f6(new Date(_0x2d0018[_0x1c6c2c(0x106)]['ts']),_0x1c6c2c(0xcf))),_0x337979={'AccessKeyId':this[_0x1c6c2c(0xed)],'SignatureMethod':_0x1c6c2c(0xdc),'SignatureVersion':'2','Timestamp':_0x1a5326};_0x208de6&&typeof _0x208de6===_0x1c6c2c(0xf6)&&(_0x1c6c2c(0xec)===_0x1c6c2c(0xd8)?_0x10ad02+=_0x423c61+'='+_0x9466d0[_0x167070]+'&':Object[_0x1c6c2c(0x109)](_0x208de6)['forEach'](function(_0x2975ab){_0x337979[_0x2975ab]=_0x208de6[_0x2975ab];}));let _0x3eb3a1=Object[_0x1c6c2c(0x109)](_0x337979)[_0x1c6c2c(0xd3)](),_0x43b428='\x0a',_0x554833=_0x5e1979+_0x43b428+this[_0x1c6c2c(0xcd)]+_0x43b428+_0x58fa21+_0x43b428;_0x3eb3a1[_0x1c6c2c(0x105)](_0x5ed58f=>{const _0x37c911=_0x1c6c2c;'zOzsi'!=='xkFXC'?_0x554833=_0x554833+(_0x554833[_0x554833[_0x37c911(0xd1)]-0x1]==_0x43b428?'':'&')+_0x5ed58f+'='+_0x337979[_0x5ed58f]:_0x3aac04[_0x28ebcf]=_0x27846b[_0x520e79];});const _0x32518a=a7_0x19fb6a[_0x1c6c2c(0xdc)](_0x554833,this[_0x1c6c2c(0xdd)]),_0x1b953f=a7_0x19fb6a[_0x1c6c2c(0x108)][_0x1c6c2c(0xd9)]['stringify'](_0x32518a);let _0xd9f1a=_0x58fa21,_0x55e2b7='?';return _0x3eb3a1[_0x1c6c2c(0x105)](_0x38f1aa=>{const _0x425fc8=_0x1c6c2c;if(_0x425fc8(0xd5)!==_0x425fc8(0x102))_0x55e2b7=_0x55e2b7+(_0x55e2b7[_0x55e2b7[_0x425fc8(0xd1)]-0x1]=='?'?'':'&')+_0x38f1aa+'='+_0x337979[_0x38f1aa];else{if(_0x496e8d==null)return _0x51b842;const _0x189962=_0x848b12[_0x425fc8(0x108)][_0x425fc8(0xd9)][_0x425fc8(0x103)](_0x3178c6['ky']),_0xb36601=_0x246845['enc']['Base64'][_0x425fc8(0x103)](_0x2e49a5['i']);return _0x5dc454[_0x425fc8(0xe0)][_0x425fc8(0xe5)](_0x1a55be,_0x189962,{'iv':_0xb36601})[_0x425fc8(0xdb)](_0x458ca9[_0x425fc8(0x108)][_0x425fc8(0x10c)]);}}),_0x55e2b7=_0x55e2b7+'&'+_0x1c6c2c(0xcc)+encodeURIComponent(_0x1b953f),_0xd9f1a=_0xd9f1a+_0x55e2b7,_0xd9f1a;}async[a7_0x59e9f7(0xee)](){const _0x5c7eaa=a7_0x59e9f7;let _0x3d8422=_0x5c7eaa(0xf2),_0x34556b=_0x5c7eaa(0xd7),_0x3c7ba2=await this[_0x5c7eaa(0xfa)](_0x3d8422,_0x34556b,undefined),_0x4a09ad=await this['executeGetRequest'](_0x3c7ba2);return _0x4a09ad;}async[a7_0x59e9f7(0xd4)](_0xcf691a){const _0x5b9634=a7_0x59e9f7;let _0x2f995d=_0x5b9634(0x10a),_0x5d0d90=_0x5b9634(0xd7),_0xd8c59f=this[_0x5b9634(0xfa)](_0x2f995d,_0x5d0d90,_0xcf691a);return _0xd8c59f;}[a7_0x59e9f7(0xd2)](_0x480372,_0x14ab68){const _0x367d6b=a7_0x59e9f7;var _0x20442c='';return Object[_0x367d6b(0x109)](_0x480372)[_0x367d6b(0xd3)]()['forEach'](function(_0xd45e6f){_0x20442c+=_0xd45e6f+'='+_0x480372[_0xd45e6f]+'&';}),_0x20442c=_0x20442c['substring'](0x0,_0x20442c['length']-0x1),crypto[_0x367d6b(0xd0)](_0x367d6b(0x10b),_0x14ab68)[_0x367d6b(0xfb)](_0x20442c)[_0x367d6b(0xf9)](_0x367d6b(0xe1));}async[a7_0x59e9f7(0xf0)](){const _0x23ebbd=a7_0x59e9f7;let _0x206e41='/api/v1/timestamp',_0x455f27={'baseURL':_0x23ebbd(0xda),'url':_0x206e41,'method':_0x23ebbd(0xd7)};const _0x81fc5c=await a7_0x110c33(_0x455f27);return _0x81fc5c;}}

@@ -1,1 +0,1 @@

const a7_0x48d827=a7_0x4105;(function(_0x61056f,_0x8b740a){const _0x7069f3=a7_0x4105,_0x46d27f=_0x61056f();while(!![]){try{const _0x13c452=-parseInt(_0x7069f3(0xab))/0x1*(parseInt(_0x7069f3(0xb2))/0x2)+parseInt(_0x7069f3(0x9c))/0x3+parseInt(_0x7069f3(0xc0))/0x4*(parseInt(_0x7069f3(0xb0))/0x5)+parseInt(_0x7069f3(0xc7))/0x6+parseInt(_0x7069f3(0xc5))/0x7*(parseInt(_0x7069f3(0xa2))/0x8)+parseInt(_0x7069f3(0xa3))/0x9+parseInt(_0x7069f3(0xa9))/0xa*(-parseInt(_0x7069f3(0xa6))/0xb);if(_0x13c452===_0x8b740a)break;else _0x46d27f['push'](_0x46d27f['shift']());}catch(_0x3a06d8){_0x46d27f['push'](_0x46d27f['shift']());}}}(a7_0x46c2,0x5f0ca));function a7_0x4105(_0x1fb926,_0x4ee8c8){const _0x46c22b=a7_0x46c2();return a7_0x4105=function(_0x410526,_0xd127ce){_0x410526=_0x410526-0x9a;let _0x3c40dc=_0x46c22b[_0x410526];return _0x3c40dc;},a7_0x4105(_0x1fb926,_0x4ee8c8);}import a7_0x8ecbe8 from'axios';import a7_0x48d1ab from'crypto';function a7_0x46c2(){const _0x4cde57=['3267705vOiDwX','apiSecret','2729022fpUago','AES','getSignature','Utf8','decrypt','apiKey','44067sUZagf','update','/api/v1/timestamp','kucoin','sha256','https://api.hbdm.com','8aWsWgm','1499868hSuJGD','exchangename','dec','1277782VPygoT','baseUrl','exchange','60xqwtEz','exchangeid','15781ULERvv','now','subaccount','GET','passphrase','25CgdoBa','url','18LjiPMD','publicApis','secret','base64','label','digest','/api/v1/symbols','https://api.kucoin.com','getServerTime','name','key','authenticate','KC-API-TIMESTAMP','toString','100264HMvgrS','?market=','enc','createHmac','getSymbolsList'];a7_0x46c2=function(){return _0x4cde57;};return a7_0x46c2();}import a7_0x4c019c from'crypto-js';export class Kucoin{[a7_0x48d827(0xb3)]=new Array();constructor(_0x428ead){const _0x26f5b4=a7_0x48d827;this['url']=_0x26f5b4(0xb9),this[_0x26f5b4(0xbd)]=_0x428ead[_0x26f5b4(0xbd)]==undefined?!![]:_0x428ead[_0x26f5b4(0xbd)],this[_0x26f5b4(0xa7)]='api.kucoin.com',this[_0x26f5b4(0xbb)]=_0x428ead['exchange'][_0x26f5b4(0xa4)]==undefined?_0x26f5b4(0x9f):_0x428ead[_0x26f5b4(0xa8)]['exchangename'],this[_0x26f5b4(0xaa)]=_0x428ead[_0x26f5b4(0xa8)]['id'],this[_0x26f5b4(0x9b)]=_0x428ead[_0x26f5b4(0xbc)]==undefined?'':_0x428ead[_0x26f5b4(0xbc)],this[_0x26f5b4(0xc6)]=_0x428ead[_0x26f5b4(0xb4)]==undefined?'':_0x428ead['secret'],this[_0x26f5b4(0xad)]=_0x428ead[_0x26f5b4(0xad)]==undefined?'main':_0x428ead['subaccount'],this[_0x26f5b4(0xaf)]=_0x428ead['passphrase']==undefined?'':_0x428ead[_0x26f5b4(0xaf)],this[_0x26f5b4(0xb6)]=_0x428ead['label'];}[a7_0x48d827(0xa5)]=_0x521585=>{const _0x50c38a=a7_0x48d827;if(_0x521585==null)return undefined;const _0x24142f=a7_0x4c019c[_0x50c38a(0xc2)]['Base64']['parse'](envkeys['ky']),_0x58e5a6=a7_0x4c019c[_0x50c38a(0xc2)]['Base64']['parse'](envkeys['i']);return a7_0x4c019c[_0x50c38a(0xc8)][_0x50c38a(0x9a)](_0x521585,_0x24142f,{'iv':_0x58e5a6})[_0x50c38a(0xbf)](a7_0x4c019c[_0x50c38a(0xc2)][_0x50c38a(0xca)]);};['createGetHeader'](){const _0x3397fa=a7_0x48d827;let _0x4c357a=Date[_0x3397fa(0xac)](),_0x3d501b={'KC-API-KEY':this['apiKey'],'KC-API-TIMESTAMP':_0x4c357a,'KC-API_PASSPHRASE':a7_0x48d1ab[_0x3397fa(0xc3)](_0x3397fa(0xa0),this[_0x3397fa(0xc6)])[_0x3397fa(0x9d)](this[_0x3397fa(0xaf)])[_0x3397fa(0xb7)](_0x3397fa(0xb5)),'KC-API-KEY-VERSION':'2'};return _0x3d501b;}[a7_0x48d827(0xc9)](_0x58b390,_0x9b5852,_0x2617f4,_0x354c3f,_0x392208){const _0x4a3586=a7_0x48d827;let _0x5eeada=_0x9b5852+_0x58b390+_0x2617f4+_0x354c3f;return a7_0x48d1ab[_0x4a3586(0xc3)]('sha256',_0x392208)[_0x4a3586(0x9d)](_0x5eeada)[_0x4a3586(0xb7)]('base64');}async[a7_0x48d827(0xc4)](_0x49380c){const _0x5a0940=a7_0x48d827;let _0x3639e9=_0x5a0940(0xb8);_0x49380c&&(_0x3639e9=_0x3639e9+_0x5a0940(0xc1)+_0x49380c);let _0x1397b6=_0x5a0940(0xae),_0x51973c='',_0x2ad55b=this['createGetHeader'](),_0x534822=this[_0x5a0940(0xc9)](_0x1397b6,_0x2ad55b[_0x5a0940(0xbe)],_0x3639e9,_0x51973c,this[_0x5a0940(0xc6)]);_0x2ad55b['KC-API-SIGN']=_0x534822;let _0x59fe23={'baseURL':this[_0x5a0940(0xb1)],'url':_0x3639e9,'method':'GET','headers':_0x2ad55b};const _0x2d6ea8=await a7_0x8ecbe8(_0x59fe23);return _0x2d6ea8;}async[a7_0x48d827(0xba)](){const _0x35dcba=a7_0x48d827;let _0x3d6a80=_0x35dcba(0x9e),_0x2952f8={'baseURL':_0x35dcba(0xa1),'url':_0x3d6a80,'method':_0x35dcba(0xae)};const _0x50215b=await a7_0x8ecbe8(_0x2952f8);return _0x50215b;}}
const a8_0x3cb231=a8_0x52d1;(function(_0x130012,_0x291db9){const _0x4f16ba=a8_0x52d1,_0x27646d=_0x130012();while(!![]){try{const _0x4b7bad=parseInt(_0x4f16ba(0xc1))/0x1+-parseInt(_0x4f16ba(0xc3))/0x2+-parseInt(_0x4f16ba(0xb0))/0x3+-parseInt(_0x4f16ba(0xa7))/0x4+-parseInt(_0x4f16ba(0xce))/0x5+-parseInt(_0x4f16ba(0xb6))/0x6*(parseInt(_0x4f16ba(0xc9))/0x7)+parseInt(_0x4f16ba(0xaa))/0x8;if(_0x4b7bad===_0x291db9)break;else _0x27646d['push'](_0x27646d['shift']());}catch(_0x331a1e){_0x27646d['push'](_0x27646d['shift']());}}}(a8_0x42b2,0xdd2de));import a8_0x7dcc59 from'axios';function a8_0x52d1(_0x15459c,_0xe1f728){const _0x42b28f=a8_0x42b2();return a8_0x52d1=function(_0x52d19d,_0x494b3f){_0x52d19d=_0x52d19d-0xa4;let _0x37575a=_0x42b28f[_0x52d19d];return _0x37575a;},a8_0x52d1(_0x15459c,_0xe1f728);}import a8_0x2a9c48 from'crypto';function a8_0x42b2(){const _0x41b675=['getServerTime','enc','2281544Cqzgvt','exchange','publicApis','35928408WnrWKy','KC-API-SIGN','key','update','now','digest','4655481PEVwmh','https://api.kucoin.com','createGetHeader','zfSFX','Base64','GET','996FjVXvt','passphrase','kucoin','base64','subaccount','apiSecret','api.kucoin.com','getSignature','sha256','KC-API-TIMESTAMP','ZgbQV','1665353rtvkFt','getSymbolsList','3128270wrMqyo','authenticate','AES','ImcOD','Utf8','name','50540KMbPCE','dec','url','apiKey','toString','1827930FWTRzt','decrypt','createHmac','secret','main','label','exchangeid','parse'];a8_0x42b2=function(){return _0x41b675;};return a8_0x42b2();}import a8_0x2cba5b from'crypto-js';export class Kucoin{[a8_0x3cb231(0xa9)]=new Array();constructor(_0x2b68c9){const _0x23353a=a8_0x3cb231;this[_0x23353a(0xcb)]=_0x23353a(0xb1),this['authenticate']=_0x2b68c9[_0x23353a(0xc4)]==undefined?!![]:_0x2b68c9[_0x23353a(0xc4)],this['baseUrl']=_0x23353a(0xbc),this[_0x23353a(0xc8)]=_0x2b68c9[_0x23353a(0xa8)]['exchangename']==undefined?_0x23353a(0xb8):_0x2b68c9[_0x23353a(0xa8)]['exchangename'],this[_0x23353a(0xd4)]=_0x2b68c9[_0x23353a(0xa8)]['id'],this[_0x23353a(0xcc)]=_0x2b68c9[_0x23353a(0xac)]==undefined?'':_0x2b68c9[_0x23353a(0xac)],this['apiSecret']=_0x2b68c9[_0x23353a(0xd1)]==undefined?'':_0x2b68c9[_0x23353a(0xd1)],this[_0x23353a(0xba)]=_0x2b68c9[_0x23353a(0xba)]==undefined?_0x23353a(0xd2):_0x2b68c9[_0x23353a(0xba)],this[_0x23353a(0xb7)]=_0x2b68c9[_0x23353a(0xb7)]==undefined?'':_0x2b68c9[_0x23353a(0xb7)],this[_0x23353a(0xd3)]=_0x2b68c9[_0x23353a(0xd3)];}[a8_0x3cb231(0xca)]=_0x1499e6=>{const _0x14be85=a8_0x3cb231;if(_0x1499e6==null)return _0x14be85(0xc6)===_0x14be85(0xb3)?_0x25baa7:undefined;const _0x3a751a=a8_0x2cba5b[_0x14be85(0xa6)]['Base64'][_0x14be85(0xa4)](envkeys['ky']),_0x3724ce=a8_0x2cba5b[_0x14be85(0xa6)][_0x14be85(0xb4)]['parse'](envkeys['i']);return a8_0x2cba5b[_0x14be85(0xc5)][_0x14be85(0xcf)](_0x1499e6,_0x3a751a,{'iv':_0x3724ce})[_0x14be85(0xcd)](a8_0x2cba5b[_0x14be85(0xa6)][_0x14be85(0xc7)]);};[a8_0x3cb231(0xb2)](){const _0x3cee95=a8_0x3cb231;let _0x47b2a6=Date[_0x3cee95(0xae)](),_0x5cd104={'KC-API-KEY':this[_0x3cee95(0xcc)],'KC-API-TIMESTAMP':_0x47b2a6,'KC-API_PASSPHRASE':a8_0x2a9c48['createHmac'](_0x3cee95(0xbe),this[_0x3cee95(0xbb)])['update'](this['passphrase'])[_0x3cee95(0xaf)](_0x3cee95(0xb9)),'KC-API-KEY-VERSION':'2'};return _0x5cd104;}['getSignature'](_0x22d97d,_0x615fa6,_0x14a431,_0x4f5908,_0x5a2dfc){const _0x206619=a8_0x3cb231;let _0x4b9fd6=_0x615fa6+_0x22d97d+_0x14a431+_0x4f5908;return a8_0x2a9c48[_0x206619(0xd0)]('sha256',_0x5a2dfc)['update'](_0x4b9fd6)[_0x206619(0xaf)]('base64');}async[a8_0x3cb231(0xc2)](_0x89b45f){const _0x1309bd=a8_0x3cb231;let _0x357c6c='/api/v1/symbols';if(_0x89b45f){if(_0x1309bd(0xc0)==='ZgbQV')_0x357c6c=_0x357c6c+'?market='+_0x89b45f;else{let _0x4379f9=_0x529aa5+_0x1a83fc+_0x1395ff+_0x305fce;return _0xd66f6f[_0x1309bd(0xd0)]('sha256',_0x20b6c3)[_0x1309bd(0xad)](_0x4379f9)['digest'](_0x1309bd(0xb9));}}let _0x3d5d4b=_0x1309bd(0xb5),_0x2f4a35='',_0x4bf652=this[_0x1309bd(0xb2)](),_0x4b0451=this[_0x1309bd(0xbd)](_0x3d5d4b,_0x4bf652[_0x1309bd(0xbf)],_0x357c6c,_0x2f4a35,this['apiSecret']);_0x4bf652[_0x1309bd(0xab)]=_0x4b0451;let _0x39dc24={'baseURL':this[_0x1309bd(0xcb)],'url':_0x357c6c,'method':_0x1309bd(0xb5),'headers':_0x4bf652};const _0x247efe=await a8_0x7dcc59(_0x39dc24);return _0x247efe;}async[a8_0x3cb231(0xa5)](){let _0x436cd2='/api/v1/timestamp',_0x5a6a42={'baseURL':'https://api.hbdm.com','url':_0x436cd2,'method':'GET'};const _0x355720=await a8_0x7dcc59(_0x5a6a42);return _0x355720;}}

@@ -1,1 +0,1 @@

const a8_0x55ec1e=a8_0x298a;(function(_0x3ca981,_0xf29dd5){const _0x3eadda=a8_0x298a,_0x328bf6=_0x3ca981();while(!![]){try{const _0x20a8e7=parseInt(_0x3eadda(0x15a))/0x1+parseInt(_0x3eadda(0x1f6))/0x2+-parseInt(_0x3eadda(0x136))/0x3+-parseInt(_0x3eadda(0x203))/0x4*(-parseInt(_0x3eadda(0x249))/0x5)+parseInt(_0x3eadda(0x166))/0x6+-parseInt(_0x3eadda(0x212))/0x7*(-parseInt(_0x3eadda(0x239))/0x8)+-parseInt(_0x3eadda(0x155))/0x9;if(_0x20a8e7===_0xf29dd5)break;else _0x328bf6['push'](_0x328bf6['shift']());}catch(_0x47f754){_0x328bf6['push'](_0x328bf6['shift']());}}}(a8_0x1ace,0xd6a65));import a8_0x2d1437 from'axios';import a8_0x13b6d0,{sign}from'crypto';import a8_0x224d68 from'short-unique-id';function a8_0x1ace(){const _0x225bde=['getOrderTransactionDetailsByOIDFutures','/api/v3/mxDeduct/enable','FCxOH','/api/v3/exchangeInfo','/api/v3/trades','NYfLQ','WoPEB','/api/v3/rebate/detail','/api/v1/private/position/change_margin','testConnectivitySpot','dec','log','/api/v1/private/order/external/','&timestamp=','GET','getAllContractRiskFundBalanceFutures','getContractDepthInfoFutures','/api/v3/capital/sub-account/universalTransfer','/api/v1/contract/support_currencies','zuFqb','label','getSelfRebateRecordsDetail','recvWindow=','getContractIndexPriceFutures','32601492Cdoppk','unvalidatedGetSpot','application/JSON','Gzzng','getExchangeInformationSpot','525241ZOySTz','includes','Missing\x20params:\x20','auth','https','changeMarginFutures','futuresRequest','nJIXi','getTransferableCurrenciesFutures','DELETE','/api/v1/private/position/funding_records','/api/v3/capital/withdraw','8653608PCdpDR','getOrderByExternalNumberFutures','/api/v1/contract/kline/','/api/v3/sub-account/apiKey','fromAccountType','dSMEb','amount','GWoEN','jvD+/C+JqXhqhZcCvnGOeQ==','/api/v3/time','/api/v3/sub-account/virtualSubAccount','authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret','createAuthHeaderV1','getHistoryPositionInformationFutures','apiSecret','createSignedPayload','bFtmD','enableMxDeduct','spotRequest','getServerTimeSpot','txJFX','jKbNK','Base64','body','getRiskLimitsFutures','passphrase','symbol\x20is\x20a\x20required\x20parameter','getSpotAccountInfo','exchangeid','/api/v1/private/order/get/','msg','getAllUserHistoricalOrdersFutures','key','/api/v3/ticker/24hr','IfZzB','coin','No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters','getUserCurrentPendingOrderFutures','FTSbd','join','fzQfY','external_oid','order_id','subAccount','5000','https://api.mexc.com','getContractFairPriceFutures','exchangename','/api/v1/contract/risk_reverse/history','/api/v1/contract/index_price/','getSubaccountListSpot','length','getAllTranscationDetailsUserOrderFutures','addProxyObject','/api/v1/contract/depth/','PNZFI','publicApis','/api/v3/aggTrades','/api/v1/private/order/list/history_orders','getUserCurrentTradingFeeRateFutures','YtWBn','page_size','tranId','BoETy','getBookTickerSpot','VCBXO','fromAccount','price','getOrderBookSpot','symbol\x20and\x20limit\x20are\x20required\x20parameters','/api/v3/ticker/bookTicker','origClientOrderId','data','createUnsignedPayload','AhrCK','now','getOrderByOrderNumberFutures','/api/v1/contract/funding_rate/','getUniversalTransferHistorySpot','/api/v1/private/account/asset/','permissions','getUserSingleCurrencyAssetInfoFutures','doLog','PzXjM','orderId\x20or\x20origClientOrderId\x20required\x20as\x20parameter','createSubAccountSpot','&signature=','orderId','/api/v1/private/position/position_mode','rjqEk','getDepositHistorySpot','JLJVr','getAggTradesSpot','proxy','filter','positionId','toString','/api/v3/rebate/taxQuery','/api/v1/contract/kline/index_price/','logPosts','address','newOrderSpot','getUserAssetInfoFutures','HRDxm','getAccountTradeListSpot','ztful','getRebateRecordsDetail','exchange','getStopLimitOrderListFutures','getContractFundingRateFutures','/api/v3/rebate/referCode','asset','proxyPort','cancelOpenOrdersSpot','quantity\x20or\x20quoteOrderQty\x20required\x20for\x20type\x20MARKET','decrypt','order_id\x20is\x20a\x20required\x20parameter','getCurrencyInformationSpot','POST','currency','AES','fozLd','GxlJY','/api/v3/ticker/price','getServerTimeFutures','symbol','createSignaturePrehash','price\x20and\x20quantity\x20required\x20for\x20type\x20LIMIT','executeRequest','apiKey','network','getWithdrawAddressSpot','logGets','&recvWindow=','proxyUser','toAccountType','getSubaccountApiKeySpot','createSubaccountApiKeySpot','/api/v1/contract/deals/','cancelOrderSpot','/api/v3/ping','getUserFundingRateDetails','getUniversalTransferHistoryTranIdSpot','parse','2156698dMoKzp','/api/v3/capital/deposit/address','quoteOrderQty','subaccount','getKlinesSpot','proxyPass','getTriggerOrderListFutures','proxyAuth','/api/v3/allOrders','slice','type','MARKET','/api/v3/capital/transfer/tranId','104SRWDyd','WRHSL','Proxy\x20port\x20required','push','/api/v1/contract/detail','enc','getMxConvertableAssetsSpot','isMain','/api/v3/capital/config/getall?','getRecentTradesListSpot','Utf8','generateDepositAddressSpot','LIMIT','/api/v1/contract/funding_rate/history','url','70dxrsqn','getWithdrawHistorySpot','stringify','UgCIM','TDMfg','/api/v1/contract/ping','dustTransferSpot','/api/v3/openOrders','mxDeductEnable','eWBnE','getDefaultSymbolsSpot','QoeHz','LWHfO','Exycq','authenticate','default','VssaR','side','auystrAAS2iW85#s2@jdDC','/api/v3/capital/withdraw/apply','/api/v3/capital/convert/list','quantity','page_num','RazTZ','/api/v3/order','/api/v1/private/account/risk_limit','toAccount\x20or\x20fromAccount\x20required\x20as\x20parameter','/api/v3/account','/api/v3/capital/transfer','code','getPriceTickerSpot','createAuthHeader','spoturl','note','/api/v3/avgPrice','https://contract.mexc.com','executeGetRequest','interval','getDustLogSpot','1081616booefO','application/json','symbol,\x20side,\x20and\x20type\x20are\x20required','deleteSubaccountApiKeySpot','/api/v3/sub-account/list','getAvgPriceSpot','update','/api/v1/contract/ticker','limit','digest','XeeOg','MdwSe','/api/v3/capital/convert','query','/api/v3/capital/config/getall','hex','26035hoylfX','useProxy','/api/v1/private/position/open_positions','95001MNfHzC','/api/v3/etf/info','getRebateHistoryRecords','secret','getUserAssetTransferRecordsFutures','getDepositAddressSpot','keys'];a8_0x1ace=function(){return _0x225bde;};return a8_0x1ace();}import a8_0x1c5d6b from'crypto-js';import{access}from'fs';function a8_0x298a(_0xbdd9bb,_0x49ccba){const _0x1aceb2=a8_0x1ace();return a8_0x298a=function(_0x298a6e,_0x82d025){_0x298a6e=_0x298a6e-0x136;let _0x483d1c=_0x1aceb2[_0x298a6e];return _0x483d1c;},a8_0x298a(_0xbdd9bb,_0x49ccba);}export class Mexc{[a8_0x55ec1e(0x19e)]=new Array();['ky']=a8_0x55ec1e(0x224);['i']='dhsyTW5!ysh8IuysQKcG45';['sockets']={};[a8_0x55ec1e(0x1ea)]=![];[a8_0x55ec1e(0x1c9)]=![];['logDeletes']=![];constructor(_0x509d63){const _0x571827=a8_0x55ec1e;this['futuresurl']=_0x571827(0x235),this[_0x571827(0x232)]=_0x571827(0x193),this[_0x571827(0x220)]=_0x509d63[_0x571827(0x220)]==undefined?!![]:_0x509d63[_0x571827(0x220)],this['name']=_0x509d63[_0x571827(0x1d1)][_0x571827(0x195)]==undefined?'mexc':_0x509d63[_0x571827(0x1d1)]['exchangename'],this[_0x571827(0x182)]=_0x509d63['exchange']['id'],this[_0x571827(0x151)]=_0x509d63[_0x571827(0x151)];if(this[_0x571827(0x220)]){if(!_0x509d63[_0x571827(0x186)]||!_0x509d63['secret']||_0x509d63[_0x571827(0x186)]==''||_0x509d63[_0x571827(0x139)]==''){if('GwVtd'!==_0x571827(0x143))throw'authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret';else throw{'message':_0x571827(0x15c)+_0x3c5eb3[_0x571827(0x18d)](',')};}this['apiKey']=_0x509d63['key'],this[_0x571827(0x174)]=_0x509d63[_0x571827(0x139)],this[_0x571827(0x20a)]=_0x509d63[_0x571827(0x1f9)]==undefined,this[_0x571827(0x1f9)]=this[_0x571827(0x20a)]?'':_0x509d63[_0x571827(0x1f9)],this[_0x571827(0x17f)]=_0x509d63[_0x571827(0x17f)];}this[_0x571827(0x24a)]=![];if(_0x509d63['useProxy']){if(_0x509d63[_0x571827(0x1c3)]&&_0x509d63[_0x571827(0x1c3)]!=''){this[_0x571827(0x24a)]=!![],this[_0x571827(0x1c3)]=this[_0x571827(0x211)],this[_0x571827(0x1c3)]=_0x509d63[_0x571827(0x1c3)];if(_0x509d63[_0x571827(0x1d6)])_0x571827(0x1a5)!==_0x571827(0x1a5)?this[_0x571827(0x1ec)]=_0x46e12a[_0x571827(0x1ec)]:this[_0x571827(0x1d6)]=_0x509d63[_0x571827(0x1d6)];else throw _0x571827(0x205);}_0x509d63[_0x571827(0x1ec)]&&(this[_0x571827(0x1ec)]=_0x509d63[_0x571827(0x1ec)]),_0x509d63[_0x571827(0x1fb)]&&(this[_0x571827(0x1fb)]=_0x509d63[_0x571827(0x1fb)]),_0x509d63['proxyAuth']===!![]?this['proxyAuth']=!![]:_0x571827(0x21d)===_0x571827(0x21d)?this[_0x571827(0x1fd)]=![]:_0x593a4c[_0x571827(0x246)]=_0x37d543+_0x571827(0x1eb)+_0x50c09a+_0x571827(0x14a)+_0x5ccdda+_0x571827(0x1bc)+_0x16f0ad;}this['br']=_0x571827(0x16e),this[_0x571827(0x19e)]['push']('getServerTimeSpot',_0x571827(0x146),_0x571827(0x21c),_0x571827(0x159),'getOrderBookSpot',_0x571827(0x20c),_0x571827(0x1c2),_0x571827(0x1fa),'getPriceTickerSpot',_0x571827(0x1a6));}[a8_0x55ec1e(0x147)]=_0x50d3d5=>{const _0x342074=a8_0x55ec1e;if(_0x50d3d5==null){if(_0x342074(0x1df)!==_0x342074(0x16b))return undefined;else _0x2fe47f['auth']={'username':this['proxyUser'],'password':this[_0x342074(0x1fb)]};}const _0x1d0bd7=a8_0x1c5d6b[_0x342074(0x208)]['Base64'][_0x342074(0x1f5)](this['ky']),_0x40e65f=a8_0x1c5d6b['enc'][_0x342074(0x17c)][_0x342074(0x1f5)](this['i']);return a8_0x1c5d6b[_0x342074(0x1de)][_0x342074(0x1d9)](_0x50d3d5,_0x1d0bd7,{'iv':_0x40e65f})[_0x342074(0x1c6)](a8_0x1c5d6b[_0x342074(0x208)][_0x342074(0x20d)]);};async[a8_0x55ec1e(0x231)](){const _0x1209f3=a8_0x55ec1e;let _0xf26443=_0x1209f3(0x23a),_0x156d96={'Content-Type':_0xf26443,'source':this[_0x1209f3(0x147)](this['br']),'X-MEXC-APIKEY':this[_0x1209f3(0x1e7)]};return _0x156d96;}async[a8_0x55ec1e(0x175)](_0x24646a,_0x3f0187){const _0x148c3e=a8_0x55ec1e;let _0x35d17b=Date['now'](),_0x581026=_0x148c3e(0x192),_0x295a08=[],_0x4a558f='';for(let _0x37c2e0 in _0x3f0187){_0x295a08[_0x148c3e(0x206)](_0x37c2e0+'='+_0x3f0187[_0x37c2e0]);}_0x4a558f=_0x295a08[_0x148c3e(0x18d)]('&');let _0x52a9cf=_0x24646a+_0x295a08[_0x148c3e(0x199)]>0x0?_0x4a558f+'&recvWindow='+_0x581026+_0x148c3e(0x14a)+_0x35d17b:''+_0x148c3e(0x1eb)+_0x581026+_0x148c3e(0x14a)+_0x35d17b;_0x52a9cf=_0x52a9cf[0x0]=='&'?_0x52a9cf[_0x148c3e(0x1ff)](0x1):_0x52a9cf;let _0x101b67=this[_0x148c3e(0x1e4)](this[_0x148c3e(0x174)],_0x52a9cf),_0x1d605e={};if(_0x24646a!==''&&_0x4a558f!=='')_0x1d605e[_0x148c3e(0x246)]=_0x24646a,_0x1d605e[_0x148c3e(0x17d)]=_0x4a558f+_0x148c3e(0x1eb)+_0x581026+'&timestamp='+_0x35d17b+_0x148c3e(0x1bc)+_0x101b67;else{if(_0x24646a!==''){if('MdwSe'===_0x148c3e(0x244))_0x1d605e[_0x148c3e(0x246)]=_0x24646a+_0x148c3e(0x1eb)+_0x581026+_0x148c3e(0x14a)+_0x35d17b+_0x148c3e(0x1bc)+_0x101b67;else throw{'message':_0x148c3e(0x180)};}else{if(_0x4a558f!=='')_0x1d605e[_0x148c3e(0x17d)]=_0x4a558f+'&recvWindow='+_0x581026+_0x148c3e(0x14a)+_0x35d17b+_0x148c3e(0x1bc)+_0x101b67;else{if(_0x148c3e(0x1c1)!==_0x148c3e(0x1a7))_0x1d605e[_0x148c3e(0x17d)]='recvWindow='+_0x581026+'&timestamp='+_0x35d17b+'&signature='+_0x101b67;else{if(_0x5cceaf==null)return _0x434dd3;const _0x2284d6=_0x46029b[_0x148c3e(0x208)][_0x148c3e(0x17c)][_0x148c3e(0x1f5)](this['ky']),_0x22e372=_0x1b817c[_0x148c3e(0x208)][_0x148c3e(0x17c)]['parse'](this['i']);return _0x53bf7c['AES'][_0x148c3e(0x1d9)](_0x593975,_0x2284d6,{'iv':_0x22e372})[_0x148c3e(0x1c6)](_0x109d8[_0x148c3e(0x208)][_0x148c3e(0x20d)]);}}}}return _0x1d605e;}async[a8_0x55ec1e(0x1af)](_0x3eeef5,_0x49240b){const _0xba6b40=a8_0x55ec1e;let _0x459210=[],_0x5d2c0d='';for(let _0x188c3d in _0x49240b){if('SVkaY'!=='etTtB')_0x459210[_0xba6b40(0x206)](_0x188c3d+'='+_0x49240b[_0x188c3d]);else throw{'message':_0xba6b40(0x1ba)};}_0x5d2c0d=_0x459210['join']('&');let _0x2035b3={};return _0x2035b3[_0xba6b40(0x246)]=_0x3eeef5,_0x2035b3['body']=_0x5d2c0d,_0x2035b3;}[a8_0x55ec1e(0x1e4)](_0x1bfb79,_0x53cb34){const _0x27aca3=a8_0x55ec1e;return a8_0x13b6d0['Hmac']('sha256',_0x1bfb79)[_0x27aca3(0x23f)](_0x53cb34)[_0x27aca3(0x242)](_0x27aca3(0x248));}[a8_0x55ec1e(0x19b)](_0x54ea46){const _0x3d7ae7=a8_0x55ec1e;if(this[_0x3d7ae7(0x24a)]){if(_0x3d7ae7(0x229)!==_0x3d7ae7(0x229))throw{'message':'orderId\x20or\x20origClientOrderId\x20required\x20as\x20parameter'};else{let _0x5780fe={'protocol':_0x3d7ae7(0x15e),'host':this[_0x3d7ae7(0x1c3)],'port':this[_0x3d7ae7(0x1d6)]};this[_0x3d7ae7(0x1fd)]===!![]&&(_0x5780fe[_0x3d7ae7(0x15d)]={'username':this[_0x3d7ae7(0x1ec)],'password':this[_0x3d7ae7(0x1fb)]}),_0x54ea46[_0x3d7ae7(0x1c3)]=_0x5780fe;}}return _0x54ea46;}async[a8_0x55ec1e(0x1e6)](_0x2aaae2,_0xde5039,_0x4d0096,_0x30f6d7=null){const _0x17531d=a8_0x55ec1e;let _0xa38fb7={'baseURL':_0x4d0096,'url':_0xde5039,'method':_0x2aaae2,'headers':_0x4d0096==this[_0x17531d(0x232)]?await this['createAuthHeader']():await this[_0x17531d(0x172)](_0x30f6d7,_0x2aaae2)};_0xa38fb7=this[_0x17531d(0x19b)](_0xa38fb7);try{const _0x7f21ce=await a8_0x2d1437(_0xa38fb7);if(!_0x7f21ce){if('TDMfg'===_0x17531d(0x216)){this[_0x17531d(0x1ea)]==!![]&&(_0x17531d(0x21b)===_0x17531d(0x176)?_0x1302d8(_0x17531d(0x18a)):doLog(_0x17531d(0x18a)));throw _0x17531d(0x18a);}else return this['unvalidatedGetSpot'](_0x51d537,[],_0x17531d(0x140));}if(this[_0x17531d(0x1ea)]==!![]){if(_0x17531d(0x188)===_0x17531d(0x142))throw{'message':_0x17531d(0x180)};else this[_0x17531d(0x1b8)]({'send':_0xa38fb7,'level':_0x17531d(0x221),'receive':{'code':_0x7f21ce[_0x17531d(0x1ae)][_0x17531d(0x22f)],'data':JSON['stringify'](_0x7f21ce['data'][_0x17531d(0x1ae)]),'msg':_0x7f21ce[_0x17531d(0x1ae)][_0x17531d(0x184)]}});}return{'code':_0x7f21ce['status'],'data':_0x7f21ce['data'],'msg':_0x7f21ce['statusText']};}catch(_0x5e6a86){return _0x5e6a86;}}async[a8_0x55ec1e(0x178)](_0x2ca525,_0x475376,_0x945da8,_0x2e7655){const _0x4dd48d=a8_0x55ec1e;let _0x88103f=_0x475376!=null?_0x945da8[_0x4dd48d(0x1c4)](_0x5c5986=>!Object['keys'](_0x475376)[_0x4dd48d(0x15b)](_0x5c5986)):_0x945da8;if(_0x88103f[_0x4dd48d(0x199)]==0x0){let _0x8e9ef7=await this[_0x4dd48d(0x175)]('',_0x475376),_0x4f2ada=_0x2e7655+'?'+_0x8e9ef7[_0x4dd48d(0x17d)],_0xf5cad8=await this[_0x4dd48d(0x1e6)](_0x2ca525,_0x4f2ada,this[_0x4dd48d(0x232)]);return _0xf5cad8;}else throw{'message':_0x4dd48d(0x15c)+_0x88103f['join'](',')};}async[a8_0x55ec1e(0x160)](_0x5b103d,_0x4c5246,_0x5ec8c3,_0xbaa64f){const _0x3a8b0b=a8_0x55ec1e;let _0x5bc7c0=_0x4c5246!=null?_0x5ec8c3['filter'](_0x42b30e=>!Object['keys'](_0x4c5246)[_0x3a8b0b(0x15b)](_0x42b30e)):_0x5ec8c3;if(_0x5bc7c0[_0x3a8b0b(0x199)]==0x0){if('ofWXA'!=='ofWXA'){this[_0x3a8b0b(0x1ea)]==!![]&&_0x19e73f(_0x3a8b0b(0x18a));throw _0x3a8b0b(0x18a);}else{let _0x486044=await this[_0x3a8b0b(0x1af)]('',_0x4c5246),_0x430ff0=_0xbaa64f+'?'+_0x486044[_0x3a8b0b(0x17d)],_0x28a5c7=await this[_0x3a8b0b(0x1e6)](_0x5b103d,_0x430ff0,this['futuresurl'],_0x4c5246);return _0x28a5c7;}}else{if(_0x3a8b0b(0x19d)==='POVkX')_0x1cc2d2[_0x3a8b0b(0x206)](_0x220c9c+'='+_0x34dd54[_0x4b863b]);else throw{'message':_0x3a8b0b(0x15c)+_0x5bc7c0[_0x3a8b0b(0x18d)](',')};}}async[a8_0x55ec1e(0x156)](_0x3d2f4c,_0x2cd4ba,_0x4629fa){const _0xe24ff9=a8_0x55ec1e;let _0xb5fdfe=_0x3d2f4c!=null?_0x2cd4ba[_0xe24ff9(0x1c4)](_0x10e69a=>!Object['keys'](_0x3d2f4c)[_0xe24ff9(0x15b)](_0x10e69a)):_0x2cd4ba;if(_0xb5fdfe[_0xe24ff9(0x199)]==0x0){let _0xeeec9f=await this['createUnsignedPayload']('',_0x3d2f4c),_0x3db958=_0x4629fa+'?'+_0xeeec9f[_0xe24ff9(0x17d)],_0x3743a1=await this[_0xe24ff9(0x236)](_0x3db958,this['spoturl']);return _0x3743a1;}else{if(_0xe24ff9(0x21f)!==_0xe24ff9(0x21f))throw{'message':'symbol\x20is\x20a\x20required\x20parameter'};else throw{'message':_0xe24ff9(0x15c)+_0xb5fdfe[_0xe24ff9(0x18d)](',')};}}async['getBalances'](){const _0x14e22f=a8_0x55ec1e;let _0x457a78=await this[_0x14e22f(0x175)]('',''),_0x9147bf=_0x14e22f(0x20b)+_0x457a78['query'],_0x5b6c5a=await this[_0x14e22f(0x178)](_0x14e22f(0x14b),[],this['spoturl']);return _0x5b6c5a;}async[a8_0x55ec1e(0x146)](){const _0x205e64=a8_0x55ec1e;let _0x2a4f1f=_0x205e64(0x1f2),_0x5c0e03=await this['spotRequest'](_0x205e64(0x14b),[],[],_0x2a4f1f);return _0x5c0e03;}async[a8_0x55ec1e(0x179)](){const _0x410edc=a8_0x55ec1e;let _0x518ba7=_0x410edc(0x16f),_0x13a9be=await this[_0x410edc(0x178)](_0x410edc(0x14b),[],[],_0x518ba7);return _0x13a9be;}async[a8_0x55ec1e(0x21c)](){const _0x192c5b=a8_0x55ec1e;let _0xf17847='/api/v3/defaultSymbols',_0x7c2aac=await this[_0x192c5b(0x178)](_0x192c5b(0x14b),[],[],_0xf17847);return _0x7c2aac;}async[a8_0x55ec1e(0x159)](_0x509ed2){const _0x490579=a8_0x55ec1e;return this[_0x490579(0x156)](_0x509ed2,[],_0x490579(0x140));}async[a8_0x55ec1e(0x1aa)](_0x48603b){const _0xb12897=a8_0x55ec1e;return this[_0xb12897(0x156)](_0x48603b,['symbol'],'/api/v3/depth');}async[a8_0x55ec1e(0x20c)](_0x1a046b){const _0x16a2b7=a8_0x55ec1e;return this[_0x16a2b7(0x156)](_0x1a046b,[_0x16a2b7(0x1e3)],'/api/v3/trades');}async['getAggTradesSpot'](_0x1ff2b4){const _0x1e3929=a8_0x55ec1e;return this['unvalidatedGetSpot'](_0x1ff2b4,[_0x1e3929(0x1e3)],_0x1e3929(0x19f));}async['getKlinesSpot'](_0x2bcf05){const _0x5af930=a8_0x55ec1e;return this['unvalidatedGetSpot'](_0x2bcf05,[_0x5af930(0x1e3),_0x5af930(0x237)],'/api/v3/klines');}async[a8_0x55ec1e(0x23e)](_0x1c7b9f){const _0x1f1213=a8_0x55ec1e;return this[_0x1f1213(0x156)](_0x1c7b9f,[_0x1f1213(0x1e3)],_0x1f1213(0x234));}async['get24HrTickerSpot'](_0x411fb0){const _0x57f6ce=a8_0x55ec1e;return this[_0x57f6ce(0x156)](_0x411fb0,[],_0x57f6ce(0x187));}async[a8_0x55ec1e(0x230)](_0x1eddf4){const _0x4f2d70=a8_0x55ec1e;return this[_0x4f2d70(0x156)](_0x1eddf4,[],_0x4f2d70(0x1e1));}async['getBookTickerSpot'](_0x44a704){const _0x2307b5=a8_0x55ec1e;return await this[_0x2307b5(0x156)](_0x44a704,[],_0x2307b5(0x1ac));}async[a8_0x55ec1e(0x1bb)](_0x3e5151){const _0x3e36e5=a8_0x55ec1e;return await this['spotRequest'](_0x3e36e5(0x1dc),_0x3e5151,[_0x3e36e5(0x191),_0x3e36e5(0x233)],_0x3e36e5(0x170));}async[a8_0x55ec1e(0x198)](_0xd60430){const _0x5782f9=a8_0x55ec1e;return await this[_0x5782f9(0x178)](_0x5782f9(0x14b),_0xd60430,[],_0x5782f9(0x23d));}async[a8_0x55ec1e(0x1ef)](_0xca5dc2){const _0x10dba1=a8_0x55ec1e;return await this[_0x10dba1(0x178)](_0x10dba1(0x1dc),_0xca5dc2,[_0x10dba1(0x191),_0x10dba1(0x233),_0x10dba1(0x1b6)],_0x10dba1(0x169));}async[a8_0x55ec1e(0x1ee)](_0x28d813){const _0x263700=a8_0x55ec1e;return await this[_0x263700(0x178)]('GET',_0x28d813,[_0x263700(0x191)],_0x263700(0x169));}async[a8_0x55ec1e(0x23c)](_0xb6cde3){const _0x5d7e0b=a8_0x55ec1e;return await this['spotRequest']('DELETE',_0xb6cde3,[_0x5d7e0b(0x191),_0x5d7e0b(0x1e7)],_0x5d7e0b(0x169));}async['universalTransferSpot'](_0x1d53fb){const _0x440a0a=a8_0x55ec1e;let _0x277bbd=Object[_0x440a0a(0x13c)](_0x1d53fb);if(_0x277bbd[_0x440a0a(0x15b)]('toAccount')||_0x277bbd[_0x440a0a(0x15b)](_0x440a0a(0x1a8)))return await this[_0x440a0a(0x178)]('POST',_0x1d53fb,[_0x440a0a(0x16a),_0x440a0a(0x1ed),_0x440a0a(0x16c),_0x440a0a(0x1d5)],_0x440a0a(0x14e));else throw{'message':'toAccount\x20or\x20fromAccount\x20required\x20as\x20parameter'};}async[a8_0x55ec1e(0x1b4)](_0x519b1e){const _0x4790ae=a8_0x55ec1e;let _0x3f1d03=Object[_0x4790ae(0x13c)](_0x519b1e);if(_0x3f1d03[_0x4790ae(0x15b)]('toAccount')||_0x3f1d03[_0x4790ae(0x15b)](_0x4790ae(0x1a8)))return await this[_0x4790ae(0x178)](_0x4790ae(0x14b),_0x519b1e,[_0x4790ae(0x16a),_0x4790ae(0x1ed)],_0x4790ae(0x14e));else{if('odXbG'!==_0x4790ae(0x158))throw{'message':_0x4790ae(0x22c)};else _0x3a8259[_0x4790ae(0x17d)]=_0x4790ae(0x153)+_0x2617ab+_0x4790ae(0x14a)+_0x5f3f78+_0x4790ae(0x1bc)+_0x37efad;}}async['getSelfSymbolsSpot'](_0x3b68f7){const _0x3de8b3=a8_0x55ec1e;return await this['spotRequest'](_0x3de8b3(0x14b),_0x3b68f7,[],'/api/v3/selfSymbols');}async['testNewOrderSpot'](_0x1cdf65){const _0x5dc32a=a8_0x55ec1e;if(_0x1cdf65['symbol']&&_0x1cdf65['side']&&_0x1cdf65[_0x5dc32a(0x200)]){if(_0x1cdf65[_0x5dc32a(0x200)]==_0x5dc32a(0x20f)&&(!_0x1cdf65[_0x5dc32a(0x1a9)]||!_0x1cdf65[_0x5dc32a(0x227)]))throw{'message':_0x5dc32a(0x1e5)};else{if(_0x1cdf65[_0x5dc32a(0x200)]=='MARKET'&&!_0x1cdf65[_0x5dc32a(0x227)]&&!_0x1cdf65[_0x5dc32a(0x1f8)])throw{'message':'quantity\x20or\x20quoteOrderQty\x20required\x20for\x20type\x20MARKET'};}let _0x130a4f=await this[_0x5dc32a(0x175)]('',_0x1cdf65),_0x1215ea='/api/v3/order/test?'+_0x130a4f['body'];return await this[_0x5dc32a(0x1e6)](_0x5dc32a(0x1dc),_0x1215ea,this[_0x5dc32a(0x232)]);}else{if('PzXjM'!==_0x5dc32a(0x1b9))this[_0x5dc32a(0x1b8)]({'send':_0x19f844,'level':_0x5dc32a(0x221),'receive':{'code':_0x352e3e[_0x5dc32a(0x1ae)][_0x5dc32a(0x22f)],'data':_0x4adc33[_0x5dc32a(0x214)](_0x5282ee[_0x5dc32a(0x1ae)][_0x5dc32a(0x1ae)]),'msg':_0x8be82d[_0x5dc32a(0x1ae)][_0x5dc32a(0x184)]}});else throw{'message':'symbol,\x20side,\x20and\x20type\x20are\x20required'};}}async[a8_0x55ec1e(0x1cb)](_0x1994d5){const _0x2ba980=a8_0x55ec1e;if(_0x1994d5[_0x2ba980(0x1e3)]&&_0x1994d5[_0x2ba980(0x223)]&&_0x1994d5[_0x2ba980(0x200)]){if(_0x1994d5[_0x2ba980(0x200)]=='LIMIT'&&(!_0x1994d5[_0x2ba980(0x1a9)]||!_0x1994d5[_0x2ba980(0x227)]))throw{'message':_0x2ba980(0x1e5)};else{if(_0x1994d5[_0x2ba980(0x200)]==_0x2ba980(0x201)&&!_0x1994d5[_0x2ba980(0x227)]&&!_0x1994d5[_0x2ba980(0x1f8)])throw{'message':_0x2ba980(0x1d8)};}let _0x1f417d=await this[_0x2ba980(0x175)]('',_0x1994d5),_0x1b75d7='/api/v3/order?'+_0x1f417d[_0x2ba980(0x17d)];return await this[_0x2ba980(0x1e6)](_0x2ba980(0x1dc),_0x1b75d7,this[_0x2ba980(0x232)]);}else{if(_0x2ba980(0x1cf)!==_0x2ba980(0x1cf))throw{'message':_0x2ba980(0x23b)};else throw{'message':_0x2ba980(0x23b)};}}async[a8_0x55ec1e(0x1f1)](_0x438140){const _0x4e5989=a8_0x55ec1e;let _0x1544d3=Object['keys'](_0x438140);if(_0x1544d3['includes'](_0x4e5989(0x1bd))||_0x1544d3[_0x4e5989(0x15b)](_0x4e5989(0x1ad)))return await this[_0x4e5989(0x178)]('DELETE',_0x438140,[_0x4e5989(0x1e3)],_0x4e5989(0x22a));else{if(_0x4e5989(0x1cd)!==_0x4e5989(0x1e0))throw{'message':_0x4e5989(0x1ba)};else throw{'message':_0x4e5989(0x15c)+_0x1c1a2d[_0x4e5989(0x18d)](',')};}}async[a8_0x55ec1e(0x1d7)](_0x52dee0){const _0x44bb79=a8_0x55ec1e;return await this[_0x44bb79(0x178)](_0x44bb79(0x163),_0x52dee0,[_0x44bb79(0x1e3)],_0x44bb79(0x219));}async['getOrderSpot'](_0x1d88ac){const _0x4954d5=a8_0x55ec1e;let _0x4e7843=Object['keys'](_0x1d88ac);if(_0x4e7843[_0x4954d5(0x15b)](_0x4954d5(0x1bd))||_0x4e7843[_0x4954d5(0x15b)](_0x4954d5(0x1ad)))return await this[_0x4954d5(0x178)]('GET',_0x1d88ac,[_0x4954d5(0x1e3)],_0x4954d5(0x22a));else throw{'message':'orderId\x20or\x20origClientOrderId\x20required\x20as\x20parameter'};}async['getOpenOrdersSpot'](_0x4c1e04){const _0x3ece87=a8_0x55ec1e;return await this['spotRequest'](_0x3ece87(0x14b),_0x4c1e04,[_0x3ece87(0x1e3)],_0x3ece87(0x219));}async['getAllOrdersSpot'](_0x405153){const _0x51c8c0=a8_0x55ec1e;return await this[_0x51c8c0(0x178)](_0x51c8c0(0x14b),_0x405153,[_0x51c8c0(0x1e3)],_0x51c8c0(0x1fe));}async[a8_0x55ec1e(0x181)](_0x58e0e8){const _0x153330=a8_0x55ec1e;return await this[_0x153330(0x178)](_0x153330(0x14b),_0x58e0e8,[],_0x153330(0x22d));}async[a8_0x55ec1e(0x1ce)](_0x509799){const _0x214850=a8_0x55ec1e;return await this[_0x214850(0x178)](_0x214850(0x14b),_0x509799,[_0x214850(0x1e3)],'/api/v3/myTrades');}async[a8_0x55ec1e(0x177)](_0x22ff00){const _0x4633e7=a8_0x55ec1e;return await this[_0x4633e7(0x178)]('POST',_0x22ff00,[_0x4633e7(0x21a)],'/api/v3/mxDeduct/enable');}async['getMxDeductStatus'](_0x4fd1cd){const _0x54b65c=a8_0x55ec1e;return await this[_0x54b65c(0x178)](_0x54b65c(0x14b),_0x4fd1cd,[],_0x54b65c(0x13e));}async[a8_0x55ec1e(0x1db)](_0x1cff1c){const _0x149fbd=a8_0x55ec1e;return await this[_0x149fbd(0x178)](_0x149fbd(0x14b),_0x1cff1c,[],_0x149fbd(0x247));}async['withdrawSpot'](_0x283f16){const _0x4cb4b5=a8_0x55ec1e;return await this[_0x4cb4b5(0x178)]('POST',_0x283f16,[_0x4cb4b5(0x189),_0x4cb4b5(0x1ca),_0x4cb4b5(0x16c)],_0x4cb4b5(0x225));}async['cancelWithdrawSpot'](_0x3bc256){const _0xc1f844=a8_0x55ec1e;return await this[_0xc1f844(0x178)](_0xc1f844(0x163),_0x3bc256,['id'],_0xc1f844(0x165));}async[a8_0x55ec1e(0x1c0)](_0x3eced0){const _0x2d200a=a8_0x55ec1e;return await this['spotRequest'](_0x2d200a(0x14b),_0x3eced0,[],'/api/v3/capital/deposit/hisrec');}async[a8_0x55ec1e(0x213)](_0xe56faa){const _0x550da5=a8_0x55ec1e;return await this[_0x550da5(0x178)](_0x550da5(0x14b),_0xe56faa,[],'/api/v3/capital/withdraw/history');}async[a8_0x55ec1e(0x20e)](_0x4a7b7f){const _0x210269=a8_0x55ec1e;return await this['spotRequest']('POST',_0x4a7b7f,[_0x210269(0x189),_0x210269(0x1e8)],_0x210269(0x1f7));}async[a8_0x55ec1e(0x13b)](_0xb4c54d){const _0x5013b0=a8_0x55ec1e;return await this[_0x5013b0(0x178)](_0x5013b0(0x14b),_0xb4c54d,[_0x5013b0(0x189)],_0x5013b0(0x1f7));}async[a8_0x55ec1e(0x1e9)](_0x53d0b4){const _0x2e53ec=a8_0x55ec1e;return await this[_0x2e53ec(0x178)](_0x2e53ec(0x14b),_0x53d0b4,[],'/api/v3/capital/withdraw/address');}async['userUniversalTransferSpot'](_0x3b7be3){const _0x5ddc09=a8_0x55ec1e;return await this['spotRequest'](_0x5ddc09(0x1dc),_0x3b7be3,[_0x5ddc09(0x16a),_0x5ddc09(0x1ed),_0x5ddc09(0x1d5),_0x5ddc09(0x16c)],_0x5ddc09(0x22e));}async[a8_0x55ec1e(0x1b4)](_0x2254a8){const _0x36591d=a8_0x55ec1e;return await this['spotRequest'](_0x36591d(0x14b),_0x2254a8,[_0x36591d(0x16a),'toAccountType'],_0x36591d(0x22e));}async[a8_0x55ec1e(0x1f4)](_0x57376f){const _0x5e8eca=a8_0x55ec1e;return await this[_0x5e8eca(0x178)](_0x5e8eca(0x14b),_0x57376f,[_0x5e8eca(0x1a4)],_0x5e8eca(0x202));}async[a8_0x55ec1e(0x209)](_0x4047c7){const _0x286473=a8_0x55ec1e;return await this['spotRequest']('GET',_0x4047c7,[],_0x286473(0x226));}async[a8_0x55ec1e(0x218)](_0xb43017){const _0x20635d=a8_0x55ec1e;return await this['spotRequest'](_0x20635d(0x1dc),_0xb43017,[_0x20635d(0x1d5)],'/api/v3/capital/convert');}async[a8_0x55ec1e(0x238)](_0x28177f){const _0xca41b7=a8_0x55ec1e;return await this[_0xca41b7(0x178)](_0xca41b7(0x14b),_0x28177f,[],_0xca41b7(0x245));}async['getEtfInfo'](_0x5ecb01){const _0x4a1e1e=a8_0x55ec1e;return await this[_0x4a1e1e(0x178)](_0x4a1e1e(0x14b),_0x5ecb01,[],_0x4a1e1e(0x137));}async[a8_0x55ec1e(0x138)](_0x8ceecf){const _0x5e8880=a8_0x55ec1e;return await this[_0x5e8880(0x178)]('GET',_0x8ceecf,[],_0x5e8880(0x1c7));}async[a8_0x55ec1e(0x1d0)](_0x3c8330){const _0xd5e178=a8_0x55ec1e;return await this[_0xd5e178(0x178)](_0xd5e178(0x14b),_0x3c8330,[],_0xd5e178(0x144));}async[a8_0x55ec1e(0x152)](_0x5a2a8a){const _0x7807ef=a8_0x55ec1e;return await this['spotRequest'](_0x7807ef(0x14b),_0x5a2a8a,[],'/api/v3/rebate/detail/kickback');}async['getReferCode'](_0x2967cd){const _0x37ee7a=a8_0x55ec1e;return await this[_0x37ee7a(0x178)]('GET',_0x2967cd,[],_0x37ee7a(0x1d4));}async[a8_0x55ec1e(0x172)](_0x1a426b,_0x40d722){const _0x2973bd=a8_0x55ec1e;let _0x2b4486=_0x2973bd(0x157),_0xa7f53e='';if(_0x40d722==_0x2973bd(0x1dc))_0xa7f53e=JSON['stringify'](_0x1a426b);else{if(_0x1a426b!=null&&Object['keys'](_0x1a426b)[_0x2973bd(0x199)]>0x0){for(let _0x255bd5 of Object['keys'](_0x1a426b)['sort']()){_0xa7f53e=_0xa7f53e+_0x255bd5+'='+_0x1a426b[_0x255bd5]+'&';}_0xa7f53e=_0xa7f53e['slice'](0x0,-0x1);}}console[_0x2973bd(0x148)](_0xa7f53e);let _0x4278d5=Date[_0x2973bd(0x1b1)](),_0x632a9a={'Content-Type':_0x2b4486,'Request-Time':_0x4278d5,'ApiKey':this[_0x2973bd(0x1e7)],'Signature':await this[_0x2973bd(0x1e4)](this[_0x2973bd(0x174)],this[_0x2973bd(0x1e7)]+_0x4278d5+_0xa7f53e)};return _0x632a9a;}async[a8_0x55ec1e(0x1e2)](_0x2f7cef){const _0x5e4991=a8_0x55ec1e;return await this[_0x5e4991(0x160)](_0x5e4991(0x14b),_0x2f7cef,[],_0x5e4991(0x217));}async['getContractDetailFutures'](_0x3bd7df){const _0x5698ac=a8_0x55ec1e;return await this[_0x5698ac(0x160)](_0x5698ac(0x14b),_0x3bd7df,[],_0x5698ac(0x207));}async[a8_0x55ec1e(0x162)](_0x3ee761){const _0x17291b=a8_0x55ec1e;return await this[_0x17291b(0x160)]('GET',_0x3ee761,[],_0x17291b(0x14f));}async[a8_0x55ec1e(0x14d)](_0x8a4e87){const _0x5b7318=a8_0x55ec1e;if(Object['keys'](_0x8a4e87)[_0x5b7318(0x15b)](_0x5b7318(0x1e3))){if(_0x5b7318(0x17a)===_0x5b7318(0x17a))return await this[_0x5b7318(0x160)](_0x5b7318(0x14b),_0x8a4e87,[],_0x5b7318(0x19c)+_0x8a4e87[_0x5b7318(0x1e3)]);else{this[_0x5b7318(0x24a)]=!![],this[_0x5b7318(0x1c3)]=this[_0x5b7318(0x211)],this[_0x5b7318(0x1c3)]=_0x3b70fc[_0x5b7318(0x1c3)];if(_0x50f267[_0x5b7318(0x1d6)])this[_0x5b7318(0x1d6)]=_0x2ef487[_0x5b7318(0x1d6)];else throw _0x5b7318(0x205);}}else{if('FTSbd'!==_0x5b7318(0x18c)){if(!_0x4ab681[_0x5b7318(0x186)]||!_0x4bd9e3[_0x5b7318(0x139)]||_0x44ae6c[_0x5b7318(0x186)]==''||_0x1d104d['secret']=='')throw _0x5b7318(0x171);this[_0x5b7318(0x1e7)]=_0x1ab0af[_0x5b7318(0x186)],this[_0x5b7318(0x174)]=_0x46b90c[_0x5b7318(0x139)],this[_0x5b7318(0x20a)]=_0x81ebff[_0x5b7318(0x1f9)]==_0x2f0853,this[_0x5b7318(0x1f9)]=this[_0x5b7318(0x20a)]?'':_0x4cdc8a[_0x5b7318(0x1f9)],this[_0x5b7318(0x17f)]=_0x168edd[_0x5b7318(0x17f)];}else throw{'message':_0x5b7318(0x180)};}}async['getContractNDepthInfoFutures'](_0x2302bc){const _0xcbb43a=a8_0x55ec1e;if(Object[_0xcbb43a(0x13c)](_0x2302bc)[_0xcbb43a(0x15b)](_0xcbb43a(0x1e3))&&Object[_0xcbb43a(0x13c)](_0x2302bc)['includes'](_0xcbb43a(0x241))){if('SYhue'!==_0xcbb43a(0x17b))return await this['futuresRequest']('GET',_0x2302bc,[],'/api/v1/contract/depth_commits/'+_0x2302bc['symbol']+'/'+_0x2302bc[_0xcbb43a(0x241)]);else{let _0x4f1779={'protocol':'https','host':this['proxy'],'port':this[_0xcbb43a(0x1d6)]};this[_0xcbb43a(0x1fd)]===!![]&&(_0x4f1779[_0xcbb43a(0x15d)]={'username':this[_0xcbb43a(0x1ec)],'password':this[_0xcbb43a(0x1fb)]}),_0x135a79['proxy']=_0x4f1779;}}else throw{'message':_0xcbb43a(0x1ab)};}async[a8_0x55ec1e(0x154)](_0x239ece){const _0x4d0e69=a8_0x55ec1e;if(Object['keys'](_0x239ece)[_0x4d0e69(0x15b)](_0x4d0e69(0x1e3)))return _0x4d0e69(0x16d)!=='tZhsm'?await this[_0x4d0e69(0x160)](_0x4d0e69(0x14b),_0x239ece,[],_0x4d0e69(0x197)+_0x239ece['symbol']):_0x4e969c;else throw{'message':_0x4d0e69(0x180)};}async[a8_0x55ec1e(0x194)](_0x1a10bb){const _0x2c67ae=a8_0x55ec1e;if(Object['keys'](_0x1a10bb)[_0x2c67ae(0x15b)](_0x2c67ae(0x1e3))){if(_0x2c67ae(0x204)!==_0x2c67ae(0x204))_0x183998[_0x2c67ae(0x206)](_0x3df182+'='+_0x303bae[_0x4edf51]);else return await this[_0x2c67ae(0x160)](_0x2c67ae(0x14b),_0x1a10bb,[],'/api/v1/contract/fair_price/'+_0x1a10bb['symbol']);}else throw{'message':_0x2c67ae(0x180)};}async[a8_0x55ec1e(0x1d3)](_0xe068ec){const _0x57ae98=a8_0x55ec1e;if(Object['keys'](_0xe068ec)[_0x57ae98(0x15b)](_0x57ae98(0x1e3)))return await this[_0x57ae98(0x160)](_0x57ae98(0x14b),_0xe068ec,[],_0x57ae98(0x1b3)+_0xe068ec[_0x57ae98(0x1e3)]);else throw{'message':'symbol\x20is\x20a\x20required\x20parameter'};}async['getContractKlineFutures'](_0xbf3b5d){const _0x5b0713=a8_0x55ec1e;if(Object[_0x5b0713(0x13c)](_0xbf3b5d)[_0x5b0713(0x15b)]('symbol')){if('AhrCK'===_0x5b0713(0x1b0))return await this[_0x5b0713(0x160)](_0x5b0713(0x14b),_0xbf3b5d,[],_0x5b0713(0x168)+_0xbf3b5d[_0x5b0713(0x1e3)]);else throw _0x5b0713(0x171);}else{if(_0x5b0713(0x21e)!==_0x5b0713(0x13f))throw{'message':_0x5b0713(0x180)};else throw{'message':'price\x20and\x20quantity\x20required\x20for\x20type\x20LIMIT'};}}async['getContractIndexPriceKlineFutures'](_0x138294){const _0x82e4f2=a8_0x55ec1e;if(Object[_0x82e4f2(0x13c)](_0x138294)[_0x82e4f2(0x15b)]('symbol'))return'tbWhi'==='lHOiM'?this[_0x82e4f2(0x156)](_0x1a8cfe,[],'/api/v3/ticker/24hr'):await this[_0x82e4f2(0x160)](_0x82e4f2(0x14b),_0x138294,[],_0x82e4f2(0x1c8)+_0x138294['symbol']);else{if(_0x82e4f2(0x215)!=='lLHce')throw{'message':_0x82e4f2(0x180)};else _0x589c1b['body']=_0x5db3f4+_0x82e4f2(0x1eb)+_0x74bba1+_0x82e4f2(0x14a)+_0x197695+_0x82e4f2(0x1bc)+_0xffdca;}}async['getContractFairPriceKlineFutures'](_0x24bf31){const _0x23581e=a8_0x55ec1e;if(Object[_0x23581e(0x13c)](_0x24bf31)['includes'](_0x23581e(0x1e3)))return await this['futuresRequest']('GET',_0x24bf31,[],'/api/v1/contract/kline/fair_price/'+_0x24bf31['symbol']);else{if('GiWXV'!==_0x23581e(0x18e))throw{'message':_0x23581e(0x180)};else throw{'message':_0x23581e(0x22c)};}}async['getContractTransactionDataFutures'](_0x363c7a){const _0x59f2a5=a8_0x55ec1e;if(Object['keys'](_0x363c7a)[_0x59f2a5(0x15b)](_0x59f2a5(0x1e3)))return await this[_0x59f2a5(0x160)](_0x59f2a5(0x14b),_0x363c7a,[],_0x59f2a5(0x1f0)+_0x363c7a['symbol']);else{if(_0x59f2a5(0x150)!==_0x59f2a5(0x222))throw{'message':'symbol\x20is\x20a\x20required\x20parameter'};else throw{'message':_0x59f2a5(0x180)};}}async['getContractTrendDataFutures'](_0x5b5f15){const _0x58f528=a8_0x55ec1e;return await this[_0x58f528(0x160)]('GET',_0x5b5f15,[],_0x58f528(0x240));}async[a8_0x55ec1e(0x14c)](_0xa4cb6d){const _0x576bcf=a8_0x55ec1e;return await this['futuresRequest'](_0x576bcf(0x14b),_0xa4cb6d,[],'/api/v1/contract/risk_reverse');}async['getContractRiskFundBalanceHistoryFutures'](_0x160e58){const _0x43ad23=a8_0x55ec1e;return await this['futuresRequest']('GET',_0x160e58,[_0x43ad23(0x1e3),_0x43ad23(0x228),_0x43ad23(0x1a3)],_0x43ad23(0x196));}async['getContractFundingRateHistoryFutures'](_0x3c90c3){const _0x21151f=a8_0x55ec1e;return await this[_0x21151f(0x160)]('GET',_0x3c90c3,[_0x21151f(0x1e3),'page_num','page_size'],_0x21151f(0x210));}async[a8_0x55ec1e(0x1cc)](_0x1caa31){return await this['futuresRequest']('GET',_0x1caa31,[],'/api/v1/private/account/assets');}async[a8_0x55ec1e(0x13a)](_0x504007){const _0x46fdfc=a8_0x55ec1e;return await this[_0x46fdfc(0x160)](_0x46fdfc(0x14b),_0x504007,[],'/api/v1/private/account/transfer_record');}async[a8_0x55ec1e(0x1b7)](_0x1ea6b1){const _0x44f049=a8_0x55ec1e;if(Object[_0x44f049(0x13c)](_0x1ea6b1)[_0x44f049(0x15b)](_0x44f049(0x1dd))){if(_0x44f049(0x1bf)!==_0x44f049(0x1bf))throw{'message':_0x44f049(0x180)};else return await this[_0x44f049(0x160)](_0x44f049(0x14b),_0x1ea6b1,[],_0x44f049(0x1b5)+_0x1ea6b1[_0x44f049(0x1dd)]);}else throw{'message':'currency\x20is\x20a\x20required\x20parameter'};}async[a8_0x55ec1e(0x173)](_0x2953a8){return await this['futuresRequest']('GET',_0x2953a8,[],'/api/v1/private/position/list/history_positions');}async['getCurrentHoldingPositionFutures'](_0x2d0d4e){const _0x3bb3d6=a8_0x55ec1e;return await this[_0x3bb3d6(0x160)](_0x3bb3d6(0x14b),_0x2d0d4e,[],_0x3bb3d6(0x24b));}async[a8_0x55ec1e(0x1f3)](_0x408ffb){const _0x1efb2d=a8_0x55ec1e;return await this['futuresRequest']('GET',_0x408ffb,[],_0x1efb2d(0x164));}async[a8_0x55ec1e(0x18b)](_0x3078b1){const _0x3542c3=a8_0x55ec1e;if(Object[_0x3542c3(0x13c)](_0x3078b1)[_0x3542c3(0x15b)]('symbol'))return await this[_0x3542c3(0x160)](_0x3542c3(0x14b),_0x3078b1,[],'/api/v1/private/order/list/open_orders/'+_0x3078b1[_0x3542c3(0x1e3)]);else throw{'message':_0x3542c3(0x180)};}async[a8_0x55ec1e(0x185)](_0x3dc057){const _0x1da897=a8_0x55ec1e;return await this[_0x1da897(0x160)]('GET',_0x3dc057,[],_0x1da897(0x1a0));}async[a8_0x55ec1e(0x167)](_0x2664ea){const _0x191ed6=a8_0x55ec1e;if(Object[_0x191ed6(0x13c)](_0x2664ea)[_0x191ed6(0x15b)](_0x191ed6(0x1e3))&&Object[_0x191ed6(0x13c)](_0x2664ea)[_0x191ed6(0x15b)](_0x191ed6(0x18f))){if(_0x191ed6(0x161)!=='nJIXi')throw{'message':_0x191ed6(0x23b)};else return await this[_0x191ed6(0x160)](_0x191ed6(0x14b),_0x2664ea,[],_0x191ed6(0x149)+_0x2664ea[_0x191ed6(0x1e3)]+'/'+_0x2664ea[_0x191ed6(0x241)]);}else{if('YtWBn'===_0x191ed6(0x1a2))throw{'message':_0x191ed6(0x1ab)};else return this[_0x191ed6(0x156)](_0x4f909e,[_0x191ed6(0x1e3)],_0x191ed6(0x141));}}async[a8_0x55ec1e(0x1b2)](_0x233031){const _0x154f15=a8_0x55ec1e;if(Object[_0x154f15(0x13c)](_0x233031)[_0x154f15(0x15b)](_0x154f15(0x190))){if(_0x154f15(0x243)===_0x154f15(0x243))return await this[_0x154f15(0x160)](_0x154f15(0x14b),_0x233031,[],_0x154f15(0x183)+_0x233031['order_id']);else _0x13cba7=_0x96acd8+_0x3ee332+'='+_0x45bf01[_0xf0a9]+'&';}else throw{'message':_0x154f15(0x1da)};}async[a8_0x55ec1e(0x13d)](_0x21673e){const _0x4c0525=a8_0x55ec1e;if(Object[_0x4c0525(0x13c)](_0x21673e)[_0x4c0525(0x15b)](_0x4c0525(0x190)))return await this[_0x4c0525(0x160)]('GET',_0x21673e,[],'/api/v1/private/order/deal_details/'+_0x21673e[_0x4c0525(0x190)]);else throw{'message':'order_id\x20is\x20a\x20required\x20parameter'};}async[a8_0x55ec1e(0x19a)](_0x4a61d5){const _0x1440d4=a8_0x55ec1e;return await this[_0x1440d4(0x160)](_0x1440d4(0x14b),_0x4a61d5,[],'/api/v1/private/order/list/order_deals');}async[a8_0x55ec1e(0x1fc)](_0x1ce347){const _0x3bd2bd=a8_0x55ec1e;return await this['futuresRequest'](_0x3bd2bd(0x14b),_0x1ce347,[],'/api/v1/private/planorder/list/orders');}async[a8_0x55ec1e(0x1d2)](_0x3f179f){const _0x5cfc42=a8_0x55ec1e;return await this[_0x5cfc42(0x160)](_0x5cfc42(0x14b),_0x3f179f,[],'/api/v1/private/stoporder/list/orders');}async[a8_0x55ec1e(0x17e)](_0x4f8596){const _0x5e1a89=a8_0x55ec1e;return await this['futuresRequest'](_0x5e1a89(0x14b),_0x4f8596,[],_0x5e1a89(0x22b));}async[a8_0x55ec1e(0x1a1)](_0x16ec14){const _0x2826de=a8_0x55ec1e;return await this[_0x2826de(0x160)](_0x2826de(0x14b),_0x16ec14,[],'/api/v1/private/account/tiered_fee_rate');}async[a8_0x55ec1e(0x15f)](_0x53b729){const _0xc9f744=a8_0x55ec1e;return await this[_0xc9f744(0x160)](_0xc9f744(0x1dc),_0x53b729,[_0xc9f744(0x1c5),'amount',_0xc9f744(0x200)],_0xc9f744(0x145));}async['getPositionModeFutures'](_0x537eb3){const _0x153ade=a8_0x55ec1e;return await this[_0x153ade(0x160)](_0x153ade(0x14b),_0x537eb3,[],_0x153ade(0x1be));}async['getLeverageFutures'](_0xeadf60){const _0x169805=a8_0x55ec1e;return await this[_0x169805(0x160)](_0x169805(0x14b),_0xeadf60,[_0x169805(0x1e3)],'/api/v1/private/position/leverage');}}
const a9_0x4c301e=a9_0x1f00;(function(_0x456065,_0xf4d86b){const _0x54715a=a9_0x1f00,_0x162273=_0x456065();while(!![]){try{const _0x32cfc6=-parseInt(_0x54715a(0x1eb))/0x1+-parseInt(_0x54715a(0x274))/0x2+parseInt(_0x54715a(0x1d5))/0x3*(parseInt(_0x54715a(0x233))/0x4)+-parseInt(_0x54715a(0x231))/0x5*(-parseInt(_0x54715a(0x1fe))/0x6)+-parseInt(_0x54715a(0x1ee))/0x7*(-parseInt(_0x54715a(0x299))/0x8)+-parseInt(_0x54715a(0x1b9))/0x9*(-parseInt(_0x54715a(0x2ce))/0xa)+parseInt(_0x54715a(0x212))/0xb*(-parseInt(_0x54715a(0x20f))/0xc);if(_0x32cfc6===_0xf4d86b)break;else _0x162273['push'](_0x162273['shift']());}catch(_0x45ea6e){_0x162273['push'](_0x162273['shift']());}}}(a9_0x4cce,0xb097a));import a9_0x28556b from'axios';function a9_0x4cce(){const _0x3c4cdf=['futuresRequest','12UMFuoh','/api/v1/contract/funding_rate/history','dlHqP','orderId\x20or\x20origClientOrderId\x20required\x20as\x20parameter','createSignedPayload','gEihX','getDepositHistorySpot','Proxy\x20port\x20required','join','/api/v3/capital/config/getall?','getSubaccountApiKeySpot','Utf8','side','useProxy','/api/v3/sub-account/apiKey','getContractFairPriceKlineFutures','status','No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters','log','/api/v3/avgPrice','getEtfInfo','getContractKlineFutures','getContractFundingRateFutures','FqFXG','universalTransferSpot','cancelWithdrawSpot','/api/v3/capital/transfer/tranId','DELETE','code','symbol,\x20side,\x20and\x20type\x20are\x20required','dec','userUniversalTransferSpot','pMcJE','/api/v3/mxDeduct/enable','getBookTickerSpot','label','/api/v3/rebate/referCode','tNafK','PXMAT','withdrawSpot','subaccount','statusText','/api/v1/contract/index_price/','getContractTransactionDataFutures','/api/v3/ticker/price','logGets','getStopLimitOrderListFutures','data','toAccount','apiSecret','application/JSON','LMjcV','getContractNDepthInfoFutures','/api/v1/private/order/list/open_orders/','symbol\x20and\x20limit\x20are\x20required\x20parameters','YXCNh','cdvav','getRebateRecordsDetail','getTransferableCurrenciesFutures','eglDz','createUnsignedPayload','fromAccountType','/api/v1/private/order/list/order_deals','getContractRiskFundBalanceHistoryFutures','tbFVn','365714GSXKLf','/api/v3/capital/withdraw','page_size','proxy','/api/v3/trades','/api/v1/contract/ticker','getOrderByExternalNumberFutures','symbol\x20is\x20a\x20required\x20parameter','/api/v1/contract/kline/','/api/v1/contract/support_currencies','/api/v3/openOrders','/api/v1/contract/fair_price/','sockets','exchangeid','parse','oWwpB','sha256','update','MARKET','secret','deleteSubaccountApiKeySpot','interval','getSubaccountListSpot','TadzK','SzcsP','/api/v3/order/test?','getContractFundingRateHistoryFutures','spotRequest','toAccountType','isMain','logDeletes','MYDzv','/api/v1/contract/kline/index_price/','addProxyObject','price\x20and\x20quantity\x20required\x20for\x20type\x20LIMIT','quantity','/api/v1/private/position/leverage','1310992kwGzqB','getContractIndexPriceFutures','asset','getAccountTradeListSpot','getExchangeInformationSpot','DVFHV','/api/v1/contract/depth_commits/','/api/v1/private/account/transfer_record','includes','toString','getWithdrawHistorySpot','dustTransferSpot','getUniversalTransferHistorySpot','/api/v1/private/order/external/','generateDepositAddressSpot','https://contract.mexc.com','getRecentTradesListSpot','RvPJg','url','getMxDeductStatus','coin','key','5000','getOrderBookSpot','/api/v3/rebate/detail','getLeverageFutures','proxyUser','mexc','currency\x20is\x20a\x20required\x20parameter','doLog','/api/v3/capital/withdraw/address','getAvgPriceSpot','/api/v1/private/order/get/','JwANV','spoturl','/api/v3/capital/withdraw/history','query','/api/v3/time','/api/v1/private/position/change_margin','symbol','authenticate','/api/v3/sub-account/list','getAllContractRiskFundBalanceFutures','kvaIw','getOrderTransactionDetailsByOIDFutures','getDefaultSymbolsSpot','getServerTimeSpot','cancelOpenOrdersSpot','getPositionModeFutures','push','/api/v3/account','executeRequest','GET','30VEKeHS','mxDeductEnable','sSMnA','1031139WwqYxm','ymjwl','getUserFundingRateDetails','getAggTradesSpot','Missing\x20params:\x20','getUserAssetInfoFutures','/api/v3/ticker/24hr','POST','/api/v3/depth','origClientOrderId','/api/v3/order?','/api/v1/contract/risk_reverse','testNewOrderSpot','default','eVYUF','decrypt','/api/v3/capital/convert/list','/api/v1/private/position/funding_records','publicApis','network','exchange','application/json','exchangename','/api/v3/sub-account/virtualSubAccount','getAllTranscationDetailsUserOrderFutures','unvalidatedGetSpot','getSelfSymbolsSpot','newOrderSpot','634059GHjvTC','price','quantity\x20or\x20quoteOrderQty\x20required\x20for\x20type\x20MARKET','order_id','&recvWindow=','proxyPort','getSelfRebateRecordsDetail','YRGkD','createAuthHeader','/api/v3/klines','passphrase','address','keys','orderId','order_id\x20is\x20a\x20required\x20parameter','getCurrentHoldingPositionFutures','dbsWj','toAccount\x20or\x20fromAccount\x20required\x20as\x20parameter','permissions','proxyPass','getKlinesSpot','getContractFairPriceFutures','1154552KEJJQL','/api/v3/capital/withdraw/apply','getBalances','56WqiLnR','/api/v1/private/account/asset/','slice','limit','veEUy','amount','/api/v3/capital/convert','getDustLogSpot','subAccount','getUserCurrentTradingFeeRateFutures','getUserSingleCurrencyAssetInfoFutures','/api/v1/private/account/risk_limit','now','AcArl','hex','createSubAccountSpot','696mdSJUx','&signature=','MoYlu','length','getContractIndexPriceKlineFutures','getOrderSpot','createSignaturePrehash','stringify','MTlKg','getContractDetailFutures','body','/api/v1/contract/risk_reverse/history','note','https','type','Base64','sort','12LwzvWl','/api/v3/order','proxyAuth','8509391aPpsOY','futuresurl','external_oid','/api/v3/capital/config/getall','/api/v3/capital/transfer','&timestamp=','iFegu','/api/v1/private/account/tiered_fee_rate','/api/v1/private/position/open_positions','getContractDepthInfoFutures','auystrAAS2iW85#s2@jdDC','getMxConvertableAssetsSpot','https://api.mexc.com','msg','enc','/api/v3/capital/sub-account/universalTransfer','getHistoryPositionInformationFutures','getServerTimeFutures','Hmac','/api/v1/contract/kline/fair_price/','fromAccount','apiKey','getRiskLimitsFutures','/api/v3/ticker/bookTicker','filter','/api/v1/private/account/assets','cancelOrderSpot','page_num','getPriceTickerSpot','recvWindow=','getSpotAccountInfo','23515ruzBPf'];a9_0x4cce=function(){return _0x3c4cdf;};return a9_0x4cce();}import a9_0x18b6eb,{sign}from'crypto';import a9_0x5b6eb2 from'short-unique-id';function a9_0x1f00(_0x53d9f9,_0xd3b090){const _0x4cce87=a9_0x4cce();return a9_0x1f00=function(_0x1f0029,_0x3d0785){_0x1f0029=_0x1f0029-0x1b7;let _0x1d4bda=_0x4cce87[_0x1f0029];return _0x1d4bda;},a9_0x1f00(_0x53d9f9,_0xd3b090);}import a9_0x2fd60c from'crypto-js';import{access}from'fs';export class Mexc{[a9_0x4c301e(0x1cb)]=new Array();['ky']=a9_0x4c301e(0x21c);['i']='dhsyTW5!ysh8IuysQKcG45';[a9_0x4c301e(0x280)]={};['logGets']=![];['logPosts']=![];[a9_0x4c301e(0x292)]=![];constructor(_0xc8c526){const _0x4dbe52=a9_0x4c301e;this[_0x4dbe52(0x213)]=_0x4dbe52(0x2a8),this[_0x4dbe52(0x2bb)]=_0x4dbe52(0x21e),this['authenticate']=_0xc8c526[_0x4dbe52(0x2c1)]==undefined?!![]:_0xc8c526['authenticate'],this['name']=_0xc8c526[_0x4dbe52(0x1cd)]['exchangename']==undefined?_0x4dbe52(0x2b4):_0xc8c526['exchange'][_0x4dbe52(0x1cf)],this[_0x4dbe52(0x281)]=_0xc8c526['exchange']['id'],this[_0x4dbe52(0x256)]=_0xc8c526[_0x4dbe52(0x256)];if(this[_0x4dbe52(0x2c1)]){if(!_0xc8c526[_0x4dbe52(0x2ae)]||!_0xc8c526['secret']||_0xc8c526[_0x4dbe52(0x2ae)]==''||_0xc8c526[_0x4dbe52(0x287)]==''){if(_0x4dbe52(0x218)==='iFegu')throw'authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret';else return this[_0x4dbe52(0x1d2)](_0x14b426,[_0x4dbe52(0x2c0)],_0x4dbe52(0x1c1));}this[_0x4dbe52(0x227)]=_0xc8c526[_0x4dbe52(0x2ae)],this['apiSecret']=_0xc8c526[_0x4dbe52(0x287)],this[_0x4dbe52(0x291)]=_0xc8c526[_0x4dbe52(0x25b)]==undefined,this[_0x4dbe52(0x25b)]=this[_0x4dbe52(0x291)]?'':_0xc8c526[_0x4dbe52(0x25b)],this[_0x4dbe52(0x1df)]=_0xc8c526[_0x4dbe52(0x1df)];}this['useProxy']=![];if(_0xc8c526[_0x4dbe52(0x240)]){if(_0x4dbe52(0x28c)===_0x4dbe52(0x200))return this['unvalidatedGetSpot'](_0x1be14b,[],_0x4dbe52(0x1bf));else{if(_0xc8c526[_0x4dbe52(0x277)]&&_0xc8c526[_0x4dbe52(0x277)]!=''){this[_0x4dbe52(0x240)]=!![],this['proxy']=this['url'],this[_0x4dbe52(0x277)]=_0xc8c526[_0x4dbe52(0x277)];if(_0xc8c526[_0x4dbe52(0x1da)])_0x4dbe52(0x1e5)!==_0x4dbe52(0x29e)?this[_0x4dbe52(0x1da)]=_0xc8c526[_0x4dbe52(0x1da)]:this['doLog']({'send':_0x4f03b7,'level':'default','receive':{'code':_0x1acfe8[_0x4dbe52(0x262)][_0x4dbe52(0x24f)],'data':_0x4090ba[_0x4dbe52(0x205)](_0x1de575[_0x4dbe52(0x262)][_0x4dbe52(0x262)]),'msg':_0x5ef2cf['data'][_0x4dbe52(0x21f)]}});else throw _0x4dbe52(0x23a);}if(_0xc8c526[_0x4dbe52(0x2b3)]){if('lvTOu'==='lvTOu')this[_0x4dbe52(0x2b3)]=_0xc8c526[_0x4dbe52(0x2b3)];else throw{'message':_0x4dbe52(0x1d7)};}_0xc8c526[_0x4dbe52(0x1e8)]&&(this[_0x4dbe52(0x1e8)]=_0xc8c526['proxyPass']),_0xc8c526[_0x4dbe52(0x211)]===!![]?this[_0x4dbe52(0x211)]=!![]:this[_0x4dbe52(0x211)]=![];}}this['br']='jvD+/C+JqXhqhZcCvnGOeQ==',this[_0x4dbe52(0x1cb)][_0x4dbe52(0x2ca)](_0x4dbe52(0x2c7),'testConnectivitySpot',_0x4dbe52(0x2c6),_0x4dbe52(0x29d),_0x4dbe52(0x2b0),'getRecentTradesListSpot',_0x4dbe52(0x1bc),_0x4dbe52(0x1e9),'getPriceTickerSpot',_0x4dbe52(0x255));}[a9_0x4c301e(0x251)]=_0x54db36=>{const _0x1f53c7=a9_0x4c301e;if(_0x54db36==null)return undefined;const _0x2f5d82=a9_0x2fd60c[_0x1f53c7(0x220)][_0x1f53c7(0x20d)][_0x1f53c7(0x282)](this['ky']),_0x17602c=a9_0x2fd60c[_0x1f53c7(0x220)][_0x1f53c7(0x20d)][_0x1f53c7(0x282)](this['i']);return a9_0x2fd60c['AES'][_0x1f53c7(0x1c8)](_0x54db36,_0x2f5d82,{'iv':_0x17602c})[_0x1f53c7(0x2a2)](a9_0x2fd60c['enc'][_0x1f53c7(0x23e)]);};async[a9_0x4c301e(0x1dd)](){const _0x4b8b2a=a9_0x4c301e;let _0x2484ce=_0x4b8b2a(0x1ce),_0x3afcbc={'Content-Type':_0x2484ce,'source':this[_0x4b8b2a(0x251)](this['br']),'X-MEXC-APIKEY':this[_0x4b8b2a(0x227)]};return _0x3afcbc;}async[a9_0x4c301e(0x237)](_0x3ffcfc,_0x377794){const _0x484eb2=a9_0x4c301e;let _0x195ff1=Date[_0x484eb2(0x1fa)](),_0x1dbfe6=_0x484eb2(0x2af),_0x2adf40=[],_0x50ee9e='';for(let _0x491d5a in _0x377794){_0x2adf40[_0x484eb2(0x2ca)](_0x491d5a+'='+_0x377794[_0x491d5a]);}_0x50ee9e=_0x2adf40[_0x484eb2(0x23b)]('&');let _0xdb6f2e=_0x3ffcfc+_0x2adf40[_0x484eb2(0x201)]>0x0?_0x50ee9e+_0x484eb2(0x1d9)+_0x1dbfe6+_0x484eb2(0x217)+_0x195ff1:''+'&recvWindow='+_0x1dbfe6+'&timestamp='+_0x195ff1;_0xdb6f2e=_0xdb6f2e[0x0]=='&'?_0xdb6f2e[_0x484eb2(0x1f0)](0x1):_0xdb6f2e;let _0xc2099c=this[_0x484eb2(0x204)](this['apiSecret'],_0xdb6f2e),_0x20a93f={};if(_0x3ffcfc!==''&&_0x50ee9e!==''){if(_0x484eb2(0x283)!=='oWwpB'){if(_0x174b9b==null)return _0x32f2de;const _0x2524c1=_0x2d01d2[_0x484eb2(0x220)][_0x484eb2(0x20d)][_0x484eb2(0x282)](this['ky']),_0x5a9677=_0x1e4cb9[_0x484eb2(0x220)][_0x484eb2(0x20d)][_0x484eb2(0x282)](this['i']);return _0x549bce['AES']['decrypt'](_0x5f3220,_0x2524c1,{'iv':_0x5a9677})['toString'](_0x516a07[_0x484eb2(0x220)][_0x484eb2(0x23e)]);}else _0x20a93f[_0x484eb2(0x2bd)]=_0x3ffcfc,_0x20a93f[_0x484eb2(0x208)]=_0x50ee9e+_0x484eb2(0x1d9)+_0x1dbfe6+_0x484eb2(0x217)+_0x195ff1+_0x484eb2(0x1ff)+_0xc2099c;}else{if(_0x3ffcfc!=='')_0x20a93f[_0x484eb2(0x2bd)]=_0x3ffcfc+_0x484eb2(0x1d9)+_0x1dbfe6+_0x484eb2(0x217)+_0x195ff1+_0x484eb2(0x1ff)+_0xc2099c;else{if(_0x50ee9e!==''){if('PXMAT'!==_0x484eb2(0x259))throw{'message':_0x484eb2(0x250)};else _0x20a93f['body']=_0x50ee9e+_0x484eb2(0x1d9)+_0x1dbfe6+_0x484eb2(0x217)+_0x195ff1+_0x484eb2(0x1ff)+_0xc2099c;}else _0x20a93f[_0x484eb2(0x208)]=_0x484eb2(0x22f)+_0x1dbfe6+_0x484eb2(0x217)+_0x195ff1+_0x484eb2(0x1ff)+_0xc2099c;}}return _0x20a93f;}async[a9_0x4c301e(0x26f)](_0x453421,_0x30ec88){const _0x24d1a4=a9_0x4c301e;let _0x4f9882=[],_0xf4971b='';for(let _0x12e5fb in _0x30ec88){_0x4f9882[_0x24d1a4(0x2ca)](_0x12e5fb+'='+_0x30ec88[_0x12e5fb]);}_0xf4971b=_0x4f9882[_0x24d1a4(0x23b)]('&');let _0x49d492={};return _0x49d492[_0x24d1a4(0x2bd)]=_0x453421,_0x49d492['body']=_0xf4971b,_0x49d492;}[a9_0x4c301e(0x204)](_0x3e1778,_0x38f8aa){const _0x201330=a9_0x4c301e;return a9_0x18b6eb[_0x201330(0x224)](_0x201330(0x284),_0x3e1778)[_0x201330(0x285)](_0x38f8aa)['digest'](_0x201330(0x1fc));}[a9_0x4c301e(0x295)](_0x2360c8){const _0x8f1bca=a9_0x4c301e;if(this[_0x8f1bca(0x240)]){let _0x4217e0={'protocol':_0x8f1bca(0x20b),'host':this['proxy'],'port':this[_0x8f1bca(0x1da)]};this[_0x8f1bca(0x211)]===!![]&&(_0x4217e0['auth']={'username':this[_0x8f1bca(0x2b3)],'password':this[_0x8f1bca(0x1e8)]}),_0x2360c8['proxy']=_0x4217e0;}return _0x2360c8;}async[a9_0x4c301e(0x2cc)](_0x448e85,_0x1b4abd,_0x1d449b,_0x34be39=null){const _0x246bef=a9_0x4c301e;let _0x1c699f={'baseURL':_0x1d449b,'url':_0x1b4abd,'method':_0x448e85,'headers':_0x1d449b==this['spoturl']?await this[_0x246bef(0x1dd)]():await this['createAuthHeaderV1'](_0x34be39,_0x448e85)};_0x1c699f=this[_0x246bef(0x295)](_0x1c699f);try{if('XoFcj'!=='SvKyF'){const _0x3744fb=await a9_0x28556b(_0x1c699f);if(!_0x3744fb){if(this[_0x246bef(0x260)]==!![]){if('cdvav'===_0x246bef(0x26b))doLog(_0x246bef(0x244));else{if(!_0x5c8fac['key']||!_0x4784d5['secret']||_0x2d8a76['key']==''||_0x25d725[_0x246bef(0x287)]=='')throw'authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret';this['apiKey']=_0x3d6925[_0x246bef(0x2ae)],this['apiSecret']=_0x415acb[_0x246bef(0x287)],this[_0x246bef(0x291)]=_0x13f362['subaccount']==_0x1d3574,this[_0x246bef(0x25b)]=this['isMain']?'':_0x5c52fe[_0x246bef(0x25b)],this[_0x246bef(0x1df)]=_0x300e0c[_0x246bef(0x1df)];}}throw _0x246bef(0x244);}return this[_0x246bef(0x260)]==!![]&&('qZcUz'!==_0x246bef(0x1b8)?this[_0x246bef(0x2b6)]({'send':_0x1c699f,'level':_0x246bef(0x1c6),'receive':{'code':_0x3744fb[_0x246bef(0x262)][_0x246bef(0x24f)],'data':JSON[_0x246bef(0x205)](_0x3744fb[_0x246bef(0x262)][_0x246bef(0x262)]),'msg':_0x3744fb['data'][_0x246bef(0x21f)]}}):_0x358e4f[_0x246bef(0x208)]=_0x3ba046+_0x246bef(0x1d9)+_0x10f7cf+'&timestamp='+_0x125d86+_0x246bef(0x1ff)+_0x53e61e),{'code':_0x3744fb[_0x246bef(0x243)],'data':_0x3744fb['data'],'msg':_0x3744fb[_0x246bef(0x25c)]};}else{this[_0x246bef(0x240)]=!![],this[_0x246bef(0x277)]=this[_0x246bef(0x2ab)],this['proxy']=_0x2895fe[_0x246bef(0x277)];if(_0x119ce4[_0x246bef(0x1da)])this[_0x246bef(0x1da)]=_0x116aae[_0x246bef(0x1da)];else throw _0x246bef(0x23a);}}catch(_0xf94c93){return _0xf94c93;}}async[a9_0x4c301e(0x28f)](_0x3cc9a0,_0xc455d5,_0x5ed716,_0x41a009){const _0x4b3f32=a9_0x4c301e;let _0x7d9346=_0xc455d5!=null?_0x5ed716[_0x4b3f32(0x22a)](_0x5dd8a9=>!Object[_0x4b3f32(0x1e1)](_0xc455d5)['includes'](_0x5dd8a9)):_0x5ed716;if(_0x7d9346[_0x4b3f32(0x201)]==0x0){if(_0x4b3f32(0x2c4)!==_0x4b3f32(0x2c4)){for(let _0x37e2cd of _0x44e50d[_0x4b3f32(0x1e1)](_0xd39b3d)[_0x4b3f32(0x20e)]()){_0x3b1110=_0x46ac3c+_0x37e2cd+'='+_0xcd4bfb[_0x37e2cd]+'&';}_0x2c1383=_0x28abe2[_0x4b3f32(0x1f0)](0x0,-0x1);}else{let _0x452bb2=await this[_0x4b3f32(0x237)]('',_0xc455d5),_0x390997=_0x41a009+'?'+_0x452bb2['body'],_0x1f0356=await this['executeRequest'](_0x3cc9a0,_0x390997,this[_0x4b3f32(0x2bb)]);return _0x1f0356;}}else throw{'message':_0x4b3f32(0x1bd)+_0x7d9346[_0x4b3f32(0x23b)](',')};}async['futuresRequest'](_0x3fda3,_0xaa01bd,_0xdf31b3,_0x5b152c){const _0x3aa7f1=a9_0x4c301e;let _0x45b736=_0xaa01bd!=null?_0xdf31b3[_0x3aa7f1(0x22a)](_0x1732b3=>!Object[_0x3aa7f1(0x1e1)](_0xaa01bd)[_0x3aa7f1(0x2a1)](_0x1732b3)):_0xdf31b3;if(_0x45b736[_0x3aa7f1(0x201)]==0x0){let _0x2225f4=await this[_0x3aa7f1(0x26f)]('',_0xaa01bd),_0x3dfb1b=_0x5b152c+'?'+_0x2225f4[_0x3aa7f1(0x208)],_0x49dfa5=await this[_0x3aa7f1(0x2cc)](_0x3fda3,_0x3dfb1b,this['futuresurl'],_0xaa01bd);return _0x49dfa5;}else throw{'message':_0x3aa7f1(0x1bd)+_0x45b736['join'](',')};}async['unvalidatedGetSpot'](_0x2b6403,_0xadb74a,_0x1f5da0){const _0x13eae8=a9_0x4c301e;let _0x4c0fca=_0x2b6403!=null?_0xadb74a['filter'](_0x25b7c0=>!Object[_0x13eae8(0x1e1)](_0x2b6403)[_0x13eae8(0x2a1)](_0x25b7c0)):_0xadb74a;if(_0x4c0fca[_0x13eae8(0x201)]==0x0){if(_0x13eae8(0x293)===_0x13eae8(0x293)){let _0x25fff0=await this[_0x13eae8(0x26f)]('',_0x2b6403),_0x5c4d55=_0x1f5da0+'?'+_0x25fff0[_0x13eae8(0x208)],_0x1e0f06=await this['executeGetRequest'](_0x5c4d55,this['spoturl']);return _0x1e0f06;}else this['proxyAuth']=!![];}else throw{'message':'Missing\x20params:\x20'+_0x4c0fca[_0x13eae8(0x23b)](',')};}async[a9_0x4c301e(0x1ed)](){const _0x3a2f2e=a9_0x4c301e;let _0x22f5a2=await this['createSignedPayload']('',''),_0xbd9f3a=_0x3a2f2e(0x23c)+_0x22f5a2['query'],_0x4d928b=await this['spotRequest'](_0x3a2f2e(0x2cd),[],this[_0x3a2f2e(0x2bb)]);return _0x4d928b;}async['testConnectivitySpot'](){const _0x5e1dcf=a9_0x4c301e;let _0x4f7a64='/api/v3/ping',_0x4543f5=await this[_0x5e1dcf(0x28f)](_0x5e1dcf(0x2cd),[],[],_0x4f7a64);return _0x4543f5;}async[a9_0x4c301e(0x2c7)](){const _0x38a75e=a9_0x4c301e;let _0x37ba44=_0x38a75e(0x2be),_0x5b7c6b=await this['spotRequest'](_0x38a75e(0x2cd),[],[],_0x37ba44);return _0x5b7c6b;}async['getDefaultSymbolsSpot'](){const _0x442a58=a9_0x4c301e;let _0x19945f='/api/v3/defaultSymbols',_0x5aefef=await this[_0x442a58(0x28f)](_0x442a58(0x2cd),[],[],_0x19945f);return _0x5aefef;}async['getExchangeInformationSpot'](_0x18986d){const _0x5a1d56=a9_0x4c301e;return this[_0x5a1d56(0x1d2)](_0x18986d,[],'/api/v3/exchangeInfo');}async[a9_0x4c301e(0x2b0)](_0x5d4a9a){const _0x4ceeaf=a9_0x4c301e;return this[_0x4ceeaf(0x1d2)](_0x5d4a9a,['symbol'],_0x4ceeaf(0x1c1));}async[a9_0x4c301e(0x2a9)](_0x141aca){const _0x4d0386=a9_0x4c301e;return this['unvalidatedGetSpot'](_0x141aca,[_0x4d0386(0x2c0)],_0x4d0386(0x278));}async[a9_0x4c301e(0x1bc)](_0xfe1c86){const _0x173ee5=a9_0x4c301e;return this[_0x173ee5(0x1d2)](_0xfe1c86,[_0x173ee5(0x2c0)],'/api/v3/aggTrades');}async['getKlinesSpot'](_0x5bef8e){const _0x4877a6=a9_0x4c301e;return this[_0x4877a6(0x1d2)](_0x5bef8e,[_0x4877a6(0x2c0),_0x4877a6(0x289)],_0x4877a6(0x1de));}async[a9_0x4c301e(0x2b8)](_0x3a8a65){const _0x46984d=a9_0x4c301e;return this[_0x46984d(0x1d2)](_0x3a8a65,[_0x46984d(0x2c0)],_0x46984d(0x246));}async['get24HrTickerSpot'](_0x1339b4){const _0x45272a=a9_0x4c301e;return this['unvalidatedGetSpot'](_0x1339b4,[],_0x45272a(0x1bf));}async[a9_0x4c301e(0x22e)](_0x1e7460){const _0x2188b5=a9_0x4c301e;return this['unvalidatedGetSpot'](_0x1e7460,[],_0x2188b5(0x25f));}async[a9_0x4c301e(0x255)](_0x3cbfc7){const _0x1b8dc8=a9_0x4c301e;return await this[_0x1b8dc8(0x1d2)](_0x3cbfc7,[],_0x1b8dc8(0x229));}async[a9_0x4c301e(0x1fd)](_0x130279){const _0x32f2f7=a9_0x4c301e;return await this[_0x32f2f7(0x28f)]('POST',_0x130279,[_0x32f2f7(0x1f6),_0x32f2f7(0x20a)],_0x32f2f7(0x1d0));}async[a9_0x4c301e(0x28a)](_0xa82f12){const _0x110986=a9_0x4c301e;return await this[_0x110986(0x28f)]('GET',_0xa82f12,[],_0x110986(0x2c2));}async['createSubaccountApiKeySpot'](_0x54665b){const _0x1fbcf2=a9_0x4c301e;return await this[_0x1fbcf2(0x28f)]('POST',_0x54665b,[_0x1fbcf2(0x1f6),_0x1fbcf2(0x20a),_0x1fbcf2(0x1e7)],'/api/v3/sub-account/apiKey');}async[a9_0x4c301e(0x23d)](_0x5f15f6){const _0x13b20c=a9_0x4c301e;return await this[_0x13b20c(0x28f)](_0x13b20c(0x2cd),_0x5f15f6,[_0x13b20c(0x1f6)],_0x13b20c(0x241));}async[a9_0x4c301e(0x288)](_0x239b6c){const _0x2d10a2=a9_0x4c301e;return await this[_0x2d10a2(0x28f)]('DELETE',_0x239b6c,[_0x2d10a2(0x1f6),_0x2d10a2(0x227)],_0x2d10a2(0x241));}async[a9_0x4c301e(0x24b)](_0x153e39){const _0x385f94=a9_0x4c301e;let _0x17bca5=Object[_0x385f94(0x1e1)](_0x153e39);if(_0x17bca5[_0x385f94(0x2a1)](_0x385f94(0x263))||_0x17bca5['includes'](_0x385f94(0x226))){if('SVTWl'!=='SVTWl'){let _0xded627=[],_0x240541='';for(let _0x1b5a6b in _0x31eb61){_0xded627[_0x385f94(0x2ca)](_0x1b5a6b+'='+_0x21f21e[_0x1b5a6b]);}_0x240541=_0xded627[_0x385f94(0x23b)]('&');let _0x45bc47={};return _0x45bc47['query']=_0x365566,_0x45bc47[_0x385f94(0x208)]=_0x240541,_0x45bc47;}else return await this[_0x385f94(0x28f)]('POST',_0x153e39,[_0x385f94(0x270),_0x385f94(0x290),'amount',_0x385f94(0x29b)],'/api/v3/capital/sub-account/universalTransfer');}else throw{'message':_0x385f94(0x1e6)};}async[a9_0x4c301e(0x2a5)](_0x380bf9){const _0x3956a2=a9_0x4c301e;let _0x14579e=Object[_0x3956a2(0x1e1)](_0x380bf9);if(_0x14579e[_0x3956a2(0x2a1)]('toAccount')||_0x14579e[_0x3956a2(0x2a1)]('fromAccount')){if('eglDz'===_0x3956a2(0x26e))return await this[_0x3956a2(0x28f)]('GET',_0x380bf9,[_0x3956a2(0x270),_0x3956a2(0x290)],_0x3956a2(0x221));else throw{'message':_0x3956a2(0x1e3)};}else{if(_0x3956a2(0x235)!==_0x3956a2(0x235))throw{'message':_0x3956a2(0x27b)};else throw{'message':_0x3956a2(0x1e6)};}}async[a9_0x4c301e(0x1d3)](_0x55c3ab){const _0x3bf110=a9_0x4c301e;return await this['spotRequest'](_0x3bf110(0x2cd),_0x55c3ab,[],'/api/v3/selfSymbols');}async[a9_0x4c301e(0x1c5)](_0x2ebad8){const _0xc12452=a9_0x4c301e;if(_0x2ebad8[_0xc12452(0x2c0)]&&_0x2ebad8[_0xc12452(0x23f)]&&_0x2ebad8[_0xc12452(0x20c)]){if(_0x2ebad8['type']=='LIMIT'&&(!_0x2ebad8[_0xc12452(0x1d6)]||!_0x2ebad8[_0xc12452(0x297)]))throw{'message':'price\x20and\x20quantity\x20required\x20for\x20type\x20LIMIT'};else{if(_0x2ebad8[_0xc12452(0x20c)]==_0xc12452(0x286)&&!_0x2ebad8[_0xc12452(0x297)]&&!_0x2ebad8['quoteOrderQty'])throw{'message':_0xc12452(0x1d7)};}let _0x2bf95f=await this[_0xc12452(0x237)]('',_0x2ebad8),_0x36badc=_0xc12452(0x28d)+_0x2bf95f['body'];return await this[_0xc12452(0x2cc)](_0xc12452(0x1c0),_0x36badc,this[_0xc12452(0x2bb)]);}else throw{'message':_0xc12452(0x250)};}async[a9_0x4c301e(0x1d4)](_0x53c909){const _0x266650=a9_0x4c301e;if(_0x53c909[_0x266650(0x2c0)]&&_0x53c909[_0x266650(0x23f)]&&_0x53c909[_0x266650(0x20c)]){if(_0x53c909[_0x266650(0x20c)]=='LIMIT'&&(!_0x53c909[_0x266650(0x1d6)]||!_0x53c909[_0x266650(0x297)])){if('TadzK'!==_0x266650(0x28b)){if(this[_0x266650(0x240)]){let _0xba096c={'protocol':_0x266650(0x20b),'host':this[_0x266650(0x277)],'port':this[_0x266650(0x1da)]};this[_0x266650(0x211)]===!![]&&(_0xba096c['auth']={'username':this['proxyUser'],'password':this[_0x266650(0x1e8)]}),_0x35c84e[_0x266650(0x277)]=_0xba096c;}return _0x8ca353;}else throw{'message':_0x266650(0x296)};}else{if(_0x53c909['type']==_0x266650(0x286)&&!_0x53c909[_0x266650(0x297)]&&!_0x53c909['quoteOrderQty']){if(_0x266650(0x1c7)!=='nntuy')throw{'message':'quantity\x20or\x20quoteOrderQty\x20required\x20for\x20type\x20MARKET'};else this[_0x266650(0x1e8)]=_0x1eae64['proxyPass'];}}let _0x41a22b=await this[_0x266650(0x237)]('',_0x53c909),_0x164eb6=_0x266650(0x1c3)+_0x41a22b[_0x266650(0x208)];return await this[_0x266650(0x2cc)](_0x266650(0x1c0),_0x164eb6,this[_0x266650(0x2bb)]);}else{if(_0x266650(0x1f2)===_0x266650(0x1dc))throw{'message':_0x266650(0x27b)};else throw{'message':_0x266650(0x250)};}}async[a9_0x4c301e(0x22c)](_0x49d9c7){const _0x1ff501=a9_0x4c301e;let _0x311e9e=Object['keys'](_0x49d9c7);if(_0x311e9e[_0x1ff501(0x2a1)](_0x1ff501(0x1e2))||_0x311e9e['includes'](_0x1ff501(0x1c2)))return'ZgAPl'===_0x1ff501(0x258)?this[_0x1ff501(0x1d2)](_0x271a07,['symbol',_0x1ff501(0x289)],'/api/v3/klines'):await this['spotRequest']('DELETE',_0x49d9c7,['symbol'],_0x1ff501(0x210));else{if(_0x1ff501(0x1fb)===_0x1ff501(0x26a))throw{'message':'price\x20and\x20quantity\x20required\x20for\x20type\x20LIMIT'};else throw{'message':'orderId\x20or\x20origClientOrderId\x20required\x20as\x20parameter'};}}async[a9_0x4c301e(0x2c8)](_0x67c8f1){const _0x50a29d=a9_0x4c301e;return await this['spotRequest'](_0x50a29d(0x24e),_0x67c8f1,[_0x50a29d(0x2c0)],_0x50a29d(0x27e));}async[a9_0x4c301e(0x203)](_0x1db004){const _0x4a1fb8=a9_0x4c301e;let _0x105e57=Object[_0x4a1fb8(0x1e1)](_0x1db004);if(_0x105e57[_0x4a1fb8(0x2a1)](_0x4a1fb8(0x1e2))||_0x105e57[_0x4a1fb8(0x2a1)](_0x4a1fb8(0x1c2)))return await this[_0x4a1fb8(0x28f)](_0x4a1fb8(0x2cd),_0x1db004,['symbol'],_0x4a1fb8(0x210));else{if('pMcJE'!==_0x4a1fb8(0x253))this[_0x4a1fb8(0x2b3)]=_0x51db48[_0x4a1fb8(0x2b3)];else throw{'message':_0x4a1fb8(0x236)};}}async['getOpenOrdersSpot'](_0x323cf4){const _0x398007=a9_0x4c301e;return await this[_0x398007(0x28f)](_0x398007(0x2cd),_0x323cf4,[_0x398007(0x2c0)],'/api/v3/openOrders');}async['getAllOrdersSpot'](_0x17116e){const _0x57e12a=a9_0x4c301e;return await this[_0x57e12a(0x28f)](_0x57e12a(0x2cd),_0x17116e,[_0x57e12a(0x2c0)],'/api/v3/allOrders');}async[a9_0x4c301e(0x230)](_0x47c9ff){const _0x19a766=a9_0x4c301e;return await this[_0x19a766(0x28f)](_0x19a766(0x2cd),_0x47c9ff,[],_0x19a766(0x2cb));}async[a9_0x4c301e(0x29c)](_0x1d8dc5){const _0x548214=a9_0x4c301e;return await this[_0x548214(0x28f)]('GET',_0x1d8dc5,['symbol'],'/api/v3/myTrades');}async['enableMxDeduct'](_0x3f11ab){const _0x1c273f=a9_0x4c301e;return await this[_0x1c273f(0x28f)]('POST',_0x3f11ab,[_0x1c273f(0x1b7)],_0x1c273f(0x254));}async[a9_0x4c301e(0x2ac)](_0x122a2a){const _0x8dd086=a9_0x4c301e;return await this[_0x8dd086(0x28f)](_0x8dd086(0x2cd),_0x122a2a,[],'/api/v3/mxDeduct/enable');}async['getCurrencyInformationSpot'](_0x1117d5){const _0x4d857b=a9_0x4c301e;return await this['spotRequest'](_0x4d857b(0x2cd),_0x1117d5,[],_0x4d857b(0x215));}async[a9_0x4c301e(0x25a)](_0x10f2fb){const _0x54130d=a9_0x4c301e;return await this[_0x54130d(0x28f)](_0x54130d(0x1c0),_0x10f2fb,[_0x54130d(0x2ad),_0x54130d(0x1e0),_0x54130d(0x1f3)],_0x54130d(0x1ec));}async[a9_0x4c301e(0x24c)](_0x3540bc){const _0x51e5cf=a9_0x4c301e;return await this[_0x51e5cf(0x28f)](_0x51e5cf(0x24e),_0x3540bc,['id'],_0x51e5cf(0x275));}async[a9_0x4c301e(0x239)](_0x597d9c){const _0x1728a6=a9_0x4c301e;return await this[_0x1728a6(0x28f)](_0x1728a6(0x2cd),_0x597d9c,[],'/api/v3/capital/deposit/hisrec');}async[a9_0x4c301e(0x2a3)](_0x23f9b9){const _0x11d583=a9_0x4c301e;return await this[_0x11d583(0x28f)]('GET',_0x23f9b9,[],_0x11d583(0x2bc));}async[a9_0x4c301e(0x2a7)](_0x1c0366){const _0x283575=a9_0x4c301e;return await this[_0x283575(0x28f)](_0x283575(0x1c0),_0x1c0366,['coin',_0x283575(0x1cc)],'/api/v3/capital/deposit/address');}async['getDepositAddressSpot'](_0x17bf8e){const _0x1d4453=a9_0x4c301e;return await this['spotRequest'](_0x1d4453(0x2cd),_0x17bf8e,[_0x1d4453(0x2ad)],'/api/v3/capital/deposit/address');}async['getWithdrawAddressSpot'](_0x27141f){const _0x4494fc=a9_0x4c301e;return await this['spotRequest'](_0x4494fc(0x2cd),_0x27141f,[],_0x4494fc(0x2b7));}async[a9_0x4c301e(0x252)](_0xd3fb42){const _0xd688d1=a9_0x4c301e;return await this['spotRequest'](_0xd688d1(0x1c0),_0xd3fb42,[_0xd688d1(0x270),_0xd688d1(0x290),_0xd688d1(0x29b),_0xd688d1(0x1f3)],'/api/v3/capital/transfer');}async[a9_0x4c301e(0x2a5)](_0x4a1e83){const _0x2acaf8=a9_0x4c301e;return await this[_0x2acaf8(0x28f)](_0x2acaf8(0x2cd),_0x4a1e83,[_0x2acaf8(0x270),_0x2acaf8(0x290)],_0x2acaf8(0x216));}async['getUniversalTransferHistoryTranIdSpot'](_0x342fc2){const _0x579e13=a9_0x4c301e;return await this['spotRequest'](_0x579e13(0x2cd),_0x342fc2,['tranId'],_0x579e13(0x24d));}async[a9_0x4c301e(0x21d)](_0x38c4af){const _0x9e0830=a9_0x4c301e;return await this[_0x9e0830(0x28f)](_0x9e0830(0x2cd),_0x38c4af,[],_0x9e0830(0x1c9));}async[a9_0x4c301e(0x2a4)](_0x3b7cf5){const _0x30f40c=a9_0x4c301e;return await this['spotRequest'](_0x30f40c(0x1c0),_0x3b7cf5,['asset'],_0x30f40c(0x1f4));}async[a9_0x4c301e(0x1f5)](_0x17153a){const _0x1d279c=a9_0x4c301e;return await this[_0x1d279c(0x28f)](_0x1d279c(0x2cd),_0x17153a,[],_0x1d279c(0x1f4));}async[a9_0x4c301e(0x247)](_0x138646){const _0x460eed=a9_0x4c301e;return await this[_0x460eed(0x28f)](_0x460eed(0x2cd),_0x138646,[],'/api/v3/etf/info');}async['getRebateHistoryRecords'](_0x2a674f){const _0x12e8e5=a9_0x4c301e;return await this[_0x12e8e5(0x28f)](_0x12e8e5(0x2cd),_0x2a674f,[],'/api/v3/rebate/taxQuery');}async[a9_0x4c301e(0x26c)](_0x3035b0){const _0xecd0e1=a9_0x4c301e;return await this[_0xecd0e1(0x28f)]('GET',_0x3035b0,[],_0xecd0e1(0x2b1));}async[a9_0x4c301e(0x1db)](_0x44670a){const _0x4ad161=a9_0x4c301e;return await this[_0x4ad161(0x28f)](_0x4ad161(0x2cd),_0x44670a,[],'/api/v3/rebate/detail/kickback');}async['getReferCode'](_0x1b4b8b){const _0x8709a1=a9_0x4c301e;return await this[_0x8709a1(0x28f)](_0x8709a1(0x2cd),_0x1b4b8b,[],_0x8709a1(0x257));}async['createAuthHeaderV1'](_0xcefb52,_0x252c64){const _0x37dfd1=a9_0x4c301e;let _0x4c6a16=_0x37dfd1(0x265),_0x29d984='';if(_0x252c64==_0x37dfd1(0x1c0))_0x29d984=JSON[_0x37dfd1(0x205)](_0xcefb52);else{if(_0xcefb52!=null&&Object[_0x37dfd1(0x1e1)](_0xcefb52)[_0x37dfd1(0x201)]>0x0){for(let _0x5f5c82 of Object['keys'](_0xcefb52)[_0x37dfd1(0x20e)]()){_0x29d984=_0x29d984+_0x5f5c82+'='+_0xcefb52[_0x5f5c82]+'&';}_0x29d984=_0x29d984[_0x37dfd1(0x1f0)](0x0,-0x1);}}console[_0x37dfd1(0x245)](_0x29d984);let _0x2d2a55=Date[_0x37dfd1(0x1fa)](),_0x1a4568={'Content-Type':_0x4c6a16,'Request-Time':_0x2d2a55,'ApiKey':this[_0x37dfd1(0x227)],'Signature':await this['createSignaturePrehash'](this[_0x37dfd1(0x264)],this['apiKey']+_0x2d2a55+_0x29d984)};return _0x1a4568;}async[a9_0x4c301e(0x223)](_0x4a8308){const _0xeb307=a9_0x4c301e;return await this[_0xeb307(0x232)](_0xeb307(0x2cd),_0x4a8308,[],'/api/v1/contract/ping');}async[a9_0x4c301e(0x207)](_0x10570d){const _0x1a69e2=a9_0x4c301e;return await this[_0x1a69e2(0x232)]('GET',_0x10570d,[],'/api/v1/contract/detail');}async[a9_0x4c301e(0x26d)](_0x380767){const _0x2a829c=a9_0x4c301e;return await this['futuresRequest']('GET',_0x380767,[],_0x2a829c(0x27d));}async[a9_0x4c301e(0x21b)](_0x587d26){const _0x5726d9=a9_0x4c301e;if(Object[_0x5726d9(0x1e1)](_0x587d26)[_0x5726d9(0x2a1)](_0x5726d9(0x2c0)))return await this['futuresRequest'](_0x5726d9(0x2cd),_0x587d26,[],'/api/v1/contract/depth/'+_0x587d26[_0x5726d9(0x2c0)]);else{if(_0x5726d9(0x24a)!=='Ulnqn')throw{'message':_0x5726d9(0x27b)};else throw{'message':'symbol\x20is\x20a\x20required\x20parameter'};}}async[a9_0x4c301e(0x267)](_0x513f2a){const _0x1ad633=a9_0x4c301e;if(Object[_0x1ad633(0x1e1)](_0x513f2a)[_0x1ad633(0x2a1)](_0x1ad633(0x2c0))&&Object[_0x1ad633(0x1e1)](_0x513f2a)[_0x1ad633(0x2a1)]('limit')){if(_0x1ad633(0x2ba)!==_0x1ad633(0x2ba))throw{'message':_0x1ad633(0x236)};else return await this[_0x1ad633(0x232)](_0x1ad633(0x2cd),_0x513f2a,[],_0x1ad633(0x29f)+_0x513f2a[_0x1ad633(0x2c0)]+'/'+_0x513f2a[_0x1ad633(0x1f1)]);}else throw{'message':_0x1ad633(0x269)};}async[a9_0x4c301e(0x29a)](_0x15057a){const _0x80f2de=a9_0x4c301e;if(Object[_0x80f2de(0x1e1)](_0x15057a)[_0x80f2de(0x2a1)](_0x80f2de(0x2c0)))return await this['futuresRequest'](_0x80f2de(0x2cd),_0x15057a,[],_0x80f2de(0x25d)+_0x15057a[_0x80f2de(0x2c0)]);else throw{'message':_0x80f2de(0x27b)};}async[a9_0x4c301e(0x1ea)](_0x4d2a2b){const _0x216f9c=a9_0x4c301e;if(Object[_0x216f9c(0x1e1)](_0x4d2a2b)[_0x216f9c(0x2a1)](_0x216f9c(0x2c0)))return await this[_0x216f9c(0x232)](_0x216f9c(0x2cd),_0x4d2a2b,[],_0x216f9c(0x27f)+_0x4d2a2b[_0x216f9c(0x2c0)]);else throw{'message':_0x216f9c(0x27b)};}async[a9_0x4c301e(0x249)](_0x1f1ca3){const _0x540bc9=a9_0x4c301e;if(Object[_0x540bc9(0x1e1)](_0x1f1ca3)[_0x540bc9(0x2a1)](_0x540bc9(0x2c0))){if('cIhsh'==='EokoC')throw{'message':_0x540bc9(0x27b)};else return await this[_0x540bc9(0x232)](_0x540bc9(0x2cd),_0x1f1ca3,[],'/api/v1/contract/funding_rate/'+_0x1f1ca3['symbol']);}else{if(_0x540bc9(0x2aa)===_0x540bc9(0x206))this['proxyAuth']=![];else throw{'message':_0x540bc9(0x27b)};}}async[a9_0x4c301e(0x248)](_0x431940){const _0x59591c=a9_0x4c301e;if(Object[_0x59591c(0x1e1)](_0x431940)[_0x59591c(0x2a1)](_0x59591c(0x2c0)))return await this['futuresRequest']('GET',_0x431940,[],_0x59591c(0x27c)+_0x431940[_0x59591c(0x2c0)]);else throw{'message':_0x59591c(0x27b)};}async[a9_0x4c301e(0x202)](_0x5222c7){const _0x7aecae=a9_0x4c301e;if(Object['keys'](_0x5222c7)[_0x7aecae(0x2a1)](_0x7aecae(0x2c0)))return await this[_0x7aecae(0x232)](_0x7aecae(0x2cd),_0x5222c7,[],_0x7aecae(0x294)+_0x5222c7['symbol']);else{if('tYWLO'!=='gSYXO')throw{'message':_0x7aecae(0x27b)};else this[_0x7aecae(0x1da)]=_0x50cacd[_0x7aecae(0x1da)];}}async[a9_0x4c301e(0x242)](_0x3ccb8e){const _0x3f3389=a9_0x4c301e;if(Object[_0x3f3389(0x1e1)](_0x3ccb8e)[_0x3f3389(0x2a1)](_0x3f3389(0x2c0)))return await this[_0x3f3389(0x232)](_0x3f3389(0x2cd),_0x3ccb8e,[],_0x3f3389(0x225)+_0x3ccb8e[_0x3f3389(0x2c0)]);else throw{'message':_0x3f3389(0x27b)};}async[a9_0x4c301e(0x25e)](_0x33042e){const _0x3ce9c8=a9_0x4c301e;if(Object[_0x3ce9c8(0x1e1)](_0x33042e)[_0x3ce9c8(0x2a1)]('symbol')){if(_0x3ce9c8(0x266)==='LMjcV')return await this[_0x3ce9c8(0x232)](_0x3ce9c8(0x2cd),_0x33042e,[],'/api/v1/contract/deals/'+_0x33042e[_0x3ce9c8(0x2c0)]);else _0x31c3d0=_0x30c29a[_0x3ce9c8(0x205)](_0x12c3b1);}else{if('nekaQ'!=='nekaQ')throw{'message':_0x3ce9c8(0x1e6)};else throw{'message':_0x3ce9c8(0x27b)};}}async['getContractTrendDataFutures'](_0x1662d3){const _0x34d449=a9_0x4c301e;return await this[_0x34d449(0x232)]('GET',_0x1662d3,[],_0x34d449(0x279));}async[a9_0x4c301e(0x2c3)](_0xfa41ed){const _0xf290db=a9_0x4c301e;return await this[_0xf290db(0x232)]('GET',_0xfa41ed,[],_0xf290db(0x1c4));}async[a9_0x4c301e(0x272)](_0x656456){const _0x11a23f=a9_0x4c301e;return await this[_0x11a23f(0x232)]('GET',_0x656456,[_0x11a23f(0x2c0),_0x11a23f(0x22d),_0x11a23f(0x276)],_0x11a23f(0x209));}async[a9_0x4c301e(0x28e)](_0x32b9f6){const _0x353e61=a9_0x4c301e;return await this[_0x353e61(0x232)]('GET',_0x32b9f6,['symbol','page_num',_0x353e61(0x276)],_0x353e61(0x234));}async[a9_0x4c301e(0x1be)](_0x567c09){const _0x5c1062=a9_0x4c301e;return await this['futuresRequest'](_0x5c1062(0x2cd),_0x567c09,[],_0x5c1062(0x22b));}async['getUserAssetTransferRecordsFutures'](_0x3ed0a2){const _0x384087=a9_0x4c301e;return await this[_0x384087(0x232)]('GET',_0x3ed0a2,[],_0x384087(0x2a0));}async[a9_0x4c301e(0x1f8)](_0x3eecef){const _0xbd816a=a9_0x4c301e;if(Object[_0xbd816a(0x1e1)](_0x3eecef)['includes']('currency')){if('LjIKd'==='kXcvo')_0x3b5b3f=_0x5575f0+_0x314787+'='+_0x557756[_0x9c1b08]+'&';else return await this[_0xbd816a(0x232)](_0xbd816a(0x2cd),_0x3eecef,[],_0xbd816a(0x1ef)+_0x3eecef['currency']);}else throw{'message':_0xbd816a(0x2b5)};}async[a9_0x4c301e(0x222)](_0x5d164f){const _0x990244=a9_0x4c301e;return await this[_0x990244(0x232)](_0x990244(0x2cd),_0x5d164f,[],'/api/v1/private/position/list/history_positions');}async[a9_0x4c301e(0x1e4)](_0x27cdff){const _0x47e293=a9_0x4c301e;return await this[_0x47e293(0x232)](_0x47e293(0x2cd),_0x27cdff,[],_0x47e293(0x21a));}async[a9_0x4c301e(0x1bb)](_0x4f2e33){const _0x3dde78=a9_0x4c301e;return await this[_0x3dde78(0x232)](_0x3dde78(0x2cd),_0x4f2e33,[],_0x3dde78(0x1ca));}async['getUserCurrentPendingOrderFutures'](_0x31b8cc){const _0x193e78=a9_0x4c301e;if(Object[_0x193e78(0x1e1)](_0x31b8cc)[_0x193e78(0x2a1)](_0x193e78(0x2c0)))return'ymjwl'!==_0x193e78(0x1ba)?this[_0x193e78(0x1d2)](_0x1b8812,[],_0x193e78(0x25f)):await this[_0x193e78(0x232)](_0x193e78(0x2cd),_0x31b8cc,[],_0x193e78(0x268)+_0x31b8cc[_0x193e78(0x2c0)]);else throw{'message':_0x193e78(0x27b)};}async['getAllUserHistoricalOrdersFutures'](_0x5669d6){return await this['futuresRequest']('GET',_0x5669d6,[],'/api/v1/private/order/list/history_orders');}async[a9_0x4c301e(0x27a)](_0x150d62){const _0x364671=a9_0x4c301e;if(Object[_0x364671(0x1e1)](_0x150d62)[_0x364671(0x2a1)]('symbol')&&Object['keys'](_0x150d62)[_0x364671(0x2a1)](_0x364671(0x214)))return'pISWx'!=='pISWx'?this[_0x364671(0x1d2)](_0x2c2557,['symbol'],'/api/v3/trades'):await this['futuresRequest']('GET',_0x150d62,[],_0x364671(0x2a6)+_0x150d62['symbol']+'/'+_0x150d62[_0x364671(0x1f1)]);else throw{'message':_0x364671(0x269)};}async['getOrderByOrderNumberFutures'](_0x33424b){const _0x30146b=a9_0x4c301e;if(Object[_0x30146b(0x1e1)](_0x33424b)[_0x30146b(0x2a1)](_0x30146b(0x1d8)))return await this[_0x30146b(0x232)]('GET',_0x33424b,[],_0x30146b(0x2b9)+_0x33424b[_0x30146b(0x1d8)]);else{if(_0x30146b(0x273)===_0x30146b(0x238))_0x2e4017[_0x30146b(0x2bd)]=_0x162ef7,_0x4a38d0['body']=_0x5167c5+_0x30146b(0x1d9)+_0x5529eb+'&timestamp='+_0x1af8ee+_0x30146b(0x1ff)+_0x2deed5;else throw{'message':'order_id\x20is\x20a\x20required\x20parameter'};}}async[a9_0x4c301e(0x2c5)](_0x2f627f){const _0x2abff5=a9_0x4c301e;if(Object[_0x2abff5(0x1e1)](_0x2f627f)[_0x2abff5(0x2a1)](_0x2abff5(0x1d8)))return await this[_0x2abff5(0x232)](_0x2abff5(0x2cd),_0x2f627f,[],'/api/v1/private/order/deal_details/'+_0x2f627f[_0x2abff5(0x1d8)]);else throw{'message':_0x2abff5(0x1e3)};}async[a9_0x4c301e(0x1d1)](_0x1ca754){const _0x243a4d=a9_0x4c301e;return await this[_0x243a4d(0x232)](_0x243a4d(0x2cd),_0x1ca754,[],_0x243a4d(0x271));}async['getTriggerOrderListFutures'](_0x57e6a9){const _0x1f16cf=a9_0x4c301e;return await this['futuresRequest'](_0x1f16cf(0x2cd),_0x57e6a9,[],'/api/v1/private/planorder/list/orders');}async[a9_0x4c301e(0x261)](_0x49f12c){const _0x207300=a9_0x4c301e;return await this[_0x207300(0x232)](_0x207300(0x2cd),_0x49f12c,[],'/api/v1/private/stoporder/list/orders');}async[a9_0x4c301e(0x228)](_0x59a975){const _0x218df0=a9_0x4c301e;return await this[_0x218df0(0x232)](_0x218df0(0x2cd),_0x59a975,[],_0x218df0(0x1f9));}async[a9_0x4c301e(0x1f7)](_0x1fbfa3){const _0x4faa36=a9_0x4c301e;return await this[_0x4faa36(0x232)]('GET',_0x1fbfa3,[],_0x4faa36(0x219));}async['changeMarginFutures'](_0x2f20de){const _0x486515=a9_0x4c301e;return await this[_0x486515(0x232)](_0x486515(0x1c0),_0x2f20de,['positionId',_0x486515(0x1f3),_0x486515(0x20c)],_0x486515(0x2bf));}async[a9_0x4c301e(0x2c9)](_0x20b488){const _0x19df64=a9_0x4c301e;return await this['futuresRequest'](_0x19df64(0x2cd),_0x20b488,[],'/api/v1/private/position/position_mode');}async[a9_0x4c301e(0x2b2)](_0x530dd1){const _0x3bce04=a9_0x4c301e;return await this[_0x3bce04(0x232)](_0x3bce04(0x2cd),_0x530dd1,[_0x3bce04(0x2c0)],_0x3bce04(0x298));}}

@@ -1,1 +0,1 @@

const a10_0x4464ab=a10_0x3854;(function(_0x2d2e39,_0x15d132){const _0x4d4b4f=a10_0x3854,_0x38755d=_0x2d2e39();while(!![]){try{const _0x4c055b=-parseInt(_0x4d4b4f(0x1bf))/0x1+-parseInt(_0x4d4b4f(0x144))/0x2*(parseInt(_0x4d4b4f(0x14a))/0x3)+-parseInt(_0x4d4b4f(0x167))/0x4+-parseInt(_0x4d4b4f(0x196))/0x5*(parseInt(_0x4d4b4f(0x1d0))/0x6)+-parseInt(_0x4d4b4f(0x120))/0x7*(parseInt(_0x4d4b4f(0x1df))/0x8)+-parseInt(_0x4d4b4f(0x1ae))/0x9*(parseInt(_0x4d4b4f(0x1a2))/0xa)+parseInt(_0x4d4b4f(0x114))/0xb;if(_0x4c055b===_0x15d132)break;else _0x38755d['push'](_0x38755d['shift']());}catch(_0xd1abf0){_0x38755d['push'](_0x38755d['shift']());}}}(a10_0x5507,0x5d259));import a10_0x3b1dcc from'axios';function a10_0x3854(_0x913ff9,_0x15c2dd){const _0x5507d6=a10_0x5507();return a10_0x3854=function(_0x3854ee,_0x49ad22){_0x3854ee=_0x3854ee-0xe4;let _0x352f58=_0x5507d6[_0x3854ee];return _0x352f58;},a10_0x3854(_0x913ff9,_0x15c2dd);}import a10_0x1703bf from'crypto-js';function a10_0x5507(){const _0x5e69a8=['/g-orders/all','/public/products','/g-orders','/margin/orders','/orders/replace','cancelOrder','/exchange/public/nomics/trades','getOpenOrders','useProxy','/assets/spots/sub-accounts/transfer','DELETE','PhqEi','default','setLeverage','symbol','getTradingAccountPerp','forEach','/exchange/order/v2/tradingList','exchangename','addProxyObject','/api-data/g-futures/trades','GET','/md/v2/ticker/24hr/all','/margin-trade/wallets','getKlineHedged','address','uYxzG','/margin-trade/orders','getContractFeeRate','proxyAuth','/api-data/spots/funds','switchPositionModeSynchronously','offset','getHistoryTradePerp','/exchange/wallets/v2/depositAddress','name','getFundsDetail','createAuthHeader','34921370uMYAxb','clOrdID','OrderQty','/g-orders/create','limit','/spot/orders','/exchange/order/v2/orderList','PUT','cancelAllOrdersHedged','getKline','getAccountPositionsUnPnLHedged','getChainInfo','266jBNdLI','proxyPort','/assets/quote','MwquU','auth','map','/orders/create','getOrderHistory','auystrAAS2iW85#s2@jdDC','/api-data/futures/fee-rate','/margin-trade/orders/active','/phemex-deposit/wallets/api/depositAddress','getOpenOrderMargin','getWalletsMargin','/margin/borrow','/md/v2/trade','IFHMn','posSide','/api-data/spots/fee-rate','getFundingRateHistory','authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret\x20and\x20passphrase','marginPayback','/g-orders/cancel','get24HourTickerAllSymbolsHedged','getOrder','getFundsHistory','join','isArray','/g-positions/riskLimit','market','qtyType','getFundingRateHistoryHedged','setLeverageHedged','/api-data/spots/trades','side','getConvertHistory','14YKYRpu','/g-accounts/positions','msg','/orders/all','data','exchange','70233BUrtDZ','fromAmountEv','setRiskLimit','amountEv','marginBorrow','quoteCurrency','QpBxL','tickSize','publicApis','url','getTransferHistory','https://testnet-api.phemex.com','resolution','/exchange/public/md/v2/kline/last','/md/trade','balancer','key','placeOrder','/exchange/order/trade','/g-accounts/accountPositions','assignPositionBalance','placeOrderHedged','length','cancelAllOrdersMargin','apiSecret','logGets','getMarginOrderTradesDetails','checkParams','normalizeData','2709444QPtolv','hex','normalize','includes','placeOrderMargin','amendOrder','JwlAy','/phemex-deposit/wallets/api/depositHist','currencies','/exchange/order','amountRv','settleCurrency','getDepositAddress','createSignature','normalizeRec','get24HourTickerAllSymbolsPerp','getOrderBookHedged','toCurrency','getWithdrawHistory','/md/spot/ticker/24hr','/assets/transfer','/exchange/public/cfg/chain-settings','DHBvV','object','OygBB','valueScale','getFundingFeeHistory','/api-data/g-futures/funding-fees','currency','proxyUser','subaccount','getOpenOrderActive','/g-positions/switch-pos-mode-sync','getTradesHistory','digest','getWithdrawChainSettings','cancelOrderMargin','orderQty','push','/margin/borrow/interests','getDepositChainSettings','RfZuy','/phemex-deposit/wallets/api/chainCfg','getMarginOrdersDetails','filter','/md/v2/ticker/24hr','convert','5dQdwBQ','proxy','getDepositHistory','getOrderBook','getServerTime','/public/time','pGLJu','/accounts/accountPositions','/assets/futures/sub-accounts/transfer','https','JfzNS','/api-data/g-futures/orders','5804530XItAnT','POST','chainName','/margin/orders/trades','orderID','getRecentTrades','spotFuturesTransfer','/md/fullbook','label','authenticate','cmfi','/assets/convert','9CekKLo','getAllOpenOrdersMargin','Missing\x20params:\x20','No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters','/g-orders/activeList','subToMainTransferSpot','amendOrderPerp','apiKey','/api-data/futures/v2/tradeAccountDetail','getMarginPaybackHistory','cancelWithdraw','products','get24HourTickerHedged','executeOrder','spFrz','getClosedOrdersHedged','/exchange/order/list','305966NscIXm','Hmac','get24HourTicker','/margin/payback','doLog','endsWith','/md/orderbook','getUserTradePerp','/phemex-withdraw/wallets/api/cancelWithdraw','dhsyTW5!ysh8IuysQKcG45','/orders/cancel','get24HourTickerPerp','/exchange/public/md/v2/kline','/accounts/positions','getPnL','/margin-trade/orders/all','proxyPass','3244908mtEolv','secret','getFundingFeeHistoryHedged','fromCurrency','moveOp','/exchange/wallets/withdrawList','keys','getOrdersHistoryHedged','getClosedOrdersPerp','/api-data/g-futures/orders/by-order-id','lEFNN','/g-orders/replace','status','ntFPc','getOpenOrdersHedged','110456mdUlyh','amount','cancelBatchOrderPerp','getMarginBorrowInterestHistory','/spot/wallets','targetPosMode','isMain','/positions/assign','rOFsU','sha256','getOrderBookFull','getProductInfo','/spot/orders/all'];a10_0x5507=function(){return _0x5e69a8;};return a10_0x5507();}import a10_0x53ad9b,{sign}from'crypto';import a10_0x3e4a71 from'crypto-js/enc-base64url.js';export class Phemex{[a10_0x4464ab(0x152)]=new Array();['ky']=a10_0x4464ab(0x128);['i']=a10_0x4464ab(0x1c8);['sockets']={};constructor(_0x26549b){const _0x4cad55=a10_0x4464ab;this[_0x4cad55(0x153)]=_0x4cad55(0x155),this[_0x4cad55(0x1ab)]=_0x26549b[_0x4cad55(0x1ab)]==undefined?!![]:_0x26549b[_0x4cad55(0x1ab)],this[_0x4cad55(0x111)]=_0x26549b[_0x4cad55(0x149)]['exchangename']==undefined?'phemex':_0x26549b[_0x4cad55(0x149)][_0x4cad55(0x100)],this['exchangeid']=_0x26549b[_0x4cad55(0x149)]['id'],this[_0x4cad55(0x1aa)]=_0x26549b['label'],this['normalize']=_0x26549b[_0x4cad55(0x169)]==undefined?![]:_0x26549b[_0x4cad55(0x169)];if(this[_0x4cad55(0x1ab)]){if('WkLxy'!==_0x4cad55(0x1a0)){if(!_0x26549b[_0x4cad55(0x15a)]||!_0x26549b['secret']||_0x26549b[_0x4cad55(0x15a)]==''||_0x26549b[_0x4cad55(0x1d1)]=='')throw _0x4cad55(0x134);this[_0x4cad55(0x1b5)]=_0x26549b['key'],this['apiSecret']=_0x26549b['secret'],this[_0x4cad55(0xe7)]=_0x26549b[_0x4cad55(0x185)]==undefined,this[_0x4cad55(0x185)]=this[_0x4cad55(0xe7)]?'':_0x26549b[_0x4cad55(0x185)];}else throw'authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret\x20and\x20passphrase';}this[_0x4cad55(0xf6)]=![],this[_0x4cad55(0x159)]=_0x26549b[_0x4cad55(0x159)]||undefined;if(_0x26549b[_0x4cad55(0xf6)]){if(_0x26549b['proxy']&&_0x26549b[_0x4cad55(0x197)]!=''||_0x26549b[_0x4cad55(0x159)]&&_0x26549b[_0x4cad55(0x159)]!=''){this[_0x4cad55(0xf6)]=!![],this[_0x4cad55(0x197)]=_0x26549b[_0x4cad55(0x197)];if(_0x26549b[_0x4cad55(0x121)]){if(_0x4cad55(0x17d)===_0x4cad55(0x19c)){if(!_0x83a8e[_0x4cad55(0x15a)]||!_0x58d3b9[_0x4cad55(0x1d1)]||_0x5e7a0f[_0x4cad55(0x15a)]==''||_0x1c299e[_0x4cad55(0x1d1)]=='')throw _0x4cad55(0x134);this['apiKey']=_0x39b529[_0x4cad55(0x15a)],this[_0x4cad55(0x162)]=_0x2dfc1d[_0x4cad55(0x1d1)],this[_0x4cad55(0xe7)]=_0x50c7d7[_0x4cad55(0x185)]==_0x5eeb56,this[_0x4cad55(0x185)]=this[_0x4cad55(0xe7)]?'':_0x1a6a9a[_0x4cad55(0x185)];}else this[_0x4cad55(0x121)]=_0x26549b[_0x4cad55(0x121)];}else this['proxyPort']=0xbb8;}}this['publicApis']['push']();}async[a10_0x4464ab(0x113)](_0x13f432,_0x442c63){const _0x17dee4=a10_0x4464ab;let _0x2f35be=Date['now']()+0x1770,_0x40e45b=await this['createSignature'](_0x13f432,_0x442c63,_0x2f35be),_0x372ca4={'x-phemex-access-token':this[_0x17dee4(0x1b5)],'x-phemex-request-expiry':_0x2f35be,'x-phemex-request-signature':_0x40e45b};return _0x372ca4;}async[a10_0x4464ab(0x174)](_0x50d38d,_0x536855,_0x5ec0ca){const _0x3a406b=a10_0x4464ab;let _0x560f2f=_0x50d38d+_0x536855+_0x5ec0ca,_0x18b22a=a10_0x53ad9b[_0x3a406b(0x1c0)](_0x3a406b(0xea),this['apiSecret'])['update'](_0x560f2f)[_0x3a406b(0x189)](_0x3a406b(0x168));return _0x18b22a;}[a10_0x4464ab(0x101)](_0x491fee){const _0x3f1445=a10_0x4464ab;if(this['useProxy']){let _0x1f3685={'protocol':_0x3f1445(0x19f),'host':this[_0x3f1445(0x197)],'port':this[_0x3f1445(0x121)]};if(this[_0x3f1445(0x10b)]===!![]){if(_0x3f1445(0x130)!==_0x3f1445(0x130))throw{'message':_0x3f1445(0x1b0)+_0x2ca9a3[_0x3f1445(0x13a)](',')};else _0x1f3685[_0x3f1445(0x124)]={'username':this[_0x3f1445(0x184)],'password':this['proxyPass']};}_0x491fee[_0x3f1445(0x197)]=_0x1f3685;}return _0x491fee;}async[a10_0x4464ab(0x165)](_0x1aef01,_0x2c103a){const _0x269f28=a10_0x4464ab;let _0x4fd23e=_0x1aef01!=null?_0x2c103a[_0x269f28(0x193)](_0x6dc354=>!Object[_0x269f28(0x1d6)](_0x1aef01)[_0x269f28(0x16a)](_0x6dc354)):_0x2c103a;if(_0x4fd23e[_0x269f28(0x160)]!=0x0){if(_0x269f28(0x1dd)===_0x269f28(0x1dd))throw{'message':_0x269f28(0x1b0)+_0x4fd23e[_0x269f28(0x13a)](',')};else this['useProxy']=!![],this[_0x269f28(0x197)]=_0x52cd38[_0x269f28(0x197)],_0x53ee03[_0x269f28(0x121)]?this[_0x269f28(0x121)]=_0x41e4cf[_0x269f28(0x121)]:this['proxyPort']=0xbb8;}}async[a10_0x4464ab(0x1bb)](_0x4ea563,_0x56f6e2,_0x3759cd,_0x7cc378){const _0x302a0a=a10_0x4464ab;await this[_0x302a0a(0x165)](_0x4ea563,_0x7cc378);let _0x490aa7=[],_0x2e883f='';for(let _0x3d234a in _0x4ea563){_0x490aa7[_0x302a0a(0x18d)](_0x3d234a+'='+_0x4ea563[_0x3d234a]);}_0x2e883f=_0x490aa7[_0x302a0a(0x13a)]('&');let _0xd4ea8e={'baseURL':this[_0x302a0a(0x153)],'url':_0x3759cd+'?'+_0x2e883f,'method':_0x56f6e2,'headers':await this[_0x302a0a(0x113)](_0x3759cd,_0x2e883f)};_0xd4ea8e=this['addProxyObject'](_0xd4ea8e);try{const _0xd621e5=await a10_0x3b1dcc(_0xd4ea8e);if(!_0xd621e5){if(_0x302a0a(0x16d)===_0x302a0a(0x1bc)){let _0x37f6c9=_0x274793+_0xdcb012+_0x574a70,_0x39c42d=_0x58ed28['Hmac'](_0x302a0a(0xea),this['apiSecret'])['update'](_0x37f6c9)[_0x302a0a(0x189)](_0x302a0a(0x168));return _0x39c42d;}else{this[_0x302a0a(0x163)]==!![]&&doLog(_0x302a0a(0x1b1));throw _0x302a0a(0x1b1);}}this[_0x302a0a(0x163)]==!![]&&(_0x302a0a(0x17f)!==_0x302a0a(0xe9)?this[_0x302a0a(0x1c3)]({'send':_0xd4ea8e,'level':_0x302a0a(0xfa),'receive':{'code':_0xd621e5[_0x302a0a(0x148)]['code'],'data':JSON['stringify'](_0xd621e5['data'][_0x302a0a(0x148)]),'msg':_0xd621e5[_0x302a0a(0x148)][_0x302a0a(0x146)]}}):this[_0x302a0a(0x121)]=0xbb8);if(this[_0x302a0a(0x169)]&&_0x3759cd!='/public/products'){let _0xee1f0f=await this[_0x302a0a(0x166)](_0xd621e5[_0x302a0a(0x148)]);return{'code':_0xd621e5[_0x302a0a(0x1dc)],'data':_0xd621e5['data'],'msg':_0xd621e5['statusText'],'normalized':_0xee1f0f};}else return{'code':_0xd621e5[_0x302a0a(0x1dc)],'data':_0xd621e5[_0x302a0a(0x148)],'msg':_0xd621e5['statusText']};}catch(_0x27e91b){return _0x27e91b;}}async[a10_0x4464ab(0x166)](_0x2833cf){const _0x748d38=a10_0x4464ab;let _0x3bc2fa=await this[_0x748d38(0xec)]();return this['normalizeRec'](_0x2833cf,_0x3bc2fa[_0x748d38(0x148)][_0x748d38(0x148)]);}['normalizeRec'](_0x374e95,_0x510f13){const _0x5c55f9=a10_0x4464ab;let _0x27d89a={};return Object[_0x5c55f9(0x1d6)](_0x374e95)[_0x5c55f9(0xfe)](_0x5b3133=>{const _0x49e791=_0x5c55f9;let _0x136f47=_0x374e95[_0x5b3133];if(Array[_0x49e791(0x13b)](_0x136f47)){let _0x57359b=_0x136f47[_0x49e791(0x125)](_0x3f180d=>this[_0x49e791(0x175)](_0x3f180d,_0x510f13));_0x57359b!=[]&&(_0x27d89a[_0x5b3133]=_0x57359b);}else{if(typeof _0x136f47===_0x49e791(0x17e)&&_0x136f47!=null){let _0x4dce09=this[_0x49e791(0x175)](_0x136f47,_0x510f13);_0x4dce09!={}&&(_0x49e791(0x123)===_0x49e791(0x123)?_0x27d89a[_0x5b3133]=_0x4dce09:_0x2bca36(_0x49e791(0x1b1)));}else{if(_0x49e791(0x108)==='uYxzG'){if((_0x5b3133['endsWith']('balanceEv')||_0x5b3133['endsWith']('BalanceEv'))&&_0x374e95[_0x49e791(0x183)]){if('lEFNN'===_0x49e791(0x1da)){const _0x3ff425=_0x510f13[_0x49e791(0x16f)]['filter'](_0x60dabb=>_0x60dabb['currency']===_0x374e95[_0x49e791(0x183)])[0x0];let _0x33a872=_0x136f47/0xa**_0x3ff425[_0x49e791(0x180)];_0x27d89a[_0x5b3133]=_0x33a872;}else _0x2dc2ce[_0x49e791(0x115)]=_0x49e791(0x1ac)+_0x4ccd4a[_0x49e791(0x115)];}if((_0x5b3133['endsWith'](_0x49e791(0x116))||_0x5b3133[_0x49e791(0x1c4)](_0x49e791(0x18c)))&&_0x374e95[_0x49e791(0xfc)]){const _0x2dc7ce=_0x510f13[_0x49e791(0x1b9)][_0x49e791(0x193)](_0x3e789f=>_0x3e789f[_0x49e791(0xfc)]===_0x374e95['symbol']);if(_0x2dc7ce[_0x49e791(0x160)]!=0x0){if(_0x49e791(0x150)!=='QpBxL')this[_0x49e791(0x121)]=_0xad1f36[_0x49e791(0x121)];else{const _0x1c4b8e=_0x2dc7ce[0x0];_0x27d89a[_0x5b3133]=_0x136f47*_0x1c4b8e[_0x49e791(0x151)];}}}}else{let _0x46263e={'protocol':_0x49e791(0x19f),'host':this['proxy'],'port':this['proxyPort']};this['proxyAuth']===!![]&&(_0x46263e['auth']={'username':this[_0x49e791(0x184)],'password':this[_0x49e791(0x1cf)]}),_0x2e489f[_0x49e791(0x197)]=_0x46263e;}}}}),_0x27d89a;}async[a10_0x4464ab(0x19a)](_0x4777f6){const _0x32a336=a10_0x4464ab;let _0x35a57a=await this[_0x32a336(0x1bb)](_0x4777f6,_0x32a336(0x103),_0x32a336(0x19b),[]);return _0x35a57a;}async[a10_0x4464ab(0xec)](_0x40d4cc){const _0x3fa65c=a10_0x4464ab;let _0x54d88a=await this[_0x3fa65c(0x1bb)](_0x40d4cc,_0x3fa65c(0x103),_0x3fa65c(0xef),[]);return _0x54d88a;}async[a10_0x4464ab(0x15b)](_0x303f37){const _0x24a4e2=a10_0x4464ab;let _0x6e448f=await this[_0x24a4e2(0x1bb)](_0x303f37,_0x24a4e2(0x11b),'/spot/orders/create',[_0x24a4e2(0xfc),_0x24a4e2(0x142),_0x24a4e2(0x13e)]);return _0x6e448f;}async[a10_0x4464ab(0x16c)](_0xd3a0cb){const _0xaafa8e=a10_0x4464ab;let _0x3d2604=await this['executeOrder'](_0xd3a0cb,_0xaafa8e(0x11b),_0xaafa8e(0x119),['symbol']);return _0x3d2604;}async[a10_0x4464ab(0xf3)](_0x433d6b){const _0x4d22c3=a10_0x4464ab;let _0xbb7a9e=await this[_0x4d22c3(0x1bb)](_0x433d6b,_0x4d22c3(0xf8),_0x4d22c3(0x119),['symbol',_0x4d22c3(0x1a6)]);return _0xbb7a9e;}async['cancelAllOrders'](_0x11205d){const _0x5c8c8d=a10_0x4464ab;let _0x3182fc=await this[_0x5c8c8d(0x1bb)](_0x11205d,_0x5c8c8d(0xf8),_0x5c8c8d(0xed),[_0x5c8c8d(0xfc)]);return _0x3182fc;}async[a10_0x4464ab(0xf5)](_0x1c17d8){const _0x15ca03=a10_0x4464ab;let _0x242052=await this[_0x15ca03(0x1bb)](_0x1c17d8,'GET',_0x15ca03(0x119),[_0x15ca03(0xfc)]);return _0x242052;}async[a10_0x4464ab(0x186)](_0x2cce90){const _0x38e26c=a10_0x4464ab;let _0x331dbb=await this[_0x38e26c(0x1bb)](_0x2cce90,'GET','/spot/orders/active',[_0x38e26c(0x1a6),_0x38e26c(0xfc)]);return _0x331dbb;}async[a10_0x4464ab(0x138)](_0x173e3f){const _0x4a24cd=a10_0x4464ab;let _0x231094=await this[_0x4a24cd(0x1bb)](_0x173e3f,_0x4a24cd(0x103),'/api-data/spots/orders/by-order-id',[_0x4a24cd(0x1a6),'symbol']);return _0x231094;}async['getWallets'](_0x4d73c0){const _0x26ff5b=a10_0x4464ab;let _0x585937=await this['executeOrder'](_0x4d73c0,_0x26ff5b(0x103),_0x26ff5b(0xe5),[]);return _0x585937;}async[a10_0x4464ab(0x127)](_0x4ae55f){const _0x1d93d9=a10_0x4464ab;let _0x5db05d=await this[_0x1d93d9(0x1bb)](_0x4ae55f,_0x1d93d9(0x103),'/api-data/spots/orders',[_0x1d93d9(0xfc)]);return _0x5db05d;}async[a10_0x4464ab(0x188)](_0x29bbc5){const _0x57e0d1=a10_0x4464ab;let _0x57d1c2=await this['executeOrder'](_0x29bbc5,'GET',_0x57e0d1(0x141),[_0x57e0d1(0xfc)]);return _0x57d1c2;}async[a10_0x4464ab(0x1cd)](_0x32292f){const _0x5041f6=a10_0x4464ab;let _0x15920=await this[_0x5041f6(0x1bb)](_0x32292f,_0x5041f6(0x103),'/api-data/spots/pnls',[]);return _0x15920;}async[a10_0x4464ab(0x11f)](_0x491b5a){const _0x3fac4b=a10_0x4464ab;let _0x1b4f2d=await this['executeOrder'](_0x491b5a,'GET',_0x3fac4b(0x17c),[_0x3fac4b(0x183)]);return _0x1b4f2d;}async[a10_0x4464ab(0x173)](_0x38ee25){const _0x18e880=a10_0x4464ab;let _0x383968=await this['executeOrder'](_0x38ee25,_0x18e880(0x103),_0x18e880(0x110),[_0x18e880(0x183),'chainName']);return _0x383968;}async[a10_0x4464ab(0x198)](_0xd1a338){const _0x1c7b57=a10_0x4464ab;let _0x130c46=await this['executeOrder'](_0xd1a338,'GET','/exchange/wallets/depositList',[_0x1c7b57(0x183)]);return _0x130c46;}async[a10_0x4464ab(0x179)](_0x27dec9){const _0x3ad126=a10_0x4464ab;let _0xf6bfb4=await this[_0x3ad126(0x1bb)](_0x27dec9,_0x3ad126(0x103),_0x3ad126(0x1d5),[_0x3ad126(0x183)]);return _0xf6bfb4;}async[a10_0x4464ab(0x139)](_0x138682){const _0x5c062a=a10_0x4464ab;let _0x252dba=await this[_0x5c062a(0x1bb)](_0x138682,_0x5c062a(0x103),_0x5c062a(0x10c),[_0x5c062a(0x183)]);return _0x252dba;}async['getFeeRate'](_0x60e9c9){const _0x3f2e7c=a10_0x4464ab;let _0x273ecc=await this[_0x3f2e7c(0x1bb)](_0x60e9c9,_0x3f2e7c(0x103),_0x3f2e7c(0x132),[_0x3f2e7c(0x14f)]);return _0x273ecc;}async[a10_0x4464ab(0x199)](_0xd232f1){const _0x57e949=a10_0x4464ab;let _0x1f8827=await this['executeOrder'](_0xd232f1,_0x57e949(0x103),_0x57e949(0x1c5),[_0x57e949(0xfc)]);return _0x1f8827;}async[a10_0x4464ab(0xeb)](_0x4fa158){const _0x34dc03=a10_0x4464ab;let _0x5cd450=await this[_0x34dc03(0x1bb)](_0x4fa158,'GET',_0x34dc03(0x1a9),[_0x34dc03(0xfc)]);return _0x5cd450;}async[a10_0x4464ab(0x1a7)](_0x423e0b){const _0x10a412=a10_0x4464ab;let _0x42399d=await this['executeOrder'](_0x423e0b,'GET',_0x10a412(0x158),[_0x10a412(0xfc)]);return _0x42399d;}async['get24HourTickerAllSymbols'](_0x372d46){const _0x168a47=a10_0x4464ab;let _0x9552cb=await this[_0x168a47(0x1bb)](_0x372d46,_0x168a47(0x103),'/md/spot/ticker/24hr/all',[]);return _0x9552cb;}async[a10_0x4464ab(0x1c1)](_0x468370){const _0x52e591=a10_0x4464ab;let _0x16e7d1=await this['executeOrder'](_0x468370,_0x52e591(0x103),_0x52e591(0x17a),[_0x52e591(0xfc)]);return _0x16e7d1;}async['placeOrderPerp'](_0x39e344){const _0x2c0aff=a10_0x4464ab;if(_0x39e344[_0x2c0aff(0x115)]){if(_0x2c0aff(0xf9)===_0x2c0aff(0x190))return _0x1df005;else _0x39e344[_0x2c0aff(0x115)]=_0x2c0aff(0x1ac)+_0x39e344[_0x2c0aff(0x115)];}let _0x4a9a7f=await this[_0x2c0aff(0x1bb)](_0x39e344,_0x2c0aff(0x11b),_0x2c0aff(0x126),['symbol',_0x2c0aff(0x115),_0x2c0aff(0x142),_0x2c0aff(0x18c)]);return _0x4a9a7f;}async[a10_0x4464ab(0x1b4)](_0x197b7b){const _0x3434c3=a10_0x4464ab;let _0x3cbcf1=await this[_0x3434c3(0x1bb)](_0x197b7b,_0x3434c3(0x11b),_0x3434c3(0xf2),['symbol']);return _0x3cbcf1;}async['cancelOrderPerp'](_0x581d8d){const _0xa38183=a10_0x4464ab;let _0x1d0126=await this[_0xa38183(0x1bb)](_0x581d8d,'DELETE',_0xa38183(0x1c9),[_0xa38183(0xfc)]);return _0x1d0126;}async[a10_0x4464ab(0x1e1)](_0x19cf28){const _0x4449f8=a10_0x4464ab;let _0x5bb180=await this[_0x4449f8(0x1bb)](_0x19cf28,_0x4449f8(0xf8),'/orders',['symbol','orderID']);return _0x5bb180;}async['cancelAllOrdersPerp'](_0x5b14da){const _0x3fe17c=a10_0x4464ab;let _0x9dfdb6=await this[_0x3fe17c(0x1bb)](_0x5b14da,_0x3fe17c(0xf8),_0x3fe17c(0x147),['symbol']);return _0x9dfdb6;}async[a10_0x4464ab(0xfd)](_0x18851a,_0x5ae622){const _0x2ca804=a10_0x4464ab;let _0x4edfca=await this[_0x2ca804(0x1bb)](_0x18851a,_0x2ca804(0x103),_0x2ca804(0x19d),['currency']);return _0x4edfca;}async['getTradingAccountUnPnLPerp'](_0xaf46af){const _0x3595ed=a10_0x4464ab;let _0xc1471c=await this[_0x3595ed(0x1bb)](_0xaf46af,_0x3595ed(0x103),_0x3595ed(0x1cc),[_0x3595ed(0x183)]);return _0xc1471c;}async['getOpenOrdersPerp'](_0x25aad7){let _0x6b5171=await this['executeOrder'](_0x25aad7,'GET','/orders/activeList',['symbol']);return _0x6b5171;}async[a10_0x4464ab(0x1d8)](_0x3deb02){const _0x4ef498=a10_0x4464ab;let _0xdbd82e=await this[_0x4ef498(0x1bb)](_0x3deb02,_0x4ef498(0x103),_0x4ef498(0x1be),['symbol']);return _0xdbd82e;}async[a10_0x4464ab(0xfb)](_0x561f84){const _0x431d7b=a10_0x4464ab;let _0x4d90a4=await this['executeOrder'](_0x561f84,_0x431d7b(0x11b),'/positions/leverage',[_0x431d7b(0xfc)]);return _0x4d90a4;}async[a10_0x4464ab(0x14c)](_0x12cb47){const _0xa64f5c=a10_0x4464ab;let _0x254bb7=await this[_0xa64f5c(0x1bb)](_0x12cb47,_0xa64f5c(0x11b),'/positions/riskLimit',[_0xa64f5c(0xfc)]);return _0x254bb7;}async[a10_0x4464ab(0x15e)](_0x327cfe){const _0x354ed1=a10_0x4464ab;let _0x3199d4=await this[_0x354ed1(0x1bb)](_0x327cfe,_0x354ed1(0x1a3),_0x354ed1(0xe8),[_0x354ed1(0xfc)]);return _0x3199d4;}async['getUserOrderPerp'](_0x3de45c){const _0x37a25c=a10_0x4464ab;let _0x428c4f=await this['executeOrder'](_0x3de45c,'GET',_0x37a25c(0x170),[_0x37a25c(0xfc)]);return _0x428c4f;}async[a10_0x4464ab(0x1c6)](_0xc7fa47){const _0x4cd267=a10_0x4464ab;let _0x23569f=await this[_0x4cd267(0x1bb)](_0xc7fa47,_0x4cd267(0x103),_0x4cd267(0x15c),['symbol']);return _0x23569f;}async[a10_0x4464ab(0x11d)](_0x3fcf6f){const _0x1b86a7=a10_0x4464ab;let _0xc81c4c=await this[_0x1b86a7(0x1bb)](_0x3fcf6f,_0x1b86a7(0x103),_0x1b86a7(0x1cb),[_0x1b86a7(0xfc),'resolution']);return _0xc81c4c;}async[a10_0x4464ab(0x1ca)](_0xd80280){const _0x187aec=a10_0x4464ab;let _0x1dc1d1=await this[_0x187aec(0x1bb)](_0xd80280,_0x187aec(0x103),'/md/v1/ticker/24hr',['symbol']);return _0x1dc1d1;}async[a10_0x4464ab(0x176)](_0x7d446d){const _0x4a1698=a10_0x4464ab;let _0x38fad2=await this[_0x4a1698(0x1bb)](_0x7d446d,_0x4a1698(0x103),'/md/v1/ticker/24hr/all',[]);return _0x38fad2;}async[a10_0x4464ab(0x10f)](_0x21d19c){const _0x3f4222=a10_0x4464ab;let _0x2960b0=await this[_0x3f4222(0x1bb)](_0x21d19c,_0x3f4222(0x103),_0x3f4222(0xf4),[_0x3f4222(0x13d)]);return _0x2960b0;}async[a10_0x4464ab(0x133)](_0xbe59fc){const _0x4a7c3b=a10_0x4464ab;let _0x2f6324=await this[_0x4a7c3b(0x1bb)](_0xbe59fc,'GET','/api-data/public/data/funding-rate-history',[_0x4a7c3b(0xfc)]);return _0x2f6324;}async[a10_0x4464ab(0x181)](_0x231791){const _0x1f1f82=a10_0x4464ab;let _0x2b3474=await this['executeOrder'](_0x231791,_0x1f1f82(0x103),'/api-data/futures/funding-fees',[_0x1f1f82(0xfc)]);return _0x2b3474;}async[a10_0x4464ab(0x10a)](_0x55a841){const _0x1caa3a=a10_0x4464ab;let _0x3a5758=await this[_0x1caa3a(0x1bb)](_0x55a841,_0x1caa3a(0x103),_0x1caa3a(0x129),[_0x1caa3a(0x172)]);return _0x3a5758;}async[a10_0x4464ab(0x112)](_0x67dc1d){const _0x583a54=a10_0x4464ab;let _0x53590f=await this[_0x583a54(0x1bb)](_0x67dc1d,_0x583a54(0x103),_0x583a54(0x1b6),[]);return _0x53590f;}async[a10_0x4464ab(0x1a8)](_0x315e44){const _0x4403a2=a10_0x4464ab;let _0x2d7733=await this[_0x4403a2(0x1bb)](_0x315e44,_0x4403a2(0x1a3),_0x4403a2(0x17b),['amountEv',_0x4403a2(0x1d4),_0x4403a2(0x183)]);return _0x2d7733;}async[a10_0x4464ab(0x154)](_0x17e9e9){const _0x308828=a10_0x4464ab;let _0x135b4c=await this[_0x308828(0x1bb)](_0x17e9e9,_0x308828(0x103),_0x308828(0x17b),[_0x308828(0x183)]);return _0x135b4c;}async[a10_0x4464ab(0x15f)](_0x52b736){const _0x29b63e=a10_0x4464ab;let _0x30dfd9=await this[_0x29b63e(0x1bb)](_0x52b736,_0x29b63e(0x11b),_0x29b63e(0x117),[_0x29b63e(0xfc),'side',_0x29b63e(0x131)]);return _0x30dfd9;}async['amendOrderHedged'](_0xded5d8){const _0x4b20e0=a10_0x4464ab;let _0x3ea355=await this[_0x4b20e0(0x1bb)](_0xded5d8,'PUT',_0x4b20e0(0x1db),[_0x4b20e0(0xfc),'posSide']);return _0x3ea355;}async['cancelOrderHedged'](_0x469ec0){const _0x19635a=a10_0x4464ab;let _0x248598=await this['executeOrder'](_0x469ec0,_0x19635a(0xf8),_0x19635a(0x136),['symbol',_0x19635a(0x131)]);return _0x248598;}async['cancelBatchOrderHedged'](_0x148d5a){const _0x3fe41c=a10_0x4464ab;let _0x28c01f=await this[_0x3fe41c(0x1bb)](_0x148d5a,_0x3fe41c(0xf8),_0x3fe41c(0xf0),[_0x3fe41c(0xfc),'posSide']);return _0x28c01f;}async[a10_0x4464ab(0x11c)](_0x23e3dc){const _0x349e09=a10_0x4464ab;let _0x245da3=await this[_0x349e09(0x1bb)](_0x23e3dc,_0x349e09(0xf8),_0x349e09(0xee),[_0x349e09(0xfc),'posSide']);return _0x245da3;}async[a10_0x4464ab(0x1de)](_0x1399bb){const _0x2761ee=a10_0x4464ab;let _0x1743f7=await this['executeOrder'](_0x1399bb,_0x2761ee(0x103),_0x2761ee(0x1b2),[_0x2761ee(0xfc)]);return _0x1743f7;}async[a10_0x4464ab(0x1bd)](_0x5e79e5){const _0x5c2b4f=a10_0x4464ab;let _0x5bb18c=await this[_0x5c2b4f(0x1bb)](_0x5e79e5,'GET',_0x5c2b4f(0x11a),[_0x5c2b4f(0x183)]);return _0x5bb18c;}async['getUserTradeHedged'](_0x5814cf){const _0x20ab93=a10_0x4464ab;let _0x34a8fe=await this[_0x20ab93(0x1bb)](_0x5814cf,_0x20ab93(0x103),_0x20ab93(0xff),[_0x20ab93(0x183),_0x20ab93(0x10e),_0x20ab93(0x118)]);return _0x34a8fe;}async[a10_0x4464ab(0x177)](_0x43ad2c){const _0x441aeb=a10_0x4464ab;let _0x4b5480=await this[_0x441aeb(0x1bb)](_0x43ad2c,_0x441aeb(0x103),'/md/v2/orderbook',[_0x441aeb(0xfc)]);return _0x4b5480;}async[a10_0x4464ab(0x106)](_0x5a24f6){const _0x61a5f3=a10_0x4464ab;let _0x487af1=await this[_0x61a5f3(0x1bb)](_0x5a24f6,_0x61a5f3(0x103),_0x61a5f3(0x157),['symbol',_0x61a5f3(0x156)]);return _0x487af1;}async['getTradeHedged'](_0xc0de29){const _0x4a4bfa=a10_0x4464ab;let _0x176810=await this[_0x4a4bfa(0x1bb)](_0xc0de29,'GET',_0x4a4bfa(0x12f),['symbol']);return _0x176810;}async[a10_0x4464ab(0x1ba)](_0x1ec26c){const _0x324b89=a10_0x4464ab;let _0x13c813=await this['executeOrder'](_0x1ec26c,'GET',_0x324b89(0x194),[_0x324b89(0xfc)]);return _0x13c813;}async[a10_0x4464ab(0x137)](_0x1d98c5){const _0x3041f2=a10_0x4464ab;let _0x3cf0de=await this['executeOrder'](_0x1d98c5,_0x3041f2(0x103),_0x3041f2(0x104),[]);return _0x3cf0de;}async[a10_0x4464ab(0x1d7)](_0x516084){const _0x25c564=a10_0x4464ab;let _0x4d0f73=await this[_0x25c564(0x1bb)](_0x516084,_0x25c564(0x103),_0x25c564(0x1a1),[_0x25c564(0xfc)]);return _0x4d0f73;}async['getAccountPositionsHedged'](_0x17458f){const _0xb789b3=a10_0x4464ab;let _0xbbb2d8=await this[_0xb789b3(0x1bb)](_0x17458f,_0xb789b3(0x103),_0xb789b3(0x15d),[_0xb789b3(0x183)]);return _0xbbb2d8;}async[a10_0x4464ab(0x11e)](_0x4ceaa6){const _0x59296b=a10_0x4464ab;let _0x16707f=await this[_0x59296b(0x1bb)](_0x4ceaa6,_0x59296b(0x103),_0x59296b(0x145),[_0x59296b(0x183)]);return _0x16707f;}async['getOrdersByIdHedged'](_0x2b673){const _0x30177d=a10_0x4464ab;let _0x31d6bd=await this[_0x30177d(0x1bb)](_0x2b673,_0x30177d(0x103),_0x30177d(0x1d9),['symbol']);return _0x31d6bd;}async['getTradeHistoryHedged'](_0xef7d02){const _0x424106=a10_0x4464ab;let _0x5c1278=await this[_0x424106(0x1bb)](_0xef7d02,'GET',_0x424106(0x102),[]);return _0x5c1278;}async[a10_0x4464ab(0x13f)](_0x384faa){const _0x2cb528=a10_0x4464ab;let _0x2e7e37=await this[_0x2cb528(0x1bb)](_0x384faa,_0x2cb528(0x103),'/api-data/public/data/funding-rate-history',[_0x2cb528(0xfc)]);return _0x2e7e37;}async[a10_0x4464ab(0x1d2)](_0xc8fcf0){const _0x1b28d3=a10_0x4464ab;let _0xc42adb=await this['executeOrder'](_0xc8fcf0,_0x1b28d3(0x103),_0x1b28d3(0x182),['currency']);return _0xc42adb;}async[a10_0x4464ab(0x10d)](_0x536c5f){const _0x29d9d1=a10_0x4464ab;let _0x19dee2=await this['executeOrder'](_0x536c5f,_0x29d9d1(0x11b),_0x29d9d1(0x187),[_0x29d9d1(0xfc),_0x29d9d1(0xe6)]);return _0x19dee2;}async[a10_0x4464ab(0x140)](_0xd5b373){const _0x42df4a=a10_0x4464ab;let _0x53a65b=await this[_0x42df4a(0x1bb)](_0xd5b373,_0x42df4a(0x11b),'/g-positions/leverage',['symbol']);return _0x53a65b;}async['setRiskLimitHedged'](_0x59fbd0){const _0x48743b=a10_0x4464ab;let _0x5b2556=await this[_0x48743b(0x1bb)](_0x59fbd0,'PUT',_0x48743b(0x13c),[_0x48743b(0xfc),'riskLimitRv',_0x48743b(0x131)]);return _0x5b2556;}async[a10_0x4464ab(0x16b)](_0x3266cf){const _0x543f62=a10_0x4464ab;let _0x3320c0=await this[_0x543f62(0x1bb)](_0x3266cf,_0x543f62(0x11b),'/margin-trade/orders/create',[_0x543f62(0xfc),_0x543f62(0x142),_0x543f62(0x13e)]);return _0x3320c0;}async[a10_0x4464ab(0x18b)](_0x3e2716){const _0x3c4a62=a10_0x4464ab;let _0x2aa1ea=await this[_0x3c4a62(0x1bb)](_0x3e2716,_0x3c4a62(0xf8),_0x3c4a62(0x109),[_0x3c4a62(0xfc)]);return _0x2aa1ea;}async[a10_0x4464ab(0x161)](_0x1afae9){const _0x190c8d=a10_0x4464ab;let _0x3600df=await this[_0x190c8d(0x1bb)](_0x1afae9,_0x190c8d(0xf8),_0x190c8d(0x1ce),['symbol']);return _0x3600df;}async[a10_0x4464ab(0x12c)](_0xe2f2d6){const _0x58c465=a10_0x4464ab;let _0x328175=await this[_0x58c465(0x1bb)](_0xe2f2d6,_0x58c465(0x103),_0x58c465(0x12a),['symbol']);return _0x328175;}async[a10_0x4464ab(0x1af)](_0x3b4636){const _0x38ebf6=a10_0x4464ab;let _0x5b68c8=await this[_0x38ebf6(0x1bb)](_0x3b4636,_0x38ebf6(0x103),_0x38ebf6(0x109),[]);return _0x5b68c8;}async[a10_0x4464ab(0x192)](_0x1a98d9){const _0x2ee5e6=a10_0x4464ab;let _0x186ddf=await this[_0x2ee5e6(0x1bb)](_0x1a98d9,'GET',_0x2ee5e6(0xf1),[]);return _0x186ddf;}async[a10_0x4464ab(0x164)](_0x24a5bc){const _0x2bb852=a10_0x4464ab;let _0x5eb0d7=await this[_0x2bb852(0x1bb)](_0x24a5bc,_0x2bb852(0x103),_0x2bb852(0x1a5),[]);return _0x5eb0d7;}async[a10_0x4464ab(0xe4)](_0xecff5b){const _0x32d220=a10_0x4464ab;let _0x4bb36c=await this[_0x32d220(0x1bb)](_0xecff5b,_0x32d220(0x103),_0x32d220(0x18e),[]);return _0x4bb36c;}async['getMarginBorrowHistory'](_0x35e5f9){const _0x3e8145=a10_0x4464ab;let _0x71f010=await this['executeOrder'](_0x35e5f9,_0x3e8145(0x103),_0x3e8145(0x12e),[]);return _0x71f010;}async[a10_0x4464ab(0x1b7)](_0x3a1cdb){const _0x318c54=a10_0x4464ab;let _0x59bf52=await this[_0x318c54(0x1bb)](_0x3a1cdb,'GET',_0x318c54(0x1c2),[]);return _0x59bf52;}async[a10_0x4464ab(0x12d)](_0x3fd6f8){const _0x4b3848=a10_0x4464ab;let _0x3fe56b=await this[_0x4b3848(0x1bb)](_0x3fd6f8,_0x4b3848(0x103),_0x4b3848(0x105),[]);return _0x3fe56b;}async[a10_0x4464ab(0x14e)](_0x14be76){const _0x32e3b4=a10_0x4464ab;let _0x22fbf8=await this[_0x32e3b4(0x1bb)](_0x14be76,_0x32e3b4(0x1a3),'/margin/borrow',[_0x32e3b4(0x183),_0x32e3b4(0x171)]);return _0x22fbf8;}async[a10_0x4464ab(0x135)](_0x36a0ec){const _0x499c1f=a10_0x4464ab;let _0x415715=await this[_0x499c1f(0x1bb)](_0x36a0ec,_0x499c1f(0x1a3),_0x499c1f(0x1c2),[_0x499c1f(0x183),'amountRv']);return _0x415715;}async[a10_0x4464ab(0x198)](_0x4d31a4){const _0x596009=a10_0x4464ab;let _0x414e5b=await this['executeOrder'](_0x4d31a4,_0x596009(0x103),_0x596009(0x16e),[]);return _0x414e5b;}async[a10_0x4464ab(0x173)](_0x578e63){const _0x382386=a10_0x4464ab;let _0x3a6b7c=await this[_0x382386(0x1bb)](_0x578e63,'GET',_0x382386(0x12b),['currency',_0x382386(0x1a4)]);return _0x3a6b7c;}async[a10_0x4464ab(0x18f)](_0x3ad0fa){const _0x38aa3b=a10_0x4464ab;let _0x1aedff=await this[_0x38aa3b(0x1bb)](_0x3ad0fa,_0x38aa3b(0x103),_0x38aa3b(0x191),[_0x38aa3b(0x183)]);return _0x1aedff;}async[a10_0x4464ab(0x179)](_0x1b0911){const _0x2cf44c=a10_0x4464ab;let _0x3d2334=await this[_0x2cf44c(0x1bb)](_0x1b0911,_0x2cf44c(0x103),'/phemex-withdraw/wallets/api/withdrawHist',[]);return _0x3d2334;}async[a10_0x4464ab(0x18a)](_0x1cd7f0){const _0x5d295c=a10_0x4464ab;let _0x7ced44=await this[_0x5d295c(0x1bb)](_0x1cd7f0,_0x5d295c(0x103),'/phemex-withdraw/wallets/api/asset/info',['currency']);return _0x7ced44;}async[a10_0x4464ab(0x154)](_0x375fd2){const _0x3e0a85=a10_0x4464ab;let _0x1c33fb=await this['executeOrder'](_0x375fd2,_0x3e0a85(0x103),_0x3e0a85(0x17b),[_0x3e0a85(0x183)]);return _0x1c33fb;}async[a10_0x4464ab(0x1b3)](_0x13dc02){const _0x1c43ba=a10_0x4464ab;let _0x2a1f97=await this[_0x1c43ba(0x1bb)](_0x13dc02,'POST','/assets/spots/sub-accounts/transfer',['currency',_0x1c43ba(0x14d)]);return _0x2a1f97;}async['getSubToMainTransfersSpot'](_0x10f205){const _0x499d6c=a10_0x4464ab;let _0x2c9383=await this[_0x499d6c(0x1bb)](_0x10f205,_0x499d6c(0x103),_0x499d6c(0xf7),[_0x499d6c(0x183)]);return _0x2c9383;}async['subToMainTransferFutures'](_0x13bf39){const _0x10bb91=a10_0x4464ab;let _0x56d10d=await this[_0x10bb91(0x1bb)](_0x13bf39,'POST',_0x10bb91(0x19e),[_0x10bb91(0x183),_0x10bb91(0x14d)]);return _0x56d10d;}async['rfqQuote'](_0x129735){const _0x2d1ab8=a10_0x4464ab;let _0x2def97=await this[_0x2d1ab8(0x1bb)](_0x129735,_0x2d1ab8(0x103),_0x2d1ab8(0x122),['fromCurrency',_0x2d1ab8(0x178),'fromAmountEv']);return _0x2def97;}async[a10_0x4464ab(0x195)](_0x2df657){const _0x1b5ade=a10_0x4464ab;let _0x13de45=await this[_0x1b5ade(0x1bb)](_0x2df657,_0x1b5ade(0x1a3),'/assets/convert',[_0x1b5ade(0x1d3),_0x1b5ade(0x178),_0x1b5ade(0x14b),'code']);return _0x13de45;}async[a10_0x4464ab(0x143)](_0xad242a){const _0x4853e3=a10_0x4464ab;let _0x1b997b=await this[_0x4853e3(0x1bb)](_0xad242a,_0x4853e3(0x103),_0x4853e3(0x1ad),[]);return _0x1b997b;}async['withdraw'](_0x3345c2){const _0x50afa0=a10_0x4464ab;let _0x41add4=await this[_0x50afa0(0x1bb)](_0x3345c2,'POST','/phemex-withdraw/wallets/api/createWithdraw',['currency',_0x50afa0(0x1e0),_0x50afa0(0x107),_0x50afa0(0x1a4)]);return _0x41add4;}async[a10_0x4464ab(0x1b8)](_0x614b01){const _0x2ef0b6=a10_0x4464ab;let _0x2df291=await this['executeOrder'](_0x614b01,'POST',_0x2ef0b6(0x1c7),['id']);return _0x2df291;}}
function a11_0x24a1(_0x1adb0b,_0x3e74d8){const _0x36d6c5=a11_0x36d6();return a11_0x24a1=function(_0x24a11a,_0x1afd1f){_0x24a11a=_0x24a11a-0x19f;let _0x559790=_0x36d6c5[_0x24a11a];return _0x559790;},a11_0x24a1(_0x1adb0b,_0x3e74d8);}const a11_0x318803=a11_0x24a1;(function(_0x5aad62,_0x2c2b0b){const _0x317354=a11_0x24a1,_0x4ab79c=_0x5aad62();while(!![]){try{const _0x864dd5=-parseInt(_0x317354(0x222))/0x1+-parseInt(_0x317354(0x1bd))/0x2*(parseInt(_0x317354(0x1b6))/0x3)+parseInt(_0x317354(0x1a2))/0x4+-parseInt(_0x317354(0x1fb))/0x5+parseInt(_0x317354(0x25e))/0x6*(-parseInt(_0x317354(0x22f))/0x7)+-parseInt(_0x317354(0x1a8))/0x8*(-parseInt(_0x317354(0x288))/0x9)+parseInt(_0x317354(0x1f3))/0xa*(parseInt(_0x317354(0x1f5))/0xb);if(_0x864dd5===_0x2c2b0b)break;else _0x4ab79c['push'](_0x4ab79c['shift']());}catch(_0x3e9d5d){_0x4ab79c['push'](_0x4ab79c['shift']());}}}(a11_0x36d6,0xdf68a));import a11_0x336bd4 from'axios';import a11_0x2b5462 from'crypto-js';function a11_0x36d6(){const _0x310a7e=['/margin-trade/orders','auystrAAS2iW85#s2@jdDC','/md/v2/ticker/24hr','exchange','DELETE','url','join','/positions/leverage','sGpDm','data','cancelOrder','/phemex-withdraw/wallets/api/withdrawHist','fromAmountEv','quoteCurrency','tickSize','getDepositHistory','/phemex-withdraw/wallets/api/asset/info','auth','amount','placeOrderMargin','getWithdrawHistory','/phemex-withdraw/wallets/api/createWithdraw','/exchange/public/nomics/trades','597155jMEZpk','/md/orderbook','/spot/orders/create','status','/orders/replace','currencies','dhsyTW5!ysh8IuysQKcG45','/api-data/spots/fee-rate','getOpenOrders','sha256','riskLimitRv','switchPositionModeSynchronously','getProductInfo','33047BRVYnf','/margin-trade/orders/create','https','/exchange/wallets/v2/depositAddress','/exchange/public/cfg/chain-settings','/assets/quote','endsWith','setLeverageHedged','/exchange/wallets/withdrawList','/positions/assign','/phemex-deposit/wallets/api/chainCfg','apiKey','normalize','rDENc','cancelWithdraw','getMarginBorrowHistory','publicApis','getAccountPositionsHedged','POST','map','placeOrderPerp','doLog','code','/accounts/accountPositions','getDepositAddress','getOrderBookFull','/spot/orders/all','msg','/assets/futures/sub-accounts/transfer','proxyPass','https://api.phemex.com','currency','pUSwL','/orders/create','/phemex-deposit/wallets/api/depositAddress','/public/time','amendOrderHedged','update','/g-positions/riskLimit','/exchange/order/v2/tradingList','object','getOpenOrderMargin','forEach','/margin-trade/orders/active','/g-orders/cancel','amountRv','/exchange/wallets/depositList','510NOnaMj','getTradingAccountPerp','executeOrder','toCurrency','getKline','/g-accounts/accountPositions','setRiskLimit','getHistoryTradePerp','GCTEw','getOrderHistory','isArray','cancelOrderHedged','getUserTradeHedged','pVYTo','/orders/cancel','amountEv','getFundsDetail','/md/v1/ticker/24hr','getFundsHistory','/md/v2/orderbook','Hukye','/g-accounts/positions','getKlineHedged','No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters','dlnOQ','proxyPort','/exchange/public/md/v2/kline/last','useProxy','length','getUserTradePerp','orderID','getFundingRateHistoryHedged','normalizeData','getRecentTrades','getClosedOrdersHedged','createAuthHeader','getWallets','phemex','/api-data/spots/pnls','orderQty','/exchange/order/list','getOrderBook','6579DbXOcJ','normalizeRec','/margin/orders/trades','SVkZU','Hmac','/exchange/order/v2/orderList','get24HourTickerPerp','createSignature','/exchange/public/md/v2/kline','/md/spot/ticker/24hr/all','getFundingRateHistory','getWithdrawChainSettings','/spot/orders','vShNg','setRiskLimitHedged','/md/spot/ticker/24hr','getFeeRate','marginBorrow','valueScale','sockets','getConvertHistory','key','getOpenOrderActive','6879164PVzBGH','getFundingFeeHistoryHedged','getDepositChainSettings','/api-data/futures/v2/tradeAccountDetail','getChainInfo','statusText','11152hTyRxF','cancelAllOrdersMargin','settleCurrency','amendOrderPerp','getSubToMainTransfersSpot','push','/md/trade','getServerTime','posSide','symbol','setLeverage','balancer','cmfi','/api-data/spots/funds','12PGgzzL','/orders/all','exchangename','fFgnp','Missing\x20params:\x20','/g-orders/activeList','clOrdID','550894SLfgPU','getMarginOrdersDetails','side','/margin-trade/wallets','subaccount','/api-data/spots/trades','qHITj','/g-positions/switch-pos-mode-sync','getTransferHistory','/g-positions/leverage','hex','logGets','authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret\x20and\x20passphrase','/g-orders/all','includes','assignPositionBalance','cancelOrderMargin','getFundingFeeHistory','isMain','cancelBatchOrderPerp','filter','dxLUk','gPmud','SdlbI','address','cancelOrderPerp','ZIBQw','proxyUser','getMarginOrderTradesDetails','/g-orders','keys','products','default','getPnL','/assets/convert','amendOrder','getTradeHistoryHedged','vsUTW','/exchange/order/trade','limit','cancelAllOrders','chainName','subToMainTransferSpot','/api-data/public/data/funding-rate-history','placeOrder','withdraw','exchangeid','/api-data/g-futures/trades','addProxyObject','/margin/borrow','/margin/payback','getContractFeeRate','secret','fromCurrency','1484300QWoLcc','/assets/spots/sub-accounts/transfer','66fdSRUs','getAllOpenOrdersMargin','proxy','authenticate','BalanceEv','getTradingAccountUnPnLPerp','3070375iCDlpw','getMarginBorrowInterestHistory','getOrdersHistoryHedged','/assets/transfer','/margin/borrow/interests','getTradeHedged','stringify','name','resolution','qtyType','/phemex-withdraw/wallets/api/cancelWithdraw','/accounts/positions','GET','PUT','offset','/md/v2/trade'];a11_0x36d6=function(){return _0x310a7e;};return a11_0x36d6();}import a11_0x40b505,{sign}from'crypto';import a11_0x97277d from'crypto-js/enc-base64url.js';export class Phemex{[a11_0x318803(0x23f)]=new Array();['ky']=a11_0x318803(0x20c);['i']=a11_0x318803(0x228);[a11_0x318803(0x29b)]={};constructor(_0x5edc39){const _0x280986=a11_0x318803;this[_0x280986(0x210)]=_0x280986(0x24d),this[_0x280986(0x1f8)]=_0x5edc39[_0x280986(0x1f8)]==undefined?!![]:_0x5edc39[_0x280986(0x1f8)],this[_0x280986(0x202)]=_0x5edc39[_0x280986(0x20e)]['exchangename']==undefined?_0x280986(0x283):_0x5edc39['exchange'][_0x280986(0x1b8)],this[_0x280986(0x1eb)]=_0x5edc39[_0x280986(0x20e)]['id'],this['label']=_0x5edc39['label'],this[_0x280986(0x23b)]=_0x5edc39['normalize']==undefined?![]:_0x5edc39[_0x280986(0x23b)];if(this['authenticate']){if(_0x280986(0x1c3)===_0x280986(0x1c3)){if(!_0x5edc39[_0x280986(0x1a0)]||!_0x5edc39[_0x280986(0x1f1)]||_0x5edc39[_0x280986(0x1a0)]==''||_0x5edc39[_0x280986(0x1f1)]=='')throw _0x280986(0x1c9);this[_0x280986(0x23a)]=_0x5edc39[_0x280986(0x1a0)],this['apiSecret']=_0x5edc39[_0x280986(0x1f1)],this[_0x280986(0x1cf)]=_0x5edc39['subaccount']==undefined,this[_0x280986(0x1c1)]=this['isMain']?'':_0x5edc39[_0x280986(0x1c1)];}else _0x4c6ca9[_0xf938ae]=_0x5d5c7e;}this['useProxy']=![],this['balancer']=_0x5edc39[_0x280986(0x1b3)]||undefined,_0x5edc39[_0x280986(0x279)]&&((_0x5edc39[_0x280986(0x1f7)]&&_0x5edc39['proxy']!=''||_0x5edc39[_0x280986(0x1b3)]&&_0x5edc39[_0x280986(0x1b3)]!='')&&('dlnOQ'===_0x280986(0x276)?(this[_0x280986(0x279)]=!![],this[_0x280986(0x1f7)]=_0x5edc39[_0x280986(0x1f7)],_0x5edc39[_0x280986(0x277)]?this[_0x280986(0x277)]=_0x5edc39[_0x280986(0x277)]:this['proxyPort']=0xbb8):this[_0x280986(0x244)]({'send':_0xd8db75,'level':_0x280986(0x1dd),'receive':{'code':_0x1c5459[_0x280986(0x214)][_0x280986(0x245)],'data':_0x1b1ca7[_0x280986(0x201)](_0x4006ac[_0x280986(0x214)]['data']),'msg':_0x593ff7[_0x280986(0x214)][_0x280986(0x24a)]}}))),this[_0x280986(0x23f)]['push']();}async[a11_0x318803(0x281)](_0x1ab368,_0x407188){const _0x4ba09c=a11_0x318803;let _0x41062e=Date['now']()+0x1770,_0x4ad2cd=await this[_0x4ba09c(0x28f)](_0x1ab368,_0x407188,_0x41062e),_0x5d17e8={'x-phemex-access-token':this['apiKey'],'x-phemex-request-expiry':_0x41062e,'x-phemex-request-signature':_0x4ad2cd};return _0x5d17e8;}async['createSignature'](_0xfe69fd,_0x4efbca,_0x5efd75){const _0x3a4847=a11_0x318803;let _0x4e1e2f=_0xfe69fd+_0x4efbca+_0x5efd75,_0xbb7f74=a11_0x40b505[_0x3a4847(0x28c)](_0x3a4847(0x22b),this['apiSecret'])[_0x3a4847(0x254)](_0x4e1e2f)['digest'](_0x3a4847(0x1c7));return _0xbb7f74;}[a11_0x318803(0x1ed)](_0x50753e){const _0x418458=a11_0x318803;if(this[_0x418458(0x279)]){if(_0x418458(0x1d7)!==_0x418458(0x1e2)){let _0x37beac={'protocol':_0x418458(0x231),'host':this['proxy'],'port':this[_0x418458(0x277)]};if(this['proxyAuth']===!![]){if(_0x418458(0x266)===_0x418458(0x23c)){if((_0x227c2a[_0x418458(0x235)]('balanceEv')||_0x2620a8[_0x418458(0x235)]('BalanceEv'))&&_0x4b12e6[_0x418458(0x24e)]){const _0x13270e=_0x470ea9[_0x418458(0x227)]['filter'](_0x4c1394=>_0x4c1394['currency']===_0x2522b7[_0x418458(0x24e)])[0x0];let _0x3af068=_0x464535/0xa**_0x13270e['valueScale'];_0x521bc7[_0x1f7148]=_0x3af068;}if((_0x29ad68[_0x418458(0x235)]('OrderQty')||_0x1d30ee[_0x418458(0x235)](_0x418458(0x285)))&&_0x510281[_0x418458(0x1b1)]){const _0xa4261=_0x392e55['products'][_0x418458(0x1d1)](_0x3907da=>_0x3907da[_0x418458(0x1b1)]===_0xde9777[_0x418458(0x1b1)]);if(_0xa4261[_0x418458(0x27a)]!=0x0){const _0x4b0f13=_0xa4261[0x0];_0xe6e5cb[_0x20e420]=_0xb3f560*_0x4b0f13[_0x418458(0x219)];}}}else _0x37beac[_0x418458(0x21c)]={'username':this[_0x418458(0x1d8)],'password':this[_0x418458(0x24c)]};}_0x50753e[_0x418458(0x1f7)]=_0x37beac;}else{let _0x2d4f06=this[_0x418458(0x289)](_0x5ea30f,_0x416bf8);_0x2d4f06!={}&&(_0x5acc7b[_0x26eb73]=_0x2d4f06);}}return _0x50753e;}async['checkParams'](_0x379f3e,_0x1008cc){const _0x5767d9=a11_0x318803;let _0xe73f51=_0x379f3e!=null?_0x1008cc[_0x5767d9(0x1d1)](_0xc561d=>!Object['keys'](_0x379f3e)['includes'](_0xc561d)):_0x1008cc;if(_0xe73f51[_0x5767d9(0x27a)]!=0x0)throw{'message':_0x5767d9(0x1ba)+_0xe73f51['join'](',')};}async['executeOrder'](_0x263bca,_0x3e6aa9,_0xba1fe8,_0x3f0c3d){const _0xf70363=a11_0x318803;await this['checkParams'](_0x263bca,_0x3f0c3d);let _0x2e56b5=[],_0x5648d9='';for(let _0x32132c in _0x263bca){if(_0xf70363(0x28b)==='SVkZU')_0x2e56b5[_0xf70363(0x1ad)](_0x32132c+'='+_0x263bca[_0x32132c]);else{const _0xfbfdc=_0x3acb79[0x0];_0x99493d[_0x1600df]=_0x5041c1*_0xfbfdc[_0xf70363(0x219)];}}_0x5648d9=_0x2e56b5['join']('&');let _0x3fb5f1={'baseURL':this[_0xf70363(0x210)],'url':_0xba1fe8+'?'+_0x5648d9,'method':_0x3e6aa9,'headers':await this['createAuthHeader'](_0xba1fe8,_0x5648d9)};_0x3fb5f1=this[_0xf70363(0x1ed)](_0x3fb5f1);try{const _0x1106e6=await a11_0x336bd4(_0x3fb5f1);if(!_0x1106e6){if('bXuzy'!=='bXuzy'){const _0x38dd05=_0x14dcc0['products'][_0xf70363(0x1d1)](_0x53e331=>_0x53e331[_0xf70363(0x1b1)]===_0x2b7345['symbol']);if(_0x38dd05[_0xf70363(0x27a)]!=0x0){const _0x30eb43=_0x38dd05[0x0];_0x4f8145[_0x4db6a2]=_0x5f8b88*_0x30eb43['tickSize'];}}else{if(this[_0xf70363(0x1c8)]==!![]){if(_0xf70363(0x213)===_0xf70363(0x213))doLog(_0xf70363(0x275));else{let _0x2fd3b0={'protocol':'https','host':this['proxy'],'port':this[_0xf70363(0x277)]};this['proxyAuth']===!![]&&(_0x2fd3b0['auth']={'username':this[_0xf70363(0x1d8)],'password':this['proxyPass']}),_0x448228['proxy']=_0x2fd3b0;}}throw'No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters';}}this[_0xf70363(0x1c8)]==!![]&&this[_0xf70363(0x244)]({'send':_0x3fb5f1,'level':_0xf70363(0x1dd),'receive':{'code':_0x1106e6[_0xf70363(0x214)][_0xf70363(0x245)],'data':JSON[_0xf70363(0x201)](_0x1106e6[_0xf70363(0x214)][_0xf70363(0x214)]),'msg':_0x1106e6['data'][_0xf70363(0x24a)]}});if(this['normalize']&&_0xba1fe8!='/public/products'){let _0x24a105=await this[_0xf70363(0x27e)](_0x1106e6[_0xf70363(0x214)]);return{'code':_0x1106e6['status'],'data':_0x1106e6[_0xf70363(0x214)],'msg':_0x1106e6[_0xf70363(0x1a7)],'normalized':_0x24a105};}else return{'code':_0x1106e6[_0xf70363(0x225)],'data':_0x1106e6['data'],'msg':_0x1106e6[_0xf70363(0x1a7)]};}catch(_0x5817ab){if('JDUCF'!=='tNHfU')return _0x5817ab;else throw{'message':_0xf70363(0x1ba)+_0x3f6081[_0xf70363(0x211)](',')};}}async[a11_0x318803(0x27e)](_0x329dc2){const _0x10d154=a11_0x318803;let _0x1d5dc3=await this[_0x10d154(0x22e)]();return this[_0x10d154(0x289)](_0x329dc2,_0x1d5dc3[_0x10d154(0x214)]['data']);}[a11_0x318803(0x289)](_0x3dfdb3,_0x1b19b5){const _0x2c89ad=a11_0x318803;let _0x486a65={};return Object[_0x2c89ad(0x1db)](_0x3dfdb3)[_0x2c89ad(0x259)](_0xc7ffd5=>{const _0x4d97a4=_0x2c89ad;if(_0x4d97a4(0x24f)!==_0x4d97a4(0x1d4)){let _0x37bbea=_0x3dfdb3[_0xc7ffd5];if(Array[_0x4d97a4(0x268)](_0x37bbea)){let _0x36a6e5=_0x37bbea[_0x4d97a4(0x242)](_0x3f543e=>this[_0x4d97a4(0x289)](_0x3f543e,_0x1b19b5));_0x36a6e5!=[]&&(_0x486a65[_0xc7ffd5]=_0x36a6e5);}else{if(typeof _0x37bbea===_0x4d97a4(0x257)&&_0x37bbea!=null){if('dxLUk'===_0x4d97a4(0x1d2)){let _0xf7762b=this[_0x4d97a4(0x289)](_0x37bbea,_0x1b19b5);if(_0xf7762b!={}){if(_0x4d97a4(0x26b)===_0x4d97a4(0x1b9)){this[_0x4d97a4(0x1c8)]==!![]&&_0x933d8c(_0x4d97a4(0x275));throw _0x4d97a4(0x275);}else _0x486a65[_0xc7ffd5]=_0xf7762b;}}else{let _0x38c9b8=_0x4fd750!=null?_0xc63dd9[_0x4d97a4(0x1d1)](_0x2d312e=>!_0x39d9d8[_0x4d97a4(0x1db)](_0x439c9f)[_0x4d97a4(0x1cb)](_0x2d312e)):_0x187184;if(_0x38c9b8['length']!=0x0)throw{'message':'Missing\x20params:\x20'+_0x38c9b8[_0x4d97a4(0x211)](',')};}}else{if((_0xc7ffd5[_0x4d97a4(0x235)]('balanceEv')||_0xc7ffd5[_0x4d97a4(0x235)](_0x4d97a4(0x1f9)))&&_0x3dfdb3[_0x4d97a4(0x24e)]){const _0x2b4c22=_0x1b19b5[_0x4d97a4(0x227)][_0x4d97a4(0x1d1)](_0x229c5b=>_0x229c5b['currency']===_0x3dfdb3[_0x4d97a4(0x24e)])[0x0];let _0x2f6b83=_0x37bbea/0xa**_0x2b4c22[_0x4d97a4(0x29a)];_0x486a65[_0xc7ffd5]=_0x2f6b83;}if((_0xc7ffd5[_0x4d97a4(0x235)]('OrderQty')||_0xc7ffd5[_0x4d97a4(0x235)](_0x4d97a4(0x285)))&&_0x3dfdb3[_0x4d97a4(0x1b1)]){if(_0x4d97a4(0x295)!=='vShNg')(_0x397e04[_0x4d97a4(0x1f7)]&&_0x3a2b1b['proxy']!=''||_0x21dc58['balancer']&&_0x2e13e9[_0x4d97a4(0x1b3)]!='')&&(this[_0x4d97a4(0x279)]=!![],this['proxy']=_0x450753[_0x4d97a4(0x1f7)],_0x3600d0[_0x4d97a4(0x277)]?this[_0x4d97a4(0x277)]=_0x3ff98d[_0x4d97a4(0x277)]:this['proxyPort']=0xbb8);else{const _0xa2f562=_0x1b19b5[_0x4d97a4(0x1dc)][_0x4d97a4(0x1d1)](_0x5f3790=>_0x5f3790['symbol']===_0x3dfdb3[_0x4d97a4(0x1b1)]);if(_0xa2f562[_0x4d97a4(0x27a)]!=0x0){if(_0x4d97a4(0x272)!==_0x4d97a4(0x1d3)){const _0x8ad60d=_0xa2f562[0x0];_0x486a65[_0xc7ffd5]=_0x37bbea*_0x8ad60d['tickSize'];}else throw _0x4d97a4(0x1c9);}}}}}}else return _0x145ac6;}),_0x486a65;}async[a11_0x318803(0x1af)](_0xfa07c7){const _0x34faa8=a11_0x318803;let _0x5008c3=await this[_0x34faa8(0x260)](_0xfa07c7,'GET',_0x34faa8(0x252),[]);return _0x5008c3;}async[a11_0x318803(0x22e)](_0x4ed9e0){const _0x56768e=a11_0x318803;let _0x2c7559=await this[_0x56768e(0x260)](_0x4ed9e0,'GET','/public/products',[]);return _0x2c7559;}async[a11_0x318803(0x1e9)](_0x347f85){const _0x1be92e=a11_0x318803;let _0x32add7=await this[_0x1be92e(0x260)](_0x347f85,'PUT',_0x1be92e(0x224),[_0x1be92e(0x1b1),_0x1be92e(0x1bf),'qtyType']);return _0x32add7;}async[a11_0x318803(0x1e0)](_0x1ffeaa){const _0x10f001=a11_0x318803;let _0x3b197d=await this[_0x10f001(0x260)](_0x1ffeaa,_0x10f001(0x208),'/spot/orders',[_0x10f001(0x1b1)]);return _0x3b197d;}async[a11_0x318803(0x215)](_0x2e19a7){const _0x3f1d68=a11_0x318803;let _0x4328d6=await this[_0x3f1d68(0x260)](_0x2e19a7,_0x3f1d68(0x20f),'/spot/orders',['symbol','orderID']);return _0x4328d6;}async[a11_0x318803(0x1e5)](_0x29eb14){const _0x143742=a11_0x318803;let _0xff91c1=await this[_0x143742(0x260)](_0x29eb14,_0x143742(0x20f),_0x143742(0x249),['symbol']);return _0xff91c1;}async[a11_0x318803(0x22a)](_0x473b43){const _0x4ede1e=a11_0x318803;let _0x3cc579=await this['executeOrder'](_0x473b43,_0x4ede1e(0x207),_0x4ede1e(0x294),[_0x4ede1e(0x1b1)]);return _0x3cc579;}async[a11_0x318803(0x1a1)](_0x1b8ba5){const _0x62f818=a11_0x318803;let _0x3fbca3=await this[_0x62f818(0x260)](_0x1b8ba5,_0x62f818(0x207),'/spot/orders/active',['orderID',_0x62f818(0x1b1)]);return _0x3fbca3;}async['getOrder'](_0x145746){const _0xbff4b0=a11_0x318803;let _0x3e3882=await this['executeOrder'](_0x145746,'GET','/api-data/spots/orders/by-order-id',[_0xbff4b0(0x27c),_0xbff4b0(0x1b1)]);return _0x3e3882;}async[a11_0x318803(0x282)](_0x49ffcf){const _0x3b889d=a11_0x318803;let _0x2aeb0b=await this[_0x3b889d(0x260)](_0x49ffcf,_0x3b889d(0x207),'/spot/wallets',[]);return _0x2aeb0b;}async[a11_0x318803(0x267)](_0x3304b1){const _0x411f1a=a11_0x318803;let _0x5f47ae=await this[_0x411f1a(0x260)](_0x3304b1,_0x411f1a(0x207),'/api-data/spots/orders',[_0x411f1a(0x1b1)]);return _0x5f47ae;}async['getTradesHistory'](_0x457316){const _0x5aaaeb=a11_0x318803;let _0x2af33b=await this[_0x5aaaeb(0x260)](_0x457316,_0x5aaaeb(0x207),_0x5aaaeb(0x1c2),[_0x5aaaeb(0x1b1)]);return _0x2af33b;}async[a11_0x318803(0x1de)](_0x3b4e57){const _0x5f38c8=a11_0x318803;let _0x2061d7=await this[_0x5f38c8(0x260)](_0x3b4e57,_0x5f38c8(0x207),_0x5f38c8(0x284),[]);return _0x2061d7;}async[a11_0x318803(0x1a6)](_0xc3dcc7){const _0x5eb267=a11_0x318803;let _0x55ff9f=await this[_0x5eb267(0x260)](_0xc3dcc7,'GET',_0x5eb267(0x233),[_0x5eb267(0x24e)]);return _0x55ff9f;}async[a11_0x318803(0x247)](_0x4c3fb7){const _0x308429=a11_0x318803;let _0x492441=await this[_0x308429(0x260)](_0x4c3fb7,_0x308429(0x207),_0x308429(0x232),[_0x308429(0x24e),_0x308429(0x1e6)]);return _0x492441;}async[a11_0x318803(0x21a)](_0x37abeb){const _0x2fc5e4=a11_0x318803;let _0x1a73b7=await this[_0x2fc5e4(0x260)](_0x37abeb,_0x2fc5e4(0x207),_0x2fc5e4(0x25d),[_0x2fc5e4(0x24e)]);return _0x1a73b7;}async[a11_0x318803(0x21f)](_0x289713){const _0x5012e0=a11_0x318803;let _0x293caf=await this[_0x5012e0(0x260)](_0x289713,_0x5012e0(0x207),_0x5012e0(0x237),[_0x5012e0(0x24e)]);return _0x293caf;}async[a11_0x318803(0x270)](_0xec5df2){const _0x1b58cd=a11_0x318803;let _0x4f94f3=await this['executeOrder'](_0xec5df2,_0x1b58cd(0x207),_0x1b58cd(0x1b5),['currency']);return _0x4f94f3;}async[a11_0x318803(0x298)](_0x9ac9d2){const _0x4592fc=a11_0x318803;let _0xc57153=await this[_0x4592fc(0x260)](_0x9ac9d2,_0x4592fc(0x207),_0x4592fc(0x229),[_0x4592fc(0x218)]);return _0xc57153;}async[a11_0x318803(0x287)](_0x1c1897){const _0x2baa9e=a11_0x318803;let _0x506363=await this['executeOrder'](_0x1c1897,'GET',_0x2baa9e(0x223),[_0x2baa9e(0x1b1)]);return _0x506363;}async[a11_0x318803(0x248)](_0x572a19){const _0x735787=a11_0x318803;let _0x14e3f1=await this['executeOrder'](_0x572a19,_0x735787(0x207),'/md/fullbook',['symbol']);return _0x14e3f1;}async[a11_0x318803(0x27f)](_0xe5ea38){const _0x3cb01f=a11_0x318803;let _0x90e7a2=await this[_0x3cb01f(0x260)](_0xe5ea38,'GET',_0x3cb01f(0x1ae),[_0x3cb01f(0x1b1)]);return _0x90e7a2;}async['get24HourTickerAllSymbols'](_0x4139ae){const _0x1205b3=a11_0x318803;let _0x4a5d25=await this['executeOrder'](_0x4139ae,_0x1205b3(0x207),_0x1205b3(0x291),[]);return _0x4a5d25;}async['get24HourTicker'](_0x51ed24){const _0x10b601=a11_0x318803;let _0xcec8f7=await this[_0x10b601(0x260)](_0x51ed24,_0x10b601(0x207),_0x10b601(0x297),[_0x10b601(0x1b1)]);return _0xcec8f7;}async[a11_0x318803(0x243)](_0x323485){const _0x15adbd=a11_0x318803;_0x323485[_0x15adbd(0x1bc)]&&(_0x323485['clOrdID']=_0x15adbd(0x1b4)+_0x323485[_0x15adbd(0x1bc)]);let _0x130e27=await this[_0x15adbd(0x260)](_0x323485,'PUT',_0x15adbd(0x250),['symbol',_0x15adbd(0x1bc),_0x15adbd(0x1bf),'orderQty']);return _0x130e27;}async[a11_0x318803(0x1ab)](_0x169f9e){const _0x3c24e4=a11_0x318803;let _0x4a1ff8=await this['executeOrder'](_0x169f9e,_0x3c24e4(0x208),_0x3c24e4(0x226),[_0x3c24e4(0x1b1)]);return _0x4a1ff8;}async[a11_0x318803(0x1d6)](_0x549c14){const _0x7db3d2=a11_0x318803;let _0x2af571=await this[_0x7db3d2(0x260)](_0x549c14,_0x7db3d2(0x20f),_0x7db3d2(0x26c),[_0x7db3d2(0x1b1)]);return _0x2af571;}async[a11_0x318803(0x1d0)](_0x2545ef){const _0x7527b=a11_0x318803;let _0x40c909=await this['executeOrder'](_0x2545ef,_0x7527b(0x20f),'/orders',['symbol',_0x7527b(0x27c)]);return _0x40c909;}async['cancelAllOrdersPerp'](_0x19bfd1){const _0x5eb90b=a11_0x318803;let _0x396c9b=await this['executeOrder'](_0x19bfd1,'DELETE',_0x5eb90b(0x1b7),[_0x5eb90b(0x1b1)]);return _0x396c9b;}async[a11_0x318803(0x25f)](_0x5f4af6,_0x581a38){const _0xcb3c63=a11_0x318803;let _0x1d68bc=await this[_0xcb3c63(0x260)](_0x5f4af6,_0xcb3c63(0x207),_0xcb3c63(0x246),[_0xcb3c63(0x24e)]);return _0x1d68bc;}async[a11_0x318803(0x1fa)](_0x39dd98){const _0x1528c8=a11_0x318803;let _0x410358=await this[_0x1528c8(0x260)](_0x39dd98,_0x1528c8(0x207),_0x1528c8(0x206),['currency']);return _0x410358;}async['getOpenOrdersPerp'](_0x5c5b19){const _0x23d09c=a11_0x318803;let _0x55a847=await this['executeOrder'](_0x5c5b19,_0x23d09c(0x207),'/orders/activeList',[_0x23d09c(0x1b1)]);return _0x55a847;}async['getClosedOrdersPerp'](_0x807dab){const _0x47fc4b=a11_0x318803;let _0x24079e=await this[_0x47fc4b(0x260)](_0x807dab,_0x47fc4b(0x207),_0x47fc4b(0x286),[_0x47fc4b(0x1b1)]);return _0x24079e;}async[a11_0x318803(0x1b2)](_0x3af8bd){const _0x2e7b11=a11_0x318803;let _0x3c9470=await this[_0x2e7b11(0x260)](_0x3af8bd,_0x2e7b11(0x208),_0x2e7b11(0x212),[_0x2e7b11(0x1b1)]);return _0x3c9470;}async[a11_0x318803(0x264)](_0x1eb43e){const _0x1bec15=a11_0x318803;let _0x5af455=await this['executeOrder'](_0x1eb43e,_0x1bec15(0x208),'/positions/riskLimit',[_0x1bec15(0x1b1)]);return _0x5af455;}async[a11_0x318803(0x1cc)](_0x24439c){const _0x8c0102=a11_0x318803;let _0x136a59=await this[_0x8c0102(0x260)](_0x24439c,'POST',_0x8c0102(0x238),[_0x8c0102(0x1b1)]);return _0x136a59;}async['getUserOrderPerp'](_0x3684f6){const _0x14b111=a11_0x318803;let _0x56cc63=await this['executeOrder'](_0x3684f6,_0x14b111(0x207),'/exchange/order',[_0x14b111(0x1b1)]);return _0x56cc63;}async[a11_0x318803(0x27b)](_0x3ef622){const _0x43bea7=a11_0x318803;let _0x3b069b=await this['executeOrder'](_0x3ef622,_0x43bea7(0x207),_0x43bea7(0x1e3),[_0x43bea7(0x1b1)]);return _0x3b069b;}async[a11_0x318803(0x262)](_0x166472){const _0x2783b3=a11_0x318803;let _0x49330e=await this[_0x2783b3(0x260)](_0x166472,_0x2783b3(0x207),_0x2783b3(0x290),[_0x2783b3(0x1b1),_0x2783b3(0x203)]);return _0x49330e;}async[a11_0x318803(0x28e)](_0x3c2446){const _0x5cfa2c=a11_0x318803;let _0x37add8=await this['executeOrder'](_0x3c2446,'GET',_0x5cfa2c(0x26f),['symbol']);return _0x37add8;}async['get24HourTickerAllSymbolsPerp'](_0x119db3){let _0x591b79=await this['executeOrder'](_0x119db3,'GET','/md/v1/ticker/24hr/all',[]);return _0x591b79;}async[a11_0x318803(0x265)](_0x30c096){const _0x29cd82=a11_0x318803;let _0x4cacef=await this['executeOrder'](_0x30c096,_0x29cd82(0x207),_0x29cd82(0x221),['market']);return _0x4cacef;}async[a11_0x318803(0x292)](_0x4477c4){const _0x2f29f3=a11_0x318803;let _0x2cac8f=await this['executeOrder'](_0x4477c4,_0x2f29f3(0x207),'/api-data/public/data/funding-rate-history',[_0x2f29f3(0x1b1)]);return _0x2cac8f;}async[a11_0x318803(0x1ce)](_0x4ef3e0){const _0x41390f=a11_0x318803;let _0xe37235=await this['executeOrder'](_0x4ef3e0,_0x41390f(0x207),'/api-data/futures/funding-fees',[_0x41390f(0x1b1)]);return _0xe37235;}async[a11_0x318803(0x1f0)](_0x5cb441){const _0x3b924a=a11_0x318803;let _0x3fac5b=await this[_0x3b924a(0x260)](_0x5cb441,'GET','/api-data/futures/fee-rate',[_0x3b924a(0x1aa)]);return _0x3fac5b;}async[a11_0x318803(0x26e)](_0x3962fe){const _0x122ec7=a11_0x318803;let _0xe64422=await this[_0x122ec7(0x260)](_0x3962fe,_0x122ec7(0x207),_0x122ec7(0x1a5),[]);return _0xe64422;}async['spotFuturesTransfer'](_0x275312){const _0x3b39d4=a11_0x318803;let _0x42b789=await this['executeOrder'](_0x275312,_0x3b39d4(0x241),_0x3b39d4(0x1fe),[_0x3b39d4(0x26d),'moveOp',_0x3b39d4(0x24e)]);return _0x42b789;}async[a11_0x318803(0x1c5)](_0x5d9763){const _0x3f2270=a11_0x318803;let _0x499f76=await this[_0x3f2270(0x260)](_0x5d9763,'GET',_0x3f2270(0x1fe),['currency']);return _0x499f76;}async['placeOrderHedged'](_0x5c5803){const _0x2aef8c=a11_0x318803;let _0x547b23=await this[_0x2aef8c(0x260)](_0x5c5803,'PUT','/g-orders/create',[_0x2aef8c(0x1b1),_0x2aef8c(0x1bf),_0x2aef8c(0x1b0)]);return _0x547b23;}async[a11_0x318803(0x253)](_0x2e03e0){const _0xde9382=a11_0x318803;let _0x54a2a7=await this[_0xde9382(0x260)](_0x2e03e0,_0xde9382(0x208),'/g-orders/replace',[_0xde9382(0x1b1),_0xde9382(0x1b0)]);return _0x54a2a7;}async[a11_0x318803(0x269)](_0x55a4d8){const _0x103db9=a11_0x318803;let _0x5c6c5c=await this[_0x103db9(0x260)](_0x55a4d8,_0x103db9(0x20f),_0x103db9(0x25b),['symbol',_0x103db9(0x1b0)]);return _0x5c6c5c;}async['cancelBatchOrderHedged'](_0x1611d7){const _0x455c8b=a11_0x318803;let _0x456588=await this[_0x455c8b(0x260)](_0x1611d7,'DELETE',_0x455c8b(0x1da),[_0x455c8b(0x1b1),'posSide']);return _0x456588;}async['cancelAllOrdersHedged'](_0x216dc0){const _0x2dc906=a11_0x318803;let _0x38d5b1=await this[_0x2dc906(0x260)](_0x216dc0,_0x2dc906(0x20f),_0x2dc906(0x1ca),[_0x2dc906(0x1b1),_0x2dc906(0x1b0)]);return _0x38d5b1;}async['getOpenOrdersHedged'](_0xb7eed3){const _0x658c0=a11_0x318803;let _0x44900c=await this[_0x658c0(0x260)](_0xb7eed3,_0x658c0(0x207),_0x658c0(0x1bb),['symbol']);return _0x44900c;}async[a11_0x318803(0x280)](_0x34385f){const _0x64da76=a11_0x318803;let _0x20fa55=await this[_0x64da76(0x260)](_0x34385f,_0x64da76(0x207),_0x64da76(0x28d),[_0x64da76(0x24e)]);return _0x20fa55;}async[a11_0x318803(0x26a)](_0x145bdf){const _0xe8a7df=a11_0x318803;let _0x5e1838=await this['executeOrder'](_0x145bdf,'GET',_0xe8a7df(0x256),[_0xe8a7df(0x24e),_0xe8a7df(0x209),_0xe8a7df(0x1e4)]);return _0x5e1838;}async['getOrderBookHedged'](_0x2f7514){const _0x383409=a11_0x318803;let _0x3af903=await this['executeOrder'](_0x2f7514,_0x383409(0x207),_0x383409(0x271),[_0x383409(0x1b1)]);return _0x3af903;}async[a11_0x318803(0x274)](_0x35d464){const _0x3052c1=a11_0x318803;let _0x519c4a=await this[_0x3052c1(0x260)](_0x35d464,_0x3052c1(0x207),_0x3052c1(0x278),[_0x3052c1(0x1b1),_0x3052c1(0x203)]);return _0x519c4a;}async[a11_0x318803(0x200)](_0xdbf70c){const _0xb44192=a11_0x318803;let _0x20519b=await this[_0xb44192(0x260)](_0xdbf70c,_0xb44192(0x207),_0xb44192(0x20a),[_0xb44192(0x1b1)]);return _0x20519b;}async['get24HourTickerHedged'](_0x37b50c){const _0x315cf8=a11_0x318803;let _0x2ee561=await this['executeOrder'](_0x37b50c,'GET',_0x315cf8(0x20d),[_0x315cf8(0x1b1)]);return _0x2ee561;}async['get24HourTickerAllSymbolsHedged'](_0x4b4ef5){const _0x201aac=a11_0x318803;let _0xd767e0=await this[_0x201aac(0x260)](_0x4b4ef5,_0x201aac(0x207),'/md/v2/ticker/24hr/all',[]);return _0xd767e0;}async[a11_0x318803(0x1fd)](_0x5d05cd){const _0x3c38d0=a11_0x318803;let _0x5c901d=await this[_0x3c38d0(0x260)](_0x5d05cd,_0x3c38d0(0x207),'/api-data/g-futures/orders',[_0x3c38d0(0x1b1)]);return _0x5c901d;}async[a11_0x318803(0x240)](_0x4c664b){const _0x53e625=a11_0x318803;let _0x1514f2=await this[_0x53e625(0x260)](_0x4c664b,_0x53e625(0x207),_0x53e625(0x263),['currency']);return _0x1514f2;}async['getAccountPositionsUnPnLHedged'](_0x589723){const _0x5694dd=a11_0x318803;let _0x15ce26=await this[_0x5694dd(0x260)](_0x589723,_0x5694dd(0x207),_0x5694dd(0x273),[_0x5694dd(0x24e)]);return _0x15ce26;}async['getOrdersByIdHedged'](_0xfa03d9){const _0x132fa7=a11_0x318803;let _0x53e710=await this[_0x132fa7(0x260)](_0xfa03d9,_0x132fa7(0x207),'/api-data/g-futures/orders/by-order-id',[_0x132fa7(0x1b1)]);return _0x53e710;}async[a11_0x318803(0x1e1)](_0x24f159){const _0x42b992=a11_0x318803;let _0x46fc5e=await this[_0x42b992(0x260)](_0x24f159,_0x42b992(0x207),_0x42b992(0x1ec),[]);return _0x46fc5e;}async[a11_0x318803(0x27d)](_0xa95869){const _0x44ccac=a11_0x318803;let _0xf5b971=await this[_0x44ccac(0x260)](_0xa95869,_0x44ccac(0x207),_0x44ccac(0x1e8),['symbol']);return _0xf5b971;}async[a11_0x318803(0x1a3)](_0x57ca4e){const _0x5e19dc=a11_0x318803;let _0x258188=await this['executeOrder'](_0x57ca4e,'GET','/api-data/g-futures/funding-fees',[_0x5e19dc(0x24e)]);return _0x258188;}async[a11_0x318803(0x22d)](_0x5b174c){const _0x5355c1=a11_0x318803;let _0x3ce26c=await this['executeOrder'](_0x5b174c,'PUT',_0x5355c1(0x1c4),[_0x5355c1(0x1b1),'targetPosMode']);return _0x3ce26c;}async[a11_0x318803(0x236)](_0x47cead){const _0x2a976d=a11_0x318803;let _0x4e5c77=await this[_0x2a976d(0x260)](_0x47cead,_0x2a976d(0x208),_0x2a976d(0x1c6),[_0x2a976d(0x1b1)]);return _0x4e5c77;}async[a11_0x318803(0x296)](_0x26cd08){const _0xd24f45=a11_0x318803;let _0xe4e2b2=await this[_0xd24f45(0x260)](_0x26cd08,_0xd24f45(0x208),_0xd24f45(0x255),['symbol',_0xd24f45(0x22c),_0xd24f45(0x1b0)]);return _0xe4e2b2;}async[a11_0x318803(0x21e)](_0x450187){const _0x4ec10f=a11_0x318803;let _0x4a80e7=await this[_0x4ec10f(0x260)](_0x450187,_0x4ec10f(0x208),_0x4ec10f(0x230),[_0x4ec10f(0x1b1),_0x4ec10f(0x1bf),_0x4ec10f(0x204)]);return _0x4a80e7;}async[a11_0x318803(0x1cd)](_0x11bd0c){const _0x448bdb=a11_0x318803;let _0x1a84a6=await this[_0x448bdb(0x260)](_0x11bd0c,_0x448bdb(0x20f),_0x448bdb(0x20b),['symbol']);return _0x1a84a6;}async[a11_0x318803(0x1a9)](_0x49b9ee){const _0x53c1fc=a11_0x318803;let _0x56f3d0=await this['executeOrder'](_0x49b9ee,_0x53c1fc(0x20f),'/margin-trade/orders/all',['symbol']);return _0x56f3d0;}async[a11_0x318803(0x258)](_0x3b1ada){const _0x22e17c=a11_0x318803;let _0x40fff8=await this[_0x22e17c(0x260)](_0x3b1ada,_0x22e17c(0x207),_0x22e17c(0x25a),[_0x22e17c(0x1b1)]);return _0x40fff8;}async[a11_0x318803(0x1f6)](_0x775921){const _0x4f060e=a11_0x318803;let _0x605dae=await this[_0x4f060e(0x260)](_0x775921,_0x4f060e(0x207),_0x4f060e(0x20b),[]);return _0x605dae;}async[a11_0x318803(0x1be)](_0xd6a55e){const _0x57fac7=a11_0x318803;let _0xaa8e3d=await this['executeOrder'](_0xd6a55e,_0x57fac7(0x207),'/margin/orders',[]);return _0xaa8e3d;}async[a11_0x318803(0x1d9)](_0x2ea721){const _0x41bb04=a11_0x318803;let _0x3963b3=await this['executeOrder'](_0x2ea721,_0x41bb04(0x207),_0x41bb04(0x28a),[]);return _0x3963b3;}async[a11_0x318803(0x1fc)](_0x5f277e){const _0x202141=a11_0x318803;let _0x15092f=await this[_0x202141(0x260)](_0x5f277e,_0x202141(0x207),_0x202141(0x1ff),[]);return _0x15092f;}async[a11_0x318803(0x23e)](_0x4582f0){const _0x3d2457=a11_0x318803;let _0x487314=await this['executeOrder'](_0x4582f0,'GET',_0x3d2457(0x1ee),[]);return _0x487314;}async['getMarginPaybackHistory'](_0x1fdd11){const _0x337cf5=a11_0x318803;let _0x145505=await this['executeOrder'](_0x1fdd11,_0x337cf5(0x207),_0x337cf5(0x1ef),[]);return _0x145505;}async['getWalletsMargin'](_0x61ccb2){const _0x203a8e=a11_0x318803;let _0x44f6f8=await this[_0x203a8e(0x260)](_0x61ccb2,_0x203a8e(0x207),_0x203a8e(0x1c0),[]);return _0x44f6f8;}async[a11_0x318803(0x299)](_0x56b7fe){const _0x9a56b7=a11_0x318803;let _0x172329=await this[_0x9a56b7(0x260)](_0x56b7fe,_0x9a56b7(0x241),_0x9a56b7(0x1ee),[_0x9a56b7(0x24e),'amountRv']);return _0x172329;}async['marginPayback'](_0xe28606){const _0x6c6fb8=a11_0x318803;let _0x513734=await this[_0x6c6fb8(0x260)](_0xe28606,_0x6c6fb8(0x241),'/margin/payback',[_0x6c6fb8(0x24e),_0x6c6fb8(0x25c)]);return _0x513734;}async[a11_0x318803(0x21a)](_0x5caa59){const _0x52e678=a11_0x318803;let _0x129705=await this['executeOrder'](_0x5caa59,_0x52e678(0x207),'/phemex-deposit/wallets/api/depositHist',[]);return _0x129705;}async['getDepositAddress'](_0x39ae43){const _0x11ab15=a11_0x318803;let _0x4c57a7=await this[_0x11ab15(0x260)](_0x39ae43,_0x11ab15(0x207),_0x11ab15(0x251),[_0x11ab15(0x24e),_0x11ab15(0x1e6)]);return _0x4c57a7;}async[a11_0x318803(0x1a4)](_0x2c5936){const _0x4073c4=a11_0x318803;let _0x286653=await this[_0x4073c4(0x260)](_0x2c5936,'GET',_0x4073c4(0x239),[_0x4073c4(0x24e)]);return _0x286653;}async[a11_0x318803(0x21f)](_0x34420b){const _0x5f4b0e=a11_0x318803;let _0x3b209b=await this[_0x5f4b0e(0x260)](_0x34420b,_0x5f4b0e(0x207),_0x5f4b0e(0x216),[]);return _0x3b209b;}async[a11_0x318803(0x293)](_0x6e7f7e){const _0x139de5=a11_0x318803;let _0x2ac457=await this['executeOrder'](_0x6e7f7e,_0x139de5(0x207),_0x139de5(0x21b),[_0x139de5(0x24e)]);return _0x2ac457;}async[a11_0x318803(0x1c5)](_0xe78c4e){const _0x2db009=a11_0x318803;let _0x213572=await this[_0x2db009(0x260)](_0xe78c4e,_0x2db009(0x207),_0x2db009(0x1fe),['currency']);return _0x213572;}async[a11_0x318803(0x1e7)](_0x1a35a0){const _0xc49b00=a11_0x318803;let _0x34922c=await this[_0xc49b00(0x260)](_0x1a35a0,'POST',_0xc49b00(0x1f4),[_0xc49b00(0x24e),_0xc49b00(0x26d)]);return _0x34922c;}async[a11_0x318803(0x1ac)](_0x226893){const _0x2ec02d=a11_0x318803;let _0x38621a=await this[_0x2ec02d(0x260)](_0x226893,_0x2ec02d(0x207),_0x2ec02d(0x1f4),[_0x2ec02d(0x24e)]);return _0x38621a;}async['subToMainTransferFutures'](_0x2f96e3){const _0x5ea0bf=a11_0x318803;let _0x469146=await this[_0x5ea0bf(0x260)](_0x2f96e3,_0x5ea0bf(0x241),_0x5ea0bf(0x24b),['currency',_0x5ea0bf(0x26d)]);return _0x469146;}async['rfqQuote'](_0x9433d9){const _0x2eb1fb=a11_0x318803;let _0x2a6553=await this['executeOrder'](_0x9433d9,_0x2eb1fb(0x207),_0x2eb1fb(0x234),[_0x2eb1fb(0x1f2),_0x2eb1fb(0x261),_0x2eb1fb(0x217)]);return _0x2a6553;}async['convert'](_0x376b5f){const _0x51ee72=a11_0x318803;let _0x732efc=await this[_0x51ee72(0x260)](_0x376b5f,_0x51ee72(0x241),_0x51ee72(0x1df),[_0x51ee72(0x1f2),_0x51ee72(0x261),_0x51ee72(0x217),'code']);return _0x732efc;}async[a11_0x318803(0x19f)](_0x1705ca){const _0x5d0dcb=a11_0x318803;let _0x5ebf72=await this['executeOrder'](_0x1705ca,'GET',_0x5d0dcb(0x1df),[]);return _0x5ebf72;}async[a11_0x318803(0x1ea)](_0x467827){const _0x522644=a11_0x318803;let _0x548a3c=await this[_0x522644(0x260)](_0x467827,_0x522644(0x241),_0x522644(0x220),['currency',_0x522644(0x21d),_0x522644(0x1d5),_0x522644(0x1e6)]);return _0x548a3c;}async[a11_0x318803(0x23d)](_0x2b9650){const _0x430494=a11_0x318803;let _0x100434=await this[_0x430494(0x260)](_0x2b9650,'POST',_0x430494(0x205),['id']);return _0x100434;}}
{
"name": "@compendiumfi/pendax",
"version": "1.1.16",
"version": "1.1.17",
"description": "connector for centralized cryptocurrency exchanges",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,1 +0,1 @@

(function(_0x41cd60,_0x4f865b){var _0x4fa1d2=a0_0x3a63,_0x290f61=_0x41cd60();while(!![]){try{var _0x5103f0=-parseInt(_0x4fa1d2(0x158))/0x1*(-parseInt(_0x4fa1d2(0x157))/0x2)+-parseInt(_0x4fa1d2(0x14b))/0x3*(parseInt(_0x4fa1d2(0x152))/0x4)+parseInt(_0x4fa1d2(0x14f))/0x5+parseInt(_0x4fa1d2(0x149))/0x6*(parseInt(_0x4fa1d2(0x14a))/0x7)+-parseInt(_0x4fa1d2(0x148))/0x8+-parseInt(_0x4fa1d2(0x14e))/0x9+parseInt(_0x4fa1d2(0x154))/0xa;if(_0x5103f0===_0x4f865b)break;else _0x290f61['push'](_0x290f61['shift']());}catch(_0x5ac7c0){_0x290f61['push'](_0x290f61['shift']());}}}(a0_0xcdb9,0xc12b6));function a0_0x3a63(_0xc8cbd,_0x18ace3){var _0xcdb9db=a0_0xcdb9();return a0_0x3a63=function(_0x3a631a,_0x18fb44){_0x3a631a=_0x3a631a-0x148;var _0x1f4a1b=_0xcdb9db[_0x3a631a];return _0x1f4a1b;},a0_0x3a63(_0xc8cbd,_0x18ace3);}function a0_0xcdb9(){var _0x42cf01=['1379IDcxkq','62148JmxyGk','CvsoK','lkBZl','4633857HpiUkb','7506265fgnEnK','NnSUw','getFullYear','208uIUcwI','setHours','10341170TIEMlX','getDate','getMonth','888SXfDij','91DSJFrm','3194376nihQkc','6300fksDZy'];a0_0xcdb9=function(){return _0x42cf01;};return a0_0xcdb9();}export const midnight=_0x1fe991=>{var _0x2ddc55=a0_0x3a63;if(_0x1fe991){if(_0x2ddc55(0x14c)==='CvsoK')_0x1fe991[_0x2ddc55(0x153)](0x0,0x0,0x0,0x0);else{let _0x5626c1=new _0x5f095b(_0x204e81),_0xc58aeb=new _0x242b3d(_0x5efa7a);var _0x29769e=_0xc58aeb['getFullYear']()-_0x5626c1[_0x2ddc55(0x151)](),_0x4eba0c=_0xc58aeb[_0x2ddc55(0x156)]()-_0x5626c1[_0x2ddc55(0x156)](),_0x1e8981=_0xc58aeb[_0x2ddc55(0x155)]()-_0x5626c1['getDate'](),_0x273dee=_0x29769e*0xc+_0x4eba0c;if(_0x1e8981>0x0)_0x273dee+='.'+_0x1e8981;else _0x1e8981<0x0&&(_0x273dee--,_0x273dee+='.'+(new _0x2b8afa(_0x5ca584[_0x2ddc55(0x151)](),_0x246bfc['getMonth'](),0x0)[_0x2ddc55(0x155)]()+_0x1e8981));return _0x273dee;}}else{if(_0x2ddc55(0x150)!==_0x2ddc55(0x150))_0x45b82e+='.'+_0x426653;else var _0x1fe991=new Date(this);}return _0x1fe991;};export const dateDifferenceInMonths=(_0x5723e2,_0x1b2f66)=>{var _0x212807=a0_0x3a63;let _0x283459=new Date(_0x5723e2),_0x32afad=new Date(_0x1b2f66);var _0x3bea88=_0x32afad['getFullYear']()-_0x283459[_0x212807(0x151)](),_0x23a373=_0x32afad['getMonth']()-_0x283459[_0x212807(0x156)](),_0x2d6a5b=_0x32afad[_0x212807(0x155)]()-_0x283459[_0x212807(0x155)](),_0x40b5f6=_0x3bea88*0xc+_0x23a373;if(_0x2d6a5b>0x0)_0x212807(0x14d)===_0x212807(0x14d)?_0x40b5f6+='.'+_0x2d6a5b:(_0x534bc7--,_0x425572+='.'+(new _0x5174f4(_0x1aa397['getFullYear'](),_0x20a1c8[_0x212807(0x156)](),0x0)[_0x212807(0x155)]()+_0x5003da));else _0x2d6a5b<0x0&&(_0x40b5f6--,_0x40b5f6+='.'+(new Date(_0x1b2f66[_0x212807(0x151)](),_0x1b2f66[_0x212807(0x156)](),0x0)[_0x212807(0x155)]()+_0x2d6a5b));return _0x40b5f6;};
(function(_0x3655dd,_0x2979d9){var _0x25e33c=a0_0x28a2,_0x454a22=_0x3655dd();while(!![]){try{var _0x48d7c1=parseInt(_0x25e33c(0x11a))/0x1*(-parseInt(_0x25e33c(0x10d))/0x2)+parseInt(_0x25e33c(0x11b))/0x3+parseInt(_0x25e33c(0x115))/0x4*(parseInt(_0x25e33c(0x111))/0x5)+-parseInt(_0x25e33c(0x11e))/0x6*(-parseInt(_0x25e33c(0x113))/0x7)+parseInt(_0x25e33c(0x116))/0x8+parseInt(_0x25e33c(0x117))/0x9*(-parseInt(_0x25e33c(0x10f))/0xa)+-parseInt(_0x25e33c(0x110))/0xb*(parseInt(_0x25e33c(0x118))/0xc);if(_0x48d7c1===_0x2979d9)break;else _0x454a22['push'](_0x454a22['shift']());}catch(_0x1e794b){_0x454a22['push'](_0x454a22['shift']());}}}(a0_0x5b8b,0x3c214));function a0_0x28a2(_0x188f8e,_0x27e0a5){var _0x5b8bcc=a0_0x5b8b();return a0_0x28a2=function(_0x28a2b5,_0x348878){_0x28a2b5=_0x28a2b5-0x10d;var _0x31d7b5=_0x5b8bcc[_0x28a2b5];return _0x31d7b5;},a0_0x28a2(_0x188f8e,_0x27e0a5);}export const midnight=_0x4cd624=>{var _0x3fe8c6=a0_0x28a2;if(_0x4cd624){if(_0x3fe8c6(0x10e)!==_0x3fe8c6(0x10e)){if(_0x1f1c45)_0x1f1c45['setHours'](0x0,0x0,0x0,0x0);else var _0x1f1c45=new _0x2f200f(this);return _0x1f1c45;}else _0x4cd624[_0x3fe8c6(0x11c)](0x0,0x0,0x0,0x0);}else var _0x4cd624=new Date(this);return _0x4cd624;};export const dateDifferenceInMonths=(_0x5ac7e5,_0x28361b)=>{var _0x415ff0=a0_0x28a2;let _0x484e4a=new Date(_0x5ac7e5),_0x421773=new Date(_0x28361b);var _0x20ffd4=_0x421773[_0x415ff0(0x11d)]()-_0x484e4a[_0x415ff0(0x11d)](),_0xfceab4=_0x421773[_0x415ff0(0x114)]()-_0x484e4a[_0x415ff0(0x114)](),_0x416bb8=_0x421773['getDate']()-_0x484e4a[_0x415ff0(0x112)](),_0x2c1a3f=_0x20ffd4*0xc+_0xfceab4;if(_0x416bb8>0x0)_0x2c1a3f+='.'+_0x416bb8;else{if(_0x416bb8<0x0){if(_0x415ff0(0x119)!==_0x415ff0(0x119))var _0x50539c=new _0x236a86(this);else _0x2c1a3f--,_0x2c1a3f+='.'+(new Date(_0x28361b[_0x415ff0(0x11d)](),_0x28361b[_0x415ff0(0x114)](),0x0)['getDate']()+_0x416bb8);}}return _0x2c1a3f;};function a0_0x5b8b(){var _0x3ac030=['319QQfREW','5UachIN','getDate','7cZhgMK','getMonth','1181756TZMWUO','3793592tQyudU','23877oNllbT','146100cWejpY','vfTBe','38XhMLDC','213264eGBhmo','setHours','getFullYear','1701114GhAZlE','18968NWfkHM','pZKwy','620bdHELX'];a0_0x5b8b=function(){return _0x3ac030;};return a0_0x5b8b();}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc