hvip-mcp-server 0.2.32 → 0.2.34

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 +32 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21394,6 +21394,7 @@ var privateApi = {
21394
21394
  getFundingRateHistory: (instId, before, after, limit) => request("GET", "/api/v5/public/funding-rate-history", { params: { instId, before, after, limit } }),
21395
21395
  getInterestRateLoanQuota: () => request("GET", "/api/v5/public/interest-rate-loan-quota"),
21396
21396
  getPremiumHistory: (instId, period) => request("GET", "/api/v5/public/premium-history", { params: { instId, period } }),
21397
+ getInstrumentTickBands: (instType) => request("GET", "/api/v5/public/instrument-tick-bands", { params: { instType } }),
21397
21398
  getSettlementHistory: (instType, instFamily, uly) => request("GET", "/api/v5/public/settlement-history", { params: { instType, instFamily, uly } }),
21398
21399
  getEventSeries: () => request("GET", "/api/v5/public/event-contract/series"),
21399
21400
  getEventMarkets: (seriesId) => request("GET", "/api/v5/public/event-contract/markets", { params: { seriesId } }),
@@ -21475,6 +21476,8 @@ var privateApi = {
21475
21476
  getSfpOrderHistory: (auth) => request("GET", "/api/v5/finance/sfp/dcd/order-history", { auth }),
21476
21477
  getAccountBillsArchive: (auth) => request("GET", "/api/v5/account/bills-archive", { auth }),
21477
21478
  setAutoLoan: (auth, body) => request("POST", "/api/v5/account/set-auto-loan", { body, auth }),
21479
+ // ── 最终收尾 ──────────────────────────────────────────────
21480
+ getAssetBalances: (auth, ccy) => request("GET", "/api/v5/asset/balances", { params: { ccy }, auth }),
21478
21481
  setTradingConfig: (auth, body) => request("POST", "/api/v5/account/set-trading-config", { body, auth }),
21479
21482
  movePositions: (auth, body) => request("POST", "/api/v5/account/move-positions", { body, auth })
21480
21483
  };
@@ -22638,6 +22641,21 @@ function registerPublicTools(server, auth) {
22638
22641
  }
22639
22642
  }
22640
22643
  );
22644
+ server.tool(
22645
+ "okx_get_instrument_tick_bands",
22646
+ "## \u529F\u80FD\uFF1A\u67E5\u8BE2\u4EA7\u54C1\u6700\u5C0F\u4EF7\u683C\u7CBE\u5EA6\u6863\u4F4D\n## \u573A\u666F\uFF1A\u7528\u4E8E\u4E86\u89E3\u671F\u6743\u4EA7\u54C1\u7684\u4EF7\u683C\u6700\u5C0F\u53D8\u52A8\u5355\u4F4D\uFF08tick size\uFF09\n## \u5173\u952E\u8BCD\uFF1ATick\u6863\u4F4D, tick bands, \u6700\u5C0F\u4EF7\u683C\u53D8\u52A8, \u4EF7\u683C\u7CBE\u5EA6\n## \u53C2\u6570\uFF1A\n## - instType: \u4EA7\u54C1\u7C7B\u578B\u3002\u4EC5 OPTION \u652F\u6301\u3002\u5FC5\u586B\n## \u9274\u6743\uFF1APUBLIC \u2014 \u516C\u5F00\u63A5\u53E3\uFF0C\u4E0D\u9700\u8981 API Key\n## \u98CE\u9669\uFF1AREAD \u2014 \u53EA\u8BFB\u67E5\u8BE2\uFF0CAgent \u53EF\u81EA\u52A8\u8C03\u7528\n## \u8FD4\u56DE\u91CF\uFF1A\u4E2D\u7B49 ~10KB\n## \u5173\u8054\uFF1A\u6B64\u5DE5\u5177\u67E5\u7CBE\u5EA6 \u2192 okx_get_instruments \u67E5\u4EA7\u54C1\u89C4\u683C \u2192 \u4E0B\u5355\u65F6\u4F7F\u7528\u6B63\u786E\u4EF7\u683C",
22647
+ {
22648
+ instType: external_exports.enum(["OPTION"]).describe("\u4EA7\u54C1\u7C7B\u578B\u3002\u4EC5 OPTION \u652F\u6301\u6B64\u67E5\u8BE2")
22649
+ },
22650
+ async ({ instType }) => {
22651
+ try {
22652
+ const data = await publicApi.getInstrumentTickBands(instType);
22653
+ return toResult(data);
22654
+ } catch (e) {
22655
+ return toError(e);
22656
+ }
22657
+ }
22658
+ );
22641
22659
  }
22642
22660
 
22643
22661
  // src/tools/account.ts
@@ -24273,6 +24291,20 @@ function registerFundingTools(server, auth) {
24273
24291
  }
24274
24292
  }
24275
24293
  );
24294
+ server.tool(
24295
+ "okx_get_asset_balances",
24296
+ "## \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",
24297
+ { ccy: external_exports.string().optional().describe("\u6307\u5B9A\u5E01\u79CD\uFF0C\u4E0D\u586B\u8FD4\u56DE\u5168\u90E8") },
24298
+ async ({ ccy }) => {
24299
+ if (!auth) return toError(AUTH_REQUIRED);
24300
+ try {
24301
+ const data = await privateApi.getAssetBalances(auth, ccy);
24302
+ return toResult(data);
24303
+ } catch (e) {
24304
+ return toError(e);
24305
+ }
24306
+ }
24307
+ );
24276
24308
  }
24277
24309
 
24278
24310
  // 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.34",
4
4
  "description": "OKX ecosystem MCP server - full API coverage for AI agents",
5
5
  "homepage": "https://hvip.one",
6
6
  "license": "MIT",