@okx_ai/okx-trade-cli 1.3.2-beta.2 → 1.3.2-beta.3
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 +9 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6718,18 +6718,18 @@ function registerSmartmoneyTools() {
|
|
|
6718
6718
|
{
|
|
6719
6719
|
name: "smartmoney_get_signal",
|
|
6720
6720
|
module: "smartmoney",
|
|
6721
|
-
description: "Single-currency consensus signal: long/short ratio, entry prices, trend, capital flow.
|
|
6721
|
+
description: "Single-currency consensus signal: long/short ratio, entry prices, trend, capital flow. Requires instId or instCcy. Pass ts=Date.now() for latest data, or dataVersion from a prior call. For multi-currency overview, use smartmoney_get_overview. For timeline, use smartmoney_get_signal_history.",
|
|
6722
6722
|
isWrite: false,
|
|
6723
6723
|
inputSchema: {
|
|
6724
6724
|
type: "object",
|
|
6725
6725
|
properties: {
|
|
6726
6726
|
instId: {
|
|
6727
6727
|
type: "string",
|
|
6728
|
-
description: "
|
|
6728
|
+
description: "e.g. BTC-USDT-SWAP (or use instCcy)"
|
|
6729
6729
|
},
|
|
6730
6730
|
instCcy: {
|
|
6731
6731
|
type: "string",
|
|
6732
|
-
description: "e.g. BTC, SPOT/SWAP only
|
|
6732
|
+
description: "e.g. BTC, SPOT/SWAP only (or use instId)"
|
|
6733
6733
|
},
|
|
6734
6734
|
dataVersion: {
|
|
6735
6735
|
type: "string",
|
|
@@ -11646,7 +11646,7 @@ async function cmdDiagnoseMcp(options = {}) {
|
|
|
11646
11646
|
|
|
11647
11647
|
// src/commands/diagnose.ts
|
|
11648
11648
|
var CLI_VERSION = readCliVersion();
|
|
11649
|
-
var GIT_HASH = true ? "
|
|
11649
|
+
var GIT_HASH = true ? "330e727a" : "dev";
|
|
11650
11650
|
function maskKey2(key) {
|
|
11651
11651
|
if (!key) return "(not set)";
|
|
11652
11652
|
if (key.length <= 8) return "****";
|
|
@@ -12960,7 +12960,7 @@ var CLI_REGISTRY = {
|
|
|
12960
12960
|
signal: {
|
|
12961
12961
|
toolName: "smartmoney_get_signal",
|
|
12962
12962
|
usage: "okx smartmoney signal [--instId <id>] [--instCcy <ccy>] [--dataVersion <ver>] [--ts <ms>] [--sortType <pnl|pnlRatio>] [--period <3|7|30|90>] [--pnl <tier>] [--winRatio <tier>] [--maxRetreat <tier>] [--asset <tier>] [--lmtNum <n>] [--authorIds <ids>] [--json]",
|
|
12963
|
-
description: "Single-currency aggregated consensus signal
|
|
12963
|
+
description: "Single-currency aggregated consensus signal"
|
|
12964
12964
|
},
|
|
12965
12965
|
"signal-history": {
|
|
12966
12966
|
toolName: "smartmoney_get_signal_history",
|
|
@@ -14247,12 +14247,13 @@ async function cmdMarketOiHistory(run, instId, opts) {
|
|
|
14247
14247
|
});
|
|
14248
14248
|
const data = getData2(result);
|
|
14249
14249
|
if (opts.json) return printJson(data);
|
|
14250
|
-
const
|
|
14250
|
+
const entry = Array.isArray(data) ? data[0] : data;
|
|
14251
|
+
const rows = entry?.["rows"] ?? [];
|
|
14251
14252
|
if (!rows.length) {
|
|
14252
14253
|
outputLine("No OI data");
|
|
14253
14254
|
return;
|
|
14254
14255
|
}
|
|
14255
|
-
outputLine(`${
|
|
14256
|
+
outputLine(`${entry?.["instId"] ?? instId} bar=${entry?.["bar"] ?? opts.bar ?? "1H"}`);
|
|
14256
14257
|
printTable(
|
|
14257
14258
|
rows.map((r) => ({
|
|
14258
14259
|
ts: new Date(Number(r["ts"])).toLocaleString(),
|
|
@@ -17835,7 +17836,7 @@ async function cmdEventCancel(run, opts) {
|
|
|
17835
17836
|
// src/index.ts
|
|
17836
17837
|
var _require3 = createRequire3(import.meta.url);
|
|
17837
17838
|
var CLI_VERSION2 = _require3("../package.json").version;
|
|
17838
|
-
var GIT_HASH2 = true ? "
|
|
17839
|
+
var GIT_HASH2 = true ? "330e727a" : "dev";
|
|
17839
17840
|
function handlePilotCommand(action, json, force, binaryPath) {
|
|
17840
17841
|
if (action === "status") return cmdPilotStatus(json, binaryPath);
|
|
17841
17842
|
if (action === "install") return cmdPilotInstall(json, binaryPath);
|