@okx_ai/okx-trade-cli 1.2.4 → 1.2.5-beta.1

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.js CHANGED
@@ -3274,7 +3274,7 @@ function registerEarnTools() {
3274
3274
  {
3275
3275
  name: "earn_get_savings_balance",
3276
3276
  module: "earn.savings",
3277
- description: "Get Simple Earn (savings/flexible earn) balance. Returns current holdings for all currencies or a specific one. Private endpoint. Rate limit: 6 req/s.",
3277
+ description: "Get Simple Earn (savings/flexible earn) balance. Returns current holdings for all currencies or a specific one. To show market rates alongside balance (\u5E02\u573A\u5747\u5229\u7387), call earn_get_lending_rate_history \u2014 do NOT use earn_get_lending_rate_summary for this purpose. Private endpoint. Rate limit: 6 req/s.",
3278
3278
  isWrite: false,
3279
3279
  inputSchema: {
3280
3280
  type: "object",
@@ -3404,7 +3404,7 @@ function registerEarnTools() {
3404
3404
  {
3405
3405
  name: "earn_get_lending_history",
3406
3406
  module: "earn.savings",
3407
- description: "Get lending history for Simple Earn. Returns lending records with details like amount, rate, and earnings. Private endpoint. Rate limit: 6 req/s.",
3407
+ description: "Get market lending rate history for Simple Earn. Use this tool to query market lending rates. Returns market lending records with amount, rate, and earnings data. Private endpoint. Rate limit: 6 req/s.",
3408
3408
  isWrite: false,
3409
3409
  inputSchema: {
3410
3410
  type: "object",
@@ -3445,7 +3445,7 @@ function registerEarnTools() {
3445
3445
  {
3446
3446
  name: "earn_get_lending_rate_summary",
3447
3447
  module: "earn.savings",
3448
- description: "Get market lending rate summary for Simple Earn. Public endpoint (no API key required). Returns current lending rates, estimated APY, and available amounts. Rate limit: 6 req/s.",
3448
+ description: "Get coin lending market rate summary. NOT related to Simple Earn. Public endpoint (no API key required). Use this to query the lending/borrowing market rates (\u501F\u5E01\u5E02\u573A\u5229\u7387). Returns aggregate overview: average rate (avgRate), estimated next-cycle rate (estRate), previous-cycle rate (preRate), and available lending amounts. Rate limit: 6 req/s.",
3449
3449
  isWrite: false,
3450
3450
  inputSchema: {
3451
3451
  type: "object",
@@ -3469,7 +3469,7 @@ function registerEarnTools() {
3469
3469
  {
3470
3470
  name: "earn_get_lending_rate_history",
3471
3471
  module: "earn.savings",
3472
- description: "Get historical lending rates for Simple Earn. Public endpoint (no API key required). Returns past lending rate data for trend analysis. Rate limit: 6 req/s.",
3472
+ description: "Query Simple Earn lending rates. Public endpoint (no API key required). Use this tool when the user asks about current or historical lending rates for Simple Earn, or when displaying savings balance with market rate context (\u5E02\u573A\u5747\u5229\u7387). Returns actual settled lending rate records (lendingRate field) with timestamps, ordered newest-first. Rate limit: 6 req/s.",
3473
3473
  isWrite: false,
3474
3474
  inputSchema: {
3475
3475
  type: "object",
@@ -3517,7 +3517,7 @@ function registerOnchainEarnTools() {
3517
3517
  {
3518
3518
  name: "onchain_earn_get_offers",
3519
3519
  module: "earn.onchain",
3520
- description: "Get available on-chain earn (staking/DeFi) offers. Returns investment products with APY, terms, and limits. Private endpoint. Rate limit: 3 req/s.",
3520
+ description: "Get available on-chain earn (staking/DeFi) offers. Returns investment products with protocol name, APY, terms, and limits. Always display the protocol name (protocol field) and earnings currency (earningData[].ccy field) when showing offers to the user. Private endpoint. Rate limit: 3 req/s.",
3521
3521
  isWrite: false,
3522
3522
  inputSchema: {
3523
3523
  type: "object",
@@ -7553,7 +7553,7 @@ function readCliVersion() {
7553
7553
  return "0.0.0";
7554
7554
  }
7555
7555
  var CLI_VERSION = readCliVersion();
7556
- var GIT_HASH = true ? "88fac29" : "dev";
7556
+ var GIT_HASH = true ? "ceb06f1" : "dev";
7557
7557
  var Report = class {
7558
7558
  lines = [];
7559
7559
  add(key, value) {
@@ -8278,15 +8278,15 @@ var HELP_TREE = {
8278
8278
  },
8279
8279
  "lending-history": {
8280
8280
  usage: "okx earn savings lending-history [--ccy <ccy>] [--limit <n>]",
8281
- description: "Get lending history"
8281
+ description: "Get market lending rate history"
8282
8282
  },
8283
8283
  "rate-summary": {
8284
8284
  usage: "okx earn savings rate-summary [<ccy>]",
8285
- description: "Get market lending rate summary (public, no auth needed)"
8285
+ description: "Get coin lending market rate summary (not Simple Earn, public)"
8286
8286
  },
8287
8287
  "rate-history": {
8288
8288
  usage: "okx earn savings rate-history [--ccy <ccy>] [--limit <n>]",
8289
- description: "Get historical lending rates (public, no auth needed)"
8289
+ description: "Query Simple Earn lending rates (public, no auth needed)"
8290
8290
  }
8291
8291
  }
8292
8292
  },
@@ -11366,7 +11366,7 @@ async function cmdDcdQuoteAndBuy(run, opts) {
11366
11366
  // src/index.ts
11367
11367
  var _require2 = createRequire2(import.meta.url);
11368
11368
  var CLI_VERSION2 = _require2("../package.json").version;
11369
- var GIT_HASH2 = true ? "88fac29" : "dev";
11369
+ var GIT_HASH2 = true ? "ceb06f1" : "dev";
11370
11370
  function handleConfigCommand(action, rest, json, lang, force) {
11371
11371
  if (action === "init") return cmdConfigInit(lang === "zh" ? "zh" : "en");
11372
11372
  if (action === "show") return cmdConfigShow(json);