@myx-trade/sdk 0.1.56 → 0.1.58
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 +131 -4
- package/dist/index.d.ts +131 -4
- package/dist/index.js +1773 -70
- package/dist/index.mjs +1769 -70
- package/package.json +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -242,9 +242,10 @@ declare enum ErrorCode {
|
|
|
242
242
|
INVALID_PARAMETER = 9901,
|
|
243
243
|
NETWORK_ERROR = "ERR_NETWORK"
|
|
244
244
|
}
|
|
245
|
-
interface BaseResponse {
|
|
245
|
+
interface BaseResponse<T = any> {
|
|
246
246
|
code: ErrorCode;
|
|
247
247
|
msg: string | null;
|
|
248
|
+
data?: T;
|
|
248
249
|
}
|
|
249
250
|
type DashboardType = {
|
|
250
251
|
lpAsset: string;
|
|
@@ -544,6 +545,20 @@ interface MarketInfo {
|
|
|
544
545
|
poolPrimeThreshold: number;
|
|
545
546
|
decimals: number;
|
|
546
547
|
}
|
|
548
|
+
type SeamlessAccount = {
|
|
549
|
+
/** 登录时间戳 */
|
|
550
|
+
loginTime: number;
|
|
551
|
+
/** 无感账户私钥 */
|
|
552
|
+
apikey: string;
|
|
553
|
+
/** 无感账户地址 */
|
|
554
|
+
address: string;
|
|
555
|
+
/** 主账户地址 */
|
|
556
|
+
masterAddress: string;
|
|
557
|
+
/** 是否开启 */
|
|
558
|
+
enable: boolean;
|
|
559
|
+
/** 授权状态 */
|
|
560
|
+
authorize: Partial<Record<ChainId, boolean>>;
|
|
561
|
+
};
|
|
547
562
|
|
|
548
563
|
declare class Address {
|
|
549
564
|
private _addr;
|
|
@@ -682,7 +697,36 @@ interface TradeFlowItem {
|
|
|
682
697
|
}
|
|
683
698
|
declare const getTradeFlow: ({ accessToken, ...params }: GetHistoryOrdersParams & AccessTokenRequest) => Promise<ApiResponse<TradeFlowItem[]>>;
|
|
684
699
|
|
|
700
|
+
type ForwarderTxParams = {
|
|
701
|
+
from: string;
|
|
702
|
+
to: string;
|
|
703
|
+
value: string;
|
|
704
|
+
gas: string;
|
|
705
|
+
nonce: string;
|
|
706
|
+
data: string;
|
|
707
|
+
deadline: number;
|
|
708
|
+
signature: string;
|
|
709
|
+
};
|
|
710
|
+
declare const forwarderTxApi: (params: ForwarderTxParams, chainId: number) => Promise<ApiResponse<any>>;
|
|
711
|
+
type FetchForwarderGetParams = {
|
|
712
|
+
requestId: string;
|
|
713
|
+
};
|
|
714
|
+
declare enum ForwarderGetStatus {
|
|
715
|
+
EXECUTING = 1,
|
|
716
|
+
BROADCAST_FAILED = 2,
|
|
717
|
+
TIMEOUT_CANCEL = 3,
|
|
718
|
+
EXECUTED = 9
|
|
719
|
+
}
|
|
720
|
+
type FetchForwarderGetResponseData = {
|
|
721
|
+
status: ForwarderGetStatus;
|
|
722
|
+
txHash: string;
|
|
723
|
+
reason: string;
|
|
724
|
+
};
|
|
725
|
+
type FetchForwarderGetResponse = BaseResponse<FetchForwarderGetResponseData>;
|
|
726
|
+
declare const fetchForwarderGetApi: (params: FetchForwarderGetParams) => Promise<FetchForwarderGetResponse>;
|
|
727
|
+
|
|
685
728
|
declare const baseUrl = "https://api-test.myx.cash";
|
|
729
|
+
declare const forwardUrl = "https://api-test.myx.cash/v2/agent";
|
|
686
730
|
declare const getOraclePrice: (chainId: ChainId, poolIds?: string[]) => Promise<PriceResponse>;
|
|
687
731
|
interface LevelConfig {
|
|
688
732
|
fundingFeeRate1: number;
|
|
@@ -1159,8 +1203,6 @@ interface MyxClientConfig {
|
|
|
1159
1203
|
isTestnet?: boolean;
|
|
1160
1204
|
poolingInterval?: number;
|
|
1161
1205
|
seamlessMode?: boolean;
|
|
1162
|
-
seamlessKeyPath?: string;
|
|
1163
|
-
seamlessKeyPassword?: string;
|
|
1164
1206
|
socketConfig?: Partial<Omit<WebSocketConfig, "url">>;
|
|
1165
1207
|
logLevel?: LogLevel;
|
|
1166
1208
|
getAccessToken?: (() => Promise<AccessTokenResponse | undefined>) | (() => AccessTokenResponse | undefined);
|
|
@@ -1597,6 +1639,90 @@ declare class Order {
|
|
|
1597
1639
|
}>;
|
|
1598
1640
|
}
|
|
1599
1641
|
|
|
1642
|
+
declare class Seamless {
|
|
1643
|
+
private configManager;
|
|
1644
|
+
private logger;
|
|
1645
|
+
private utils;
|
|
1646
|
+
private account;
|
|
1647
|
+
private seamlessWallet;
|
|
1648
|
+
private seamlessWalletAuthorized;
|
|
1649
|
+
private seamlessWalletApikey;
|
|
1650
|
+
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, account: Account);
|
|
1651
|
+
onCheckRelayer(account: string, relayer: string): Promise<boolean>;
|
|
1652
|
+
getUSDPermitParams(deadline: number): Promise<{
|
|
1653
|
+
token: string | ethers$1.Addressable;
|
|
1654
|
+
owner: Promise<string> | undefined;
|
|
1655
|
+
spender: string;
|
|
1656
|
+
value: bigint;
|
|
1657
|
+
deadline: number;
|
|
1658
|
+
v: number;
|
|
1659
|
+
r: string;
|
|
1660
|
+
s: string;
|
|
1661
|
+
}[] | undefined>;
|
|
1662
|
+
forwarderTx({ from, to, value, gas, deadline, data, nonce, }: {
|
|
1663
|
+
from: string;
|
|
1664
|
+
to: string;
|
|
1665
|
+
value: string;
|
|
1666
|
+
gas: string;
|
|
1667
|
+
deadline: number;
|
|
1668
|
+
data: string;
|
|
1669
|
+
nonce: string;
|
|
1670
|
+
}): Promise<ApiResponse<any>>;
|
|
1671
|
+
authorizeSeamlessAccount({ approve, seamlessAddress }: {
|
|
1672
|
+
approve: boolean;
|
|
1673
|
+
seamlessAddress: string;
|
|
1674
|
+
}): Promise<ApiResponse<any>>;
|
|
1675
|
+
unLockSeamlessWallet({ masterAddress, password, apiKey }: {
|
|
1676
|
+
masterAddress: string;
|
|
1677
|
+
password: string;
|
|
1678
|
+
apiKey: string;
|
|
1679
|
+
}): Promise<{
|
|
1680
|
+
code: number;
|
|
1681
|
+
data: {
|
|
1682
|
+
masterAddress: string;
|
|
1683
|
+
seamlessAccount: string;
|
|
1684
|
+
authorized: boolean;
|
|
1685
|
+
};
|
|
1686
|
+
}>;
|
|
1687
|
+
exportSeamlessPrivateKey({ password, apiKey }: {
|
|
1688
|
+
password: string;
|
|
1689
|
+
apiKey: string;
|
|
1690
|
+
}): Promise<{
|
|
1691
|
+
code: number;
|
|
1692
|
+
data: {
|
|
1693
|
+
privateKey: string;
|
|
1694
|
+
};
|
|
1695
|
+
}>;
|
|
1696
|
+
importSeamlessPrivateKey({ privateKey, password }: {
|
|
1697
|
+
privateKey: string;
|
|
1698
|
+
password: string;
|
|
1699
|
+
}): Promise<{
|
|
1700
|
+
code: number;
|
|
1701
|
+
data: {
|
|
1702
|
+
masterAddress: string;
|
|
1703
|
+
seamlessAccount: string;
|
|
1704
|
+
authorized: boolean;
|
|
1705
|
+
apiKey: string;
|
|
1706
|
+
};
|
|
1707
|
+
}>;
|
|
1708
|
+
createSeamless({ password }: {
|
|
1709
|
+
password: string;
|
|
1710
|
+
}): Promise<{
|
|
1711
|
+
code: number;
|
|
1712
|
+
data: {
|
|
1713
|
+
masterAddress: string;
|
|
1714
|
+
seamlessAccount: string;
|
|
1715
|
+
authorized: boolean;
|
|
1716
|
+
apiKey: string;
|
|
1717
|
+
};
|
|
1718
|
+
message?: undefined;
|
|
1719
|
+
} | {
|
|
1720
|
+
code: number;
|
|
1721
|
+
message: string;
|
|
1722
|
+
data?: undefined;
|
|
1723
|
+
}>;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1600
1726
|
declare class MyxClient {
|
|
1601
1727
|
/**
|
|
1602
1728
|
* private properties
|
|
@@ -1612,6 +1738,7 @@ declare class MyxClient {
|
|
|
1612
1738
|
order: Order;
|
|
1613
1739
|
utils: Utils;
|
|
1614
1740
|
account: Account;
|
|
1741
|
+
seamless: Seamless;
|
|
1615
1742
|
/**
|
|
1616
1743
|
* 获取配置管理器(用于访问 accessToken 相关方法)
|
|
1617
1744
|
*/
|
|
@@ -1631,4 +1758,4 @@ declare class MyxClient {
|
|
|
1631
1758
|
getAccessToken(): Promise<string | null>;
|
|
1632
1759
|
}
|
|
1633
1760
|
|
|
1634
|
-
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 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, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, addFavorite, approve, index$2 as base, baseUrl, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, 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 };
|
|
1761
|
+
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 SeamlessAccount, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, type TradeFlowItem, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -242,9 +242,10 @@ declare enum ErrorCode {
|
|
|
242
242
|
INVALID_PARAMETER = 9901,
|
|
243
243
|
NETWORK_ERROR = "ERR_NETWORK"
|
|
244
244
|
}
|
|
245
|
-
interface BaseResponse {
|
|
245
|
+
interface BaseResponse<T = any> {
|
|
246
246
|
code: ErrorCode;
|
|
247
247
|
msg: string | null;
|
|
248
|
+
data?: T;
|
|
248
249
|
}
|
|
249
250
|
type DashboardType = {
|
|
250
251
|
lpAsset: string;
|
|
@@ -544,6 +545,20 @@ interface MarketInfo {
|
|
|
544
545
|
poolPrimeThreshold: number;
|
|
545
546
|
decimals: number;
|
|
546
547
|
}
|
|
548
|
+
type SeamlessAccount = {
|
|
549
|
+
/** 登录时间戳 */
|
|
550
|
+
loginTime: number;
|
|
551
|
+
/** 无感账户私钥 */
|
|
552
|
+
apikey: string;
|
|
553
|
+
/** 无感账户地址 */
|
|
554
|
+
address: string;
|
|
555
|
+
/** 主账户地址 */
|
|
556
|
+
masterAddress: string;
|
|
557
|
+
/** 是否开启 */
|
|
558
|
+
enable: boolean;
|
|
559
|
+
/** 授权状态 */
|
|
560
|
+
authorize: Partial<Record<ChainId, boolean>>;
|
|
561
|
+
};
|
|
547
562
|
|
|
548
563
|
declare class Address {
|
|
549
564
|
private _addr;
|
|
@@ -682,7 +697,36 @@ interface TradeFlowItem {
|
|
|
682
697
|
}
|
|
683
698
|
declare const getTradeFlow: ({ accessToken, ...params }: GetHistoryOrdersParams & AccessTokenRequest) => Promise<ApiResponse<TradeFlowItem[]>>;
|
|
684
699
|
|
|
700
|
+
type ForwarderTxParams = {
|
|
701
|
+
from: string;
|
|
702
|
+
to: string;
|
|
703
|
+
value: string;
|
|
704
|
+
gas: string;
|
|
705
|
+
nonce: string;
|
|
706
|
+
data: string;
|
|
707
|
+
deadline: number;
|
|
708
|
+
signature: string;
|
|
709
|
+
};
|
|
710
|
+
declare const forwarderTxApi: (params: ForwarderTxParams, chainId: number) => Promise<ApiResponse<any>>;
|
|
711
|
+
type FetchForwarderGetParams = {
|
|
712
|
+
requestId: string;
|
|
713
|
+
};
|
|
714
|
+
declare enum ForwarderGetStatus {
|
|
715
|
+
EXECUTING = 1,
|
|
716
|
+
BROADCAST_FAILED = 2,
|
|
717
|
+
TIMEOUT_CANCEL = 3,
|
|
718
|
+
EXECUTED = 9
|
|
719
|
+
}
|
|
720
|
+
type FetchForwarderGetResponseData = {
|
|
721
|
+
status: ForwarderGetStatus;
|
|
722
|
+
txHash: string;
|
|
723
|
+
reason: string;
|
|
724
|
+
};
|
|
725
|
+
type FetchForwarderGetResponse = BaseResponse<FetchForwarderGetResponseData>;
|
|
726
|
+
declare const fetchForwarderGetApi: (params: FetchForwarderGetParams) => Promise<FetchForwarderGetResponse>;
|
|
727
|
+
|
|
685
728
|
declare const baseUrl = "https://api-test.myx.cash";
|
|
729
|
+
declare const forwardUrl = "https://api-test.myx.cash/v2/agent";
|
|
686
730
|
declare const getOraclePrice: (chainId: ChainId, poolIds?: string[]) => Promise<PriceResponse>;
|
|
687
731
|
interface LevelConfig {
|
|
688
732
|
fundingFeeRate1: number;
|
|
@@ -1159,8 +1203,6 @@ interface MyxClientConfig {
|
|
|
1159
1203
|
isTestnet?: boolean;
|
|
1160
1204
|
poolingInterval?: number;
|
|
1161
1205
|
seamlessMode?: boolean;
|
|
1162
|
-
seamlessKeyPath?: string;
|
|
1163
|
-
seamlessKeyPassword?: string;
|
|
1164
1206
|
socketConfig?: Partial<Omit<WebSocketConfig, "url">>;
|
|
1165
1207
|
logLevel?: LogLevel;
|
|
1166
1208
|
getAccessToken?: (() => Promise<AccessTokenResponse | undefined>) | (() => AccessTokenResponse | undefined);
|
|
@@ -1597,6 +1639,90 @@ declare class Order {
|
|
|
1597
1639
|
}>;
|
|
1598
1640
|
}
|
|
1599
1641
|
|
|
1642
|
+
declare class Seamless {
|
|
1643
|
+
private configManager;
|
|
1644
|
+
private logger;
|
|
1645
|
+
private utils;
|
|
1646
|
+
private account;
|
|
1647
|
+
private seamlessWallet;
|
|
1648
|
+
private seamlessWalletAuthorized;
|
|
1649
|
+
private seamlessWalletApikey;
|
|
1650
|
+
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, account: Account);
|
|
1651
|
+
onCheckRelayer(account: string, relayer: string): Promise<boolean>;
|
|
1652
|
+
getUSDPermitParams(deadline: number): Promise<{
|
|
1653
|
+
token: string | ethers$1.Addressable;
|
|
1654
|
+
owner: Promise<string> | undefined;
|
|
1655
|
+
spender: string;
|
|
1656
|
+
value: bigint;
|
|
1657
|
+
deadline: number;
|
|
1658
|
+
v: number;
|
|
1659
|
+
r: string;
|
|
1660
|
+
s: string;
|
|
1661
|
+
}[] | undefined>;
|
|
1662
|
+
forwarderTx({ from, to, value, gas, deadline, data, nonce, }: {
|
|
1663
|
+
from: string;
|
|
1664
|
+
to: string;
|
|
1665
|
+
value: string;
|
|
1666
|
+
gas: string;
|
|
1667
|
+
deadline: number;
|
|
1668
|
+
data: string;
|
|
1669
|
+
nonce: string;
|
|
1670
|
+
}): Promise<ApiResponse<any>>;
|
|
1671
|
+
authorizeSeamlessAccount({ approve, seamlessAddress }: {
|
|
1672
|
+
approve: boolean;
|
|
1673
|
+
seamlessAddress: string;
|
|
1674
|
+
}): Promise<ApiResponse<any>>;
|
|
1675
|
+
unLockSeamlessWallet({ masterAddress, password, apiKey }: {
|
|
1676
|
+
masterAddress: string;
|
|
1677
|
+
password: string;
|
|
1678
|
+
apiKey: string;
|
|
1679
|
+
}): Promise<{
|
|
1680
|
+
code: number;
|
|
1681
|
+
data: {
|
|
1682
|
+
masterAddress: string;
|
|
1683
|
+
seamlessAccount: string;
|
|
1684
|
+
authorized: boolean;
|
|
1685
|
+
};
|
|
1686
|
+
}>;
|
|
1687
|
+
exportSeamlessPrivateKey({ password, apiKey }: {
|
|
1688
|
+
password: string;
|
|
1689
|
+
apiKey: string;
|
|
1690
|
+
}): Promise<{
|
|
1691
|
+
code: number;
|
|
1692
|
+
data: {
|
|
1693
|
+
privateKey: string;
|
|
1694
|
+
};
|
|
1695
|
+
}>;
|
|
1696
|
+
importSeamlessPrivateKey({ privateKey, password }: {
|
|
1697
|
+
privateKey: string;
|
|
1698
|
+
password: string;
|
|
1699
|
+
}): Promise<{
|
|
1700
|
+
code: number;
|
|
1701
|
+
data: {
|
|
1702
|
+
masterAddress: string;
|
|
1703
|
+
seamlessAccount: string;
|
|
1704
|
+
authorized: boolean;
|
|
1705
|
+
apiKey: string;
|
|
1706
|
+
};
|
|
1707
|
+
}>;
|
|
1708
|
+
createSeamless({ password }: {
|
|
1709
|
+
password: string;
|
|
1710
|
+
}): Promise<{
|
|
1711
|
+
code: number;
|
|
1712
|
+
data: {
|
|
1713
|
+
masterAddress: string;
|
|
1714
|
+
seamlessAccount: string;
|
|
1715
|
+
authorized: boolean;
|
|
1716
|
+
apiKey: string;
|
|
1717
|
+
};
|
|
1718
|
+
message?: undefined;
|
|
1719
|
+
} | {
|
|
1720
|
+
code: number;
|
|
1721
|
+
message: string;
|
|
1722
|
+
data?: undefined;
|
|
1723
|
+
}>;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1600
1726
|
declare class MyxClient {
|
|
1601
1727
|
/**
|
|
1602
1728
|
* private properties
|
|
@@ -1612,6 +1738,7 @@ declare class MyxClient {
|
|
|
1612
1738
|
order: Order;
|
|
1613
1739
|
utils: Utils;
|
|
1614
1740
|
account: Account;
|
|
1741
|
+
seamless: Seamless;
|
|
1615
1742
|
/**
|
|
1616
1743
|
* 获取配置管理器(用于访问 accessToken 相关方法)
|
|
1617
1744
|
*/
|
|
@@ -1631,4 +1758,4 @@ declare class MyxClient {
|
|
|
1631
1758
|
getAccessToken(): Promise<string | null>;
|
|
1632
1759
|
}
|
|
1633
1760
|
|
|
1634
|
-
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 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, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, addFavorite, approve, index$2 as base, baseUrl, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, 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 };
|
|
1761
|
+
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 SeamlessAccount, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, type TradeFlowItem, 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 };
|