hvip-mcp-server 0.2.32 → 0.2.33

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.
Files changed (2) hide show
  1. package/dist/index.js +16 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21475,6 +21475,8 @@ var privateApi = {
21475
21475
  getSfpOrderHistory: (auth) => request("GET", "/api/v5/finance/sfp/dcd/order-history", { auth }),
21476
21476
  getAccountBillsArchive: (auth) => request("GET", "/api/v5/account/bills-archive", { auth }),
21477
21477
  setAutoLoan: (auth, body) => request("POST", "/api/v5/account/set-auto-loan", { body, auth }),
21478
+ // ── 最终收尾 ──────────────────────────────────────────────
21479
+ getAssetBalances: (auth, ccy) => request("GET", "/api/v5/asset/balances", { params: { ccy }, auth }),
21478
21480
  setTradingConfig: (auth, body) => request("POST", "/api/v5/account/set-trading-config", { body, auth }),
21479
21481
  movePositions: (auth, body) => request("POST", "/api/v5/account/move-positions", { body, auth })
21480
21482
  };
@@ -24273,6 +24275,20 @@ function registerFundingTools(server, auth) {
24273
24275
  }
24274
24276
  }
24275
24277
  );
24278
+ server.tool(
24279
+ "okx_get_asset_balances",
24280
+ "## \u529F\u80FD\uFF1A\u67E5\u8BE2\u8D44\u91D1\u8D26\u6237\u4F59\u989D\n## \u573A\u666F\uFF1A\u7528\u4E8E\u67E5\u770B\u8D44\u91D1\u8D26\u6237\u5404\u5E01\u79CD\u53EF\u7528\u548C\u51BB\u7ED3\u4F59\u989D\n## \u53C2\u6570\uFF1A\n## - ccy: \u6307\u5B9A\u5E01\u79CD\uFF0C\u4E0D\u586B\u8FD4\u56DE\u5168\u90E8\n## \u9274\u6743\uFF1A\u26A0\uFE0F \u9700\u8981 API Key\uFF08\u53EA\u8BFB\uFF09\n## \u98CE\u9669\uFF1AREAD \u2014 \u53EA\u8BFB\u67E5\u8BE2\n## \u8FD4\u56DE\u91CF\uFF1A\u4E2D\u7B49 ~5KB",
24281
+ { ccy: external_exports.string().optional().describe("\u6307\u5B9A\u5E01\u79CD\uFF0C\u4E0D\u586B\u8FD4\u56DE\u5168\u90E8") },
24282
+ async ({ ccy }) => {
24283
+ if (!auth) return toError(AUTH_REQUIRED);
24284
+ try {
24285
+ const data = await privateApi.getAssetBalances(auth, ccy);
24286
+ return toResult(data);
24287
+ } catch (e) {
24288
+ return toError(e);
24289
+ }
24290
+ }
24291
+ );
24276
24292
  }
24277
24293
 
24278
24294
  // src/tools/stats.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvip-mcp-server",
3
- "version": "0.2.32",
3
+ "version": "0.2.33",
4
4
  "description": "OKX ecosystem MCP server - full API coverage for AI agents",
5
5
  "homepage": "https://hvip.one",
6
6
  "license": "MIT",