@myx-trade/sdk 0.1.245-beta.1 → 0.1.245-beta.2
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 +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +599 -1187
- package/dist/index.mjs +599 -1187
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1387,7 +1387,7 @@ declare class Utils {
|
|
|
1387
1387
|
message: any;
|
|
1388
1388
|
data?: undefined;
|
|
1389
1389
|
}>;
|
|
1390
|
-
getNetworkFee(
|
|
1390
|
+
getNetworkFee(marketId: string, chainId: number): Promise<any>;
|
|
1391
1391
|
getOraclePrice(poolId: string, chainId: number): Promise<{
|
|
1392
1392
|
poolId: string;
|
|
1393
1393
|
price: string;
|
|
@@ -1752,6 +1752,14 @@ declare class Api extends Request {
|
|
|
1752
1752
|
getAppealReimbursementList(params: AppealReimbursementParams): Promise<ApiResponse<AppealReimbursementItem[]>>;
|
|
1753
1753
|
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<AppealNodeVoteItem[]>>;
|
|
1754
1754
|
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
1755
|
+
/**
|
|
1756
|
+
* appeal module end ------>
|
|
1757
|
+
*/
|
|
1758
|
+
getCurrentEpoch({ address, accessToken, broker, }: {
|
|
1759
|
+
address: string;
|
|
1760
|
+
accessToken: string;
|
|
1761
|
+
broker: string;
|
|
1762
|
+
}): Promise<ApiResponse<number>>;
|
|
1755
1763
|
}
|
|
1756
1764
|
|
|
1757
1765
|
declare class Markets {
|
|
@@ -1878,6 +1886,7 @@ declare class Account {
|
|
|
1878
1886
|
message: string;
|
|
1879
1887
|
data?: undefined;
|
|
1880
1888
|
}>;
|
|
1889
|
+
getCurrentEpoch(): Promise<void>;
|
|
1881
1890
|
getAccountVipInfo(chainId: number, address: string): Promise<{
|
|
1882
1891
|
code: number;
|
|
1883
1892
|
data: any;
|
|
@@ -2088,7 +2097,7 @@ declare class Order {
|
|
|
2088
2097
|
private account;
|
|
2089
2098
|
private api;
|
|
2090
2099
|
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, seamless: Seamless, account: Account, api: Api);
|
|
2091
|
-
createIncreaseOrder(params: PlaceOrderParams, tradingFee: string): Promise<{
|
|
2100
|
+
createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string): Promise<{
|
|
2092
2101
|
code: number;
|
|
2093
2102
|
message: string;
|
|
2094
2103
|
data: ApiResponse<any>;
|
|
@@ -2110,7 +2119,7 @@ declare class Order {
|
|
|
2110
2119
|
message: any;
|
|
2111
2120
|
data?: undefined;
|
|
2112
2121
|
}>;
|
|
2113
|
-
closeAllPositions(chainId: number, params: PlaceOrderParams[]
|
|
2122
|
+
closeAllPositions(chainId: number, params: PlaceOrderParams[]): Promise<{
|
|
2114
2123
|
code: number;
|
|
2115
2124
|
message: string;
|
|
2116
2125
|
data: ApiResponse<any>;
|
|
@@ -2215,7 +2224,7 @@ declare class Order {
|
|
|
2215
2224
|
message: any;
|
|
2216
2225
|
data?: undefined;
|
|
2217
2226
|
}>;
|
|
2218
|
-
updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number, address: string): Promise<{
|
|
2227
|
+
updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number, address: string, marketId: string): Promise<{
|
|
2219
2228
|
code: number;
|
|
2220
2229
|
message: string;
|
|
2221
2230
|
data: ApiResponse<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1387,7 +1387,7 @@ declare class Utils {
|
|
|
1387
1387
|
message: any;
|
|
1388
1388
|
data?: undefined;
|
|
1389
1389
|
}>;
|
|
1390
|
-
getNetworkFee(
|
|
1390
|
+
getNetworkFee(marketId: string, chainId: number): Promise<any>;
|
|
1391
1391
|
getOraclePrice(poolId: string, chainId: number): Promise<{
|
|
1392
1392
|
poolId: string;
|
|
1393
1393
|
price: string;
|
|
@@ -1752,6 +1752,14 @@ declare class Api extends Request {
|
|
|
1752
1752
|
getAppealReimbursementList(params: AppealReimbursementParams): Promise<ApiResponse<AppealReimbursementItem[]>>;
|
|
1753
1753
|
getAppealNodeVoteList(params: GetAppealNodeVoteListParams): Promise<ApiResponse<AppealNodeVoteItem[]>>;
|
|
1754
1754
|
getIsVoteNode(params: GetIsVoteNodeParams): Promise<ApiResponse<IsVoteNodeEnum>>;
|
|
1755
|
+
/**
|
|
1756
|
+
* appeal module end ------>
|
|
1757
|
+
*/
|
|
1758
|
+
getCurrentEpoch({ address, accessToken, broker, }: {
|
|
1759
|
+
address: string;
|
|
1760
|
+
accessToken: string;
|
|
1761
|
+
broker: string;
|
|
1762
|
+
}): Promise<ApiResponse<number>>;
|
|
1755
1763
|
}
|
|
1756
1764
|
|
|
1757
1765
|
declare class Markets {
|
|
@@ -1878,6 +1886,7 @@ declare class Account {
|
|
|
1878
1886
|
message: string;
|
|
1879
1887
|
data?: undefined;
|
|
1880
1888
|
}>;
|
|
1889
|
+
getCurrentEpoch(): Promise<void>;
|
|
1881
1890
|
getAccountVipInfo(chainId: number, address: string): Promise<{
|
|
1882
1891
|
code: number;
|
|
1883
1892
|
data: any;
|
|
@@ -2088,7 +2097,7 @@ declare class Order {
|
|
|
2088
2097
|
private account;
|
|
2089
2098
|
private api;
|
|
2090
2099
|
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, seamless: Seamless, account: Account, api: Api);
|
|
2091
|
-
createIncreaseOrder(params: PlaceOrderParams, tradingFee: string): Promise<{
|
|
2100
|
+
createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string): Promise<{
|
|
2092
2101
|
code: number;
|
|
2093
2102
|
message: string;
|
|
2094
2103
|
data: ApiResponse<any>;
|
|
@@ -2110,7 +2119,7 @@ declare class Order {
|
|
|
2110
2119
|
message: any;
|
|
2111
2120
|
data?: undefined;
|
|
2112
2121
|
}>;
|
|
2113
|
-
closeAllPositions(chainId: number, params: PlaceOrderParams[]
|
|
2122
|
+
closeAllPositions(chainId: number, params: PlaceOrderParams[]): Promise<{
|
|
2114
2123
|
code: number;
|
|
2115
2124
|
message: string;
|
|
2116
2125
|
data: ApiResponse<any>;
|
|
@@ -2215,7 +2224,7 @@ declare class Order {
|
|
|
2215
2224
|
message: any;
|
|
2216
2225
|
data?: undefined;
|
|
2217
2226
|
}>;
|
|
2218
|
-
updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number, address: string): Promise<{
|
|
2227
|
+
updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number, address: string, marketId: string): Promise<{
|
|
2219
2228
|
code: number;
|
|
2220
2229
|
message: string;
|
|
2221
2230
|
data: ApiResponse<any>;
|