@okx_ai/okx-trade-cli 1.2.8-beta.5 → 1.2.8-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 +7 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1986,7 +1986,7 @@ function registerAccountTools() {
|
|
|
1986
1986
|
{
|
|
1987
1987
|
name: "account_get_config",
|
|
1988
1988
|
module: "account",
|
|
1989
|
-
description: "Get account configuration: position mode (net vs hedge), account level, auto-loan settings, etc.",
|
|
1989
|
+
description: "Get account configuration: position mode (net vs hedge), account level, auto-loan settings, etc. Note: `settleCcy` is the current settlement currency for USDS-margined contracts. `settleCcyList` is the list of available settlement currencies to choose from. These fields only apply to USDS-margined contracts and can be ignored for standard USDT/coin-margined trading.",
|
|
1990
1990
|
isWrite: false,
|
|
1991
1991
|
inputSchema: {
|
|
1992
1992
|
type: "object",
|
|
@@ -1998,16 +1998,7 @@ function registerAccountTools() {
|
|
|
1998
1998
|
{},
|
|
1999
1999
|
privateRateLimit("account_get_config", 5)
|
|
2000
2000
|
);
|
|
2001
|
-
|
|
2002
|
-
if (Array.isArray(result.data)) {
|
|
2003
|
-
return {
|
|
2004
|
-
...result,
|
|
2005
|
-
data: result.data.map(
|
|
2006
|
-
({ settleCcy, settleCcyList, ...rest }) => rest
|
|
2007
|
-
)
|
|
2008
|
-
};
|
|
2009
|
-
}
|
|
2010
|
-
return result;
|
|
2001
|
+
return normalizeResponse(response);
|
|
2011
2002
|
}
|
|
2012
2003
|
},
|
|
2013
2004
|
{
|
|
@@ -4694,7 +4685,7 @@ function buildContractTradeTools(cfg) {
|
|
|
4694
4685
|
{
|
|
4695
4686
|
name: n("place_order"),
|
|
4696
4687
|
module,
|
|
4697
|
-
description: `Place ${label} order. Attach TP/SL via tpTriggerPx/slTriggerPx. [CAUTION] Executes real trades.`,
|
|
4688
|
+
description: `Place ${label} order. Attach TP/SL via tpTriggerPx/slTriggerPx. Before placing, use market_get_instruments to get ctVal (contract face value) \u2014 do NOT assume contract sizes. [CAUTION] Executes real trades.`,
|
|
4698
4689
|
isWrite: true,
|
|
4699
4690
|
inputSchema: {
|
|
4700
4691
|
type: "object",
|
|
@@ -4722,7 +4713,7 @@ function buildContractTradeTools(cfg) {
|
|
|
4722
4713
|
},
|
|
4723
4714
|
sz: {
|
|
4724
4715
|
type: "string",
|
|
4725
|
-
description: "
|
|
4716
|
+
description: "Number of contracts. Each contract = ctVal units (e.g. 0.1 ETH for ETH-USDT-SWAP). Query market_get_instruments for exact ctVal. Set tgtCcy=quote_ccy to specify sz in USDT instead."
|
|
4726
4717
|
},
|
|
4727
4718
|
tgtCcy: {
|
|
4728
4719
|
type: "string",
|
|
@@ -6343,7 +6334,7 @@ function registerOptionTools() {
|
|
|
6343
6334
|
{
|
|
6344
6335
|
name: "option_place_order",
|
|
6345
6336
|
module: "option",
|
|
6346
|
-
description: "Place OPTION order. instId: {uly}-{expiry}-{strike}-C/P, e.g. BTC-USD-241227-50000-C. [CAUTION] Executes real trades.",
|
|
6337
|
+
description: "Place OPTION order. instId: {uly}-{expiry}-{strike}-C/P, e.g. BTC-USD-241227-50000-C. Before placing, use market_get_instruments to get ctVal (contract face value) \u2014 do NOT assume contract sizes. [CAUTION] Executes real trades.",
|
|
6347
6338
|
isWrite: true,
|
|
6348
6339
|
inputSchema: {
|
|
6349
6340
|
type: "object",
|
|
@@ -8563,7 +8554,7 @@ async function cmdDiagnoseMcp(options = {}) {
|
|
|
8563
8554
|
|
|
8564
8555
|
// src/commands/diagnose.ts
|
|
8565
8556
|
var CLI_VERSION = readCliVersion();
|
|
8566
|
-
var GIT_HASH = true ? "
|
|
8557
|
+
var GIT_HASH = true ? "cb0891d" : "dev";
|
|
8567
8558
|
function maskKey2(key) {
|
|
8568
8559
|
if (!key) return "(not set)";
|
|
8569
8560
|
if (key.length <= 8) return "****";
|
|
@@ -13031,7 +13022,7 @@ function cmdSkillList(json) {
|
|
|
13031
13022
|
// src/index.ts
|
|
13032
13023
|
var _require3 = createRequire3(import.meta.url);
|
|
13033
13024
|
var CLI_VERSION2 = _require3("../package.json").version;
|
|
13034
|
-
var GIT_HASH2 = true ? "
|
|
13025
|
+
var GIT_HASH2 = true ? "cb0891d" : "dev";
|
|
13035
13026
|
function handleConfigCommand(action, rest, json, lang, force) {
|
|
13036
13027
|
if (action === "init") return cmdConfigInit(lang === "zh" ? "zh" : "en");
|
|
13037
13028
|
if (action === "show") return cmdConfigShow(json);
|