@okx_ai/okx-trade-cli 1.2.4-beta.5 → 1.2.4-beta.6

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
@@ -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 ? "836b2ae" : "dev";
7556
+ var GIT_HASH = true ? "d20347a" : "dev";
7557
7557
  var Report = class {
7558
7558
  lines = [];
7559
7559
  add(key, value) {
@@ -9269,7 +9269,10 @@ async function cmdSpotAlgoPlace(run, opts) {
9269
9269
  tpTriggerPx: opts.tpTriggerPx,
9270
9270
  tpOrdPx: opts.tpOrdPx,
9271
9271
  slTriggerPx: opts.slTriggerPx,
9272
- slOrdPx: opts.slOrdPx
9272
+ slOrdPx: opts.slOrdPx,
9273
+ callbackRatio: opts.callbackRatio,
9274
+ callbackSpread: opts.callbackSpread,
9275
+ activePx: opts.activePx
9273
9276
  });
9274
9277
  const data = getData3(result);
9275
9278
  if (opts.json) return printJson(data);
@@ -9519,7 +9522,10 @@ async function cmdSwapAlgoPlace(run, opts) {
9519
9522
  tpOrdPx: opts.tpOrdPx,
9520
9523
  slTriggerPx: opts.slTriggerPx,
9521
9524
  slOrdPx: opts.slOrdPx,
9522
- reduceOnly: opts.reduceOnly
9525
+ reduceOnly: opts.reduceOnly,
9526
+ callbackRatio: opts.callbackRatio,
9527
+ callbackSpread: opts.callbackSpread,
9528
+ activePx: opts.activePx
9523
9529
  });
9524
9530
  const data = getData4(result);
9525
9531
  if (opts.json) return printJson(data);
@@ -9935,7 +9941,10 @@ async function cmdFuturesAlgoPlace(run, opts) {
9935
9941
  tpOrdPx: opts.tpOrdPx,
9936
9942
  slTriggerPx: opts.slTriggerPx,
9937
9943
  slOrdPx: opts.slOrdPx,
9938
- reduceOnly: opts.reduceOnly
9944
+ reduceOnly: opts.reduceOnly,
9945
+ callbackRatio: opts.callbackRatio,
9946
+ callbackSpread: opts.callbackSpread,
9947
+ activePx: opts.activePx
9939
9948
  });
9940
9949
  const data = getData5(result);
9941
9950
  if (opts.json) return printJson(data);
@@ -11357,7 +11366,7 @@ async function cmdDcdQuoteAndBuy(run, opts) {
11357
11366
  // src/index.ts
11358
11367
  var _require2 = createRequire2(import.meta.url);
11359
11368
  var CLI_VERSION2 = _require2("../package.json").version;
11360
- var GIT_HASH2 = true ? "836b2ae" : "dev";
11369
+ var GIT_HASH2 = true ? "d20347a" : "dev";
11361
11370
  function handleConfigCommand(action, rest, json, lang, force) {
11362
11371
  if (action === "init") return cmdConfigInit(lang === "zh" ? "zh" : "en");
11363
11372
  if (action === "show") return cmdConfigShow(json);
@@ -11491,6 +11500,9 @@ function handleSpotAlgoCommand(run, subAction, v, json) {
11491
11500
  tpOrdPx: v.tpOrdPx,
11492
11501
  slTriggerPx: v.slTriggerPx,
11493
11502
  slOrdPx: v.slOrdPx,
11503
+ callbackRatio: v.callbackRatio,
11504
+ callbackSpread: v.callbackSpread,
11505
+ activePx: v.activePx,
11494
11506
  json
11495
11507
  });
11496
11508
  if (subAction === "amend")
@@ -11582,6 +11594,9 @@ function handleSwapAlgoCommand(run, subAction, v, json) {
11582
11594
  slTriggerPx: v.slTriggerPx,
11583
11595
  slOrdPx: v.slOrdPx,
11584
11596
  reduceOnly: v.reduceOnly,
11597
+ callbackRatio: v.callbackRatio,
11598
+ callbackSpread: v.callbackSpread,
11599
+ activePx: v.activePx,
11585
11600
  json
11586
11601
  });
11587
11602
  if (subAction === "amend")
@@ -11785,6 +11800,9 @@ function handleFuturesAlgoCommand(run, subAction, v, json) {
11785
11800
  slTriggerPx: v.slTriggerPx,
11786
11801
  slOrdPx: v.slOrdPx,
11787
11802
  reduceOnly: v.reduceOnly,
11803
+ callbackRatio: v.callbackRatio,
11804
+ callbackSpread: v.callbackSpread,
11805
+ activePx: v.activePx,
11788
11806
  json
11789
11807
  });
11790
11808
  if (subAction === "amend")