@myx-trade/sdk 0.1.199 → 0.1.201

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
@@ -1486,9 +1486,10 @@ declare class Api {
1486
1486
  getHistoryOrders({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<HistoryOrderItem[]>>;
1487
1487
  getPositionHistory({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<PositionHistoryItem[]>>;
1488
1488
  getMarketList(): Promise<ApiResponse<MarketInfo[]>>;
1489
- getAccountVipInfo({ address, accessToken }: {
1489
+ getAccountVipInfo({ address, accessToken, chainId }: {
1490
1490
  address: string;
1491
1491
  accessToken: string;
1492
+ chainId: number;
1492
1493
  }): Promise<ApiResponse<any>>;
1493
1494
  }
1494
1495
 
@@ -1625,7 +1626,7 @@ declare class Account {
1625
1626
  message: string;
1626
1627
  data?: undefined;
1627
1628
  }>;
1628
- getAccountVipInfoByBackend(address: string): Promise<{
1629
+ getAccountVipInfoByBackend(address: string, chainId: number): Promise<{
1629
1630
  code: number;
1630
1631
  data: any;
1631
1632
  message?: undefined;
package/dist/index.d.ts CHANGED
@@ -1486,9 +1486,10 @@ declare class Api {
1486
1486
  getHistoryOrders({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<HistoryOrderItem[]>>;
1487
1487
  getPositionHistory({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<PositionHistoryItem[]>>;
1488
1488
  getMarketList(): Promise<ApiResponse<MarketInfo[]>>;
1489
- getAccountVipInfo({ address, accessToken }: {
1489
+ getAccountVipInfo({ address, accessToken, chainId }: {
1490
1490
  address: string;
1491
1491
  accessToken: string;
1492
+ chainId: number;
1492
1493
  }): Promise<ApiResponse<any>>;
1493
1494
  }
1494
1495
 
@@ -1625,7 +1626,7 @@ declare class Account {
1625
1626
  message: string;
1626
1627
  data?: undefined;
1627
1628
  }>;
1628
- getAccountVipInfoByBackend(address: string): Promise<{
1629
+ getAccountVipInfoByBackend(address: string, chainId: number): Promise<{
1629
1630
  code: number;
1630
1631
  data: any;
1631
1632
  message?: undefined;
package/dist/index.js CHANGED
@@ -1807,7 +1807,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
1807
1807
  // package.json
1808
1808
  var package_default = {
1809
1809
  name: "@myx-trade/sdk",
1810
- version: "0.1.199",
1810
+ version: "0.1.201",
1811
1811
  private: false,
1812
1812
  publishConfig: {
1813
1813
  access: "public"
@@ -21313,7 +21313,7 @@ var Account = class {
21313
21313
  };
21314
21314
  }
21315
21315
  }
21316
- async getAccountVipInfoByBackend(address) {
21316
+ async getAccountVipInfoByBackend(address, chainId) {
21317
21317
  const accessToken = await this.configManager.getAccessToken();
21318
21318
  if (!accessToken) {
21319
21319
  throw new MyxSDKError(
@@ -21322,7 +21322,7 @@ var Account = class {
21322
21322
  );
21323
21323
  }
21324
21324
  try {
21325
- const res = await this.client.api.getAccountVipInfo({ address, accessToken });
21325
+ const res = await this.client.api.getAccountVipInfo({ address, accessToken, chainId });
21326
21326
  if (res.code !== 9200) {
21327
21327
  throw new MyxSDKError(
21328
21328
  "REQUEST_FAILED" /* RequestFailed */,
@@ -21616,10 +21616,10 @@ var Api = class {
21616
21616
  `${this.getHost()}/openapi/gateway/scan/market`
21617
21617
  );
21618
21618
  }
21619
- async getAccountVipInfo({ address, accessToken }) {
21619
+ async getAccountVipInfo({ address, accessToken, chainId }) {
21620
21620
  return http.get(
21621
21621
  `${this.getHost()}/openapi/gateway/vip/trade_config`,
21622
- void 0,
21622
+ { chainId },
21623
21623
  {
21624
21624
  headers: {
21625
21625
  myx_openapi_account: address,
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.199",
1734
+ version: "0.1.201",
1735
1735
  private: false,
1736
1736
  publishConfig: {
1737
1737
  access: "public"
@@ -21237,7 +21237,7 @@ var Account = class {
21237
21237
  };
21238
21238
  }
21239
21239
  }
21240
- async getAccountVipInfoByBackend(address) {
21240
+ async getAccountVipInfoByBackend(address, chainId) {
21241
21241
  const accessToken = await this.configManager.getAccessToken();
21242
21242
  if (!accessToken) {
21243
21243
  throw new MyxSDKError(
@@ -21246,7 +21246,7 @@ var Account = class {
21246
21246
  );
21247
21247
  }
21248
21248
  try {
21249
- const res = await this.client.api.getAccountVipInfo({ address, accessToken });
21249
+ const res = await this.client.api.getAccountVipInfo({ address, accessToken, chainId });
21250
21250
  if (res.code !== 9200) {
21251
21251
  throw new MyxSDKError(
21252
21252
  "REQUEST_FAILED" /* RequestFailed */,
@@ -21540,10 +21540,10 @@ var Api = class {
21540
21540
  `${this.getHost()}/openapi/gateway/scan/market`
21541
21541
  );
21542
21542
  }
21543
- async getAccountVipInfo({ address, accessToken }) {
21543
+ async getAccountVipInfo({ address, accessToken, chainId }) {
21544
21544
  return http.get(
21545
21545
  `${this.getHost()}/openapi/gateway/vip/trade_config`,
21546
- void 0,
21546
+ { chainId },
21547
21547
  {
21548
21548
  headers: {
21549
21549
  myx_openapi_account: address,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myx-trade/sdk",
3
- "version": "0.1.199",
3
+ "version": "0.1.201",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"