@myx-trade/sdk 1.0.0 → 1.0.2-beta.0
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 +71 -19
- package/dist/index.d.ts +71 -19
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -354,19 +354,62 @@ interface ApiResponse<T = Record<string, any>> extends BaseResponse {
|
|
|
354
354
|
data: T;
|
|
355
355
|
}
|
|
356
356
|
interface PositionType {
|
|
357
|
+
chainId: number;
|
|
357
358
|
poolId: string;
|
|
358
359
|
positionId: string;
|
|
359
360
|
direction: Direction;
|
|
360
361
|
entryPrice: string;
|
|
361
|
-
fundingRateIndex: string;
|
|
362
362
|
size: string;
|
|
363
|
-
riskTier: number;
|
|
364
363
|
collateralAmount: string;
|
|
364
|
+
fundingRateIndex: string;
|
|
365
|
+
riskTier: number;
|
|
365
366
|
txTime: number;
|
|
367
|
+
broker: string;
|
|
368
|
+
userLeverage: number;
|
|
369
|
+
baseSymbol: string;
|
|
370
|
+
quoteSymbol: string;
|
|
371
|
+
earlyClosePrice: string;
|
|
372
|
+
tradingFee: string;
|
|
373
|
+
tokenId: string | null;
|
|
374
|
+
freeAmount: string;
|
|
375
|
+
lockedAmount: string;
|
|
366
376
|
}
|
|
367
377
|
interface PositionResponse extends BaseResponse {
|
|
368
378
|
data: PositionType[];
|
|
369
379
|
}
|
|
380
|
+
interface OrderItem {
|
|
381
|
+
baseSymbol: string;
|
|
382
|
+
chainId: number;
|
|
383
|
+
collateralAmount: string;
|
|
384
|
+
direction: Direction;
|
|
385
|
+
executionFeeAmount: string;
|
|
386
|
+
executionFeeToken: string | null;
|
|
387
|
+
filledAmount: string;
|
|
388
|
+
filledSize: string;
|
|
389
|
+
operation: OperationType;
|
|
390
|
+
orderId: number;
|
|
391
|
+
orderType: OrderType;
|
|
392
|
+
poolId: string;
|
|
393
|
+
positionId: string;
|
|
394
|
+
postOnly: 0 | 1;
|
|
395
|
+
price: string;
|
|
396
|
+
quoteSymbol: string;
|
|
397
|
+
size: string;
|
|
398
|
+
slPrice: string | null;
|
|
399
|
+
slSize: string | null;
|
|
400
|
+
slippagePct: number;
|
|
401
|
+
tif: TimeInForce;
|
|
402
|
+
tpPrice: string | null;
|
|
403
|
+
tpSize: string | null;
|
|
404
|
+
triggerType: TriggerType$1;
|
|
405
|
+
txHash: string;
|
|
406
|
+
txTime: number;
|
|
407
|
+
user: string;
|
|
408
|
+
useLeverage: number;
|
|
409
|
+
}
|
|
410
|
+
interface OrderResponse extends BaseResponse {
|
|
411
|
+
data: OrderItem[];
|
|
412
|
+
}
|
|
370
413
|
interface PoolOpenOrder {
|
|
371
414
|
amount: string;
|
|
372
415
|
chainId: number;
|
|
@@ -1413,18 +1456,16 @@ declare class Utils {
|
|
|
1413
1456
|
message: any;
|
|
1414
1457
|
}>;
|
|
1415
1458
|
getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number): Promise<{
|
|
1416
|
-
code:
|
|
1459
|
+
code: 0;
|
|
1417
1460
|
data: {
|
|
1418
|
-
takerFeeRate:
|
|
1419
|
-
makerFeeRate:
|
|
1420
|
-
baseTakerFeeRate:
|
|
1421
|
-
baseMakerFeeRate:
|
|
1461
|
+
takerFeeRate: string;
|
|
1462
|
+
makerFeeRate: string;
|
|
1463
|
+
baseTakerFeeRate: string;
|
|
1464
|
+
baseMakerFeeRate: string;
|
|
1422
1465
|
};
|
|
1423
|
-
message?: undefined;
|
|
1424
1466
|
} | {
|
|
1425
|
-
code:
|
|
1426
|
-
message:
|
|
1427
|
-
data?: undefined;
|
|
1467
|
+
code: -1;
|
|
1468
|
+
message: string;
|
|
1428
1469
|
}>;
|
|
1429
1470
|
getNetworkFee(marketId: string, chainId: number): Promise<any>;
|
|
1430
1471
|
getOraclePrice(poolId: string, chainId: number): Promise<{
|
|
@@ -1857,7 +1898,7 @@ declare class Api extends Request {
|
|
|
1857
1898
|
getPoolDetail(chainId: number, poolId: string): Promise<PoolResponse>;
|
|
1858
1899
|
getPoolLevelConfig({ poolId, chainId }: GetPoolLevelConfigParams): Promise<ApiResponse<PoolLevelConfig>>;
|
|
1859
1900
|
getPositions(accessToken: string, address: string): Promise<PositionResponse>;
|
|
1860
|
-
getOrders(accessToken: string, address: string): Promise<
|
|
1901
|
+
getOrders(accessToken: string, address: string): Promise<OrderResponse>;
|
|
1861
1902
|
getPoolOpenOrders(accessToken: string, address: string, chainId: ChainId): Promise<PoolOpenOrdersResponse>;
|
|
1862
1903
|
getKlineData({ chainId, poolId, endTime, limit, interval, }: GetKlineDataParams): Promise<ApiResponse<KlineDataItemType[]>>;
|
|
1863
1904
|
getKlineLatestBar(params: Pick<GetKlineDataParams, "chainId" | "poolId" | "interval">): Promise<ApiResponse<KlineDataItemType>>;
|
|
@@ -1975,12 +2016,25 @@ declare class Markets {
|
|
|
1975
2016
|
getPoolSymbolAll(): Promise<PoolSymbolAllResponse[]>;
|
|
1976
2017
|
}
|
|
1977
2018
|
|
|
2019
|
+
type Timestamp = number;
|
|
2020
|
+
type AccountInfo = {
|
|
2021
|
+
freeMargin: string;
|
|
2022
|
+
walletBalance: string;
|
|
2023
|
+
freeBaseAmount: string;
|
|
2024
|
+
baseProfit: string;
|
|
2025
|
+
quoteProfit: string;
|
|
2026
|
+
reservedAmount: string;
|
|
2027
|
+
releaseTime: Timestamp;
|
|
2028
|
+
};
|
|
2029
|
+
|
|
1978
2030
|
declare class Account {
|
|
1979
2031
|
private configManager;
|
|
1980
2032
|
private logger;
|
|
1981
2033
|
private utils;
|
|
1982
2034
|
private client;
|
|
1983
2035
|
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, client: MyxClient);
|
|
2036
|
+
/** Retry an async call a few times to tolerate intermittent RPC/decoding failures (e.g. BAD_DATA / 0x). */
|
|
2037
|
+
private withRetry;
|
|
1984
2038
|
getWalletQuoteTokenBalance(chainId: number, address?: string): Promise<{
|
|
1985
2039
|
code: number;
|
|
1986
2040
|
data: any;
|
|
@@ -2031,13 +2085,11 @@ declare class Account {
|
|
|
2031
2085
|
data?: undefined;
|
|
2032
2086
|
}>;
|
|
2033
2087
|
getAccountInfo(chainId: number, address: string, poolId: string): Promise<{
|
|
2034
|
-
code:
|
|
2035
|
-
data:
|
|
2036
|
-
message?: undefined;
|
|
2088
|
+
code: 0;
|
|
2089
|
+
data: AccountInfo;
|
|
2037
2090
|
} | {
|
|
2038
|
-
code:
|
|
2091
|
+
code: -1;
|
|
2039
2092
|
message: string;
|
|
2040
|
-
data?: undefined;
|
|
2041
2093
|
}>;
|
|
2042
2094
|
getAccountVipInfo(chainId: number, address: string): Promise<{
|
|
2043
2095
|
code: number;
|
|
@@ -2390,7 +2442,7 @@ declare class Order {
|
|
|
2390
2442
|
}>;
|
|
2391
2443
|
getOrders(address: string): Promise<{
|
|
2392
2444
|
code: number;
|
|
2393
|
-
data:
|
|
2445
|
+
data: OrderItem[];
|
|
2394
2446
|
message?: undefined;
|
|
2395
2447
|
} | {
|
|
2396
2448
|
code: number;
|
|
@@ -4004,4 +4056,4 @@ declare class MyxClient {
|
|
|
4004
4056
|
|
|
4005
4057
|
declare const SDK_VERSION: string;
|
|
4006
4058
|
|
|
4007
|
-
export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address, type ApiResponse, AppealCaseTypeEnum, AppealClaimStatusEnum, type AppealDetail, type AppealListItem, AppealNodeStateEnum, type AppealNodeVoteItem, type AppealNodeVoteListItem, AppealNodeVotedStateEnum, type AppealReconsiderationDetail, type AppealReconsiderationItem, type AppealReconsiderationListItem, AppealReconsiderationType, type AppealReimbursementItem, type AppealReimbursementParams, AppealStage, AppealStatus, AppealType, type AppealUploadEvidenceParams, type AppealVoteItem, 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 GetAppealDetailParams, type GetAppealListParams, type GetAppealNodeVoteListParams, type GetAppealReconsiderationDetailParams, type GetAppealReconsiderationListParams, type GetAppealVoteNodeDetailParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetIsVoteNodeParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type GetWarmholeSignParams, type GetWarmholeSignResponse, type GuardianSignatureItem, type HistoryOrderItem, type HttpEnvParams, HttpKlineIntervalEnum, IsVoteNodeEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MxSDK, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, NodeTypeEnum, 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 PostVoteResponse, type PostVoteSignatureParams, type PriceResponse, type PriceType, type RemoveFavoriteParams, SDK_VERSION, 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, VoteTypeEnum, approve, index$2 as base, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, getAllowanceApproved, getBalanceOf, getBaseDetail, getBaseUrlByEnv, getMarketDetail, getMarketList, getOraclePrice, getPoolDetail, getPoolList, getPoolOpenOrders, getPriceData, getPricesData, getTickerData, getTokenInfo, index as market, index$3 as pool, index$1 as quote };
|
|
4059
|
+
export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address, type ApiResponse, AppealCaseTypeEnum, AppealClaimStatusEnum, type AppealDetail, type AppealListItem, AppealNodeStateEnum, type AppealNodeVoteItem, type AppealNodeVoteListItem, AppealNodeVotedStateEnum, type AppealReconsiderationDetail, type AppealReconsiderationItem, type AppealReconsiderationListItem, AppealReconsiderationType, type AppealReimbursementItem, type AppealReimbursementParams, AppealStage, AppealStatus, AppealType, type AppealUploadEvidenceParams, type AppealVoteItem, 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 GetAppealDetailParams, type GetAppealListParams, type GetAppealNodeVoteListParams, type GetAppealReconsiderationDetailParams, type GetAppealReconsiderationListParams, type GetAppealVoteNodeDetailParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetIsVoteNodeParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type GetWarmholeSignParams, type GetWarmholeSignResponse, type GuardianSignatureItem, type HistoryOrderItem, type HttpEnvParams, HttpKlineIntervalEnum, IsVoteNodeEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MxSDK, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, NodeTypeEnum, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, type OrderItem, type OrderResponse, 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 PostVoteResponse, type PostVoteSignatureParams, type PriceResponse, type PriceType, type RemoveFavoriteParams, SDK_VERSION, 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, VoteTypeEnum, approve, index$2 as base, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, getAllowanceApproved, getBalanceOf, getBaseDetail, getBaseUrlByEnv, getMarketDetail, getMarketList, getOraclePrice, getPoolDetail, getPoolList, getPoolOpenOrders, getPriceData, getPricesData, getTickerData, getTokenInfo, index as market, index$3 as pool, index$1 as quote };
|
package/dist/index.d.ts
CHANGED
|
@@ -354,19 +354,62 @@ interface ApiResponse<T = Record<string, any>> extends BaseResponse {
|
|
|
354
354
|
data: T;
|
|
355
355
|
}
|
|
356
356
|
interface PositionType {
|
|
357
|
+
chainId: number;
|
|
357
358
|
poolId: string;
|
|
358
359
|
positionId: string;
|
|
359
360
|
direction: Direction;
|
|
360
361
|
entryPrice: string;
|
|
361
|
-
fundingRateIndex: string;
|
|
362
362
|
size: string;
|
|
363
|
-
riskTier: number;
|
|
364
363
|
collateralAmount: string;
|
|
364
|
+
fundingRateIndex: string;
|
|
365
|
+
riskTier: number;
|
|
365
366
|
txTime: number;
|
|
367
|
+
broker: string;
|
|
368
|
+
userLeverage: number;
|
|
369
|
+
baseSymbol: string;
|
|
370
|
+
quoteSymbol: string;
|
|
371
|
+
earlyClosePrice: string;
|
|
372
|
+
tradingFee: string;
|
|
373
|
+
tokenId: string | null;
|
|
374
|
+
freeAmount: string;
|
|
375
|
+
lockedAmount: string;
|
|
366
376
|
}
|
|
367
377
|
interface PositionResponse extends BaseResponse {
|
|
368
378
|
data: PositionType[];
|
|
369
379
|
}
|
|
380
|
+
interface OrderItem {
|
|
381
|
+
baseSymbol: string;
|
|
382
|
+
chainId: number;
|
|
383
|
+
collateralAmount: string;
|
|
384
|
+
direction: Direction;
|
|
385
|
+
executionFeeAmount: string;
|
|
386
|
+
executionFeeToken: string | null;
|
|
387
|
+
filledAmount: string;
|
|
388
|
+
filledSize: string;
|
|
389
|
+
operation: OperationType;
|
|
390
|
+
orderId: number;
|
|
391
|
+
orderType: OrderType;
|
|
392
|
+
poolId: string;
|
|
393
|
+
positionId: string;
|
|
394
|
+
postOnly: 0 | 1;
|
|
395
|
+
price: string;
|
|
396
|
+
quoteSymbol: string;
|
|
397
|
+
size: string;
|
|
398
|
+
slPrice: string | null;
|
|
399
|
+
slSize: string | null;
|
|
400
|
+
slippagePct: number;
|
|
401
|
+
tif: TimeInForce;
|
|
402
|
+
tpPrice: string | null;
|
|
403
|
+
tpSize: string | null;
|
|
404
|
+
triggerType: TriggerType$1;
|
|
405
|
+
txHash: string;
|
|
406
|
+
txTime: number;
|
|
407
|
+
user: string;
|
|
408
|
+
useLeverage: number;
|
|
409
|
+
}
|
|
410
|
+
interface OrderResponse extends BaseResponse {
|
|
411
|
+
data: OrderItem[];
|
|
412
|
+
}
|
|
370
413
|
interface PoolOpenOrder {
|
|
371
414
|
amount: string;
|
|
372
415
|
chainId: number;
|
|
@@ -1413,18 +1456,16 @@ declare class Utils {
|
|
|
1413
1456
|
message: any;
|
|
1414
1457
|
}>;
|
|
1415
1458
|
getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number): Promise<{
|
|
1416
|
-
code:
|
|
1459
|
+
code: 0;
|
|
1417
1460
|
data: {
|
|
1418
|
-
takerFeeRate:
|
|
1419
|
-
makerFeeRate:
|
|
1420
|
-
baseTakerFeeRate:
|
|
1421
|
-
baseMakerFeeRate:
|
|
1461
|
+
takerFeeRate: string;
|
|
1462
|
+
makerFeeRate: string;
|
|
1463
|
+
baseTakerFeeRate: string;
|
|
1464
|
+
baseMakerFeeRate: string;
|
|
1422
1465
|
};
|
|
1423
|
-
message?: undefined;
|
|
1424
1466
|
} | {
|
|
1425
|
-
code:
|
|
1426
|
-
message:
|
|
1427
|
-
data?: undefined;
|
|
1467
|
+
code: -1;
|
|
1468
|
+
message: string;
|
|
1428
1469
|
}>;
|
|
1429
1470
|
getNetworkFee(marketId: string, chainId: number): Promise<any>;
|
|
1430
1471
|
getOraclePrice(poolId: string, chainId: number): Promise<{
|
|
@@ -1857,7 +1898,7 @@ declare class Api extends Request {
|
|
|
1857
1898
|
getPoolDetail(chainId: number, poolId: string): Promise<PoolResponse>;
|
|
1858
1899
|
getPoolLevelConfig({ poolId, chainId }: GetPoolLevelConfigParams): Promise<ApiResponse<PoolLevelConfig>>;
|
|
1859
1900
|
getPositions(accessToken: string, address: string): Promise<PositionResponse>;
|
|
1860
|
-
getOrders(accessToken: string, address: string): Promise<
|
|
1901
|
+
getOrders(accessToken: string, address: string): Promise<OrderResponse>;
|
|
1861
1902
|
getPoolOpenOrders(accessToken: string, address: string, chainId: ChainId): Promise<PoolOpenOrdersResponse>;
|
|
1862
1903
|
getKlineData({ chainId, poolId, endTime, limit, interval, }: GetKlineDataParams): Promise<ApiResponse<KlineDataItemType[]>>;
|
|
1863
1904
|
getKlineLatestBar(params: Pick<GetKlineDataParams, "chainId" | "poolId" | "interval">): Promise<ApiResponse<KlineDataItemType>>;
|
|
@@ -1975,12 +2016,25 @@ declare class Markets {
|
|
|
1975
2016
|
getPoolSymbolAll(): Promise<PoolSymbolAllResponse[]>;
|
|
1976
2017
|
}
|
|
1977
2018
|
|
|
2019
|
+
type Timestamp = number;
|
|
2020
|
+
type AccountInfo = {
|
|
2021
|
+
freeMargin: string;
|
|
2022
|
+
walletBalance: string;
|
|
2023
|
+
freeBaseAmount: string;
|
|
2024
|
+
baseProfit: string;
|
|
2025
|
+
quoteProfit: string;
|
|
2026
|
+
reservedAmount: string;
|
|
2027
|
+
releaseTime: Timestamp;
|
|
2028
|
+
};
|
|
2029
|
+
|
|
1978
2030
|
declare class Account {
|
|
1979
2031
|
private configManager;
|
|
1980
2032
|
private logger;
|
|
1981
2033
|
private utils;
|
|
1982
2034
|
private client;
|
|
1983
2035
|
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, client: MyxClient);
|
|
2036
|
+
/** Retry an async call a few times to tolerate intermittent RPC/decoding failures (e.g. BAD_DATA / 0x). */
|
|
2037
|
+
private withRetry;
|
|
1984
2038
|
getWalletQuoteTokenBalance(chainId: number, address?: string): Promise<{
|
|
1985
2039
|
code: number;
|
|
1986
2040
|
data: any;
|
|
@@ -2031,13 +2085,11 @@ declare class Account {
|
|
|
2031
2085
|
data?: undefined;
|
|
2032
2086
|
}>;
|
|
2033
2087
|
getAccountInfo(chainId: number, address: string, poolId: string): Promise<{
|
|
2034
|
-
code:
|
|
2035
|
-
data:
|
|
2036
|
-
message?: undefined;
|
|
2088
|
+
code: 0;
|
|
2089
|
+
data: AccountInfo;
|
|
2037
2090
|
} | {
|
|
2038
|
-
code:
|
|
2091
|
+
code: -1;
|
|
2039
2092
|
message: string;
|
|
2040
|
-
data?: undefined;
|
|
2041
2093
|
}>;
|
|
2042
2094
|
getAccountVipInfo(chainId: number, address: string): Promise<{
|
|
2043
2095
|
code: number;
|
|
@@ -2390,7 +2442,7 @@ declare class Order {
|
|
|
2390
2442
|
}>;
|
|
2391
2443
|
getOrders(address: string): Promise<{
|
|
2392
2444
|
code: number;
|
|
2393
|
-
data:
|
|
2445
|
+
data: OrderItem[];
|
|
2394
2446
|
message?: undefined;
|
|
2395
2447
|
} | {
|
|
2396
2448
|
code: number;
|
|
@@ -4004,4 +4056,4 @@ declare class MyxClient {
|
|
|
4004
4056
|
|
|
4005
4057
|
declare const SDK_VERSION: string;
|
|
4006
4058
|
|
|
4007
|
-
export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address, type ApiResponse, AppealCaseTypeEnum, AppealClaimStatusEnum, type AppealDetail, type AppealListItem, AppealNodeStateEnum, type AppealNodeVoteItem, type AppealNodeVoteListItem, AppealNodeVotedStateEnum, type AppealReconsiderationDetail, type AppealReconsiderationItem, type AppealReconsiderationListItem, AppealReconsiderationType, type AppealReimbursementItem, type AppealReimbursementParams, AppealStage, AppealStatus, AppealType, type AppealUploadEvidenceParams, type AppealVoteItem, 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 GetAppealDetailParams, type GetAppealListParams, type GetAppealNodeVoteListParams, type GetAppealReconsiderationDetailParams, type GetAppealReconsiderationListParams, type GetAppealVoteNodeDetailParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetIsVoteNodeParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type GetWarmholeSignParams, type GetWarmholeSignResponse, type GuardianSignatureItem, type HistoryOrderItem, type HttpEnvParams, HttpKlineIntervalEnum, IsVoteNodeEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MxSDK, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, NodeTypeEnum, 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 PostVoteResponse, type PostVoteSignatureParams, type PriceResponse, type PriceType, type RemoveFavoriteParams, SDK_VERSION, 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, VoteTypeEnum, approve, index$2 as base, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, getAllowanceApproved, getBalanceOf, getBaseDetail, getBaseUrlByEnv, getMarketDetail, getMarketList, getOraclePrice, getPoolDetail, getPoolList, getPoolOpenOrders, getPriceData, getPricesData, getTickerData, getTokenInfo, index as market, index$3 as pool, index$1 as quote };
|
|
4059
|
+
export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address, type ApiResponse, AppealCaseTypeEnum, AppealClaimStatusEnum, type AppealDetail, type AppealListItem, AppealNodeStateEnum, type AppealNodeVoteItem, type AppealNodeVoteListItem, AppealNodeVotedStateEnum, type AppealReconsiderationDetail, type AppealReconsiderationItem, type AppealReconsiderationListItem, AppealReconsiderationType, type AppealReimbursementItem, type AppealReimbursementParams, AppealStage, AppealStatus, AppealType, type AppealUploadEvidenceParams, type AppealVoteItem, 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 GetAppealDetailParams, type GetAppealListParams, type GetAppealNodeVoteListParams, type GetAppealReconsiderationDetailParams, type GetAppealReconsiderationListParams, type GetAppealVoteNodeDetailParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetIsVoteNodeParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type GetWarmholeSignParams, type GetWarmholeSignResponse, type GuardianSignatureItem, type HistoryOrderItem, type HttpEnvParams, HttpKlineIntervalEnum, IsVoteNodeEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MxSDK, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, NodeTypeEnum, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, type OrderItem, type OrderResponse, 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 PostVoteResponse, type PostVoteSignatureParams, type PriceResponse, type PriceType, type RemoveFavoriteParams, SDK_VERSION, 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, VoteTypeEnum, approve, index$2 as base, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, getAllowanceApproved, getBalanceOf, getBaseDetail, getBaseUrlByEnv, getMarketDetail, getMarketList, getOraclePrice, getPoolDetail, getPoolList, getPoolOpenOrders, getPriceData, getPricesData, getTickerData, getTokenInfo, index as market, index$3 as pool, index$1 as quote };
|