UNPKG

@compendiumfi/pendax

Version:

connector for centralized cryptocurrency exchanges

1 lines 152 kB
const a10_0x1a5b90=a10_0x6b59;function a10_0x6b59(_0x50b49a,_0x5ba86a){const _0x2961bc=a10_0x2961();return a10_0x6b59=function(_0x6b59d4,_0x584b73){_0x6b59d4=_0x6b59d4-0x10e;let _0x138f39=_0x2961bc[_0x6b59d4];return _0x138f39;},a10_0x6b59(_0x50b49a,_0x5ba86a);}(function(_0x2829ae,_0x57e677){const _0x368e1f=a10_0x6b59,_0x98f5b=_0x2829ae();while(!![]){try{const _0x48f742=parseInt(_0x368e1f(0x275))/0x1*(-parseInt(_0x368e1f(0x342))/0x2)+parseInt(_0x368e1f(0x400))/0x3*(-parseInt(_0x368e1f(0x218))/0x4)+parseInt(_0x368e1f(0x383))/0x5+parseInt(_0x368e1f(0x3e1))/0x6+parseInt(_0x368e1f(0x217))/0x7*(parseInt(_0x368e1f(0x1df))/0x8)+-parseInt(_0x368e1f(0x2f7))/0x9*(-parseInt(_0x368e1f(0x214))/0xa)+parseInt(_0x368e1f(0x38d))/0xb;if(_0x48f742===_0x57e677)break;else _0x98f5b['push'](_0x98f5b['shift']());}catch(_0x14a55){_0x98f5b['push'](_0x98f5b['shift']());}}}(a10_0x2961,0xd251b));import a10_0x502d8f from'axios';function a10_0x2961(){const _0x31497a=['axTvM','/api/v5/rubik/stat/option/taker-block-volume','getGridOrderDetails','parameter\x20must\x20be\x20an\x20array\x20of\x20tokens','obuQg','dHoHg','algoId\x20and\x20instId\x20are\x20required\x20params','either\x20transId\x20or\x20clientId\x20must\x20be\x20passed\x20as\x20a\x20param','/api/v5/public/opt-summary','/api/v5/asset/convert/trade','getConvertCurrencyPair','UzcxE','constructor','MBNOp','ordType','RBdfE','body\x20parameters\x20instId,\x20posSide,\x20type,\x20amt\x20are\x20required','toString','JUYHT','RDClR','subAcct\x20and\x20apiKey\x20are\x20required\x20params.','tokens\x20allowed\x20in\x20options:\x20markets\x20array','yFzsO','proxyPass','IbHRt','rfqIds','getOptionMarketData','getMarket','createDownloadLink','positionType\x20OPTION\x20not\x20supported','getIndexComponents','getCounterparties','getLongShortRatio','xeaaz','BuhFb','/api/v5/broker/fd/if-rebate','ccy\x20is\x20a\x20required\x20param','fundingGetAssetValuation','BHUNL','parameter:\x20subAcct\x20required','parameter\x20\x27instType\x27\x20invalid','simPos\x20(if\x20submitted)\x20must\x20be\x20an\x20array\x20of\x20simulated\x20positions','/api/v5/asset/lending-rate-history','Mwhii','/api/v5/asset/balances','getAssetBalances','fgWdu','IYIHE','TDmih','ccy\x20and\x20invoice\x20are\x20required\x20params','fromCcy','LUSef','Qagny','ZdUNk','ycwRY','GJCya','legs','getPutCallRatio','auth','auystrAAS2iW85#s2@jdDC','getCandles','setLeverage','DSSPv','Nyerw','wzPrz','/api/v5/public/interest-rate-loan-quota','/api/v5/trade/fills-history','wdId','execType','NJxou','VjCPW','futuresMarginType','xiuIB','Calculate','aETpX','param\x20algoOrdType,\x20algoId\x20and\x20type\x20required','BOgTV','before','getVipInterestRateAndLoanQuota','OPTION','/api/v5/account/trade-fee?','getGridOrderHistory','WUtWZ','getPositions','algoId\x20is\x20a\x20required\x20param','VlwDZ','fundingGetFundsTransferState','options:\x20openClosed\x20(if\x20submitted)\x20must\x20be\x20\x27OPEN\x27\x20or\x20\x27CLOSED\x27','placeOrder','jGbFp','getMaxSize','/api/v5/asset/deposit-history','BuaBn','posIds','options.ccy\x20not\x20submitted','uZRnd','cBCcg','addProxyObject','tradeId','UbvsH','/api/v5/broker/nd/delete-subaccount','getRecentTransactionDetailsLong','subAcct\x20must\x20be\x20an\x20array\x20of\x20subaccount\x20names\x20with\x20<=\x2020\x20names','Utf8','spotGridWithdraw','modifyOrder','quoteIds','/api/v5/asset/convert/currencies','getFeeRates','MShsd','/api/v5/account/borrow-repay-history','quoteSide','/api/v5/broker/nd/subaccount/apikey','/api/v5/public/discount-rate-interest-free-quota','/api/v5/account/config','getSubaccountDepositAddrNdBroker','/api/v5/rfq/cancel-batch-quotes','posMode\x20is\x20a\x20required\x20param','fjhFG','fillPx','/api/v5/broker/nd/set-subaccount-level','wdId\x20is\x20a\x20required\x20param','/api/v5/market/history-candles','publicApis','getRecentTransactionDetailsShort','id\x27s\x20allowed\x20in\x20options:\x20posIds\x20array','posId','9CkZVsT','baseCcy','UpAKU','QwIcd','/api/v5/account/set-greeks','slice','/api/v5/rubik/stat/option/open-interest-volume','default','before=','hMpZb','ohHYd','executeQuote','getFundingHistory','/api/v5/asset/broker/nd/subaccount-deposit-address','rfqId,\x20quoteSide,\x20legs,\x20instId,\x20sz,\x20px,\x20and\x20side\x20are\x20all\x20required\x20params','push','/api/v5/account/bills-archive','ILxPt','getBorrowInterestAndLimit','/api/v5/tradingBot/grid/positions','ogDyP','xJwUM','getTickers','clOrdId','toAddr','mHKdQ','BhBAS','EEDmz','/api/v5/asset/convert/history','/api/v5/public/insurance-fund','/api/v5/public/underlying','getUserBlockTrades','UibGo','QzkfI','DJubA','quoteId,\x20baseCcy,\x20quoteCcy,\x20side,\x20sz,\x20and\x20szCcy\x20are\x20all\x20required\x20params','rfqSz','dYKmu','/api/v5/public/delivery-exercise-history','fromCcy\x20and\x20toCcy\x20are\x20required\x20params','end','/api/v5/public/open-interest','ccy,\x20amt,\x20from,\x20to,\x20fromSubAccount,\x20toSubAccount\x20are\x20all\x20required\x20params','authenticate','HfVKq','/api/v5/trade/fills','TtPrg','apiSecret','dmLAa','counterparties,\x20legs,\x20instId,\x20sz,\x20and\x20side\x20are\x20required\x20params','stopType','MgquU','dvmiR','future','DamvY','jrwat','getInterestRateAndLoanQuota','cEiat','SdZtw','/api/v5/tradingBot/grid/withdraw-income','getDailyRebateRecordsNdBroker','uly\x20is\x20required\x20when\x20instType\x20is\x20FUTURES/SWAP/OPTION','instType','/api/v5/broker/nd/info','uly\x20must\x20be\x20an\x20array\x20of\x20no\x20more\x20than\x203\x20uly\x27s','markets\x20allowed\x20in\x20options:\x20markets\x20array','positionType\x20MARGIN\x20not\x20supported','stopGrid','getSubAccountListNdBroker','parameter\x20\x27instType\x27\x20missing','options:\x20posIds\x20(if\x20submitted)\x20must\x20be\x20an\x20array\x20of\x20id\x27s\x20(string)','logGets','/api/v5/broker/fd/rebate-per-orders','DxGzJ','fundingCancelWithdrawal','14MvgpGZ','fundingSavingsAndPurchaseRedemption','nDGDp','pASFN','tag','yNsZa','executeGetRequest','createRfq','ccy\x20and\x20amt\x20are\x20required\x20params','UCkvb','/api/v5/trade/amend-batch-orders','/api/v5/trade/amend-order','quoteId','/api/v5/market/candles','Either\x20rfqIds\x20or\x20clRfqIds\x20is\x20required','instId\x20must\x20be\x20an\x20array\x20of\x20no\x20more\x20than\x2020\x20instIds','/api/v5/market/block-tickers','/api/v5/trade/close-position','/api/v5/market/index-tickers','getLiveOrders','subAcct,\x20label\x20and\x20passphrase\x20are\x20all\x20required\x20params.','type','tdMode','muxcc','MfUFd','uly\x20is\x20required\x20when\x20instType\x20is\x20not\x20MARGIN','requires\x20params\x20begin\x20and\x20end\x20when\x20type\x20is\x20false','amt','/api/v5/market/history-trades','getAccountPosAndRisk','?ccy=','QJysS','ivrTI','/api/v5/rubik/stat/option/open-interest-volume-ratio','gcoPE','chgMaker','ordType=','ppfjZ','GET','VHGZg','getEstimatedDelExpPrice','instId\x20must\x20be\x20an\x20array\x20of\x20no\x20more\x20than\x205\x20instIds','crBrISuf','getTradingBalances','/api/v5/account/interest-accrued','TjMBf','VmOhs','base64','options:\x20markets\x20(if\x20submitted)\x20must\x20be\x20an\x20array\x20of\x20token-names','options\x20not\x20submitted','expTime','RofXw','lUeES','yWCBo','ltqCF','convertEstimateQuote','foMta','FcOVB','EQTPT','getLimitPrice','mgnMode','getBlockTrades','/api/v5/asset/broker/nd/subaccount-withdrawal-history','getDownloadLinkNdBroker','requires\x20instId(s)\x20and\x20tdMode','447740bNzgbj','gemwE','JQkyt','dec','SPOT','xutje','gvaoc','hbPRz','DBHrw','parse','2072950GnEYwa','chgTaker','BOEON','vipLoanBorrowRepay','foLnr','createRebateDetailsLinkNdBroker','getSubaccountBills','fundingLightningDeposit','OWSDP','SWSnt','getSubaccountDepositHistoryNdBroker','getInterestRate','/api/v5/public/mark-price','Proxy\x20port\x20required','BONdM','LikHg','uQdiR','rqAVw','fillSz','/api/v5/rfq/public-trades','tjJOt','getRiskState','false','setSubaccountTradingFeeRateNdBroker','exchange','keys','transId','ccy,side,and\x20amt\x20are\x20required\x20params','getPublicBlockTrades','greeksType\x20is\x20a\x20required\x20param','/api/v5/rubik/stat/option/open-interest-volume-strike','dest','/api/v5/trade/cancel-order','/api/v5/market/tickers?instType=','type,\x20begin\x20and\x20end\x20are\x20all\x20required\x20params.','vXMSX','requires\x20instType','deleteSubaccountNdBroker','pUHiI','setGreeks','cancelBatchQuotes','getIndexCandles','deleteRequest','POST','symbol','getAccountConfig','HGPzb','createSignaturePrehash','xBLpW','margintype','/api/v5/rfq/create-quote','setLogLevel','jQXTH','kpggp','Hmac','ytljO','either\x20quoteId\x20or\x20clQuoteId\x20must\x20be\x20submitted','getLiqOrders','pbeWg','begin\x20and\x20end\x20are\x20required\x20params.','zDwQp','canTransferOut','WtiOT','GFIrz','closed','options\x20required','getInterestAccrued','rfqId\x20and\x20quoteId\x20are\x20both\x20required\x20params','closePositions','/api/v5/rfq/quotes','positionType\x20not\x20supported:\x20','limit=','CZbqF','rfqId','margin','/api/v5/tradingBot/grid/sub-orders','posSide','CTviN','XJBFY','getNdBrokerAccountInfo','fundingGetDepositHistory','testnet','Gdfvg','/api/v5/broker/nd/subaccount/modify-apikey','5320950xZomZV','uPpiB','/api/v5/public/estimated-price','setHours','QnpxG','greeksType','exchangename','qonJp','/api/v5/market/index-components','options\x20must\x20be\x20array\x20of\x20object,\x20each\x20with\x20property\x20algoId\x20and\x20instId','/api/v5/trade/cancel-algos','ZCipf','ayLXf','GQxMV','no\x20options\x20submitted','getServerTime','ccy\x20and\x20rate\x20are\x20required\x20params','instType=','open','isoMode','api/v5/system/status','/api/v5/account/simulated_margin','subaccountTransfer','getOrderHistoryArchive','aPLcj','billId','instId,\x20tdMode,\x20ordType,\x20side,\x20and\x20sz\x20are\x20all\x20required\x20parameters.\x20Please\x20ensure\x20all\x20have\x20been\x20included\x20in\x20request','cyoZg','fundingAssetTransfer','createSubaccountDepositAdrNdBroker','/api/v5/rfq/execute-quote','18owAhUK','exchangeid','Fwhoq','JLqZX','doLog','LNxFD','filter','acmJt','yZUav','aUkyQ','getMarginLendingRatio','szCcy','getOrderList','getSubaccountFundingBalance','getMaxAvailSize','setMinutes','openClosed','dzqnD','getVipLoanHistory','executeOrder','param\x20apiKey\x20required','instType\x20and\x20tdMode\x20are\x20required\x20params','enc','LETYM','getDiscRateAndIntFreeQuota','bGoNg','nextFundingRate','/api/v5/account/balance','yzRKK','coQWR','ccy\x20must\x20be\x20an\x20array\x20of\x20no\x20more\x20than\x2020\x20currencies','/api/v5/asset/bills','aqYds','orderId','digest','rfqSzCcy','tGydC','positionType','ccy\x20is\x20a\x20required\x20param\x20','XhKCW','useProxy','startTime','simPos','SeICJ','bMXav','YPOuQ','?instId=','instType\x20is\x20a\x20required\x20param','Yiill','izfSy','wcQHV','ubBTh','subAcct\x20and\x20ccy\x20are\x20required\x20params.','createSubaccountNdBroker','must\x20submit\x20an\x20array\x20of\x20orders\x20to\x20cancel','getSubaccountList','/api/v5/public/price-limit','szLlS','state=','tokens','isMain','/api/v5/market/index-candles','linear','HxhHn','?subAcct=','oCqIL','/api/v5/public/funding-rate-history','/api/v5/public/liquidation-orders','sha256','fundingSetLendingRate','Either\x20rfqId\x20or\x20clRfqId\x20is\x20required','Base64','limit','PGySy','/api/v5/asset/broker/nd/subaccount-deposit-history','please\x20provide\x20required\x20params','index','decrypt','category','hogie','SWAP','getMonth','join','getAlgoOrderHistory','param\x20algoOrdType\x20and\x20algoId\x20required','okx','ccy','eXoTc','startTime\x20must\x20be\x20within\x203\x20months\x20of\x20today','vzrsf','create','x-simulated-trading','kjPCr','lIujF','No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters','msg','instId\x20must\x20be\x20an\x20array\x20of\x20no\x20more\x20than\x205\x20instId\x27s','pQWNU','getBalances','apiKey','endTime','/api/v5/rubik/stat/margin/loan-ratio','fundingLightningWithdrawal','ordType\x20was\x20not\x20provided.\x20This\x20is\x20a\x20required\x20Field','getBillsArchive','PZFNB','/api/v5/rfq/cancel-quote','subAcct','getCandleHistory','getOpenInterest','clQuoteId','UAmlT','cancelAlgoOrder','logDeletes','PezSv','0yJQcHPLGfcFXFkGiKnkjImAjPlBE1Pi+saFuTHqT4o=','qIlmz','/api/v5/account/interest-limits','/api/v5/trade/orders-pending','yAZIh','/api/v5/rfq/counterparties','secret','update','instFamily','rate','setMilliseconds','authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret','/api/v5/asset/convert-dust-assets','maximum\x20of\x20','/api/v5/account/max-size','createQuote','getStatus','HDsvO','/api/v5/account/positions-history','getContractsOiAndVolume','proxyPort','/api/v5/account/position/margin-balance','getDate','isoMode\x20and\x20type\x20are\x20required\x20params','getPendingGridOrders','wStWW','lPxwr','either\x20quoteIds\x20or\x20clQuoteIds\x20must\x20be\x20submitted','category\x20required','rTHuy','setSeconds','param\x20algoOrdType,\x20and\x20algoId\x20required','/api/v5/trade/cancel-advance-algos','proxyUser','AbFwK','?state=','host','body\x20params\x20begin\x20and\x20end\x20required','algoId','/api/v5/account/set-leverage','XysmC','KaTxy','SqmHe','KZDVU','&instFamily\x20=','getCustodyTradingAccountList','wBNwy','XjxqS','JAZjx','eANeW','IDWiO','/api/v5/public/position-tiers','LfyVj','/api/v5/asset/lending-rate-summary','getNextFundingRate','OMQaM','subAcct\x20is\x20a\x20required\x20param.','getSubaccountTradingBalance','/api/v5/tradingBot/grid/order-algo','getSubaccountApiKeyNdBroker','-USDT-','toISOString','FMfzZ','invoice','FUTURES','deleteSubaccountApiKeyNdBroker','/api/v5/market/block-trades','DDNXV','/api/v5/public/convert-contract-coin','fundingRate','ATmmA','setIsolatedMode','/api/v5/asset/set-lending-rate','CwgdB','https://www.okx.com','WaXVy','fundingGetCurrencies','gcCmf','getSupportCoin','cancelAllRfqs','/api/v5/account/borrow-repay','YknlL','QzWLb','/api/v5/rfq/trades','future_name','UcakN','/api/v5/tradingBot/grid/stop-order-algo','AkwaX','SfMgg','getOrderDetails','positionBuilder','code','AnFpG','getQuotes','required\x20params\x20not\x20submitted','sxhus','MnGws','clientId','setSubaccountLevelNdBroker','setMonth','MAdOL','/api/v5/asset/saving-balance','/api/v5/rubik/stat/trading-data/support-coin','getBills','subaccount','GfPbh','/api/v5/account/max-loan?','subAccount(s)\x20required\x20to\x20be\x20submitted','includes','instId','mBwAQ','spot','ccy,\x20amt,\x20dest,\x20toAddr\x20and\x20fee\x20are\x20all\x20required\x20params','zLxxj','/api/v5/asset/convert/estimate-quote','getPositionTiers','https','/api/v5/account/max-avail-size','craWQ','PoRVM','/api/v5/asset/subaccount/bills','rinMk','/api/v5/asset/subaccount/transfer','DvtRC','iahLJ','uly\x20is\x20a\x20required\x20param','dftuC','stringify','ccy\x20and\x20expTime\x20are\x20required\x20params','createApiKeyNdBroker','/api/v5/account/interest-rate','category\x20required\x20-\x20valid\x20values\x20=\x20spot,\x20linear,\x20inverse','/api/v5/market/trades','getTrades','getInstruments','dTPNS','/api/v5/asset/cancel-withdrawal','NeTKg','concat','cancelRfq','/api/v5/tradingBot/grid/amend-order-algo','instId=','begin','ordId','proxy','getOiAndVolumeExpiry','/api/v5/rfq/rfqs','getPositionsHistory','/api/v5/market/open-oracle','kcaiy','150656aRkTvP','pkHrA','healthcheck','modifyMultiOrder','BCxYx','rXNWi','REXMi','PIgEq','subAcct,\x20ccy,\x20and\x20addr\x20are\x20required\x20params.','ccy,\x20amt,\x20side,\x20and\x20rate\x20are\x20all\x20required\x20params','algoId=','wgbfq','toLowerCase','toCcy','connectSocket','ccy\x20must\x20be\x20an\x20array\x20of\x20no\x20more\x20than\x2020\x20ccy\x27s','instType\x20and\x20uly(or\x20instFamily)\x20are\x20required\x20params','zucNm','fillTime','instId\x20is\x20a\x20required\x20param','getDeliveryAndExerciseHistory','odZJh','/api/v5/account/greeks','getMarkPriceCandles','baseCcy,\x20quoteCcy,\x20side,\x20rfqSz,\x20and\x20rfqSzCcy\x20are\x20all\x20required\x20params','/api/v5/trade/orders-algo-history','getConvertHistory','ZDeFW','passphrase','getConvertCurrencies','toUpperCase','log','placeMultiOrder','getFundingRate','ijCTU','fundingGetBalance','state','when\x20type\x20is\x201\x20or\x202,\x20then\x20subAcct\x20required','password','/api/v5/tradingBot/grid/orders-algo-details','markets','cKAte','/api/v5/rubik/stat/option/open-interest-volume-expiry','username','JFaAF','LsiOq','index\x20is\x20a\x20required\x20param','getIndexTickers','fundingGetAssetBillsDetails','/api/v5/asset/withdrawal-lightning','/api/v5/rfq/cancel-rfq','after=','fee','2109070tcxvSG','label','getUnderlying','133CvwsUF','65336suSgBG','unitConvert','yeIxb','instType\x20required','setPosMode','EMDXe','AMlyU','either\x20state\x20or\x20algoId\x20param\x20must\x20be\x20submitted\x20with\x20request','after','RlAwf','/api/v5/account/max-withdrawal','placeGridAlgoOrder','YHiwR','side','instId\x20and\x20sz\x20are\x20required\x20params','/api/v5/broker/nd/rebate-per-orders','data','100','HVUFp','/api/v5/asset/currencies','KewHK','getCurrentFundingRate','proxyAuth','bwXEX','clRfqId','mYXov','getTicker','/api/v5/account/bills','getMarkets','name','getBlockTickers','/api/v5/rfq/cancel-all-rfqs','length','BMnPh','ymzrT','FvjhK','getPositionsNative','getLeverage','from','jHnbV','eQNKs','UZYOt','key','fKLUK','createAuthHeader','uly','Parameters\x20must\x20be\x20array\x20of\x20objects','/api/v5/account/set-position-mode','FWDbX','vXAVu','url','inverse','LXjtn','SFXto','modifySubaccountDepositAddressNdBroker','getMarkPrice','bgNwz','fundingGetPublicBorrowInfo','getOrderBook','requires\x20instId\x20and\x20either/both\x20ordId/clOrdId','cancelAllQuotes','oqpee','cVurp','getTradesHistory','algoOrdType','getTakerVolume','RuJUE','getGridPositions','logPosts','eUSVb','quoteCcy','TUbZE','/api/v5/asset/deposit-lightning','cancelMultiOrder','fundingGetSavingBalance','cancelAdvAlgoOrder','getSubaccountWithdrawalHistoryNdBroker','chgType','/api/v5/market/ticker?instId=','/api/v5/broker/nd/set-subaccount-fee-rate','options:\x20markets\x20(if\x20submitted)\x20must\x20be\x20an\x20array\x20of\x20market-names','apply','/api/v5/trade/order-algo','knZUw','wesqk','pages','getOptionsOiAndVolume','/api/v5/account/account-position-risk','instId\x20and\x20ccy\x20are\x20required\x20params','application/json','getInsuranceFund','eaarC','fundingGetDepositAddress','110581CQfSqz','/api/v5/asset/withdrawal-history','getting\x20markets'];a10_0x2961=function(){return _0x31497a;};return a10_0x2961();}import a10_0x726f64 from'crypto';import{OkxSocket}from'../sockets/okxsocket.js';import a10_0x24dfa5 from'short-unique-id';import a10_0x312600 from'crypto-js';export class Okx{[a10_0x1a5b90(0x2f3)]=new Array();['ky']=a10_0x1a5b90(0x2b3);['i']='dhsyTW5!ysh8IuysQKcG45';['sockets']={};['logGets']=![];['logPosts']=![];['logDeletes']=![];[a10_0x1a5b90(0x3de)]=![];constructor(_0x2a2105){const _0x3c16ca=a10_0x1a5b90;this[_0x3c16ca(0x24a)]=_0x3c16ca(0x193),this[_0x3c16ca(0x3de)]=_0x2a2105[_0x3c16ca(0x3de)]===!![],this[_0x3c16ca(0x322)]=_0x2a2105['authenticate']==undefined?!![]:_0x2a2105[_0x3c16ca(0x322)],this[_0x3c16ca(0x235)]=_0x2a2105[_0x3c16ca(0x3a5)][_0x3c16ca(0x3e7)]==undefined?_0x3c16ca(0x12b):_0x2a2105['exchange'][_0x3c16ca(0x3e7)],this[_0x3c16ca(0x401)]=_0x2a2105['exchange']['id'],this[_0x3c16ca(0x215)]=_0x2a2105[_0x3c16ca(0x215)];if(this[_0x3c16ca(0x322)]){if(!_0x2a2105[_0x3c16ca(0x242)]||!_0x2a2105['secret']||!_0x2a2105[_0x3c16ca(0x1fb)]||_0x2a2105[_0x3c16ca(0x242)]==''||_0x2a2105[_0x3c16ca(0x14f)]==''||_0x2a2105['passphrase']=='')throw'authenticate\x20option\x20requires\x20valid\x20api\x20key\x20and\x20api\x20secret';this[_0x3c16ca(0x139)]=_0x2a2105[_0x3c16ca(0x242)],this[_0x3c16ca(0x326)]=_0x2a2105['secret'],this[_0x3c16ca(0x112)]=_0x2a2105['subaccount']==undefined,this['subaccount']=this['isMain']?'':_0x2a2105[_0x3c16ca(0x1b1)],this[_0x3c16ca(0x1fb)]=_0x2a2105[_0x3c16ca(0x1fb)];}this[_0x3c16ca(0x2bf)]=_0x2a2105[_0x3c16ca(0x3be)]?_0x2a2105[_0x3c16ca(0x3be)]:'usdt',this['useProxy']=![];if(_0x2a2105[_0x3c16ca(0x428)]){if('fjhFG'!==_0x3c16ca(0x2ee))_0x279ab9[_0x3c16ca(0x306)](_0x49248d+'='+_0x4fd065[_0x29f9ac]);else{if(_0x2a2105[_0x3c16ca(0x1d9)]&&_0x2a2105['proxy']!=''){this[_0x3c16ca(0x428)]=!![],this[_0x3c16ca(0x1d9)]=this['url'],this[_0x3c16ca(0x1d9)]=_0x2a2105[_0x3c16ca(0x1d9)];if(_0x2a2105[_0x3c16ca(0x15d)])this['proxyPort']=_0x2a2105[_0x3c16ca(0x15d)];else{if('JYHJG'!==_0x3c16ca(0x409))throw _0x3c16ca(0x39a);else throw{'message':'algoId,\x20instId,\x20algoOrdType,\x20and\x20stopType\x20are\x20required\x20params'};}}_0x2a2105[_0x3c16ca(0x16a)]&&(_0x3c16ca(0x137)!==_0x3c16ca(0x137)?_0x1fa564=_0x1075e8[_0x3c16ca(0x406)](_0x36ecc4=>{const _0xaf8d3c=_0x3c16ca;return _0x36ecc4[_0xaf8d3c(0x1b6)][_0xaf8d3c(0x1b5)](_0xaf8d3c(0x185));}):this[_0x3c16ca(0x16a)]=_0x2a2105['proxyUser']),_0x2a2105[_0x3c16ca(0x28f)]&&(_0x3c16ca(0x243)===_0x3c16ca(0x2b8)?_0x5a9cd3==0x0?_0x39bb32=_0x1651fc+_0x931cec[_0x3c16ca(0x111)][_0x47284a]:_0x57d537=_0x56fb8c+','+_0x1dea0f[_0x3c16ca(0x111)][_0x20a825]:this['proxyPass']=_0x2a2105[_0x3c16ca(0x28f)]),_0x2a2105[_0x3c16ca(0x22e)]===!![]?this[_0x3c16ca(0x22e)]=!![]:this['proxyAuth']=![];}}this['br']=_0x3c16ca(0x149),this[_0x3c16ca(0x2f3)][_0x3c16ca(0x306)](_0x3c16ca(0x293),_0x3c16ca(0x232),_0x3c16ca(0x234),_0x3c16ca(0x30d),_0x3c16ca(0x159),_0x3c16ca(0x20e),_0x3c16ca(0x252),_0x3c16ca(0x2b4),'getCandleHistory',_0x3c16ca(0x3b6),_0x3c16ca(0x1f6),_0x3c16ca(0x1ce),_0x3c16ca(0x257),'get24HrPlatformVolume','getOracle','getExchangeRate','getIndexComponents',_0x3c16ca(0x236),'getBlockTicker',_0x3c16ca(0x37f),_0x3c16ca(0x1cf),'getDeliveryAndRequestHistory',_0x3c16ca(0x143),'getFundingRate',_0x3c16ca(0x303),_0x3c16ca(0x37d),_0x3c16ca(0x292),_0x3c16ca(0x36a),_0x3c16ca(0x418),_0x3c16ca(0x3f0),_0x3c16ca(0x3c6),_0x3c16ca(0x24f),_0x3c16ca(0x1bc),_0x3c16ca(0x32f),'getVipInterestRateAndLoanQuota','getUnderlying',_0x3c16ca(0x272),'unitConvert',_0x3c16ca(0x197),'getTakerVolume',_0x3c16ca(0x40a),_0x3c16ca(0x298),_0x3c16ca(0x15c),'getOptionsOiAndVolume','getPutCallRatio',_0x3c16ca(0x1da),'getOiAndVolumeStrike','getTakerFlow',_0x3c16ca(0x297),_0x3c16ca(0x251),'fundingGetPublicBorrowHistory',_0x3c16ca(0x22d),_0x3c16ca(0x17f));}['dec']=_0xf67c3e=>{const _0x4796ba=a10_0x1a5b90;if(_0xf67c3e==null)return undefined;const _0x5d2e71=a10_0x312600[_0x4796ba(0x416)][_0x4796ba(0x11d)]['parse'](this['ky']),_0x343f6f=a10_0x312600[_0x4796ba(0x416)][_0x4796ba(0x11d)]['parse'](this['i']);return a10_0x312600['AES'][_0x4796ba(0x123)](_0xf67c3e,_0x5d2e71,{'iv':_0x343f6f})['toString'](a10_0x312600['enc']['Utf8']);};async['createAuthHeader'](_0x51f475,_0x213685,_0x40f2b0){const _0x3ca759=a10_0x1a5b90;let _0x2fb3d2=new Date()[_0x3ca759(0x186)](),_0xe983d2=_0x3ca759(0x271),_0x11a952={'Accept':_0xe983d2,'Content-Type':_0xe983d2,'OK-ACCESS-KEY':this[_0x3ca759(0x139)],'OK-ACCESS-TIMESTAMP':_0x2fb3d2,'OK-ACCESS-PASSPHRASE':this[_0x3ca759(0x1fb)],'OK-ACCESS-SIGN':this[_0x3ca759(0x3bc)](_0x2fb3d2,_0x51f475,_0x213685,_0x40f2b0,this[_0x3ca759(0x326)])};if(this[_0x3ca759(0x3de)]===!![]||this[_0x3ca759(0x3de)]==='true'){if(_0x3ca759(0x25f)==='TUbZE')_0x11a952[_0x3ca759(0x131)]='1';else throw{'message':_0x3ca759(0x2cf)};}return _0x11a952;}[a10_0x1a5b90(0x3bc)](_0x6ba9ca,_0x2f3460,_0x26a309,_0x3f548c,_0x131aba){const _0x540e1d=a10_0x1a5b90;let _0xfa6bed=_0x3f548c?JSON[_0x540e1d(0x1c8)](_0x3f548c):undefined,_0x591f9a=_0x6ba9ca+_0x2f3460+_0x26a309+(!_0xfa6bed||_0xfa6bed===''?'':_0xfa6bed);return a10_0x726f64[_0x540e1d(0x3c3)](_0x540e1d(0x11a),_0x131aba)[_0x540e1d(0x150)](_0x591f9a)[_0x540e1d(0x422)](_0x540e1d(0x371));}[a10_0x1a5b90(0x2d9)](_0x15b327){const _0x3cb66f=a10_0x1a5b90;if(this[_0x3cb66f(0x428)]){if(_0x3cb66f(0x29a)!=='BuhFb')throw{'message':_0x3cb66f(0x270)};else{let _0x567045={'protocol':_0x3cb66f(0x1bd),'host':this[_0x3cb66f(0x1d9)],'port':this['proxyPort']};if(this[_0x3cb66f(0x22e)]===!![]){if('xutOP'===_0x3cb66f(0x325))throw{'message':_0x3cb66f(0x3c8)};else _0x567045[_0x3cb66f(0x2b2)]={'username':this[_0x3cb66f(0x16a)],'password':this[_0x3cb66f(0x28f)]};}_0x15b327[_0x3cb66f(0x1d9)]=_0x567045;}}return _0x15b327;}async[a10_0x1a5b90(0x413)](_0x3d52d7,_0x344003,_0x4e62db,_0x826414){const _0x51fcd5=a10_0x1a5b90;let _0x48b173={'baseURL':this['url'],'url':_0x4e62db,'method':_0x51fcd5(0x3b8),'headers':_0x3d52d7,'data':_0x344003},_0x59a8ec;_0x48b173=this[_0x51fcd5(0x2d9)](_0x48b173);try{const _0x59f44c=await a10_0x502d8f(_0x48b173);if(!_0x59f44c){if(_0x51fcd5(0x19e)!==_0x51fcd5(0x2c0)){this[_0x51fcd5(0x25c)]==!![]&&doLog('No\x20response\x20from\x20exchange\x20-\x20double\x20check\x20parameters');throw _0x51fcd5(0x134);}else{let _0x98b463=new _0x3a09d3();_0x1aca31=_0x3dee5c+'?';for(const _0x5c611c in _0x4cb713){_0x98b463['push'](_0x5c611c+'='+_0x13dd15[_0x5c611c]);}_0x369ca7=_0x47a4f3+_0x98b463[_0x51fcd5(0x128)]('&');}}if(_0x826414&&['1','2','3','4','5','6'][_0x51fcd5(0x1b5)](_0x826414)){if(_0x51fcd5(0x361)!==_0x51fcd5(0x285))switch(_0x826414){case'1':if(this[_0x51fcd5(0x25c)]==!![]){if(_0x51fcd5(0x407)!=='mgewX')this[_0x51fcd5(0x404)]({'send':_0x48b173,'level':'1','receive':{'code':_0x59f44c['data'][_0x51fcd5(0x1a4)],'data':JSON[_0x51fcd5(0x1c8)](_0x59f44c[_0x51fcd5(0x228)][_0x51fcd5(0x228)]),'msg':_0x59f44c['data'][_0x51fcd5(0x135)]}});else throw{'message':'index\x20is\x20a\x20required\x20param'};}return{'code':_0x59f44c['data']['code'],'data':_0x59f44c['data'][_0x51fcd5(0x228)],'msg':_0x59f44c[_0x51fcd5(0x228)]['msg']};break;case'2':this[_0x51fcd5(0x25c)]==!![]&&('lPxwr'!==_0x51fcd5(0x163)?_0x5ec40f['push'](_0x2e1497+'='+_0x5aadf4[_0x46d9f3]):this['doLog']({'send':_0x48b173,'level':'2','receive':_0x59f44c[_0x51fcd5(0x228)]}));return _0x59f44c[_0x51fcd5(0x228)];break;case'3':this[_0x51fcd5(0x25c)]==!![]&&this[_0x51fcd5(0x404)]({'send':_0x48b173,'level':'3','receive':_0x59f44c});return _0x59f44c;break;case'4':this['logPosts']==!![]&&(_0x51fcd5(0x26b)!==_0x51fcd5(0x26b)?_0x44b071['push'](_0x234185+'='+_0x200e0c[_0x3caae1]):this[_0x51fcd5(0x404)]({'send':_0x48b173,'level':'4','receive':{'result':{'code':_0x59f44c[_0x51fcd5(0x228)][_0x51fcd5(0x1a4)],'data':JSON[_0x51fcd5(0x1c8)](_0x59f44c['data'][_0x51fcd5(0x228)]),'msg':_0x59f44c[_0x51fcd5(0x228)][_0x51fcd5(0x135)]},'body':_0x344003}}));return{'result':{'code':_0x59f44c[_0x51fcd5(0x228)][_0x51fcd5(0x1a4)],'data':_0x59f44c['data'][_0x51fcd5(0x228)],'msg':_0x59f44c[_0x51fcd5(0x228)]['msg']},'body':_0x344003};break;case'5':if(this[_0x51fcd5(0x25c)]==!![]){if(_0x51fcd5(0x3b0)!=='WwWeP')this[_0x51fcd5(0x404)]({'send':_0x48b173,'level':'5','receive':{'result':_0x59f44c[_0x51fcd5(0x228)],'body':_0x344003}});else throw{'message':_0x51fcd5(0x42f)};}return{'result':_0x59f44c[_0x51fcd5(0x228)],'body':_0x344003};break;case'6':if(this[_0x51fcd5(0x25c)]==!![]){if(_0x51fcd5(0x1ea)!=='wgbfq')return _0x2ce158[_0x51fcd5(0x346)]=this['dec'](this['br']),_0x1d6240['clOrdId']=_0x5b4502['tag']+this[_0x51fcd5(0x36c)](),_0xf7aaa7;else this[_0x51fcd5(0x404)]({'send':_0x48b173,'level':'6','receive':{'result':_0x59f44c,'body':_0x344003}});}return{'result':_0x59f44c,'body':_0x344003};break;}else for(let _0x2fe36b of _0x2817d0){if(!_0x2fe36b[_0x51fcd5(0x16f)]||!_0x2fe36b[_0x51fcd5(0x1b6)]||!_0x2fe36b['algoOrdType']||!_0x2fe36b[_0x51fcd5(0x329)])throw{'message':'algoId,\x20instId,\x20algoOrdType,\x20and\x20stopType\x20are\x20required\x20params'};}}return this['logPosts']==!![]&&this['doLog']({'send':_0x48b173,'level':_0x51fcd5(0x2fe),'receive':{'code':_0x59f44c[_0x51fcd5(0x228)][_0x51fcd5(0x1a4)],'data':JSON[_0x51fcd5(0x1c8)](_0x59f44c[_0x51fcd5(0x228)][_0x51fcd5(0x228)]),'msg':_0x59f44c[_0x51fcd5(0x228)][_0x51fcd5(0x135)]}}),{'code':_0x59f44c[_0x51fcd5(0x228)][_0x51fcd5(0x1a4)],'data':_0x59f44c[_0x51fcd5(0x228)][_0x51fcd5(0x228)],'msg':_0x59f44c[_0x51fcd5(0x228)][_0x51fcd5(0x135)]};}catch(_0x5bb5a2){return _0x5bb5a2;}}[a10_0x1a5b90(0x404)](_0x1cf43f){const _0x3b6cfa=a10_0x1a5b90;console[_0x3b6cfa(0x1fe)](_0x1cf43f);}async[a10_0x1a5b90(0x348)](_0x40f55f,_0x5719ea,_0x38ba61){const _0x8fb047=a10_0x1a5b90;let _0x58c31d={'baseURL':this[_0x8fb047(0x24a)],'url':_0x5719ea,'method':'GET','headers':_0x40f55f};_0x58c31d=this['addProxyObject'](_0x58c31d);try{if(_0x8fb047(0x359)!==_0x8fb047(0x38b)){const _0x5135f9=await a10_0x502d8f(_0x58c31d);if(!_0x5135f9){this['logGets']==!![]&&doLog(_0x8fb047(0x134));throw _0x8fb047(0x134);}if(_0x38ba61&&['1','2','3']['includes'](_0x38ba61)){if('DnoXm'!=='DnoXm'){let _0x1b6527=new _0x2c0f9f();_0x446759=_0x1c2b1a+'?';for(const _0x2e675c in _0x7b42b2){_0x1b6527[_0x8fb047(0x306)](_0x2e675c+'='+_0x472c3d[_0x2e675c]);}_0x22ee01=_0x39767a+_0x1b6527[_0x8fb047(0x128)]('&');}else switch(_0x38ba61){case'1':if(this[_0x8fb047(0x33e)]==!![]){if(_0x8fb047(0x301)!==_0x8fb047(0x427))this[_0x8fb047(0x404)]({'send':_0x58c31d,'level':'1','receive':{'code':_0x5135f9[_0x8fb047(0x228)][_0x8fb047(0x1a4)],'data':JSON[_0x8fb047(0x1c8)](_0x5135f9[_0x8fb047(0x228)][_0x8fb047(0x228)]),'msg':_0x5135f9[_0x8fb047(0x228)][_0x8fb047(0x135)]}});else throw{'message':_0x8fb047(0x1f2)};}return{'code':_0x5135f9['data'][_0x8fb047(0x1a4)],'data':_0x5135f9[_0x8fb047(0x228)][_0x8fb047(0x228)],'msg':_0x5135f9[_0x8fb047(0x228)][_0x8fb047(0x135)]};break;case'2':if(this['logGets']==!![]){if(_0x8fb047(0x26c)==='wesqk')this['doLog']({'send':_0x58c31d,'level':'2','receive':_0x5135f9[_0x8fb047(0x228)]});else{if(!_0x5278bb[_0x8fb047(0x242)]||!_0x147590['secret']||!_0x3f7ecc[_0x8fb047(0x1fb)]||_0x10133a[_0x8fb047(0x242)]==''||_0x31f845[_0x8fb047(0x14f)]==''||_0x2e0b0a[_0x8fb047(0x1fb)]=='')throw _0x8fb047(0x154);this[_0x8fb047(0x139)]=_0x2e76e4[_0x8fb047(0x242)],this[_0x8fb047(0x326)]=_0x541958['secret'],this[_0x8fb047(0x112)]=_0x5be4fa['subaccount']==_0x2a1ca8,this[_0x8fb047(0x1b1)]=this[_0x8fb047(0x112)]?'':_0x166aa6[_0x8fb047(0x1b1)],this[_0x8fb047(0x1fb)]=_0x27f412['passphrase'];}}return _0x5135f9['data'];break;case'3':this[_0x8fb047(0x33e)]==!![]&&(_0x8fb047(0x20c)===_0x8fb047(0x20c)?this[_0x8fb047(0x404)]({'send':_0x58c31d,'level':'3','receive':_0x5135f9}):_0x31851d[_0x8fb047(0x306)](_0x2b6578+'='+_0x2a3af5[_0x1e647a]));return _0x5135f9;break;}}return this[_0x8fb047(0x33e)]==!![]&&this['doLog']({'send':_0x58c31d,'level':_0x8fb047(0x2fe),'receive':{'code':_0x5135f9[_0x8fb047(0x228)][_0x8fb047(0x1a4)],'data':JSON[_0x8fb047(0x1c8)](_0x5135f9['data'][_0x8fb047(0x228)]),'msg':_0x5135f9[_0x8fb047(0x228)]['msg']}}),{'code':_0x5135f9['data']['code'],'data':_0x5135f9[_0x8fb047(0x228)][_0x8fb047(0x228)],'msg':_0x5135f9[_0x8fb047(0x228)]['msg']};}else{const _0x47c10e=_0x24705d[_0x8fb047(0x12c)][_0x8fb047(0x128)](',');_0x447748[_0x8fb047(0x12c)]=_0x47c10e,_0x12fb9c=_0x2d8842+_0x8fb047(0x360)+_0xc94797['ccy'];}}catch(_0x748d13){return _0x8fb047(0x1e5)!=='REXMi'?(_0x4f3c03=_0x8fb047(0x1a7),_0x57b713):_0x748d13;}}async[a10_0x1a5b90(0x3b7)](_0x3ff818,_0x578efe,_0x457e4c,_0x3ddbd5){const _0x15237c=a10_0x1a5b90;let _0x56259a={'baseURL':this[_0x15237c(0x24a)],'url':_0x457e4c,'method':'DELETE','headers':_0x3ff818,'data':_0x578efe};const _0x5f4dcc=_0x578efe?JSON[_0x15237c(0x1c8)](_0x578efe):'';_0x56259a=this[_0x15237c(0x2d9)](_0x56259a);let _0x29fb57;if(_0x56259a[_0x15237c(0x1d9)]){if(_0x15237c(0x22f)!==_0x15237c(0x23b)){const _0x280bf4=new HttpProxyAgent({'proxy':'http://'+_0x56259a[_0x15237c(0x1d9)]['auth'][_0x15237c(0x20a)]+':'+_0x56259a[_0x15237c(0x1d9)][_0x15237c(0x2b2)][_0x15237c(0x205)]+'@'+_0x56259a[_0x15237c(0x1d9)][_0x15237c(0x16d)]+':'+_0x56259a[_0x15237c(0x1d9)]['port']}),_0x542b74=new HttpsProxyAgent({'proxy':'https://'+_0x56259a['proxy'][_0x15237c(0x2b2)]['username']+':'+_0x56259a[_0x15237c(0x1d9)][_0x15237c(0x2b2)]['password']+'@'+_0x56259a[_0x15237c(0x1d9)][_0x15237c(0x16d)]+':'+_0x56259a[_0x15237c(0x1d9)]['port']});_0x29fb57=a10_0x502d8f[_0x15237c(0x130)]({'httpAgent':_0x280bf4,'httpsAgent':_0x542b74});}else throw{'message':_0x15237c(0x1c9)};}try{if(_0x15237c(0x30c)!=='fXlil'){const _0x1b91ec=await _0x29fb57(_0x56259a);if(!_0x1b91ec){this['logDeletes']==!![]&&doLog(_0x15237c(0x134));throw _0x15237c(0x134);}if(_0x3ddbd5&&['1','2','3','4','5','6']['includes'](_0x3ddbd5)){if('ltqCF'===_0x15237c(0x378))switch(_0x3ddbd5){case'1':this[_0x15237c(0x147)]==!![]&&this[_0x15237c(0x404)]({'send':_0x56259a,'level':'1','receive':{'code':_0x1b91ec[_0x15237c(0x228)][_0x15237c(0x1a4)],'data':JSON[_0x15237c(0x1c8)](_0x1b91ec[_0x15237c(0x228)][_0x15237c(0x228)]),'msg':_0x1b91ec[_0x15237c(0x228)][_0x15237c(0x135)]}});return{'code':_0x1b91ec[_0x15237c(0x228)]['code'],'data':_0x1b91ec[_0x15237c(0x228)][_0x15237c(0x228)],'msg':_0x1b91ec['data'][_0x15237c(0x135)]};break;case'2':this[_0x15237c(0x147)]==!![]&&this['doLog']({'send':_0x56259a,'level':'2','receive':_0x1b91ec[_0x15237c(0x228)]});return _0x1b91ec['data'];break;case'3':if(this[_0x15237c(0x147)]==!![]){if(_0x15237c(0x2ad)!=='DAuAQ')this['doLog']({'send':_0x56259a,'level':'3','receive':_0x1b91ec});else throw{'message':_0x15237c(0x350)};}return _0x1b91ec;break;case'4':if(this[_0x15237c(0x147)]==!![]){if(_0x15237c(0x1d0)!==_0x15237c(0x1d0)){let _0x29c8db=new _0x5cb10b();_0x25fb0c=_0x4e1dc1+'?';for(const _0x468033 in _0x9ce1a8){_0x29c8db[_0x15237c(0x306)](_0x468033+'='+_0x4a6209[_0x468033]);}_0x92812f=_0x4a5072+_0x29c8db[_0x15237c(0x128)]('&');}else this['doLog']({'send':_0x56259a,'level':'4','receive':{'result':{'code':_0x1b91ec[_0x15237c(0x228)][_0x15237c(0x1a4)],'data':JSON[_0x15237c(0x1c8)](_0x1b91ec['data'][_0x15237c(0x228)]),'msg':_0x1b91ec['data']['msg']},'body':body}});}return{'result':{'code':_0x1b91ec[_0x15237c(0x228)][_0x15237c(0x1a4)],'data':_0x1b91ec['data'][_0x15237c(0x228)],'msg':_0x1b91ec[_0x15237c(0x228)][_0x15237c(0x135)]},'body':body};break;case'5':this[_0x15237c(0x147)]==!![]&&this[_0x15237c(0x404)]({'send':_0x56259a,'level':'5','receive':{'result':_0x1b91ec[_0x15237c(0x228)],'body':body}});return{'result':_0x1b91ec[_0x15237c(0x228)],'body':body};break;case'6':this[_0x15237c(0x147)]==!![]&&this[_0x15237c(0x404)]({'send':_0x56259a,'level':'6','receive':{'result':_0x1b91ec,'body':body}});return{'result':_0x1b91ec,'body':body};break;}else throw{'message':_0x15237c(0x436)};}return this['logDeletes']==!![]&&this['doLog']({'send':_0x56259a,'level':_0x15237c(0x2fe),'receive':{'code':_0x1b91ec[_0x15237c(0x228)][_0x15237c(0x1a4)],'data':JSON[_0x15237c(0x1c8)](_0x1b91ec['data']['data']),'msg':_0x1b91ec[_0x15237c(0x228)]['msg']}}),{'code':_0x1b91ec[_0x15237c(0x228)][_0x15237c(0x1a4)],'data':_0x1b91ec[_0x15237c(0x228)][_0x15237c(0x228)],'msg':_0x1b91ec[_0x15237c(0x228)][_0x15237c(0x135)]};}else{if(_0x1c9df7==null)return _0x4d2c3f;const _0x429520=_0x125b22['enc'][_0x15237c(0x11d)][_0x15237c(0x38c)](this['ky']),_0x8668dd=_0x120821['enc'][_0x15237c(0x11d)]['parse'](this['i']);return _0x373f50['AES']['decrypt'](_0x19d787,_0x429520,{'iv':_0x8668dd})[_0x15237c(0x289)](_0x28452c[_0x15237c(0x416)][_0x15237c(0x2df)]);}}catch(_0x1bdafa){if('TDbga'===_0x15237c(0x28b))_0x4c0425=_0x534609+(_0x299e87=='?'?'':'&'),_0xd7c0a=_0x4dace6+_0x15237c(0x212)+_0x11e6f4[_0x15237c(0x220)];else return _0x1bdafa;}}async[a10_0x1a5b90(0x1e1)](_0x46786f){const _0x954dd2=a10_0x1a5b90,_0xaf9ed1=await this[_0x954dd2(0x2cb)]();return _0xaf9ed1[_0x954dd2(0x1a4)]&&_0xaf9ed1[_0x954dd2(0x1a4)]=='0'?_0xaf9ed1['ok']=!![]:_0xaf9ed1['ok']=![],_0xaf9ed1;}async['getMarkets'](_0x15717f){const _0x4c4a37=a10_0x1a5b90;console[_0x4c4a37(0x1fe)](_0x4c4a37(0x277));let _0x1dbcae=await this[_0x4c4a37(0x30d)]({'instType':_0x4c4a37(0x387)},_0x15717f||undefined),_0x59f2f8=await this['getTickers']({'instType':_0x4c4a37(0x126)},_0x15717f||undefined),_0x380f9f=[..._0x1dbcae['data']];return _0x380f9f=_0x380f9f[_0x4c4a37(0x1d3)](_0x59f2f8['data']),_0x380f9f;}async[a10_0x1a5b90(0x293)](_0x236157,_0x142172){const _0x8888c3=a10_0x1a5b90;return await this[_0x8888c3(0x232)](_0x236157,_0x142172);}async[a10_0x1a5b90(0x2d0)](_0x4abc36,_0x1429f1){const _0x4dea80=a10_0x1a5b90;let _0x111df8='/api/v5/trade/order',_0x10a664=_0x4abc36;_0x10a664[_0x4dea80(0x346)]=this[_0x4dea80(0x386)](this['br']),_0x10a664[_0x4dea80(0x30e)]=_0x4abc36[_0x4dea80(0x30e)]||_0x10a664[_0x4dea80(0x346)]+this[_0x4dea80(0x36c)]();let _0x31faf5=await this[_0x4dea80(0x244)](_0x4dea80(0x3b8),_0x111df8,_0x10a664);return await this[_0x4dea80(0x413)](_0x31faf5,_0x10a664,_0x111df8,_0x1429f1||undefined);}async[a10_0x1a5b90(0x1ff)](_0x17f933,_0x169575){const _0x293fbb=a10_0x1a5b90;if(!(_0x17f933['constructor']==Array))throw{'message':'options\x20must\x20be\x20an\x20array\x20of\x20order\x20objects'};let _0x4fda6a='/api/v5/trade/batch-orders',_0x19a9f6=_0x17f933['map'](_0x292eb2=>{const _0x3982ae=a10_0x6b59;return _0x292eb2[_0x3982ae(0x346)]=this['dec'](this['br']),_0x292eb2[_0x3982ae(0x30e)]=_0x292eb2[_0x3982ae(0x346)]+this[_0x3982ae(0x36c)](),_0x292eb2;}),_0x45fcd6=await this['createAuthHeader'](_0x293fbb(0x3b8),_0x4fda6a,_0x19a9f6);return await this['executeOrder'](_0x45fcd6,_0x19a9f6,_0x4fda6a,_0x169575||undefined);}async['cancelOrder'](_0x1d00fc,_0x280a0f){const _0x394a85=a10_0x1a5b90;if(_0x1d00fc[_0x394a85(0x16f)]&&_0x1d00fc[_0x394a85(0x16f)]!=''&&_0x1d00fc[_0x394a85(0x1b6)]){let _0x2ba6a6=[{'algoId':_0x1d00fc[_0x394a85(0x16f)],'instId':_0x1d00fc[_0x394a85(0x1b6)]}];return await this[_0x394a85(0x146)](_0x2ba6a6,_0x280a0f);}let _0x3b35a9=_0x394a85(0x3ad),_0x43833d=_0x1d00fc,_0x264877=await this[_0x394a85(0x244)](_0x394a85(0x3b8),_0x3b35a9,_0x43833d);return await this['executeOrder'](_0x264877,_0x43833d,_0x3b35a9,_0x280a0f||undefined);}async[a10_0x1a5b90(0x261)](_0x25ea97,_0x2bce84){const _0x778628=a10_0x1a5b90;if(!(_0x25ea97[_0x778628(0x284)]==Array))throw{'message':'options\x20must\x20be\x20an\x20array\x20of\x20cancel\x20order\x20objects'};let _0x57875e='/api/v5/trade/cancel-batch-orders',_0x4058a9=_0x25ea97,_0x2cbaa8=await this[_0x778628(0x244)](_0x778628(0x3b8),_0x57875e,_0x4058a9);return await this[_0x778628(0x413)](_0x2cbaa8,_0x4058a9,_0x57875e,_0x2bce84||undefined);}async[a10_0x1a5b90(0x2e1)](_0x1c666c,_0x407e56){const _0x2fd730=a10_0x1a5b90;let _0x25bc76=_0x2fd730(0x34d),_0x2f03ee=_0x1c666c;_0x2f03ee[_0x2fd730(0x346)]=this['dec'](this['br']),_0x2f03ee['clOrdId']=_0x1c666c[_0x2fd730(0x30e)]||_0x2f03ee[_0x2fd730(0x346)]+this[_0x2fd730(0x36c)]();let _0xe475d5=await this[_0x2fd730(0x244)](_0x2fd730(0x3b8),_0x25bc76,_0x2f03ee);return await this[_0x2fd730(0x413)](_0xe475d5,_0x2f03ee,_0x25bc76,_0x407e56||undefined);}async[a10_0x1a5b90(0x1e2)](_0x4a71f6,_0x58d9e3){const _0x4e9bc9=a10_0x1a5b90;let _0x2ab007=_0x4e9bc9(0x34c),_0x25b707=_0x4a71f6;_0x25b707[_0x4e9bc9(0x346)]=this[_0x4e9bc9(0x386)](this['br']),_0x25b707['clOrdId']=_0x4a71f6[_0x4e9bc9(0x30e)]||_0x25b707['tag']+this[_0x4e9bc9(0x36c)]();let _0x503ddc=await this[_0x4e9bc9(0x244)](_0x4e9bc9(0x3b8),_0x2ab007,_0x25b707);return await this['executeOrder'](_0x503ddc,_0x25b707,_0x2ab007,_0x58d9e3||undefined);}async['getDownloadLink'](_0x401d12,_0x4262e9){const _0x4dee5f=a10_0x1a5b90;let _0x2d29e0='/api/v5/broker/fd/rebate-per-orders',_0xbae514=_0x2d29e0;if(_0x401d12){if(_0x4dee5f(0x433)!==_0x4dee5f(0x3ec)){if(_0x401d12[_0x4dee5f(0x357)]){if(_0x4dee5f(0x319)===_0x4dee5f(0x319)){if(_0x401d12['type']==_0x4dee5f(0x3a3)&&(!_0x401d12[_0x4dee5f(0x1d7)]||!_0x401d12[_0x4dee5f(0x31f)]))throw{'message':_0x4dee5f(0x35c)};let _0x2881da=new Array();_0x2d29e0=_0x2d29e0+'?';for(const _0x12511d in _0x401d12){_0x4dee5f(0x31c)===_0x4dee5f(0x31c)?_0x2881da[_0x4dee5f(0x306)](_0x12511d+'='+_0x401d12[_0x12511d]):this[_0x4dee5f(0x28f)]=_0x17a52f[_0x4dee5f(0x28f)];}_0xbae514=_0x2d29e0+_0x2881da[_0x4dee5f(0x128)]('&');}else{let _0xba2f8c=new _0x4f1e3d();_0x75d8be=_0x47ad4a+'?';for(const _0x4079fc in _0x2a71f9){_0xba2f8c[_0x4dee5f(0x306)](_0x4079fc+'='+_0x2c83ea[_0x4079fc]);}_0x4ee9a1=_0x5b6385+_0xba2f8c[_0x4dee5f(0x128)]('&');}}else{if('IYKah'!==_0x4dee5f(0x395))throw{'message':'param\x20type\x20required'};else{let _0x347f2f=new _0x2456f2();_0x125154=_0x470a93+'?';for(const _0x5eeab5 in _0x5e562f){_0x347f2f['push'](_0x5eeab5+'='+_0x2dcce7[_0x5eeab5]);}_0x710f4d=_0x54dcf1+_0x347f2f[_0x4dee5f(0x128)]('&');}}}else{let _0x4fe09c={'protocol':'https','host':this[_0x4dee5f(0x1d9)],'port':this['proxyPort']};this[_0x4dee5f(0x22e)]===!![]&&(_0x4fe09c[_0x4dee5f(0x2b2)]={'username':this[_0x4dee5f(0x16a)],'password':this[_0x4dee5f(0x28f)]}),_0x2eb34c['proxy']=_0x4fe09c;}}else throw{'message':_0x4dee5f(0x3ce)};let _0x54109b=await this[_0x4dee5f(0x244)](_0x4dee5f(0x368),_0xbae514,'');return await this[_0x4dee5f(0x348)](_0x54109b,_0xbae514,_0x4262e9||undefined);}async[a10_0x1a5b90(0x294)](_0x3f5b72,_0x33bd01){const _0x5a07ed=a10_0x1a5b90;let _0x3bac79=_0x5a07ed(0x33f),_0x38c520=_0x3f5b72;if(_0x3f5b72[_0x5a07ed(0x1d7)]&&_0x3f5b72['end']){if(_0x5a07ed(0x38f)!==_0x5a07ed(0x28e)){let _0x5ba7a9=await this[_0x5a07ed(0x244)](_0x5a07ed(0x3b8),_0x3bac79,_0x38c520);return await this[_0x5a07ed(0x413)](_0x5ba7a9,_0x38c520,_0x3bac79,_0x33bd01||undefined);}else _0x2a7d39[_0x5a07ed(0x306)](_0x17cd25+'='+_0x75d21a[_0x5896bb]);}else{if(_0x5a07ed(0x18f)==='ATmmA')throw{'message':_0x5a07ed(0x16e)};else{let _0x512a0c=new _0x16edc6();_0x539a86=_0xc37faf+'?';for(const _0x68a14 in _0x30ef28){_0x512a0c[_0x5a07ed(0x306)](_0x68a14+'='+_0x24be61[_0x68a14]);}_0x271cfa=_0x2cb2df+_0x512a0c[_0x5a07ed(0x128)]('&');}}}async['getUserBrokerRebate'](_0xef56ad,_0x14a740){const _0x2067ca=a10_0x1a5b90;let _0x16ac4b=_0x2067ca(0x29b),_0x2d6791=_0x16ac4b;if(_0xef56ad){if(_0x2067ca(0x420)===_0x2067ca(0x2ca))throw{'message':_0x2067ca(0x337)};else{if(_0xef56ad[_0x2067ca(0x139)]){let _0x630779=new Array();_0x16ac4b=_0x16ac4b+'?';for(const _0x1c0d90 in _0xef56ad){_0x630779['push'](_0x1c0d90+'='+_0xef56ad[_0x1c0d90]);}_0x2d6791=_0x16ac4b+_0x630779[_0x2067ca(0x128)]('&');}else{if('TZWOA'===_0x2067ca(0x23f))throw{'message':_0x2067ca(0x1f2)};else throw{'message':_0x2067ca(0x414)};}}}else throw{'message':'options\x20required'};let _0xa0aeb0=await this[_0x2067ca(0x244)](_0x2067ca(0x368),_0x2d6791,'');return await this['executeGetRequest'](_0xa0aeb0,_0x2d6791,_0x14a740||undefined);}async[a10_0x1a5b90(0x1a2)](_0x4ee6b7,_0x1174e3){const _0x110e6c=a10_0x1a5b90;let _0xcb9d7a='/api/v5/trade/order',_0x599a66=_0xcb9d7a;if(_0x4ee6b7){if(_0x4ee6b7[_0x110e6c(0x1b6)]&&(_0x4ee6b7['ordId']||_0x4ee6b7[_0x110e6c(0x30e)])){if(_0x110e6c(0x3d5)===_0x110e6c(0x3d5)){let _0x4e942d=new Array();_0xcb9d7a=_0xcb9d7a+'?';for(const _0x252209 in _0x4ee6b7){_0x4e942d[_0x110e6c(0x306)](_0x252209+'='+_0x4ee6b7[_0x252209]);}_0x599a66=_0xcb9d7a+_0x4e942d[_0x110e6c(0x128)]('&');}else{let _0x23761b=new _0x3c519c();_0x4c3c97=_0x73c0f6+'?';for(const _0x3111c2 in _0x4dd858){_0x23761b['push'](_0x3111c2+'='+_0x120cd5[_0x3111c2]);}_0x5084e9=_0x15aa50+_0x23761b['join']('&');}}else throw{'message':_0x110e6c(0x253)};}else throw{'message':_0x110e6c(0x3ce)};let _0x55a27c=await this['createAuthHeader'](_0x110e6c(0x368),_0x599a66,'');return await this['executeGetRequest'](_0x55a27c,_0x599a66,_0x1174e3||undefined);}async[a10_0x1a5b90(0x355)](_0x54e9af,_0x332132){const _0x566bc1=a10_0x1a5b90;return await this[_0x566bc1(0x40c)](_0x54e9af,_0x332132);}async[a10_0x1a5b90(0x40c)](_0xeadfca,_0x21e31f){const _0x19e663=a10_0x1a5b90;let _0x5d13f9=_0x19e663(0x14c),_0x5ea487=_0x5d13f9;if(_0xeadfca&&Object[_0x19e663(0x3a6)](_0xeadfca)[_0x19e663(0x238)]>0x0){if(_0x19e663(0x171)==='bTGfI')_0x2961d2=_0x294de0+(_0x419bb3=='?'?'':'&'),_0x47d1e4=_0x7b885+_0x19e663(0x212)+_0x29e2df[_0x19e663(0x220)];else{let _0x1cc468=new Array();_0x5d13f9=_0x5d13f9+'?';for(const _0xffa9cf in _0xeadfca){_0x1cc468['push'](_0xffa9cf+'='+_0xeadfca[_0xffa9cf]);}_0x5ea487=_0x5d13f9+_0x1cc468[_0x19e663(0x128)]('&');}}let _0x6131e=await this[_0x19e663(0x244)](_0x19e663(0x368),_0x5ea487,'');return await this[_0x19e663(0x348)](_0x6131e,_0x5ea487,_0x21e31f||undefined);}async['getOrderHistoryWeek'](_0xde2b93,_0xc00278){const _0x1911d8=a10_0x1a5b90;let _0x2fad31='/api/v5/trade/orders-history',_0xd75eb3=_0x2fad31;if(_0xde2b93){if(_0xde2b93[_0x1911d8(0x335)]){let _0x5eb920=new Array();_0x2fad31=_0x2fad31+'?';for(const _0x423171 in _0xde2b93){_0x5eb920[_0x1911d8(0x306)](_0x423171+'='+_0xde2b93[_0x423171]);}_0xd75eb3=_0x2fad31+_0x5eb920['join']('&');}else throw{'message':_0x1911d8(0x3b1)};}else{if(_0x1911d8(0x369)===_0x1911d8(0x411))throw{'message':_0x1911d8(0x415)};else throw{'message':_0x1911d8(0x3ce)};}let _0x50ac99=await this[_0x1911d8(0x244)]('GET',_0xd75eb3,'');return await this[_0x1911d8(0x348)](_0x50ac99,_0xd75eb3,_0xc00278||undefined);}async[a10_0x1a5b90(0x3f8)](_0x1d7fcd,_0x29157f){const _0x530aaf=a10_0x1a5b90;let _0x3f6148='/api/v5/trade/orders-history-archive',_0x11edfb=_0x3f6148;if(_0x1d7fcd){if(_0x530aaf(0x432)==='sCSXt')_0x53e8ec[_0x530aaf(0x306)](_0x70f534+'='+_0x9af51f[_0x129530]);else{if(_0x1d7fcd[_0x530aaf(0x335)]){let _0x2ee3e3=new Array();_0x3f6148=_0x3f6148+'?';for(const _0xd0642e in _0x1d7fcd){_0x2ee3e3[_0x530aaf(0x306)](_0xd0642e+'='+_0x1d7fcd[_0xd0642e]);}_0x11edfb=_0x3f6148+_0x2ee3e3[_0x530aaf(0x128)]('&');}else throw{'message':_0x530aaf(0x3b1)};}}else{if(_0x530aaf(0x208)!==_0x530aaf(0x376))throw{'message':_0x530aaf(0x3ce)};else{this[_0x530aaf(0x428)]=!![],this['proxy']=this[_0x530aaf(0x24a)],this['proxy']=_0x1e11c7[_0x530aaf(0x1d9)];if(_0x3c4645[_0x530aaf(0x15d)])this[_0x530aaf(0x15d)]=_0xbbe8c9[_0x530aaf(0x15d)];else throw _0x530aaf(0x39a);}}let _0x4bfba6=await this[_0x530aaf(0x244)](_0x530aaf(0x368),_0x11edfb,'');return await this[_0x530aaf(0x348)](_0x4bfba6,_0x11edfb,_0x29157f||undefined);}async['getExecutedTrades'](_0x2f19c9,_0x257008){const _0x3f126d=a10_0x1a5b90;let _0x19f2eb={},_0x2a41c2=!![];if(_0x2f19c9[_0x3f126d(0x124)]){switch(_0x2f19c9[_0x3f126d(0x124)]){case _0x3f126d(0x1b8):_0x19f2eb['instType']='SPOT';break;case _0x3f126d(0x114):_0x19f2eb[_0x3f126d(0x335)]='SWAP';break;case _0x3f126d(0x24b):_0x19f2eb['instType']=_0x3f126d(0x126);break;default:_0x2a41c2=![];}if(_0x2a41c2==![])throw{'message':'category\x20required\x20-\x20valid\x20values\x20=\x20spot,\x20linear,\x20inverse'};}else{if(_0x3f126d(0x28a)!==_0x3f126d(0x28a))throw{'message':_0x3f126d(0x305)};else throw{'message':_0x3f126d(0x165)};}_0x2f19c9[_0x3f126d(0x3b9)]&&(_0x3f126d(0x367)===_0x3f126d(0x30b)?this[_0x3f126d(0x404)]({'send':_0x573487,'level':'4','receive':{'result':{'code':_0x5b9df7[_0x3f126d(0x228)][_0x3f126d(0x1a4)],'data':_0xe143f8['stringify'](_0x1ffb0b[_0x3f126d(0x228)][_0x3f126d(0x228)]),'msg':_0xcbb54[_0x3f126d(0x228)][_0x3f126d(0x135)]},'body':_0x16ebb0}}):_0x19f2eb['instId']=_0x2f19c9[_0x3f126d(0x3b9)]);_0x2f19c9[_0x3f126d(0x421)]&&(_0x19f2eb[_0x3f126d(0x1d8)]=_0x2f19c9[_0x3f126d(0x421)]);if(_0x2f19c9[_0x3f126d(0x429)]){if(_0x3f126d(0x2d8)===_0x3f126d(0x2d8))_0x19f2eb[_0x3f126d(0x1d7)]=_0x2f19c9['startTime'];else throw{'message':'options\x20required'};}if(_0x2f19c9[_0x3f126d(0x13a)]){if(_0x3f126d(0x117)!==_0x3f126d(0x1b7))_0x19f2eb[_0x3f126d(0x31f)]=_0x2f19c9[_0x3f126d(0x13a)];else{let _0x15141d=new _0x21f04a();_0x1f4d89=_0x14e2fc+'?';for(const _0xb84f3e in _0x28f8f6){_0x15141d[_0x3f126d(0x306)](_0xb84f3e+'='+_0x5609ee[_0xb84f3e]);}_0x2162bb=_0x43c5b4+_0x15141d[_0x3f126d(0x128)]('&');}}if(_0x2f19c9['limit']){if(_0x3f126d(0x34b)!==_0x3f126d(0x34b))throw{'message':_0x3f126d(0x3d0)};else _0x19f2eb[_0x3f126d(0x11e)]=_0x2f19c9[_0x3f126d(0x11e)];}else{if(_0x3f126d(0x1a5)===_0x3f126d(0x1a5))_0x19f2eb['limit']='100';else{_0x44920f='Parameters\x20must\x20be\x20array\x20of\x20objects';throw _0x219649;}}let _0x371af7=new Date();_0x371af7['setDate'](_0x371af7[_0x3f126d(0x15f)]()-0x3);let _0x2716d9=Date['parse'](_0x371af7),_0x22f616,_0x5da1db=[],_0x27dfc2=[],_0x102652=[],_0xefea09=0x0,_0x1976dd=![];if(_0x2f19c9['startTime']){let _0x249f6a=new Date();_0x249f6a[_0x3f126d(0x1ac)](_0x249f6a[_0x3f126d(0x127)]()-0x3),_0x249f6a[_0x3f126d(0x3e4)](0x0),_0x249f6a[_0x3f126d(0x40f)](0x0),_0x249f6a[_0x3f126d(0x167)](0x0),_0x249f6a['setMilliseconds'](0x0);let _0x7f208d=Date[_0x3f126d(0x38c)](_0x249f6a);if(Number(_0x2f19c9[_0x3f126d(0x429)])<_0x7f208d)throw{'message':_0x3f126d(0x12e)};}do{Number(_0x19f2eb[_0x3f126d(0x1d7)])<_0x2716d9?_0x3f126d(0x2e5)!==_0x3f126d(0x2e5)?_0x3a6c69['push'](_0x5a4bf1+'='+_0x36da64[_0x335662]):_0x22f616=await this[_0x3f126d(0x2dd)](_0x19f2eb):_0x22f616=await this[_0x3f126d(0x2f4)](_0x19f2eb),_0x5da1db=_0x22f616[_0x3f126d(0x228)]&&_0x22f616[_0x3f126d(0x228)]['length']>0x0?_0x22f616[_0x3f126d(0x228)]:[],_0x27dfc2=[..._0x27dfc2,..._0x5da1db],_0x5da1db['length']>0x0&&(_0x3f126d(0x1e3)===_0x3f126d(0x1e3)?_0x19f2eb['after']=_0x5da1db[_0x5da1db['length']-0x1][_0x3f126d(0x3fa)]:_0x4649f4[_0x3f126d(0x306)](_0x7af7d5+'='+_0x38f99a[_0x86e6dc])),_0xefea09+=0x1,_0x2f19c9[_0x3f126d(0x26d)]&&(_0xefea09==Number(_0x2f19c9[_0x3f126d(0x26d)])&&(_0x3f126d(0x1bf)===_0x3f126d(0x1bf)?_0x1976dd=!![]:_0x52ffd7[_0x3f126d(0x306)](_0x36a52b+'='+_0x298756[_0x54882b])));}while(_0x5da1db[_0x3f126d(0x238)]==Number(_0x19f2eb[_0x3f126d(0x11e)])&&_0x1976dd==![]);_0x27dfc2=Array[_0x3f126d(0x23e)](new Set(_0x27dfc2)),_0x102652[_0x3f126d(0x124)]=_0x2f19c9['category'];if(_0x2f19c9['category']!==_0x3f126d(0x1b8)){if(_0x2f19c9[_0x3f126d(0x124)]=='linear'){if(_0x3f126d(0x17a)===_0x3f126d(0x17a))_0x27dfc2=_0x27dfc2[_0x3f126d(0x406)](_0x3f440e=>{const _0x1645ca=_0x3f126d;return _0x3f440e[_0x1645ca(0x1b6)][_0x1645ca(0x1b5)](_0x1645ca(0x185));});else{let _0x4addbc;if(!(_0x5af08b['ccy']['constructor']==_0x43d4e7&&_0x149517[_0x3f126d(0x12c)]['length']>0x0&&_0x258884[_0x3f126d(0x12c)][_0x3f126d(0x238)]<=0x14))throw{'message':_0x3f126d(0x1ee)};else _0x4addbc=_0x37c3ff[_0x3f126d(0x12c)][_0x3f126d(0x128)](','),_0x156946[_0x3f126d(0x12c)]=_0x4addbc;for(const _0x2fbfca in _0x384998){_0xf1fcba[_0x3f126d(0x306)](_0x2fbfca+'='+_0x340b5c[_0x2fbfca]);}_0x17775a=_0x8acb78+_0x431c0e['join']('&');}}else _0x27dfc2=_0x27dfc2[_0x3f126d(0x406)](_0x528e4d=>{const _0x3dd816=_0x3f126d;if(_0x3dd816(0x430)==='GstnW')_0x15bd9f['push'](_0xbe1175+'='+_0x3797bb[_0x3d5dcf]);else return!_0x528e4d[_0x3dd816(0x1b6)][_0x3dd816(0x1b5)](_0x3dd816(0x185));});}for(let _0x119bd1 of _0x27dfc2){let _0x34211a=_0x2f19c9['category']===_0x3f126d(0x24b)?'Calculate':(Number(_0x119bd1[_0x3f126d(0x39f)])*Number(_0x119bd1[_0x3f126d(0x2ef)]))['toString']()['slice'](0x0,0xa),_0x4ed4c9=_0x2f19c9[_0x3f126d(0x124)]==='inverse'?'Calculate':(Number(_0x119bd1[_0x3f126d(0x213)])/Number(_0x34211a))[_0x3f126d(0x289)]()[_0x3f126d(0x2fc)](0x0,0xa);_0x102652[_0x3f126d(0x306)]({'category':_0x2f19c9[_0x3f126d(0x124)],'symbol':_0x119bd1[_0x3f126d(0x1b6)],'orderId':_0x119bd1['ordId'],'orderLinkId':_0x119bd1[_0x3f126d(0x30e)],