UNPKG

@coinex-org/coinex

Version:

A lightweight, type-safe TypeScript HTTP client for the official CoinEx API v2, covering all major modules including Spot, Futures, Account, and Assets.

2 lines (1 loc) 20.3 kB
var Me=Object.defineProperty;var r=(n,e)=>Me(n,"name",{value:e,configurable:!0});import W from"deepmerge";import Te from"ky";import{createHmac as Ce}from"crypto";function v(n,e,t,o,i){let a=`${n.toUpperCase()}${e}${t||""}${o}`,c=Ce("sha256",i);return c.update(a),c.digest("hex").toLowerCase()}r(v,"signRequest");var f=class extends Error{static{r(this,"CoinExAPIError")}code;constructor(e,t){super(t),this.name="CoinExAPIError",this.code=e}};import Ae from"deepmerge";import Ge from"deepmerge";function s(n,e=!1){let t={};for(let o in n)n[o]!==void 0&&(e&&typeof n[o]=="object"&&n[o]!==null?t[o]=s(n[o],!0):t[o]=n[o]);return t}r(s,"noUndefined");var y=class{static{r(this,"Fees")}#e;constructor(e){this.#e=e}getAccountTradeFees(e,t={}){return this.#e.request("account/trade-fees",Ge({method:"GET",searchParams:s(e)},t))}};import N from"deepmerge";var q=class{static{r(this,"Settings")}#e;constructor(e){this.#e=e}getFuturesMarketSettings(e={}){return this.#e.request("account/futures/settings",N({method:"GET"},e))}modifyAccountSettings(e,t={}){return this.#e.request("account/settings",N({method:"POST",json:s(e)},t))}modifyFuturesMarketSettings(e,t={}){return this.#e.request("account/futures/settings",N({method:"POST",json:s(e)},t))}};import P from"deepmerge";var E=class{static{r(this,"SubAccount")}#e;constructor(e){this.#e=e}createSubAccount(e,t={}){return this.#e.request("account/subs",P({method:"POST",json:s(e)},t))}getSubAccountList(e={},t={}){return this.#e.request("account/subs",P({method:"GET",searchParams:s(e)},t))}disableSubAccount(e,t={}){return this.#e.request("account/subs/frozen",P({method:"POST",json:s(e)},t))}enableSubAccount(e,t={}){return this.#e.request("account/subs/unfrozen",P({method:"POST",json:s(e)},t))}createSubAccountApiKey(e,t={}){return this.#e.request("account/subs/api",P({method:"POST",json:s(e)},t))}getSubAccountApiKeyDetail(e,t={}){return this.#e.request("account/subs/api-detail",P({method:"GET",searchParams:s(e)},t))}getSubAccountInfo(e={}){return this.#e.request("account/subs/info",P({method:"GET"},e))}subAccountTransfer(e,t={}){return this.#e.request("account/subs/transfer",P({method:"POST",json:s(e)},t))}getSubAccountTransferHistory(e,t={}){return this.#e.request("account/subs/transfer-history",P({method:"GET",searchParams:s(e)},t))}getSubAccountApiKeyList(e,t={}){return this.#e.request("account/subs/api",P({method:"GET",searchParams:s(e)},t))}getSubAccountSpotBalance(e,t={}){return this.#e.request("account/subs/spot-balance",P({method:"GET",searchParams:s(e)},t))}editSubAccountApiKey(e,t={}){return this.#e.request("account/subs/api",P({method:"PUT",json:s(e)},t))}deleteSubAccountApiKey(e,t={}){return this.#e.request("account/subs/api",P({method:"DELETE",json:s(e)},t))}};var L=class{static{r(this,"Account")}#e;subaccount;fees;settings;constructor(e){this.#e=e,this.subaccount=new E(e),this.fees=new y(e),this.settings=new q(e)}getAccountInfo(e={}){return this.#e.request("account/info",Ae({method:"GET"},e))}};import M from"deepmerge";var C=class{static{r(this,"Amm")}#e;constructor(e){this.#e=e}addAMMLiquidity(e,t={}){return this.#e.request("assets/amm/liquidity",M({method:"POST",json:s(e)},t))}getAMMIncomeHistory(e,t={}){return this.#e.request("assets/amm/income-history",M({method:"GET",searchParams:s(e)},t))}getAMMLiquidityPool(e,t={}){return this.#e.request("assets/amm/liquidity-pool",M({method:"GET",searchParams:s(e)},t))}removeAMMLiquidity(e,t={}){return this.#e.request("assets/amm/liquidity",M({method:"DELETE",json:s(e)},t))}};import O from"deepmerge";var G=class{static{r(this,"Balance")}#e;constructor(e){this.#e=e}getAMMLiquidity(e={},t={}){return this.#e.request("assets/amm-liquidity",O({method:"GET",searchParams:s(e)},t))}getCreditBalance(e={},t={}){return this.#e.request("assets/credit-balance",O({method:"GET",searchParams:s(e)},t))}getCreditInfo(e={},t={}){return this.#e.request("assets/credit-info",O({method:"GET",searchParams:s(e)},t))}getFinancialBalance(e={},t={}){return this.#e.request("assets/financial-balance",O({method:"GET",searchParams:s(e)},t))}getFuturesBalance(e={},t={}){return this.#e.request("assets/futures-balance",O({method:"GET",searchParams:s(e)},t))}getMarginBalance(e,t={}){return this.#e.request("assets/margin-balance",O({method:"GET",searchParams:s(e)},t))}getSpotBalance(e={},t={}){return this.#e.request("assets/spot-balance",O({method:"GET",searchParams:s(e)},t))}getSpotTransactionHistory(e={},t={}){return this.#e.request("assets/spot-transaction-history",O({method:"GET",searchParams:s(e)},t))}};import A from"deepmerge";var T=class{static{r(this,"BorrowRepay")}#e;constructor(e){this.#e=e}getMarginBorrowHistory(e,t={}){return this.#e.request("assets/margin-borrow-history",A({method:"GET",searchParams:s(e)},t))}getMarginInterestLimit(e,t={}){return this.#e.request("assets/margin-interest-limit",A({method:"GET",searchParams:s(e)},t))}marginBorrow(e,t={}){return this.#e.request("assets/margin-borrow",A({method:"POST",json:s(e)},t))}marginRepay(e,t={}){return this.#e.request("assets/margin-repay",A({method:"POST",json:s(e)},t))}};import R from"deepmerge";var g=class{static{r(this,"DepositWithdrawal")}#e;constructor(e){this.#e=e}cancelWithdrawal(e,t={}){return this.#e.request("assets/withdrawal/cancel",R({method:"POST",json:s(e)},t))}getDepositAddress(e,t={}){return this.#e.request("assets/deposit-address",R({method:"GET",searchParams:s(e)},t))}getDepositWithdrawalConfig(e,t={}){return this.#e.request("assets/deposit-withdraw-config",R({method:"GET",searchParams:s(e)},t))}getAllDepositWithdrawalConfig(e={}){return this.#e.request("assets/all-deposit-withdraw-config",R({method:"GET"},e))}getAssetInfo(e,t={}){return this.#e.request("assets/info",R({method:"GET",searchParams:s(e)},t))}getDepositHistory(e,t={}){return this.#e.request("assets/deposit-history",R({method:"GET",searchParams:s(e)},t))}getWithdrawalHistory(e,t={}){return this.#e.request("assets/withdrawal-history",R({method:"GET",searchParams:s(e)},t))}updateDepositAddress(e,t={}){return this.#e.request("assets/deposit-address",R({method:"PUT",json:s(e)},t))}withdrawal(e,t={}){return this.#e.request("assets/withdrawal",R({method:"POST",json:s(e)},t))}};import X from"deepmerge";var x=class{static{r(this,"Transfer")}#e;constructor(e){this.#e=e}getAssetTransferHistory(e,t={}){return this.#e.request("assets/transfer-history",X({method:"GET",searchParams:s(e)},t))}transfer(e,t={}){return this.#e.request("assets/transfer",X({method:"POST",json:s(e)},t))}};var k=class{static{r(this,"Assets")}amm;balance;borrowRepay;depositWithdrawal;transfer;constructor(e){this.amm=new C(e),this.balance=new G(e),this.borrowRepay=new T(e),this.depositWithdrawal=new g(e),this.transfer=new x(e)}};var b=class{static{r(this,"Maintain")}#e;constructor(e){this.#e=e}getMaintenanceInfo(e={}){return this.#e.request("maintain/info",{method:"GET",...e,context:{public:!0}})}};import V from"deepmerge";var I=class{static{r(this,"Deal")}#e;constructor(e){this.#e=e}listUserDeals(e,t={}){return this.#e.request("spot/user-deals",V({method:"GET",searchParams:s(e)},t))}listUserOrderDeals(e,t={}){return this.#e.request("spot/order-deals",V({method:"GET",searchParams:s(e)},t))}};import S from"deepmerge";var D=class{static{r(this,"Market")}#e;constructor(e){this.#e=e}listMarket(e={},t={}){return this.#e.request("spot/market",S({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketTicker(e={},t={}){return this.#e.request("spot/ticker",S({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketDepth(e,t={}){return this.#e.request("spot/depth",S({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketKline(e,t={}){return this.#e.request("spot/kline",S({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketDeals(e,t={}){return this.#e.request("spot/deals",S({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketIndex(e={},t={}){return this.#e.request("spot/index",S({method:"GET",searchParams:s(e),context:{public:!0}},t))}};import u from"deepmerge";var H=class{static{r(this,"SpotOrder")}#e;constructor(e){this.#e=e}putOrder(e,t={}){return this.#e.request("spot/order",u({method:"POST",json:s(e)},t))}putStopOrder(e,t={}){return this.#e.request("spot/stop-order",u({method:"POST",json:s(e)},t))}getOrderStatus(e,t={}){return this.#e.request("spot/order-status",u({method:"GET",searchParams:s(e)},t))}getMultiOrderStatus(e,t={}){return this.#e.request("spot/multi-order-status",u({method:"GET",searchParams:s(e)},t))}listPendingOrder(e,t={}){return this.#e.request("spot/pending-order",u({method:"GET",searchParams:s(e)},t))}listFinishedOrder(e,t={}){return this.#e.request("spot/finished-order",u({method:"GET",searchParams:s(e)},t))}listPendingStopOrder(e,t={}){return this.#e.request("spot/pending-stop-order",u({method:"GET",searchParams:s(e)},t))}listFinishedStopOrder(e,t={}){return this.#e.request("spot/finished-stop-order",u({method:"GET",searchParams:s(e)},t))}editOrder(e,t={}){return this.#e.request("spot/order",u({method:"PUT",json:s(e)},t))}editStopOrder(e,t={}){return this.#e.request("spot/stop-order",u({method:"PUT",json:s(e)},t))}cancelOrder(e,t={}){return this.#e.request("spot/order",u({method:"DELETE",json:s(e)},t))}cancelOrderByClientId(e,t={}){return this.#e.request("spot/order/by-client-id",u({method:"DELETE",json:s(e)},t))}cancelStopOrder(e,t={}){return this.#e.request("spot/stop-order",u({method:"DELETE",json:s(e)},t))}cancelStopOrderByClientId(e,t={}){return this.#e.request("spot/stop-order/by-client-id",u({method:"DELETE",json:s(e)},t))}cancelAllOrder(e,t={}){return this.#e.request("spot/all-order",u({method:"DELETE",json:s(e)},t))}cancelBatchOrder(e,t={}){return this.#e.request("spot/batch-order",u({method:"DELETE",json:s(e)},t))}cancelBatchStopOrder(e,t={}){return this.#e.request("spot/batch-stop-order",u({method:"DELETE",json:s(e)},t))}putMultiOrder(e,t={}){return this.#e.request("spot/multi-order",u({method:"POST",json:s(e)},t))}putMultiStopOrder(e,t={}){return this.#e.request("spot/multi-stop-order",u({method:"POST",json:s(e)},t))}};var F=class{static{r(this,"Spot")}market;deal;order;constructor(e){this.market=new D(e),this.deal=new I(e),this.order=new H(e)}};import Y from"deepmerge";var B=class{static{r(this,"Deal")}#e;constructor(e){this.#e=e}listUserDeals(e,t={}){return this.#e.request("futures/user-deals",Y({method:"GET",searchParams:s(e)},t))}listUserOrderDeals(e,t={}){return this.#e.request("futures/order-deals",Y({method:"GET",searchParams:s(e)},t))}};import l from"deepmerge";var U=class{static{r(this,"Market")}#e;constructor(e){this.#e=e}listMarketBasisHistory(e,t={}){return this.#e.request("futures/basis-history",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketDeals(e,t={}){return this.#e.request("futures/deals",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketDepth(e,t={}){return this.#e.request("futures/depth",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketFundingRateHistory(e,t={}){return this.#e.request("futures/funding-rate-history",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketFundingRate(e,t={}){return this.#e.request("futures/funding-rate",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketIndex(e,t={}){return this.#e.request("futures/index",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketKline(e,t={}){return this.#e.request("futures/kline",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketLiquidationHistory(e,t={}){return this.#e.request("futures/liquidation-history",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketPositionLevel(e,t={}){return this.#e.request("futures/position-level",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketPremiumHistory(e,t={}){return this.#e.request("futures/premium-index-history",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarketTicker(e,t={}){return this.#e.request("futures/ticker",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}listMarket(e,t={}){return this.#e.request("futures/market",l({method:"GET",searchParams:s(e),context:{public:!0}},t))}};import m from"deepmerge";var w=class{static{r(this,"FuturesOrder")}#e;constructor(e){this.#e=e}putOrder(e,t={}){return this.#e.request("futures/order",m({method:"POST",json:s(e)},t))}putStopOrder(e,t={}){return this.#e.request("futures/stop-order",m({method:"POST",json:s(e)},t))}getOrderStatus(e,t={}){return this.#e.request("futures/order-status",m({method:"GET",searchParams:s(e)},t))}getMultiOrderStatus(e,t={}){return this.#e.request("futures/multi-order-status",m({method:"GET",searchParams:s(e)},t))}listPendingOrder(e,t={}){return this.#e.request("futures/pending-order",m({method:"GET",searchParams:s(e)},t))}listFinishedOrder(e,t={}){return this.#e.request("futures/finished-order",m({method:"GET",searchParams:s(e)},t))}listPendingStopOrder(e,t={}){return this.#e.request("futures/pending-stop-order",m({method:"GET",searchParams:s(e)},t))}listFinishedStopOrder(e,t={}){return this.#e.request("futures/finished-stop-order",m({method:"GET",searchParams:s(e)},t))}editOrder(e,t={}){return this.#e.request("futures/order",m({method:"PUT",json:s(e)},t))}editStopOrder(e,t={}){return this.#e.request("futures/stop-order",m({method:"PUT",json:s(e)},t))}cancelOrder(e,t={}){return this.#e.request("futures/order",m({method:"DELETE",json:s(e)},t))}cancelOrderByClientId(e,t={}){return this.#e.request("futures/order/by-client-id",m({method:"DELETE",json:s(e)},t))}cancelStopOrder(e,t={}){return this.#e.request("futures/stop-order",m({method:"DELETE",json:s(e)},t))}cancelStopOrderByClientId(e,t={}){return this.#e.request("futures/stop-order/by-client-id",m({method:"DELETE",json:s(e)},t))}cancelAllOrder(e,t={}){return this.#e.request("futures/all-order",m({method:"DELETE",json:s(e)},t))}cancelBatchOrder(e,t={}){return this.#e.request("futures/batch-order",m({method:"DELETE",json:s(e)},t))}cancelBatchStopOrder(e,t={}){return this.#e.request("futures/batch-stop-order",m({method:"DELETE",json:s(e)},t))}putMultiOrder(e,t={}){return this.#e.request("futures/multi-order",m({method:"POST",json:s(e)},t))}putMultiStopOrder(e,t={}){return this.#e.request("futures/multi-stop-order",m({method:"POST",json:s(e)},t))}};import h from"deepmerge";var _=class{static{r(this,"Position")}#e;constructor(e){this.#e=e}adjustPositionLeverage(e,t={}){return this.#e.request("futures/adjust-position-leverage",h({method:"POST",json:s(e)},t))}adjustPositionMargin(e,t={}){return this.#e.request("futures/adjust-position-margin",h({method:"POST",json:s(e)},t))}closePosition(e,t={}){return this.#e.request("futures/close-position",h({method:"POST",json:s(e)},t))}listFinishedPosition(e,t={}){return this.#e.request("futures/finished-position",h({method:"GET",searchParams:s(e)},t))}listPendingPosition(e,t={}){return this.#e.request("futures/pending-position",h({method:"GET",searchParams:s(e)},t))}listPositionAdlHistory(e,t={}){return this.#e.request("futures/adl-history",h({method:"GET",searchParams:s(e)},t))}listPositionFundingHistory(e,t={}){return this.#e.request("futures/position-funding-history",h({method:"GET",searchParams:s(e)},t))}listPositionMarginHistory(e,t={}){return this.#e.request("futures/position-margin-history",h({method:"GET",searchParams:s(e)},t))}listPositionSettleHistory(e,t={}){return this.#e.request("futures/position-settle-history",h({method:"GET",searchParams:s(e)},t))}setPositionStopLoss(e,t={}){return this.#e.request("futures/position-stop-loss",h({method:"POST",json:s(e)},t))}setPositionTakeProfit(e,t={}){return this.#e.request("futures/position-take-profit",h({method:"POST",json:s(e)},t))}};var j=class{static{r(this,"Futures")}market;deal;order;position;constructor(e){this.market=new U(e),this.deal=new B(e),this.order=new w(e),this.position=new _(e)}};var J=class{static{r(this,"CoinExClient")}#e;#t;#s;account;assets;maintain;spot;futures;constructor(e){this.#e=e.apiKey,this.#t=e.secretKey;let t=r((o,i)=>{if(i.context?.public)return;let a=Date.now(),c=i.json?JSON.stringify(i.json):void 0,K=new URL(o.url),d=K.pathname+K.search,Le=v(o.method,d,c,a,this.#t);o.headers.set("X-COINEX-KEY",this.#e),o.headers.set("X-COINEX-SIGN",Le),o.headers.set("X-COINEX-TIMESTAMP",String(a)),c&&o.headers.set("Content-Type","application/json; charset=utf-8")},"beforeRequest");this.#s=Te.create(W({prefixUrl:"https://api.coinex.com/v2",timeout:1e4,hooks:{beforeRequest:[t],afterResponse:[async(o,i,a)=>{if(a.headers.get("content-type")?.includes("application/json")){let d=await a.clone().json();if(d.code!==0)throw new f(d.code,d.message);return new Response(JSON.stringify(d.data),a)}return a}]}},e.kyOptions||{})),this.account=new L(this),this.assets=new k(this),this.maintain=new b(this),this.spot=new F(this),this.futures=new j(this)}request(e,t){let{responseType:o="json",...i}=t||{},a=this.#s(e,i);return o==="text"?a.text():a.json()}ping(e={}){return this.request("ping",W({method:"GET",context:{public:!0}},e))}getSystemTime(e={}){return this.request("time",W({method:"GET",context:{public:!0}},e))}};var Q=(o=>(o.SPOT="SPOT",o.MARGIN="MARGIN",o.FUTURES="FUTURES",o))(Q||{}),$=(o=>(o.BIDDING="bidding",o.COUNTING_DOWN="counting_down",o.ONLINE="online",o))($||{}),z=(t=>(t.BUY="buy",t.SELL="sell",t))(z||{}),Z=(a=>(a.LIMIT="limit",a.MARKET="market",a.MAKER_ONLY="maker_only",a.IOC="ioc",a.FOK="fok",a))(Z||{}),ee=(o=>(o.CANCEL_TAKER="ct",o.CANCEL_MAKER="cm",o.CANCEL_BOTH="both",o))(ee||{}),te=(i=>(i.PUT="put",i.UPDATE="update",i.MODIFY="modify",i.FINISH="finish",i))(te||{}),se=(o=>(o.PUT="put",o.ACTIVE="active",o.CANCEL="cancel",o))(se||{}),re=(i=>(i.PUT="put",i.ACTIVE_SUCCESS="active_success",i.ACTIVE_FAIL="active_fail",i.CANCEL="cancel",i))(re||{}),oe=(t=>(t.HIGHER="higher",t.LOWER="lower",t))(oe||{}),ie=(a=>(a.UPDATE="update",a.CLOSE="close",a.SYS_CLOSE="sys_close",a.ADL="adl",a.LIQ="liq",a))(ie||{}),ne=(p=>(p.DE_DE="de-DE",p.EN_US="en-US",p.ES_AR="es-AR",p.ES_ES="es-ES",p.ES_MX="es-MX",p.FR_FR="fr-FR",p.KK_KZ="kk-KZ",p.ID_ID="id-ID",p.UK_UA="uk-UA",p.JA_JP="ja-JP",p.RU_RU="ru-RU",p.TH_TH="th-TH",p.PT_BR="pt-BR",p.TR_TR="tr-TR",p.VI_VN="vi-VN",p.ZH_TW="zh-TW",p.AR_SA="ar-SA",p.HI_IN="hi-IN",p.FIL_PH="fil-PH",p))(ne||{}),ae=(i=>(i.FUTURES="FUTURES",i.MARGIN="MARGIN",i.AMM="AMM",i.API="API",i))(ae||{}),pe=(t=>(t.IN="in",t.OUT="out",t))(pe||{}),ue=(i=>(i.CREATED="created",i.DEDUCTED="deducted",i.FAILED="failed",i.FINISHED="finished",i))(ue||{}),me=(i=>(i.LOAN="loan",i.DEBT="debt",i.LIQUIDATED="liquidated",i.FINISH="finish",i))(me||{}),de=(c=>(c.PROCESSING="processing",c.CONFIRMING="confirming",c.CANCELLED="cancelled",c.FINISHED="finished",c.TOO_SMALL="too_small",c.EXCEPTION="exception",c))(de||{});var ce=(a=>(a.OPEN="open",a.PART_FILLED="part_filled",a.FILLED="filled",a.PART_CANCELED="part_canceled",a.CANCELED="canceled",a))(ce||{}),Pe=(t=>(t.LINEAR="linear",t.INVERSE="inverse",t))(Pe||{}),le=(t=>(t.ISOLATED="isolated",t.CROSS="cross",t))(le||{}),he=(t=>(t.LATEST_PRICE="latest_price",t.MARK_PRICE="mark_price",t))(he||{}),Re=(t=>(t.LATEST_PRICE="latest_price",t.MARK_PRICE="mark_price",t))(Re||{}),Oe=(t=>(t.SHORT="short",t.LONG="long",t))(Oe||{}),Se=(d=>(d.LIQ="liq",d.ADL="adl",d.SYS="sys",d.LIMIT="limit",d.MARKET="market",d.MARKET_CLOSE_ALL="market_close_all",d.TAKE_PROFIT="take_profit",d.STOP_LOSS="stop_loss",d))(Se||{}),fe=(o=>(o.LATEST_PRICE="latest_price",o.MARK_PRICE="mark_price",o.INDEX_PRICE="index_price",o))(fe||{}),ye=(i=>(i.DEPOSIT="deposit",i.WITHDRAW="withdraw",i.TRADE="trade",i.MAKER_CASH_BACK="maker_cash_back",i))(ye||{}),qe=(t=>(t.INFINITE="infinite",t.FINITE="finite",t))(qe||{}),Ee=(t=>(t.NORMAL="NORMAL",t.SUB_ACCOUNT="SUB_ACCOUNT",t))(Ee||{});export{qe as AmmType,f as CoinExAPIError,J as CoinExClient,Pe as ContractType,de as DepositStatus,me as LoanStatus,ne as Locale,le as MarginMode,$ as MarketStatus,Q as MarketType,te as OrderEvent,z as OrderSide,ce as OrderStatus,Z as OrderType,ae as Permission,ie as PositionEvent,Se as PositionFinishedType,Oe as PositionSide,Re as StopLossType,se as StopOrderEvent,re as StopOrderStatus,ee as StpMode,he as TakeProfitType,ye as TransactionType,pe as TransferDirection,ue as TransferStatus,oe as TriggerDirection,fe as TriggerPriceType,Ee as UserType,s as noUndefined};