@myx-trade/sdk 0.1.178 → 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 +22 -6
- package/dist/index.d.ts +22 -6
- package/dist/index.js +15 -1
- package/dist/index.mjs +14 -1
- package/package.json +1 -1
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
|
|
|
@@ -1877,4 +1893,4 @@ declare class MyxClient {
|
|
|
1877
1893
|
getAccessToken(): Promise<string | null>;
|
|
1878
1894
|
}
|
|
1879
1895
|
|
|
1880
|
-
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, 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 };
|
|
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
|
|
|
@@ -1877,4 +1893,4 @@ declare class MyxClient {
|
|
|
1877
1893
|
getAccessToken(): Promise<string | null>;
|
|
1878
1894
|
}
|
|
1879
1895
|
|
|
1880
|
-
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, 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 };
|
|
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,
|
|
@@ -1823,7 +1824,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1823
1824
|
// package.json
|
|
1824
1825
|
var package_default = {
|
|
1825
1826
|
name: "@myx-trade/sdk",
|
|
1826
|
-
version: "0.1.
|
|
1827
|
+
version: "0.1.179",
|
|
1827
1828
|
private: false,
|
|
1828
1829
|
publishConfig: {
|
|
1829
1830
|
access: "public"
|
|
@@ -2048,6 +2049,12 @@ var TradeFlowTypeEnum = /* @__PURE__ */ ((TradeFlowTypeEnum2) => {
|
|
|
2048
2049
|
TradeFlowTypeEnum2[TradeFlowTypeEnum2["Liquidation"] = 6] = "Liquidation";
|
|
2049
2050
|
TradeFlowTypeEnum2[TradeFlowTypeEnum2["MarketClose"] = 7] = "MarketClose";
|
|
2050
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";
|
|
2051
2058
|
return TradeFlowTypeEnum2;
|
|
2052
2059
|
})(TradeFlowTypeEnum || {});
|
|
2053
2060
|
var TriggerTypeEnum = /* @__PURE__ */ ((TriggerTypeEnum2) => {
|
|
@@ -2124,6 +2131,12 @@ var getPositionHistory = async ({
|
|
|
2124
2131
|
}
|
|
2125
2132
|
);
|
|
2126
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 || {});
|
|
2127
2140
|
var getTradeFlow = async ({
|
|
2128
2141
|
accessToken,
|
|
2129
2142
|
address,
|
|
@@ -21943,6 +21956,7 @@ var MyxClient = class {
|
|
|
21943
21956
|
SearchSecondTypeEnum,
|
|
21944
21957
|
SearchTypeEnum,
|
|
21945
21958
|
TimeInForce,
|
|
21959
|
+
TradeFlowAccountTypeEnum,
|
|
21946
21960
|
TradeFlowTypeEnum,
|
|
21947
21961
|
TriggerType,
|
|
21948
21962
|
TriggerTypeEnum,
|
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.
|
|
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,
|
|
@@ -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,
|