@myx-trade/sdk 0.1.177 → 0.1.179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -581,7 +581,13 @@ declare enum TradeFlowTypeEnum {
581
581
  ADL = 5,
582
582
  Liquidation = 6,
583
583
  MarketClose = 7,
584
- EarlyClose = 8
584
+ EarlyClose = 8,
585
+ AddTPSL = 9,
586
+ SecurityDeposit = 10,
587
+ TransferToWallet = 11,
588
+ MarginAccountDeposit = 12,
589
+ ReferralReward = 13,
590
+ ReferralRewardClaim = 14
585
591
  }
586
592
  declare enum TriggerTypeEnum {
587
593
  Unknown = 0,
@@ -679,22 +685,32 @@ declare const getPositionHistory: ({ accessToken, address, ...params }: GetHisto
679
685
  /**
680
686
  * Get Trade Flow
681
687
  */
688
+ declare enum TradeFlowAccountTypeEnum {
689
+ MarginAccount = 1,
690
+ WalletAccount = 2,
691
+ ReferralReward = 3
692
+ }
682
693
  interface TradeFlowItem {
683
694
  chainId: number;
684
695
  orderId: number;
685
696
  user: Address;
686
697
  poolId: string;
687
- realizedPnl: string;
688
698
  fundingFee: string;
689
699
  tradingFee: string;
690
700
  charge: string;
691
701
  collateralAmount: string;
692
702
  txHash: string;
693
703
  txTime: number;
694
- baseSymbol: string;
695
- quoteSymbol: string;
696
- executionFee: string;
697
704
  type: TradeFlowTypeEnum;
705
+ accountType: TradeFlowAccountTypeEnum;
706
+ executionFee: string;
707
+ seamlessFee: string;
708
+ seamlessFeeSymbol: string;
709
+ basePnl: string;
710
+ quotePnl: string;
711
+ referrerRebate: string;
712
+ referralRebate: string;
713
+ rebateClaimedAmount: string;
698
714
  }
699
715
  declare const getTradeFlow: ({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest) => Promise<ApiResponse<TradeFlowItem[]>>;
700
716
 
@@ -726,6 +742,17 @@ type FetchForwarderGetResponseData = {
726
742
  type FetchForwarderGetResponse = BaseResponse<FetchForwarderGetResponseData>;
727
743
  declare const fetchForwarderGetApi: (params: FetchForwarderGetParams) => Promise<FetchForwarderGetResponse>;
728
744
 
745
+ declare const getPoolList: () => Promise<ApiResponse<any[]>>;
746
+ interface PoolSymbolAllResponse {
747
+ chainId: number;
748
+ marketId: string;
749
+ poolId: string;
750
+ baseSymbol: string;
751
+ quoteSymbol: string;
752
+ baseTokenIcon: string;
753
+ }
754
+ declare const getPoolSymbolAll: () => Promise<ApiResponse<PoolSymbolAllResponse[]>>;
755
+
729
756
  declare const baseUrl = "https://api-test.myx.cash";
730
757
  declare const forwardUrl = "https://api-test.myx.cash/v2/agent";
731
758
  declare const getOraclePrice: (chainId: ChainId, poolIds?: string[]) => Promise<PriceResponse>;
@@ -1312,15 +1339,6 @@ declare class SubScription {
1312
1339
  off<K extends keyof WebSocketEvents>(event: K, handler: (data: WebSocketEvents[K]) => void): void;
1313
1340
  }
1314
1341
 
1315
- interface PoolSymbolAllResponse {
1316
- chainId: number;
1317
- marketId: string;
1318
- poolId: string;
1319
- baseSymbol: string;
1320
- quoteSymbol: string;
1321
- baseTokenIcon: string;
1322
- }
1323
-
1324
1342
  declare class Utils {
1325
1343
  private configManager;
1326
1344
  private logger;
@@ -1875,4 +1893,4 @@ declare class MyxClient {
1875
1893
  getAccessToken(): Promise<string | null>;
1876
1894
  }
1877
1895
 
1878
- export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address$1 as Address, type ApiResponse, type BaseDetailResponse, type BaseResponse, COMMON_LP_AMOUNT_DECIMALS, COMMON_PRICE_DECIMALS, ChainId, type ChainIdRequest, CloseTypeEnum, type DashboardType, Direction, DirectionEnum, ErrorCode, ExecTypeEnum, type FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, type FavoritesType, type FetchForwarderGetParams, type FetchForwarderGetResponse, type FetchForwarderGetResponseData, ForwarderGetStatus, type ForwarderTxParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type HistoryOrderItem, HttpKlineIntervalEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, OrderStatus, OrderStatusEnum, OrderType, OrderTypeEnum, type PlaceOrderParams, type PoolLevelConfig, type PoolOpenOrder, type PoolOpenOrdersResponse, type PoolResponse, type Position$1 as Position, type PositionHistoryItem, type PositionResponse, type PositionTpSlOrderParams, type PositionType, type PriceResponse, type PriceType, type RemoveFavoriteParams, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, type TradeFlowItem, TradeFlowTypeEnum, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, addFavorite, approve, index$2 as base, baseUrl, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, fetchForwarderGetApi, forwardUrl, forwarderTxApi, getAllTickers, getAllowanceApproved, getBalanceOf, getBaseDetail, getFavoritesList, getHistoryOrders, getKlineData, getKlineLatestBar, getMarketDetail, getMarketList, getOraclePrice, getOrders, getPoolDetail, getPoolLevelConfig, getPoolOpenOrders, getPositionHistory, getPositions, getPriceData, getPricesData, getTickerData, getTokenInfo, getTradeFlow, index as market, index$3 as pool, index$1 as quote, removeFavorite, searchMarket, searchMarketAuth };
1896
+ export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address$1 as Address, type ApiResponse, type BaseDetailResponse, type BaseResponse, COMMON_LP_AMOUNT_DECIMALS, COMMON_PRICE_DECIMALS, ChainId, type ChainIdRequest, CloseTypeEnum, type DashboardType, Direction, DirectionEnum, ErrorCode, ExecTypeEnum, type FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, type FavoritesType, type FetchForwarderGetParams, type FetchForwarderGetResponse, type FetchForwarderGetResponseData, ForwarderGetStatus, type ForwarderTxParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type HistoryOrderItem, HttpKlineIntervalEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, OrderStatus, OrderStatusEnum, OrderType, OrderTypeEnum, type PlaceOrderParams, type PoolLevelConfig, type PoolOpenOrder, type PoolOpenOrdersResponse, type PoolResponse, type PoolSymbolAllResponse, type Position$1 as Position, type PositionHistoryItem, type PositionResponse, type PositionTpSlOrderParams, type PositionType, type PriceResponse, type PriceType, type RemoveFavoriteParams, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, TradeFlowAccountTypeEnum, type TradeFlowItem, TradeFlowTypeEnum, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, addFavorite, approve, index$2 as base, baseUrl, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, fetchForwarderGetApi, forwardUrl, forwarderTxApi, getAllTickers, getAllowanceApproved, getBalanceOf, getBaseDetail, getFavoritesList, getHistoryOrders, getKlineData, getKlineLatestBar, getMarketDetail, getMarketList, getOraclePrice, getOrders, getPoolDetail, getPoolLevelConfig, getPoolList, getPoolOpenOrders, getPoolSymbolAll, getPositionHistory, getPositions, getPriceData, getPricesData, getTickerData, getTokenInfo, getTradeFlow, index as market, index$3 as pool, index$1 as quote, removeFavorite, searchMarket, searchMarketAuth };
package/dist/index.d.ts CHANGED
@@ -581,7 +581,13 @@ declare enum TradeFlowTypeEnum {
581
581
  ADL = 5,
582
582
  Liquidation = 6,
583
583
  MarketClose = 7,
584
- EarlyClose = 8
584
+ EarlyClose = 8,
585
+ AddTPSL = 9,
586
+ SecurityDeposit = 10,
587
+ TransferToWallet = 11,
588
+ MarginAccountDeposit = 12,
589
+ ReferralReward = 13,
590
+ ReferralRewardClaim = 14
585
591
  }
586
592
  declare enum TriggerTypeEnum {
587
593
  Unknown = 0,
@@ -679,22 +685,32 @@ declare const getPositionHistory: ({ accessToken, address, ...params }: GetHisto
679
685
  /**
680
686
  * Get Trade Flow
681
687
  */
688
+ declare enum TradeFlowAccountTypeEnum {
689
+ MarginAccount = 1,
690
+ WalletAccount = 2,
691
+ ReferralReward = 3
692
+ }
682
693
  interface TradeFlowItem {
683
694
  chainId: number;
684
695
  orderId: number;
685
696
  user: Address;
686
697
  poolId: string;
687
- realizedPnl: string;
688
698
  fundingFee: string;
689
699
  tradingFee: string;
690
700
  charge: string;
691
701
  collateralAmount: string;
692
702
  txHash: string;
693
703
  txTime: number;
694
- baseSymbol: string;
695
- quoteSymbol: string;
696
- executionFee: string;
697
704
  type: TradeFlowTypeEnum;
705
+ accountType: TradeFlowAccountTypeEnum;
706
+ executionFee: string;
707
+ seamlessFee: string;
708
+ seamlessFeeSymbol: string;
709
+ basePnl: string;
710
+ quotePnl: string;
711
+ referrerRebate: string;
712
+ referralRebate: string;
713
+ rebateClaimedAmount: string;
698
714
  }
699
715
  declare const getTradeFlow: ({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest) => Promise<ApiResponse<TradeFlowItem[]>>;
700
716
 
@@ -726,6 +742,17 @@ type FetchForwarderGetResponseData = {
726
742
  type FetchForwarderGetResponse = BaseResponse<FetchForwarderGetResponseData>;
727
743
  declare const fetchForwarderGetApi: (params: FetchForwarderGetParams) => Promise<FetchForwarderGetResponse>;
728
744
 
745
+ declare const getPoolList: () => Promise<ApiResponse<any[]>>;
746
+ interface PoolSymbolAllResponse {
747
+ chainId: number;
748
+ marketId: string;
749
+ poolId: string;
750
+ baseSymbol: string;
751
+ quoteSymbol: string;
752
+ baseTokenIcon: string;
753
+ }
754
+ declare const getPoolSymbolAll: () => Promise<ApiResponse<PoolSymbolAllResponse[]>>;
755
+
729
756
  declare const baseUrl = "https://api-test.myx.cash";
730
757
  declare const forwardUrl = "https://api-test.myx.cash/v2/agent";
731
758
  declare const getOraclePrice: (chainId: ChainId, poolIds?: string[]) => Promise<PriceResponse>;
@@ -1312,15 +1339,6 @@ declare class SubScription {
1312
1339
  off<K extends keyof WebSocketEvents>(event: K, handler: (data: WebSocketEvents[K]) => void): void;
1313
1340
  }
1314
1341
 
1315
- interface PoolSymbolAllResponse {
1316
- chainId: number;
1317
- marketId: string;
1318
- poolId: string;
1319
- baseSymbol: string;
1320
- quoteSymbol: string;
1321
- baseTokenIcon: string;
1322
- }
1323
-
1324
1342
  declare class Utils {
1325
1343
  private configManager;
1326
1344
  private logger;
@@ -1875,4 +1893,4 @@ declare class MyxClient {
1875
1893
  getAccessToken(): Promise<string | null>;
1876
1894
  }
1877
1895
 
1878
- export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address$1 as Address, type ApiResponse, type BaseDetailResponse, type BaseResponse, COMMON_LP_AMOUNT_DECIMALS, COMMON_PRICE_DECIMALS, ChainId, type ChainIdRequest, CloseTypeEnum, type DashboardType, Direction, DirectionEnum, ErrorCode, ExecTypeEnum, type FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, type FavoritesType, type FetchForwarderGetParams, type FetchForwarderGetResponse, type FetchForwarderGetResponseData, ForwarderGetStatus, type ForwarderTxParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type HistoryOrderItem, HttpKlineIntervalEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, OrderStatus, OrderStatusEnum, OrderType, OrderTypeEnum, type PlaceOrderParams, type PoolLevelConfig, type PoolOpenOrder, type PoolOpenOrdersResponse, type PoolResponse, type Position$1 as Position, type PositionHistoryItem, type PositionResponse, type PositionTpSlOrderParams, type PositionType, type PriceResponse, type PriceType, type RemoveFavoriteParams, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, type TradeFlowItem, TradeFlowTypeEnum, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, addFavorite, approve, index$2 as base, baseUrl, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, fetchForwarderGetApi, forwardUrl, forwarderTxApi, getAllTickers, getAllowanceApproved, getBalanceOf, getBaseDetail, getFavoritesList, getHistoryOrders, getKlineData, getKlineLatestBar, getMarketDetail, getMarketList, getOraclePrice, getOrders, getPoolDetail, getPoolLevelConfig, getPoolOpenOrders, getPositionHistory, getPositions, getPriceData, getPricesData, getTickerData, getTokenInfo, getTradeFlow, index as market, index$3 as pool, index$1 as quote, removeFavorite, searchMarket, searchMarketAuth };
1896
+ export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address$1 as Address, type ApiResponse, type BaseDetailResponse, type BaseResponse, COMMON_LP_AMOUNT_DECIMALS, COMMON_PRICE_DECIMALS, ChainId, type ChainIdRequest, CloseTypeEnum, type DashboardType, Direction, DirectionEnum, ErrorCode, ExecTypeEnum, type FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, type FavoritesType, type FetchForwarderGetParams, type FetchForwarderGetResponse, type FetchForwarderGetResponseData, ForwarderGetStatus, type ForwarderTxParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type HistoryOrderItem, HttpKlineIntervalEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, OrderStatus, OrderStatusEnum, OrderType, OrderTypeEnum, type PlaceOrderParams, type PoolLevelConfig, type PoolOpenOrder, type PoolOpenOrdersResponse, type PoolResponse, type PoolSymbolAllResponse, type Position$1 as Position, type PositionHistoryItem, type PositionResponse, type PositionTpSlOrderParams, type PositionType, type PriceResponse, type PriceType, type RemoveFavoriteParams, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, TradeFlowAccountTypeEnum, type TradeFlowItem, TradeFlowTypeEnum, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, addFavorite, approve, index$2 as base, baseUrl, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, fetchForwarderGetApi, forwardUrl, forwarderTxApi, getAllTickers, getAllowanceApproved, getBalanceOf, getBaseDetail, getFavoritesList, getHistoryOrders, getKlineData, getKlineLatestBar, getMarketDetail, getMarketList, getOraclePrice, getOrders, getPoolDetail, getPoolLevelConfig, getPoolList, getPoolOpenOrders, getPoolSymbolAll, getPositionHistory, getPositions, getPriceData, getPricesData, getTickerData, getTokenInfo, getTradeFlow, index as market, index$3 as pool, index$1 as quote, removeFavorite, searchMarket, searchMarketAuth };
package/dist/index.js CHANGED
@@ -54,6 +54,7 @@ __export(index_exports, {
54
54
  SearchSecondTypeEnum: () => SearchSecondTypeEnum,
55
55
  SearchTypeEnum: () => SearchTypeEnum,
56
56
  TimeInForce: () => TimeInForce2,
57
+ TradeFlowAccountTypeEnum: () => TradeFlowAccountTypeEnum,
57
58
  TradeFlowTypeEnum: () => TradeFlowTypeEnum,
58
59
  TriggerType: () => TriggerType2,
59
60
  TriggerTypeEnum: () => TriggerTypeEnum,
@@ -82,7 +83,9 @@ __export(index_exports, {
82
83
  getOrders: () => getOrders,
83
84
  getPoolDetail: () => getPoolDetail,
84
85
  getPoolLevelConfig: () => getPoolLevelConfig,
86
+ getPoolList: () => getPoolList,
85
87
  getPoolOpenOrders: () => getPoolOpenOrders,
88
+ getPoolSymbolAll: () => getPoolSymbolAll,
86
89
  getPositionHistory: () => getPositionHistory,
87
90
  getPositions: () => getPositions,
88
91
  getPriceData: () => getPriceData,
@@ -1821,7 +1824,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
1821
1824
  // package.json
1822
1825
  var package_default = {
1823
1826
  name: "@myx-trade/sdk",
1824
- version: "0.1.177",
1827
+ version: "0.1.179",
1825
1828
  private: false,
1826
1829
  publishConfig: {
1827
1830
  access: "public"
@@ -2046,6 +2049,12 @@ var TradeFlowTypeEnum = /* @__PURE__ */ ((TradeFlowTypeEnum2) => {
2046
2049
  TradeFlowTypeEnum2[TradeFlowTypeEnum2["Liquidation"] = 6] = "Liquidation";
2047
2050
  TradeFlowTypeEnum2[TradeFlowTypeEnum2["MarketClose"] = 7] = "MarketClose";
2048
2051
  TradeFlowTypeEnum2[TradeFlowTypeEnum2["EarlyClose"] = 8] = "EarlyClose";
2052
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["AddTPSL"] = 9] = "AddTPSL";
2053
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["SecurityDeposit"] = 10] = "SecurityDeposit";
2054
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["TransferToWallet"] = 11] = "TransferToWallet";
2055
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["MarginAccountDeposit"] = 12] = "MarginAccountDeposit";
2056
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["ReferralReward"] = 13] = "ReferralReward";
2057
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["ReferralRewardClaim"] = 14] = "ReferralRewardClaim";
2049
2058
  return TradeFlowTypeEnum2;
2050
2059
  })(TradeFlowTypeEnum || {});
2051
2060
  var TriggerTypeEnum = /* @__PURE__ */ ((TriggerTypeEnum2) => {
@@ -2122,6 +2131,12 @@ var getPositionHistory = async ({
2122
2131
  }
2123
2132
  );
2124
2133
  };
2134
+ var TradeFlowAccountTypeEnum = /* @__PURE__ */ ((TradeFlowAccountTypeEnum2) => {
2135
+ TradeFlowAccountTypeEnum2[TradeFlowAccountTypeEnum2["MarginAccount"] = 1] = "MarginAccount";
2136
+ TradeFlowAccountTypeEnum2[TradeFlowAccountTypeEnum2["WalletAccount"] = 2] = "WalletAccount";
2137
+ TradeFlowAccountTypeEnum2[TradeFlowAccountTypeEnum2["ReferralReward"] = 3] = "ReferralReward";
2138
+ return TradeFlowAccountTypeEnum2;
2139
+ })(TradeFlowAccountTypeEnum || {});
2125
2140
  var getTradeFlow = async ({
2126
2141
  accessToken,
2127
2142
  address,
@@ -2166,6 +2181,18 @@ var fetchForwarderGetApi = async (params) => {
2166
2181
  return rs;
2167
2182
  };
2168
2183
 
2184
+ // src/api/pool/index.ts
2185
+ var getPoolList = async () => {
2186
+ return http.get(
2187
+ `${baseUrl}/openapi/gateway/scan/market/list`
2188
+ );
2189
+ };
2190
+ var getPoolSymbolAll = async () => {
2191
+ return http.get(
2192
+ `${baseUrl}/openapi/gateway/scan/pools`
2193
+ );
2194
+ };
2195
+
2169
2196
  // src/api/index.ts
2170
2197
  var baseUrl = "https://api-test.myx.cash";
2171
2198
  var forwardUrl = "https://api-test.myx.cash/v2/agent";
@@ -13987,18 +14014,6 @@ var ConfigManager = class {
13987
14014
  }
13988
14015
  };
13989
14016
 
13990
- // src/api/pool/index.ts
13991
- var getPoolList = async () => {
13992
- return http.get(
13993
- `${baseUrl}/openapi/gateway/scan/market/list`
13994
- );
13995
- };
13996
- var getPoolSymbolAll = async () => {
13997
- return http.get(
13998
- `${baseUrl}/openapi/gateway/scan/pools`
13999
- );
14000
- };
14001
-
14002
14017
  // src/manager/markets/index.ts
14003
14018
  var Markets = class {
14004
14019
  constructor(configManager, utils) {
@@ -21941,6 +21956,7 @@ var MyxClient = class {
21941
21956
  SearchSecondTypeEnum,
21942
21957
  SearchTypeEnum,
21943
21958
  TimeInForce,
21959
+ TradeFlowAccountTypeEnum,
21944
21960
  TradeFlowTypeEnum,
21945
21961
  TriggerType,
21946
21962
  TriggerTypeEnum,
@@ -21969,7 +21985,9 @@ var MyxClient = class {
21969
21985
  getOrders,
21970
21986
  getPoolDetail,
21971
21987
  getPoolLevelConfig,
21988
+ getPoolList,
21972
21989
  getPoolOpenOrders,
21990
+ getPoolSymbolAll,
21973
21991
  getPositionHistory,
21974
21992
  getPositions,
21975
21993
  getPriceData,
package/dist/index.mjs CHANGED
@@ -1731,7 +1731,7 @@ var RotationProvider = class extends BaseProvider {
1731
1731
  // package.json
1732
1732
  var package_default = {
1733
1733
  name: "@myx-trade/sdk",
1734
- version: "0.1.177",
1734
+ version: "0.1.179",
1735
1735
  private: false,
1736
1736
  publishConfig: {
1737
1737
  access: "public"
@@ -1956,6 +1956,12 @@ var TradeFlowTypeEnum = /* @__PURE__ */ ((TradeFlowTypeEnum2) => {
1956
1956
  TradeFlowTypeEnum2[TradeFlowTypeEnum2["Liquidation"] = 6] = "Liquidation";
1957
1957
  TradeFlowTypeEnum2[TradeFlowTypeEnum2["MarketClose"] = 7] = "MarketClose";
1958
1958
  TradeFlowTypeEnum2[TradeFlowTypeEnum2["EarlyClose"] = 8] = "EarlyClose";
1959
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["AddTPSL"] = 9] = "AddTPSL";
1960
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["SecurityDeposit"] = 10] = "SecurityDeposit";
1961
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["TransferToWallet"] = 11] = "TransferToWallet";
1962
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["MarginAccountDeposit"] = 12] = "MarginAccountDeposit";
1963
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["ReferralReward"] = 13] = "ReferralReward";
1964
+ TradeFlowTypeEnum2[TradeFlowTypeEnum2["ReferralRewardClaim"] = 14] = "ReferralRewardClaim";
1959
1965
  return TradeFlowTypeEnum2;
1960
1966
  })(TradeFlowTypeEnum || {});
1961
1967
  var TriggerTypeEnum = /* @__PURE__ */ ((TriggerTypeEnum2) => {
@@ -2032,6 +2038,12 @@ var getPositionHistory = async ({
2032
2038
  }
2033
2039
  );
2034
2040
  };
2041
+ var TradeFlowAccountTypeEnum = /* @__PURE__ */ ((TradeFlowAccountTypeEnum2) => {
2042
+ TradeFlowAccountTypeEnum2[TradeFlowAccountTypeEnum2["MarginAccount"] = 1] = "MarginAccount";
2043
+ TradeFlowAccountTypeEnum2[TradeFlowAccountTypeEnum2["WalletAccount"] = 2] = "WalletAccount";
2044
+ TradeFlowAccountTypeEnum2[TradeFlowAccountTypeEnum2["ReferralReward"] = 3] = "ReferralReward";
2045
+ return TradeFlowAccountTypeEnum2;
2046
+ })(TradeFlowAccountTypeEnum || {});
2035
2047
  var getTradeFlow = async ({
2036
2048
  accessToken,
2037
2049
  address,
@@ -2076,6 +2088,18 @@ var fetchForwarderGetApi = async (params) => {
2076
2088
  return rs;
2077
2089
  };
2078
2090
 
2091
+ // src/api/pool/index.ts
2092
+ var getPoolList = async () => {
2093
+ return http.get(
2094
+ `${baseUrl}/openapi/gateway/scan/market/list`
2095
+ );
2096
+ };
2097
+ var getPoolSymbolAll = async () => {
2098
+ return http.get(
2099
+ `${baseUrl}/openapi/gateway/scan/pools`
2100
+ );
2101
+ };
2102
+
2079
2103
  // src/api/index.ts
2080
2104
  var baseUrl = "https://api-test.myx.cash";
2081
2105
  var forwardUrl = "https://api-test.myx.cash/v2/agent";
@@ -13897,18 +13921,6 @@ var ConfigManager = class {
13897
13921
  }
13898
13922
  };
13899
13923
 
13900
- // src/api/pool/index.ts
13901
- var getPoolList = async () => {
13902
- return http.get(
13903
- `${baseUrl}/openapi/gateway/scan/market/list`
13904
- );
13905
- };
13906
- var getPoolSymbolAll = async () => {
13907
- return http.get(
13908
- `${baseUrl}/openapi/gateway/scan/pools`
13909
- );
13910
- };
13911
-
13912
13924
  // src/manager/markets/index.ts
13913
13925
  var Markets = class {
13914
13926
  constructor(configManager, utils) {
@@ -21850,6 +21862,7 @@ export {
21850
21862
  SearchSecondTypeEnum,
21851
21863
  SearchTypeEnum,
21852
21864
  TimeInForce2 as TimeInForce,
21865
+ TradeFlowAccountTypeEnum,
21853
21866
  TradeFlowTypeEnum,
21854
21867
  TriggerType2 as TriggerType,
21855
21868
  TriggerTypeEnum,
@@ -21878,7 +21891,9 @@ export {
21878
21891
  getOrders,
21879
21892
  getPoolDetail,
21880
21893
  getPoolLevelConfig,
21894
+ getPoolList,
21881
21895
  getPoolOpenOrders,
21896
+ getPoolSymbolAll,
21882
21897
  getPositionHistory,
21883
21898
  getPositions,
21884
21899
  getPriceData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myx-trade/sdk",
3
- "version": "0.1.177",
3
+ "version": "0.1.179",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"