@okx_ai/okx-trade-cli 1.3.9-beta.2 → 1.3.9-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 +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14923,7 +14923,7 @@ async function cmdDiagnoseMcp(options = {}) {
|
|
|
14923
14923
|
|
|
14924
14924
|
// src/commands/diagnose.ts
|
|
14925
14925
|
var CLI_VERSION = readCliVersion();
|
|
14926
|
-
var GIT_HASH = true ? "
|
|
14926
|
+
var GIT_HASH = true ? "11688040" : "dev";
|
|
14927
14927
|
function maskKey2(key) {
|
|
14928
14928
|
if (!key) return "(not set)";
|
|
14929
14929
|
if (key.length <= 8) return "****";
|
|
@@ -16137,8 +16137,8 @@ var CLI_REGISTRY = {
|
|
|
16137
16137
|
},
|
|
16138
16138
|
"sub-orders": {
|
|
16139
16139
|
toolName: "grid_get_sub_orders",
|
|
16140
|
-
usage: "okx bot grid sub-orders --algoOrdType <type> --algoId <id> [--
|
|
16141
|
-
description: "List sub-orders of a grid bot (filled
|
|
16140
|
+
usage: "okx bot grid sub-orders --algoOrdType <type> --algoId <id> [--pending] [--groupId <id>] [--after <id>] [--before <id>] [--limit <n>]",
|
|
16141
|
+
description: "List sub-orders of a grid bot (default filled; --pending for open orders)"
|
|
16142
16142
|
},
|
|
16143
16143
|
create: {
|
|
16144
16144
|
toolName: "grid_create_order",
|
|
@@ -17173,6 +17173,9 @@ var CLI_OPTIONS = {
|
|
|
17173
17173
|
stopType: { type: "string" },
|
|
17174
17174
|
topUpAmt: { type: "string" },
|
|
17175
17175
|
live: { type: "boolean", default: false },
|
|
17176
|
+
// grid sub-orders pending filter (separate from global --live trading mode,
|
|
17177
|
+
// which is mutually exclusive with --demo and so unusable in demo mode)
|
|
17178
|
+
pending: { type: "boolean", default: false },
|
|
17176
17179
|
// market extras
|
|
17177
17180
|
instType: { type: "string" },
|
|
17178
17181
|
instCategory: { type: "string" },
|
|
@@ -21819,7 +21822,7 @@ async function cmdEventCancel(run, opts) {
|
|
|
21819
21822
|
// src/index.ts
|
|
21820
21823
|
var _require3 = createRequire3(import.meta.url);
|
|
21821
21824
|
var CLI_VERSION2 = _require3("../package.json").version;
|
|
21822
|
-
var GIT_HASH2 = true ? "
|
|
21825
|
+
var GIT_HASH2 = true ? "11688040" : "dev";
|
|
21823
21826
|
function handlePilotCommand(action, json, force, binaryPath) {
|
|
21824
21827
|
if (action === "status") return cmdPilotStatus(json, binaryPath);
|
|
21825
21828
|
if (action === "install") return cmdPilotInstall(json, binaryPath);
|
|
@@ -22708,7 +22711,10 @@ function handleBotGridCommand(run, v, rest, json) {
|
|
|
22708
22711
|
return cmdGridSubOrders(run, {
|
|
22709
22712
|
algoOrdType: v.algoOrdType,
|
|
22710
22713
|
algoId: v.algoId,
|
|
22711
|
-
|
|
22714
|
+
// --pending selects open/pending sub-orders. --live is a deprecated alias
|
|
22715
|
+
// kept for backward compatibility; prefer --pending (works in demo mode,
|
|
22716
|
+
// whereas --live is mutually exclusive with --demo).
|
|
22717
|
+
type: v.pending || v.live ? "live" : "filled",
|
|
22712
22718
|
groupId: v.groupId,
|
|
22713
22719
|
after: v.after,
|
|
22714
22720
|
before: v.before,
|