@compendiumfi/pendax
Version:
connector for centralized cryptocurrency exchanges
1 lines • 37.2 kB
JavaScript
const a9_0x51450e=a9_0x3971;(function(_0x3ecdd4,_0x10d2e6){const _0x33bb87=a9_0x3971,_0x7d843=_0x3ecdd4();while(!![]){try{const _0x5c5bab=-parseInt(_0x33bb87(0x239))/0x1+-parseInt(_0x33bb87(0x15e))/0x2*(-parseInt(_0x33bb87(0x19d))/0x3)+parseInt(_0x33bb87(0x146))/0x4*(parseInt(_0x33bb87(0x1bc))/0x5)+parseInt(_0x33bb87(0x21c))/0x6*(parseInt(_0x33bb87(0x228))/0x7)+-parseInt(_0x33bb87(0x22d))/0x8*(-parseInt(_0x33bb87(0x1fa))/0x9)+parseInt(_0x33bb87(0x1cb))/0xa*(-parseInt(_0x33bb87(0x1de))/0xb)+-parseInt(_0x33bb87(0x235))/0xc*(parseInt(_0x33bb87(0x176))/0xd);if(_0x5c5bab===_0x10d2e6)break;else _0x7d843['push'](_0x7d843['shift']());}catch(_0x243157){_0x7d843['push'](_0x7d843['shift']());}}}(a9_0x4f4d,0x1ef0e));import a9_0xb1ba4c from'axios';function a9_0x3971(_0x1ddd4a,_0x2e8902){const _0x4f4d32=a9_0x4f4d();return a9_0x3971=function(_0x397197,_0x1f57f2){_0x397197=_0x397197-0x110;let _0x177c76=_0x4f4d32[_0x397197];return _0x177c76;},a9_0x3971(_0x1ddd4a,_0x2e8902);}import a9_0x476329,{sign}from'crypto';import a9_0x4fdcad from'short-unique-id';import a9_0x283e24 from'crypto-js';function a9_0x4f4d(){const _0x2ec3ba=['mSQCQ','getSubaccountListSpot','getAllOrdersSpot','spoturl','&signature=','asset','createSignaturePrehash','/api/v3/openOrders','/api/v1/contract/kline/index_price/','/api/v1/contract/index_price/','changeMarginFutures','qxGOM','createUnsignedPayload','executeGetRequest','getContractRiskFundBalanceHistoryFutures','hRNgZ','getAllContractRiskFundBalanceFutures','AES','getContractNDepthInfoFutures','getContractFundingRateFutures','/api/v1/private/stoporder/list/orders','stringify','849054QnGQQi','/api/v3/order?','/api/v3/rebate/referCode','hGQhB','/api/v3/rebate/taxQuery','type','getContractFairPriceFutures','spotRequest','hmZjs','AnKid','executeRequest','/api/v3/allOrders','7SHtIzh','order_id','/api/v1/private/account/tiered_fee_rate','getBalances','DELETE','4016UXYPZh','exchange','getSelfSymbolsSpot','get24HrTickerSpot','byxjs','quantity','apiSecret','key','24ltaiYE','zYRXe','/api/v3/ticker/bookTicker','/api/v3/capital/config/getall?','215225GlUBES','update','body','includes','/api/v1/private/order/list/history_orders','/api/v1/contract/risk_reverse/history','/api/v3/rebate/detail/kickback','/api/v3/sub-account/list','/api/v1/contract/ticker','/api/v3/capital/withdraw/history','authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret','https','getUniversalTransferHistoryTranIdSpot','newOrderSpot','JAKjj','getOpenOrdersSpot','createAuthHeaderV1','getContractIndexPriceFutures','pDwFh','mxDeductEnable','getStopLimitOrderListFutures','RjRUB','universalTransferSpot','getLeverageFutures','pBkuW','dec','getMxDeductStatus','aGxYi','getDepositAddressSpot','getUserAssetTransferRecordsFutures','getTransferableCurrenciesFutures','authenticate','BzgAP','unvalidatedGetSpot','cancelOrderSpot','Utf8','/api/v3/ticker/price','IQMGI','RQSEt','/api/v1/contract/ping','tkNpe','/api/v1/private/order/external/','logPosts','SsuGA','testConnectivitySpot','msg','fromAccount','toAccountType','/api/v3/aggTrades','/api/v3/rebate/detail','getRebateRecordsDetail','TWENo','useProxy','page_size','/api/v1/contract/deals/','userUniversalTransferSpot','×tamp=','492ybUrbq','/api/v1/contract/kline/','withdrawSpot','getSpotAccountInfo','fromAccountType','yTnVQ','XyWUy','/api/v1/contract/depth/','dustTransferSpot','auth','/api/v3/capital/transfer','/api/v3/sub-account/apiKey','toString','getContractIndexPriceKlineFutures','cancelWithdrawSpot','secret','JLffA','&recvWindow=','getEtfInfo','/api/v3/capital/config/getall','GET','getUserCurrentTradingFeeRateFutures','/api/v3/etf/info','/api/v1/private/position/list/history_positions','48838qWTLlp','5000','getOrderByExternalNumberFutures','log','proxy','data','/api/v1/private/account/transfer_record','Missing\x20params:\x20','logGets','WEzqN','slice','getContractDetailFutures','logDeletes','apyyn','PLvXz','/api/v3/sub-account/virtualSubAccount','/api/v3/klines','getContractFairPriceKlineFutures','nqpBd','DhDdg','MARKET','/api/v3/mxDeduct/enable','getExchangeInformationSpot','sort','2173847bVKwPb','length','Proxy\x20port\x20required','query','now','/api/v3/order','/api/v3/selfSymbols','futuresRequest','getContractTransactionDataFutures','positionId','IBfey','/api/v1/private/position/leverage','jbdBx','decrypt','apiKey','join','exchangename','page_num','toAccount','permissions','jvD+/C+JqXhqhZcCvnGOeQ==','enc','/api/v3/order/test?','/api/v1/private/order/list/order_deals','Base64','doLog','subaccount','external_oid','/api/v1/private/order/get/','price\x20and\x20quantity\x20required\x20for\x20type\x20LIMIT','keys','limit','cancelOpenOrdersSpot','mexc','/api/v1/private/position/open_positions','url','code','/api/v3/capital/withdraw/apply','getDefaultSymbolsSpot','21FTeYwi','symbol\x20is\x20a\x20required\x20parameter','yfbEy','amount','getRiskLimitsFutures','publicApis','application/JSON','/api/v3/ticker/24hr','filter','OmqgL','/api/v3/exchangeInfo','/api/v3/capital/deposit/address','CUWUR','symbol\x20and\x20limit\x20are\x20required\x20parameters','name','getContractDepthInfoFutures','getUserAssetInfoFutures','Chlvv','currency','parse','price','SSosC','getSubaccountApiKeySpot','enableMxDeduct','getAllTranscationDetailsUserOrderFutures','getContractFundingRateHistoryFutures','/api/v1/contract/funding_rate/history','toAccount\x20or\x20fromAccount\x20required\x20as\x20parameter','sfiyv','orderId\x20or\x20origClientOrderId\x20required\x20as\x20parameter','auystrAAS2iW85#s2@jdDC','8770goTdPo','quantity\x20or\x20quoteOrderQty\x20required\x20for\x20type\x20MARKET','/api/v3/defaultSymbols','currency\x20is\x20a\x20required\x20parameter','push','/api/v3/capital/withdraw','network','symbol,\x20side,\x20and\x20type\x20are\x20required','isMain','/api/v3/trades','No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters','getTriggerOrderListFutures','origClientOrderId','LIMIT','dhsyTW5!ysh8IuysQKcG45','10doGlEn','getBookTickerSpot','gwxcU','proxyUser','https://api.mexc.com','/api/v1/private/account/risk_limit','/api/v3/capital/convert','createSubaccountApiKeySpot','passphrase','application/json','subAccount','sQNSB','createSubAccountSpot','getOrderByOrderNumberFutures','symbol','/api/v1/private/account/assets','recvWindow=','/api/v1/private/planorder/list/orders','qdgpV','169829aFRBzs','addProxyObject','proxyPort','proxyAuth','YsXQc','orderId','/api/v3/time','getAggTradesSpot','getRecentTradesListSpot','/api/v3/capital/convert/list','side','getUniversalTransferHistorySpot','bCOBc','sockets','exchangeid','HAkDX','stRbV','POST','/api/v3/depth','/api/v1/contract/depth_commits/','getPriceTickerSpot','deleteSubaccountApiKeySpot','ADZrU','createSignedPayload','/api/v1/contract/detail','order_id\x20is\x20a\x20required\x20parameter','mTtLA','YGZUu','2934RiqoBZ','/api/v1/private/position/change_margin','getCurrentHoldingPositionFutures','MJECd','getOrderTransactionDetailsByOIDFutures','testNewOrderSpot','createAuthHeader','proxyPass','lsfBw','/api/v3/ping','getUserSingleCurrencyAssetInfoFutures','tomAC'];a9_0x4f4d=function(){return _0x2ec3ba;};return a9_0x4f4d();}import{access}from'fs';export class Mexc{[a9_0x51450e(0x1a2)]=new Array();['ky']=a9_0x51450e(0x1bb);['i']=a9_0x51450e(0x1ca);[a9_0x51450e(0x1eb)]={};[a9_0x51450e(0x166)]=![];[a9_0x51450e(0x137)]=![];[a9_0x51450e(0x16a)]=![];constructor(_0x177585){const _0x2fb88a=a9_0x51450e;this['futuresurl']='https://contract.mexc.com',this['spoturl']=_0x2fb88a(0x1cf),this[_0x2fb88a(0x12c)]=_0x177585['authenticate']==undefined?!![]:_0x177585[_0x2fb88a(0x12c)],this[_0x2fb88a(0x1ab)]=_0x177585[_0x2fb88a(0x22e)][_0x2fb88a(0x186)]==undefined?_0x2fb88a(0x197):_0x177585[_0x2fb88a(0x22e)][_0x2fb88a(0x186)],this[_0x2fb88a(0x1ec)]=_0x177585['exchange']['id'],this['label']=_0x177585['label'];if(this[_0x2fb88a(0x12c)]){if(_0x2fb88a(0x224)!=='hmZjs'){this[_0x2fb88a(0x166)]==!![]&&_0x554686(_0x2fb88a(0x1c6));throw'No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters';}else{if(!_0x177585[_0x2fb88a(0x234)]||!_0x177585[_0x2fb88a(0x155)]||_0x177585[_0x2fb88a(0x234)]==''||_0x177585[_0x2fb88a(0x155)]==''){if(_0x2fb88a(0x180)===_0x2fb88a(0x205))throw{'message':_0x2fb88a(0x19e)};else throw _0x2fb88a(0x117);}this['apiKey']=_0x177585[_0x2fb88a(0x234)],this['apiSecret']=_0x177585[_0x2fb88a(0x155)],this[_0x2fb88a(0x1c4)]=_0x177585[_0x2fb88a(0x190)]==undefined,this[_0x2fb88a(0x190)]=this[_0x2fb88a(0x1c4)]?'':_0x177585[_0x2fb88a(0x190)],this[_0x2fb88a(0x1d3)]=_0x177585[_0x2fb88a(0x1d3)];}}this[_0x2fb88a(0x141)]=![];if(_0x177585[_0x2fb88a(0x141)]){if(_0x2fb88a(0x215)===_0x2fb88a(0x215)){if(_0x177585['proxy']&&_0x177585[_0x2fb88a(0x162)]!=''){if(_0x2fb88a(0x140)!==_0x2fb88a(0x140))_0x2fc8df[_0x2fb88a(0x23b)]=_0x36cb53+'&recvWindow='+_0x571be7+_0x2fb88a(0x145)+_0x197748+_0x2fb88a(0x20a)+_0x20734c;else{this[_0x2fb88a(0x141)]=!![],this['proxy']=this[_0x2fb88a(0x199)],this['proxy']=_0x177585[_0x2fb88a(0x162)];if(_0x177585[_0x2fb88a(0x1e0)]){if(_0x2fb88a(0x125)===_0x2fb88a(0x125))this[_0x2fb88a(0x1e0)]=_0x177585[_0x2fb88a(0x1e0)];else throw{'message':_0x2fb88a(0x1f7)};}else throw _0x2fb88a(0x178);}}_0x177585[_0x2fb88a(0x1ce)]&&(this[_0x2fb88a(0x1ce)]=_0x177585['proxyUser']);if(_0x177585[_0x2fb88a(0x201)]){if(_0x2fb88a(0x225)!==_0x2fb88a(0x21f))this['proxyPass']=_0x177585['proxyPass'];else throw{'message':'quantity\x20or\x20quoteOrderQty\x20required\x20for\x20type\x20MARKET'};}if(_0x177585[_0x2fb88a(0x1e1)]===!![]){if(_0x2fb88a(0x202)==='lsfBw')this[_0x2fb88a(0x1e1)]=!![];else return this[_0x2fb88a(0x12e)](_0x5cc803,[_0x2fb88a(0x1d9)],_0x2fb88a(0x13d));}else{if('FUJoV'===_0x2fb88a(0x128))throw{'message':'order_id\x20is\x20a\x20required\x20parameter'};else this['proxyAuth']=![];}}else throw{'message':_0x2fb88a(0x193)};}this['br']=_0x2fb88a(0x18a),this['publicApis'][_0x2fb88a(0x1c0)]('getServerTimeSpot',_0x2fb88a(0x139),_0x2fb88a(0x19c),_0x2fb88a(0x174),'getOrderBookSpot',_0x2fb88a(0x1e6),_0x2fb88a(0x1e5),'getKlinesSpot',_0x2fb88a(0x1f2),_0x2fb88a(0x1cc));}[a9_0x51450e(0x126)]=_0x2c93fd=>{const _0x1ff340=a9_0x51450e;if(_0x2c93fd==null)return undefined;const _0x40d773=a9_0x283e24[_0x1ff340(0x18b)][_0x1ff340(0x18e)]['parse'](this['ky']),_0x48b83e=a9_0x283e24[_0x1ff340(0x18b)][_0x1ff340(0x18e)][_0x1ff340(0x1b0)](this['i']);return a9_0x283e24[_0x1ff340(0x217)][_0x1ff340(0x183)](_0x2c93fd,_0x40d773,{'iv':_0x48b83e})['toString'](a9_0x283e24[_0x1ff340(0x18b)]['Utf8']);};async['createAuthHeader'](){const _0x47e33b=a9_0x51450e;let _0x27c091=_0x47e33b(0x1d4),_0x2f2b64={'Content-Type':_0x27c091,'source':this[_0x47e33b(0x126)](this['br']),'X-MEXC-APIKEY':this[_0x47e33b(0x184)]};return _0x2f2b64;}async[a9_0x51450e(0x1f5)](_0x147eaa,_0x1d2259){const _0x4334ff=a9_0x51450e;let _0x6a3c6a=Date['now'](),_0x5aed59=_0x4334ff(0x15f),_0x86002d=[],_0x441dcd='';for(let _0x1ff483 in _0x1d2259){if(_0x4334ff(0x16c)===_0x4334ff(0x170))return _0x27e3f8;else _0x86002d[_0x4334ff(0x1c0)](_0x1ff483+'='+_0x1d2259[_0x1ff483]);}_0x441dcd=_0x86002d[_0x4334ff(0x185)]('&');let _0x43f889=_0x147eaa+_0x86002d[_0x4334ff(0x177)]>0x0?_0x441dcd+_0x4334ff(0x157)+_0x5aed59+_0x4334ff(0x145)+_0x6a3c6a:''+_0x4334ff(0x157)+_0x5aed59+_0x4334ff(0x145)+_0x6a3c6a;_0x43f889=_0x43f889[0x0]=='&'?_0x43f889['slice'](0x1):_0x43f889;let _0x46f063=this[_0x4334ff(0x20c)](this[_0x4334ff(0x233)],_0x43f889),_0x2fe90e={};if(_0x147eaa!==''&&_0x441dcd!==''){if(_0x4334ff(0x135)!==_0x4334ff(0x133))_0x2fe90e[_0x4334ff(0x179)]=_0x147eaa,_0x2fe90e['body']=_0x441dcd+'&recvWindow='+_0x5aed59+'×tamp='+_0x6a3c6a+'&signature='+_0x46f063;else throw{'message':'Missing\x20params:\x20'+_0x3acbee[_0x4334ff(0x185)](',')};}else{if(_0x147eaa!=='')_0x2fe90e[_0x4334ff(0x179)]=_0x147eaa+'&recvWindow='+_0x5aed59+_0x4334ff(0x145)+_0x6a3c6a+_0x4334ff(0x20a)+_0x46f063;else _0x441dcd!==''?_0x4334ff(0x11b)===_0x4334ff(0x19f)?_0x27b524=_0x5082cf+_0x545de9+'='+_0x4c7c78[_0x1c8568]+'&':_0x2fe90e[_0x4334ff(0x23b)]=_0x441dcd+'&recvWindow='+_0x5aed59+'×tamp='+_0x6a3c6a+'&signature='+_0x46f063:_0x2fe90e[_0x4334ff(0x23b)]='recvWindow='+_0x5aed59+'×tamp='+_0x6a3c6a+_0x4334ff(0x20a)+_0x46f063;}return _0x2fe90e;}async[a9_0x51450e(0x212)](_0x444003,_0x38fcaf){const _0x3defa1=a9_0x51450e;let _0x5a5170=[],_0x4827ad='';for(let _0x3808fa in _0x38fcaf){_0x5a5170[_0x3defa1(0x1c0)](_0x3808fa+'='+_0x38fcaf[_0x3808fa]);}_0x4827ad=_0x5a5170[_0x3defa1(0x185)]('&');let _0x5bb057={};return _0x5bb057['query']=_0x444003,_0x5bb057[_0x3defa1(0x23b)]=_0x4827ad,_0x5bb057;}[a9_0x51450e(0x20c)](_0x46957b,_0x4d519b){const _0x52c977=a9_0x51450e;return a9_0x476329['Hmac']('sha256',_0x46957b)[_0x52c977(0x23a)](_0x4d519b)['digest']('hex');}[a9_0x51450e(0x1df)](_0x39124b){const _0x55553d=a9_0x51450e;if(this[_0x55553d(0x141)]){if('UklBZ'===_0x55553d(0x182))throw{'message':'symbol\x20is\x20a\x20required\x20parameter'};else{let _0x8261d6={'protocol':_0x55553d(0x118),'host':this[_0x55553d(0x162)],'port':this[_0x55553d(0x1e0)]};this[_0x55553d(0x1e1)]===!![]&&(_0x8261d6['auth']={'username':this['proxyUser'],'password':this[_0x55553d(0x201)]}),_0x39124b[_0x55553d(0x162)]=_0x8261d6;}}return _0x39124b;}async['executeRequest'](_0x2f7621,_0x5a5eec,_0x4784ee,_0x3179ec=null){const _0x45b45f=a9_0x51450e;let _0x38ef7b={'baseURL':_0x4784ee,'url':_0x5a5eec,'method':_0x2f7621,'headers':_0x4784ee==this['spoturl']?await this[_0x45b45f(0x200)]():await this[_0x45b45f(0x11d)](_0x3179ec,_0x2f7621)};_0x38ef7b=this[_0x45b45f(0x1df)](_0x38ef7b);try{if(_0x45b45f(0x1dd)!==_0x45b45f(0x1dd))throw'authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret';else{const _0x510ef3=await a9_0xb1ba4c(_0x38ef7b);if(!_0x510ef3){if(this[_0x45b45f(0x166)]==!![]){if(_0x45b45f(0x122)!==_0x45b45f(0x122)){if(_0x3ea0bb==null)return _0x2ddb71;const _0x1c68b7=_0x4a5688[_0x45b45f(0x18b)]['Base64'][_0x45b45f(0x1b0)](this['ky']),_0x199d96=_0x1c6d26[_0x45b45f(0x18b)][_0x45b45f(0x18e)]['parse'](this['i']);return _0x561a1e[_0x45b45f(0x217)][_0x45b45f(0x183)](_0x179e2e,_0x1c68b7,{'iv':_0x199d96})[_0x45b45f(0x152)](_0x402363[_0x45b45f(0x18b)][_0x45b45f(0x130)]);}else doLog(_0x45b45f(0x1c6));}throw'No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters';}return this[_0x45b45f(0x166)]==!![]&&this[_0x45b45f(0x18f)]({'send':_0x38ef7b,'level':'default','receive':{'code':_0x510ef3[_0x45b45f(0x163)][_0x45b45f(0x19a)],'data':JSON['stringify'](_0x510ef3[_0x45b45f(0x163)][_0x45b45f(0x163)]),'msg':_0x510ef3[_0x45b45f(0x163)][_0x45b45f(0x13a)]}}),{'code':_0x510ef3['status'],'data':_0x510ef3[_0x45b45f(0x163)],'msg':_0x510ef3['statusText']};}}catch(_0x283c8c){if(_0x45b45f(0x1ed)===_0x45b45f(0x1ed))return _0x283c8c;else throw{'message':_0x45b45f(0x1c3)};}}async[a9_0x51450e(0x223)](_0x442f75,_0x9bc05e,_0xc7ebc7,_0x4df510){const _0x51ffd1=a9_0x51450e;let _0x5ca2b0=_0x9bc05e!=null?_0xc7ebc7[_0x51ffd1(0x1a5)](_0x369bff=>!Object[_0x51ffd1(0x194)](_0x9bc05e)['includes'](_0x369bff)):_0xc7ebc7;if(_0x5ca2b0['length']==0x0){let _0x4f9741=await this['createSignedPayload']('',_0x9bc05e),_0x354e11=_0x4df510+'?'+_0x4f9741['body'],_0x439d4e=await this['executeRequest'](_0x442f75,_0x354e11,this[_0x51ffd1(0x209)]);return _0x439d4e;}else{if(_0x51ffd1(0x14b)!==_0x51ffd1(0x12d))throw{'message':_0x51ffd1(0x165)+_0x5ca2b0[_0x51ffd1(0x185)](',')};else _0x1f6ec6[_0x51ffd1(0x14f)]={'username':this['proxyUser'],'password':this['proxyPass']};}}async[a9_0x51450e(0x17d)](_0x469d76,_0x1793ab,_0x38a893,_0x1521f3){const _0x5c51ee=a9_0x51450e;let _0x4b5daf=_0x1793ab!=null?_0x38a893[_0x5c51ee(0x1a5)](_0x21a2f7=>!Object['keys'](_0x1793ab)[_0x5c51ee(0x110)](_0x21a2f7)):_0x38a893;if(_0x4b5daf['length']==0x0){let _0x59324b=await this[_0x5c51ee(0x212)]('',_0x1793ab),_0x3574f8=_0x1521f3+'?'+_0x59324b[_0x5c51ee(0x23b)],_0x4bf06c=await this[_0x5c51ee(0x226)](_0x469d76,_0x3574f8,this['futuresurl'],_0x1793ab);return _0x4bf06c;}else throw{'message':'Missing\x20params:\x20'+_0x4b5daf[_0x5c51ee(0x185)](',')};}async[a9_0x51450e(0x12e)](_0x1dc974,_0x820b0d,_0xba2113){const _0xccaf85=a9_0x51450e;let _0x5252bb=_0x1dc974!=null?_0x820b0d[_0xccaf85(0x1a5)](_0x22a67a=>!Object[_0xccaf85(0x194)](_0x1dc974)['includes'](_0x22a67a)):_0x820b0d;if(_0x5252bb[_0xccaf85(0x177)]==0x0){let _0x3fbca1=await this[_0xccaf85(0x212)]('',_0x1dc974),_0x403afe=_0xba2113+'?'+_0x3fbca1['body'],_0x3ec36d=await this[_0xccaf85(0x213)](_0x403afe,this[_0xccaf85(0x209)]);return _0x3ec36d;}else throw{'message':_0xccaf85(0x165)+_0x5252bb['join'](',')};}async[a9_0x51450e(0x22b)](){const _0x44db0a=a9_0x51450e;let _0x37e9ee=await this[_0x44db0a(0x1f5)]('',''),_0x3c0c85=_0x44db0a(0x238)+_0x37e9ee['query'],_0x3cc72d=await this['spotRequest'](_0x44db0a(0x15a),[],this['spoturl']);return _0x3cc72d;}async[a9_0x51450e(0x139)](){const _0x135188=a9_0x51450e;let _0x3bbcd5=_0x135188(0x203),_0x2cc0f5=await this[_0x135188(0x223)](_0x135188(0x15a),[],[],_0x3bbcd5);return _0x2cc0f5;}async['getServerTimeSpot'](){const _0x4c1c6a=a9_0x51450e;let _0x224485=_0x4c1c6a(0x1e4),_0x3c9882=await this['spotRequest'](_0x4c1c6a(0x15a),[],[],_0x224485);return _0x3c9882;}async['getDefaultSymbolsSpot'](){const _0x59f2da=a9_0x51450e;let _0x57c609=_0x59f2da(0x1be),_0xfd6252=await this[_0x59f2da(0x223)](_0x59f2da(0x15a),[],[],_0x57c609);return _0xfd6252;}async[a9_0x51450e(0x174)](_0x25b7c6){const _0x2a376c=a9_0x51450e;return this[_0x2a376c(0x12e)](_0x25b7c6,[],_0x2a376c(0x1a7));}async['getOrderBookSpot'](_0x4a2081){const _0x372cfa=a9_0x51450e;return this[_0x372cfa(0x12e)](_0x4a2081,[_0x372cfa(0x1d9)],_0x372cfa(0x1f0));}async[a9_0x51450e(0x1e6)](_0x1be2a6){const _0x4e186b=a9_0x51450e;return this['unvalidatedGetSpot'](_0x1be2a6,[_0x4e186b(0x1d9)],_0x4e186b(0x1c5));}async[a9_0x51450e(0x1e5)](_0x171e22){const _0x5a1fc0=a9_0x51450e;return this['unvalidatedGetSpot'](_0x171e22,[_0x5a1fc0(0x1d9)],_0x5a1fc0(0x13d));}async['getKlinesSpot'](_0x5e046f){const _0x56a66d=a9_0x51450e;return this[_0x56a66d(0x12e)](_0x5e046f,[_0x56a66d(0x1d9),'interval'],'/api/v3/klines');}async['getAvgPriceSpot'](_0x591d15){return this['unvalidatedGetSpot'](_0x591d15,['symbol'],'/api/v3/avgPrice');}async[a9_0x51450e(0x230)](_0x15470f){const _0x3e6eaf=a9_0x51450e;return this[_0x3e6eaf(0x12e)](_0x15470f,[],_0x3e6eaf(0x1a4));}async[a9_0x51450e(0x1f2)](_0x58c60c){const _0x3b4d01=a9_0x51450e;return this[_0x3b4d01(0x12e)](_0x58c60c,[],_0x3b4d01(0x131));}async[a9_0x51450e(0x1cc)](_0x4b03df){const _0x3f5708=a9_0x51450e;return await this[_0x3f5708(0x12e)](_0x4b03df,[],_0x3f5708(0x237));}async[a9_0x51450e(0x1d7)](_0x5d5fc1){const _0x43e5e3=a9_0x51450e;return await this['spotRequest'](_0x43e5e3(0x1ef),_0x5d5fc1,[_0x43e5e3(0x1d5),'note'],_0x43e5e3(0x16d));}async[a9_0x51450e(0x207)](_0x36bf2d){const _0x1b90c4=a9_0x51450e;return await this[_0x1b90c4(0x223)](_0x1b90c4(0x15a),_0x36bf2d,[],_0x1b90c4(0x114));}async[a9_0x51450e(0x1d2)](_0x18448e){const _0x214301=a9_0x51450e;return await this['spotRequest'](_0x214301(0x1ef),_0x18448e,[_0x214301(0x1d5),'note',_0x214301(0x189)],_0x214301(0x151));}async[a9_0x51450e(0x1b3)](_0x3e156f){const _0x31845c=a9_0x51450e;return await this[_0x31845c(0x223)](_0x31845c(0x15a),_0x3e156f,[_0x31845c(0x1d5)],_0x31845c(0x151));}async[a9_0x51450e(0x1f3)](_0x3aea13){const _0x4afbcb=a9_0x51450e;return await this[_0x4afbcb(0x223)]('DELETE',_0x3aea13,['subAccount','apiKey'],_0x4afbcb(0x151));}async[a9_0x51450e(0x123)](_0x2da0ed){const _0x56a369=a9_0x51450e;let _0x1d9e50=Object['keys'](_0x2da0ed);if(_0x1d9e50[_0x56a369(0x110)](_0x56a369(0x188))||_0x1d9e50[_0x56a369(0x110)](_0x56a369(0x13b)))return await this[_0x56a369(0x223)](_0x56a369(0x1ef),_0x2da0ed,[_0x56a369(0x14a),_0x56a369(0x13c),_0x56a369(0x1a0),_0x56a369(0x20b)],'/api/v3/capital/sub-account/universalTransfer');else{if('XmHUn'==='eyHzC')throw{'message':_0x56a369(0x19e)};else throw{'message':_0x56a369(0x1b8)};}}async[a9_0x51450e(0x1e9)](_0x5e6908){const _0x37e4a7=a9_0x51450e;let _0x429bc6=Object[_0x37e4a7(0x194)](_0x5e6908);if(_0x429bc6[_0x37e4a7(0x110)](_0x37e4a7(0x188))||_0x429bc6['includes'](_0x37e4a7(0x13b))){if('JXmQq'!=='hQADW')return await this[_0x37e4a7(0x223)]('GET',_0x5e6908,[_0x37e4a7(0x14a),'toAccountType'],'/api/v3/capital/sub-account/universalTransfer');else throw{'message':_0x37e4a7(0x19e)};}else{if(_0x37e4a7(0x171)===_0x37e4a7(0x171))throw{'message':_0x37e4a7(0x1b8)};else this[_0x37e4a7(0x1ce)]=_0x516711[_0x37e4a7(0x1ce)];}}async[a9_0x51450e(0x22f)](_0x6f0e7a){const _0x11a731=a9_0x51450e;return await this[_0x11a731(0x223)]('GET',_0x6f0e7a,[],_0x11a731(0x17c));}async[a9_0x51450e(0x1ff)](_0x570593){const _0x262237=a9_0x51450e;if(_0x570593[_0x262237(0x1d9)]&&_0x570593[_0x262237(0x1e8)]&&_0x570593[_0x262237(0x221)]){if(_0x262237(0x1fd)!==_0x262237(0x14c)){if(_0x570593['type']==_0x262237(0x1c9)&&(!_0x570593[_0x262237(0x1b1)]||!_0x570593[_0x262237(0x232)])){if(_0x262237(0x1a9)!==_0x262237(0x1a9))return this[_0x262237(0x12e)](_0x234761,[],_0x262237(0x1a4));else throw{'message':_0x262237(0x193)};}else{if(_0x570593[_0x262237(0x221)]==_0x262237(0x172)&&!_0x570593['quantity']&&!_0x570593['quoteOrderQty'])throw{'message':_0x262237(0x1bd)};}let _0x423e38=await this[_0x262237(0x1f5)]('',_0x570593),_0x497eb8=_0x262237(0x18c)+_0x423e38[_0x262237(0x23b)];return await this['executeRequest'](_0x262237(0x1ef),_0x497eb8,this[_0x262237(0x209)]);}else throw{'message':_0x262237(0x19e)};}else throw{'message':_0x262237(0x1c3)};}async[a9_0x51450e(0x11a)](_0x376595){const _0x3b3045=a9_0x51450e;if(_0x376595[_0x3b3045(0x1d9)]&&_0x376595[_0x3b3045(0x1e8)]&&_0x376595[_0x3b3045(0x221)]){if(_0x3b3045(0x138)!==_0x3b3045(0x206)){if(_0x376595[_0x3b3045(0x221)]==_0x3b3045(0x1c9)&&(!_0x376595['price']||!_0x376595[_0x3b3045(0x232)])){if(_0x3b3045(0x1b2)==='Awflr')throw{'message':_0x3b3045(0x19e)};else throw{'message':_0x3b3045(0x193)};}else{if(_0x376595[_0x3b3045(0x221)]=='MARKET'&&!_0x376595['quantity']&&!_0x376595['quoteOrderQty']){if(_0x3b3045(0x1ee)===_0x3b3045(0x1ea))return _0x3f7558;else throw{'message':_0x3b3045(0x1bd)};}}let _0x5b348e=await this[_0x3b3045(0x1f5)]('',_0x376595),_0x5a4fde=_0x3b3045(0x21d)+_0x5b348e['body'];return await this[_0x3b3045(0x226)](_0x3b3045(0x1ef),_0x5a4fde,this[_0x3b3045(0x209)]);}else{let _0x283eef={'protocol':_0x3b3045(0x118),'host':this['proxy'],'port':this[_0x3b3045(0x1e0)]};this[_0x3b3045(0x1e1)]===!![]&&(_0x283eef[_0x3b3045(0x14f)]={'username':this[_0x3b3045(0x1ce)],'password':this[_0x3b3045(0x201)]}),_0x17936d['proxy']=_0x283eef;}}else{if(_0x3b3045(0x1cd)===_0x3b3045(0x1cd))throw{'message':_0x3b3045(0x1c3)};else _0x4fe231[_0x3b3045(0x1c0)](_0x278e32+'='+_0x107661[_0x2d0931]);}}async[a9_0x51450e(0x12f)](_0x545ec8){const _0x876791=a9_0x51450e;let _0x37ce5b=Object[_0x876791(0x194)](_0x545ec8);if(_0x37ce5b['includes']('orderId')||_0x37ce5b[_0x876791(0x110)](_0x876791(0x1c8))){if(_0x876791(0x1b9)==='sfiyv')return await this[_0x876791(0x223)](_0x876791(0x22c),_0x545ec8,['symbol'],'/api/v3/order');else throw{'message':_0x876791(0x165)+_0xdac96b[_0x876791(0x185)](',')};}else throw{'message':_0x876791(0x1ba)};}async[a9_0x51450e(0x196)](_0x49e8b6){const _0x2b31f1=a9_0x51450e;return await this[_0x2b31f1(0x223)](_0x2b31f1(0x22c),_0x49e8b6,[_0x2b31f1(0x1d9)],_0x2b31f1(0x20d));}async['getOrderSpot'](_0x1d3f96){const _0x3bad62=a9_0x51450e;let _0xe5b18f=Object['keys'](_0x1d3f96);if(_0xe5b18f[_0x3bad62(0x110)](_0x3bad62(0x1e3))||_0xe5b18f[_0x3bad62(0x110)](_0x3bad62(0x1c8)))return _0x3bad62(0x16b)!==_0x3bad62(0x16b)?this[_0x3bad62(0x12e)](_0x478bef,[_0x3bad62(0x1d9),'interval'],_0x3bad62(0x16e)):await this[_0x3bad62(0x223)](_0x3bad62(0x15a),_0x1d3f96,[_0x3bad62(0x1d9)],_0x3bad62(0x17b));else{if('olbcZ'!==_0x3bad62(0x236))throw{'message':_0x3bad62(0x1ba)};else this[_0x3bad62(0x1e1)]=![];}}async[a9_0x51450e(0x11c)](_0x55f12b){const _0x41c1=a9_0x51450e;return await this[_0x41c1(0x223)](_0x41c1(0x15a),_0x55f12b,['symbol'],'/api/v3/openOrders');}async[a9_0x51450e(0x208)](_0x4560e1){const _0x50ea1b=a9_0x51450e;return await this[_0x50ea1b(0x223)](_0x50ea1b(0x15a),_0x4560e1,[_0x50ea1b(0x1d9)],_0x50ea1b(0x227));}async[a9_0x51450e(0x149)](_0x4d6370){const _0x2b463d=a9_0x51450e;return await this['spotRequest'](_0x2b463d(0x15a),_0x4d6370,[],'/api/v3/account');}async['getAccountTradeListSpot'](_0x208593){const _0x38e4b4=a9_0x51450e;return await this[_0x38e4b4(0x223)](_0x38e4b4(0x15a),_0x208593,[_0x38e4b4(0x1d9)],'/api/v3/myTrades');}async[a9_0x51450e(0x1b4)](_0x52a7a2){const _0x157e70=a9_0x51450e;return await this[_0x157e70(0x223)](_0x157e70(0x1ef),_0x52a7a2,[_0x157e70(0x120)],_0x157e70(0x173));}async[a9_0x51450e(0x127)](_0x1f2de7){const _0x10b3dc=a9_0x51450e;return await this[_0x10b3dc(0x223)](_0x10b3dc(0x15a),_0x1f2de7,[],_0x10b3dc(0x173));}async['getCurrencyInformationSpot'](_0x2498e1){const _0x456ee3=a9_0x51450e;return await this[_0x456ee3(0x223)](_0x456ee3(0x15a),_0x2498e1,[],_0x456ee3(0x159));}async[a9_0x51450e(0x148)](_0x4fab4f){const _0x18510d=a9_0x51450e;return await this[_0x18510d(0x223)](_0x18510d(0x1ef),_0x4fab4f,['coin','address','amount'],_0x18510d(0x19b));}async[a9_0x51450e(0x154)](_0x1a00b2){const _0x2eb90c=a9_0x51450e;return await this[_0x2eb90c(0x223)](_0x2eb90c(0x22c),_0x1a00b2,['id'],_0x2eb90c(0x1c1));}async['getDepositHistorySpot'](_0x1a4b19){const _0x4bc830=a9_0x51450e;return await this[_0x4bc830(0x223)](_0x4bc830(0x15a),_0x1a4b19,[],'/api/v3/capital/deposit/hisrec');}async['getWithdrawHistorySpot'](_0x1710d8){const _0x557b68=a9_0x51450e;return await this['spotRequest']('GET',_0x1710d8,[],_0x557b68(0x116));}async['generateDepositAddressSpot'](_0x5222dc){const _0x3a1934=a9_0x51450e;return await this['spotRequest'](_0x3a1934(0x1ef),_0x5222dc,['coin',_0x3a1934(0x1c2)],_0x3a1934(0x1a8));}async[a9_0x51450e(0x129)](_0x2358f9){const _0x55bc75=a9_0x51450e;return await this[_0x55bc75(0x223)]('GET',_0x2358f9,['coin'],_0x55bc75(0x1a8));}async['getWithdrawAddressSpot'](_0x5f004e){const _0x1e1e43=a9_0x51450e;return await this[_0x1e1e43(0x223)](_0x1e1e43(0x15a),_0x5f004e,[],'/api/v3/capital/withdraw/address');}async[a9_0x51450e(0x144)](_0x4c41a1){const _0x486f0a=a9_0x51450e;return await this[_0x486f0a(0x223)]('POST',_0x4c41a1,['fromAccountType',_0x486f0a(0x13c),_0x486f0a(0x20b),'amount'],_0x486f0a(0x150));}async[a9_0x51450e(0x1e9)](_0x4375fb){const _0x1c9152=a9_0x51450e;return await this[_0x1c9152(0x223)](_0x1c9152(0x15a),_0x4375fb,[_0x1c9152(0x14a),_0x1c9152(0x13c)],'/api/v3/capital/transfer');}async[a9_0x51450e(0x119)](_0x42b830){const _0x4b83e7=a9_0x51450e;return await this[_0x4b83e7(0x223)](_0x4b83e7(0x15a),_0x42b830,['tranId'],'/api/v3/capital/transfer/tranId');}async['getMxConvertableAssetsSpot'](_0x1594d6){const _0x4cbed9=a9_0x51450e;return await this[_0x4cbed9(0x223)](_0x4cbed9(0x15a),_0x1594d6,[],_0x4cbed9(0x1e7));}async[a9_0x51450e(0x14e)](_0x109fb7){const _0x488505=a9_0x51450e;return await this[_0x488505(0x223)](_0x488505(0x1ef),_0x109fb7,[_0x488505(0x20b)],_0x488505(0x1d1));}async['getDustLogSpot'](_0xf30ece){const _0x239601=a9_0x51450e;return await this[_0x239601(0x223)](_0x239601(0x15a),_0xf30ece,[],_0x239601(0x1d1));}async[a9_0x51450e(0x158)](_0x4456db){const _0x49b549=a9_0x51450e;return await this['spotRequest']('GET',_0x4456db,[],_0x49b549(0x15c));}async['getRebateHistoryRecords'](_0x548e80){const _0xcfc1b6=a9_0x51450e;return await this['spotRequest'](_0xcfc1b6(0x15a),_0x548e80,[],_0xcfc1b6(0x220));}async[a9_0x51450e(0x13f)](_0xed22a){const _0x503a77=a9_0x51450e;return await this['spotRequest'](_0x503a77(0x15a),_0xed22a,[],_0x503a77(0x13e));}async['getSelfRebateRecordsDetail'](_0x2fa1c8){const _0x54fde0=a9_0x51450e;return await this[_0x54fde0(0x223)]('GET',_0x2fa1c8,[],_0x54fde0(0x113));}async['getReferCode'](_0x38b752){const _0x3f58d1=a9_0x51450e;return await this[_0x3f58d1(0x223)]('GET',_0x38b752,[],_0x3f58d1(0x21e));}async[a9_0x51450e(0x11d)](_0x455bd3,_0x72bac8){const _0x20e129=a9_0x51450e;let _0x340171=_0x20e129(0x1a3),_0x59e818='';if(_0x72bac8==_0x20e129(0x1ef))_0x59e818=JSON[_0x20e129(0x21b)](_0x455bd3);else{if(_0x455bd3!=null&&Object[_0x20e129(0x194)](_0x455bd3)['length']>0x0){for(let _0x2065f1 of Object[_0x20e129(0x194)](_0x455bd3)[_0x20e129(0x175)]()){if(_0x20e129(0x1e2)===_0x20e129(0x1f9))throw{'message':_0x20e129(0x19e)};else _0x59e818=_0x59e818+_0x2065f1+'='+_0x455bd3[_0x2065f1]+'&';}_0x59e818=_0x59e818[_0x20e129(0x168)](0x0,-0x1);}}console[_0x20e129(0x161)](_0x59e818);let _0x1cd9a8=Date[_0x20e129(0x17a)](),_0x371cd8={'Content-Type':_0x340171,'Request-Time':_0x1cd9a8,'ApiKey':this[_0x20e129(0x184)],'Signature':await this['createSignaturePrehash'](this[_0x20e129(0x233)],this['apiKey']+_0x1cd9a8+_0x59e818)};return _0x371cd8;}async['getServerTimeFutures'](_0x1e3289){const _0x4c5e37=a9_0x51450e;return await this[_0x4c5e37(0x17d)](_0x4c5e37(0x15a),_0x1e3289,[],_0x4c5e37(0x134));}async[a9_0x51450e(0x169)](_0x2626be){const _0x962f43=a9_0x51450e;return await this[_0x962f43(0x17d)](_0x962f43(0x15a),_0x2626be,[],_0x962f43(0x1f6));}async[a9_0x51450e(0x12b)](_0x8003c4){const _0x1e5e67=a9_0x51450e;return await this[_0x1e5e67(0x17d)](_0x1e5e67(0x15a),_0x8003c4,[],'/api/v1/contract/support_currencies');}async[a9_0x51450e(0x1ac)](_0x386be0){const _0x360613=a9_0x51450e;if(Object['keys'](_0x386be0)[_0x360613(0x110)](_0x360613(0x1d9)))return await this['futuresRequest']('GET',_0x386be0,[],_0x360613(0x14d)+_0x386be0[_0x360613(0x1d9)]);else throw{'message':'symbol\x20is\x20a\x20required\x20parameter'};}async[a9_0x51450e(0x218)](_0x1c946a){const _0x27f3ef=a9_0x51450e;if(Object[_0x27f3ef(0x194)](_0x1c946a)[_0x27f3ef(0x110)]('symbol')&&Object[_0x27f3ef(0x194)](_0x1c946a)[_0x27f3ef(0x110)](_0x27f3ef(0x195)))return await this[_0x27f3ef(0x17d)](_0x27f3ef(0x15a),_0x1c946a,[],_0x27f3ef(0x1f1)+_0x1c946a[_0x27f3ef(0x1d9)]+'/'+_0x1c946a['limit']);else throw{'message':_0x27f3ef(0x1aa)};}async[a9_0x51450e(0x11e)](_0x407f96){const _0x4d5f9f=a9_0x51450e;if(Object[_0x4d5f9f(0x194)](_0x407f96)['includes'](_0x4d5f9f(0x1d9))){if(_0x4d5f9f(0x1a6)===_0x4d5f9f(0x11f))throw{'message':'symbol,\x20side,\x20and\x20type\x20are\x20required'};else return await this[_0x4d5f9f(0x17d)](_0x4d5f9f(0x15a),_0x407f96,[],_0x4d5f9f(0x20f)+_0x407f96[_0x4d5f9f(0x1d9)]);}else throw{'message':_0x4d5f9f(0x19e)};}async[a9_0x51450e(0x222)](_0xc6320){const _0x37c5cc=a9_0x51450e;if(Object[_0x37c5cc(0x194)](_0xc6320)[_0x37c5cc(0x110)](_0x37c5cc(0x1d9)))return await this[_0x37c5cc(0x17d)]('GET',_0xc6320,[],'/api/v1/contract/fair_price/'+_0xc6320[_0x37c5cc(0x1d9)]);else{if(_0x37c5cc(0x156)!==_0x37c5cc(0x156))throw{'message':_0x37c5cc(0x1aa)};else throw{'message':_0x37c5cc(0x19e)};}}async[a9_0x51450e(0x219)](_0x4e4e0a){const _0x8cbfad=a9_0x51450e;if(Object[_0x8cbfad(0x194)](_0x4e4e0a)[_0x8cbfad(0x110)](_0x8cbfad(0x1d9)))return await this[_0x8cbfad(0x17d)](_0x8cbfad(0x15a),_0x4e4e0a,[],'/api/v1/contract/funding_rate/'+_0x4e4e0a[_0x8cbfad(0x1d9)]);else throw{'message':_0x8cbfad(0x19e)};}async['getContractKlineFutures'](_0x1580a5){const _0x2ae274=a9_0x51450e;if(Object[_0x2ae274(0x194)](_0x1580a5)[_0x2ae274(0x110)](_0x2ae274(0x1d9)))return await this[_0x2ae274(0x17d)](_0x2ae274(0x15a),_0x1580a5,[],_0x2ae274(0x147)+_0x1580a5[_0x2ae274(0x1d9)]);else throw{'message':_0x2ae274(0x19e)};}async[a9_0x51450e(0x153)](_0xec779d){const _0x3acf15=a9_0x51450e;if(Object['keys'](_0xec779d)[_0x3acf15(0x110)](_0x3acf15(0x1d9))){if('sQNSB'===_0x3acf15(0x1d6))return await this['futuresRequest'](_0x3acf15(0x15a),_0xec779d,[],_0x3acf15(0x20e)+_0xec779d[_0x3acf15(0x1d9)]);else throw{'message':_0x3acf15(0x1bd)};}else{if(_0x3acf15(0x167)===_0x3acf15(0x167))throw{'message':_0x3acf15(0x19e)};else throw _0x3acf15(0x178);}}async[a9_0x51450e(0x16f)](_0x5379c7){const _0x58cccd=a9_0x51450e;if(Object[_0x58cccd(0x194)](_0x5379c7)[_0x58cccd(0x110)]('symbol')){if('mTtLA'!==_0x58cccd(0x1f8))_0x35d62f[_0x58cccd(0x23b)]=_0x58cccd(0x1db)+_0x3b006a+'×tamp='+_0x137eb8+_0x58cccd(0x20a)+_0x5c0231;else return await this[_0x58cccd(0x17d)](_0x58cccd(0x15a),_0x5379c7,[],'/api/v1/contract/kline/fair_price/'+_0x5379c7[_0x58cccd(0x1d9)]);}else{if(_0x58cccd(0x211)!==_0x58cccd(0x231))throw{'message':'symbol\x20is\x20a\x20required\x20parameter'};else this[_0x58cccd(0x1e1)]=!![];}}async[a9_0x51450e(0x17e)](_0x25a484){const _0x6692ea=a9_0x51450e;if(Object[_0x6692ea(0x194)](_0x25a484)[_0x6692ea(0x110)](_0x6692ea(0x1d9)))return await this['futuresRequest'](_0x6692ea(0x15a),_0x25a484,[],_0x6692ea(0x143)+_0x25a484[_0x6692ea(0x1d9)]);else throw{'message':_0x6692ea(0x19e)};}async['getContractTrendDataFutures'](_0x37701b){const _0xc2c78c=a9_0x51450e;return await this[_0xc2c78c(0x17d)](_0xc2c78c(0x15a),_0x37701b,[],_0xc2c78c(0x115));}async[a9_0x51450e(0x216)](_0x2b534a){const _0x158e85=a9_0x51450e;return await this[_0x158e85(0x17d)](_0x158e85(0x15a),_0x2b534a,[],'/api/v1/contract/risk_reverse');}async[a9_0x51450e(0x214)](_0x2b0337){const _0x28f7c9=a9_0x51450e;return await this['futuresRequest'](_0x28f7c9(0x15a),_0x2b0337,[_0x28f7c9(0x1d9),'page_num',_0x28f7c9(0x142)],_0x28f7c9(0x112));}async[a9_0x51450e(0x1b6)](_0xbe781e){const _0x58a343=a9_0x51450e;return await this[_0x58a343(0x17d)](_0x58a343(0x15a),_0xbe781e,[_0x58a343(0x1d9),_0x58a343(0x187),'page_size'],_0x58a343(0x1b7));}async[a9_0x51450e(0x1ad)](_0x4cf797){const _0x30bc89=a9_0x51450e;return await this['futuresRequest'](_0x30bc89(0x15a),_0x4cf797,[],_0x30bc89(0x1da));}async[a9_0x51450e(0x12a)](_0x1ac283){const _0x50b5da=a9_0x51450e;return await this[_0x50b5da(0x17d)]('GET',_0x1ac283,[],_0x50b5da(0x164));}async[a9_0x51450e(0x204)](_0x105722){const _0x11958a=a9_0x51450e;if(Object[_0x11958a(0x194)](_0x105722)['includes'](_0x11958a(0x1af)))return await this[_0x11958a(0x17d)](_0x11958a(0x15a),_0x105722,[],'/api/v1/private/account/asset/'+_0x105722[_0x11958a(0x1af)]);else{if(_0x11958a(0x1f4)!==_0x11958a(0x1f4))throw{'message':_0x11958a(0x1aa)};else throw{'message':_0x11958a(0x1bf)};}}async['getHistoryPositionInformationFutures'](_0x43cea1){const _0x3e3438=a9_0x51450e;return await this[_0x3e3438(0x17d)]('GET',_0x43cea1,[],_0x3e3438(0x15d));}async[a9_0x51450e(0x1fc)](_0xcb63a6){const _0x5abee1=a9_0x51450e;return await this[_0x5abee1(0x17d)](_0x5abee1(0x15a),_0xcb63a6,[],_0x5abee1(0x198));}async['getUserFundingRateDetails'](_0x52b3bb){const _0xe27e31=a9_0x51450e;return await this[_0xe27e31(0x17d)]('GET',_0x52b3bb,[],'/api/v1/private/position/funding_records');}async['getUserCurrentPendingOrderFutures'](_0x4597c0){const _0x26b949=a9_0x51450e;if(Object[_0x26b949(0x194)](_0x4597c0)[_0x26b949(0x110)](_0x26b949(0x1d9)))return await this[_0x26b949(0x17d)]('GET',_0x4597c0,[],'/api/v1/private/order/list/open_orders/'+_0x4597c0[_0x26b949(0x1d9)]);else throw{'message':'symbol\x20is\x20a\x20required\x20parameter'};}async['getAllUserHistoricalOrdersFutures'](_0x4c6f49){const _0x135e9d=a9_0x51450e;return await this['futuresRequest'](_0x135e9d(0x15a),_0x4c6f49,[],_0x135e9d(0x111));}async[a9_0x51450e(0x160)](_0x1178f5){const _0x23cca1=a9_0x51450e;if(Object['keys'](_0x1178f5)[_0x23cca1(0x110)](_0x23cca1(0x1d9))&&Object[_0x23cca1(0x194)](_0x1178f5)[_0x23cca1(0x110)](_0x23cca1(0x191))){if(_0x23cca1(0x132)==='MuuEd'){this[_0x23cca1(0x141)]=!![],this['proxy']=this[_0x23cca1(0x199)],this[_0x23cca1(0x162)]=_0x56cb72[_0x23cca1(0x162)];if(_0x1a0a0e[_0x23cca1(0x1e0)])this[_0x23cca1(0x1e0)]=_0x18d4a7[_0x23cca1(0x1e0)];else throw'Proxy\x20port\x20required';}else return await this[_0x23cca1(0x17d)](_0x23cca1(0x15a),_0x1178f5,[],_0x23cca1(0x136)+_0x1178f5[_0x23cca1(0x1d9)]+'/'+_0x1178f5[_0x23cca1(0x195)]);}else{if(_0x23cca1(0x1ae)==='Chlvv')throw{'message':_0x23cca1(0x1aa)};else throw{'message':_0x23cca1(0x1b8)};}}async[a9_0x51450e(0x1d8)](_0x300d3e){const _0x314c17=a9_0x51450e;if(Object['keys'](_0x300d3e)[_0x314c17(0x110)]('order_id'))return await this[_0x314c17(0x17d)](_0x314c17(0x15a),_0x300d3e,[],_0x314c17(0x192)+_0x300d3e[_0x314c17(0x229)]);else throw{'message':_0x314c17(0x1f7)};}async[a9_0x51450e(0x1fe)](_0x52060b){const _0x35bd8e=a9_0x51450e;if(Object[_0x35bd8e(0x194)](_0x52060b)[_0x35bd8e(0x110)](_0x35bd8e(0x229)))return await this[_0x35bd8e(0x17d)](_0x35bd8e(0x15a),_0x52060b,[],'/api/v1/private/order/deal_details/'+_0x52060b[_0x35bd8e(0x229)]);else throw{'message':_0x35bd8e(0x1f7)};}async[a9_0x51450e(0x1b5)](_0x50bd72){const _0x1f7649=a9_0x51450e;return await this['futuresRequest'](_0x1f7649(0x15a),_0x50bd72,[],_0x1f7649(0x18d));}async[a9_0x51450e(0x1c7)](_0x2d3f51){const _0x4a4678=a9_0x51450e;return await this[_0x4a4678(0x17d)]('GET',_0x2d3f51,[],_0x4a4678(0x1dc));}async[a9_0x51450e(0x121)](_0x5164ab){const _0x810fbb=a9_0x51450e;return await this['futuresRequest'](_0x810fbb(0x15a),_0x5164ab,[],_0x810fbb(0x21a));}async[a9_0x51450e(0x1a1)](_0x2c6595){const _0x186366=a9_0x51450e;return await this[_0x186366(0x17d)](_0x186366(0x15a),_0x2c6595,[],_0x186366(0x1d0));}async[a9_0x51450e(0x15b)](_0x1e687d){const _0x25d3a6=a9_0x51450e;return await this['futuresRequest'](_0x25d3a6(0x15a),_0x1e687d,[],_0x25d3a6(0x22a));}async[a9_0x51450e(0x210)](_0xe444c7){const _0x22de3d=a9_0x51450e;return await this[_0x22de3d(0x17d)](_0x22de3d(0x1ef),_0xe444c7,[_0x22de3d(0x17f),'amount','type'],_0x22de3d(0x1fb));}async['getPositionModeFutures'](_0x4d7344){const _0x2375e4=a9_0x51450e;return await this[_0x2375e4(0x17d)]('GET',_0x4d7344,[],'/api/v1/private/position/position_mode');}async[a9_0x51450e(0x124)](_0x23c79c){const _0x5bff5d=a9_0x51450e;return await this[_0x5bff5d(0x17d)](_0x5bff5d(0x15a),_0x23c79c,[_0x5bff5d(0x1d9)],_0x5bff5d(0x181));}}