@okx_ai/okx-trade-mcp 1.3.8 → 1.3.9-beta.2
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 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/postinstall-download.js +0 -152
package/dist/index.js
CHANGED
|
@@ -1367,8 +1367,8 @@ var OKX_CODE_BEHAVIORS = {
|
|
|
1367
1367
|
"50013": { retry: true, suggestion: "System busy. Retry after 1-2 seconds." },
|
|
1368
1368
|
"50026": { retry: true, suggestion: "System error. Retry in a few minutes." },
|
|
1369
1369
|
// Region / compliance restriction -> do not retry
|
|
1370
|
-
"51155": { retry: false, suggestion: "Feature unavailable in your region (site: {site}). Verify your site setting matches your account registration region. Available sites: global, eea, us. Do not retry." },
|
|
1371
|
-
"51734": { retry: false, suggestion: "Feature not supported for your KYC country (site: {site}). Verify your site setting matches your account registration region. Available sites: global, eea, us. Do not retry." },
|
|
1370
|
+
"51155": { retry: false, suggestion: "Feature unavailable in your region (site: {site}). Verify your site setting matches your account registration region. Available sites: global, eea, us, tr. Do not retry." },
|
|
1371
|
+
"51734": { retry: false, suggestion: "Feature not supported for your KYC country (site: {site}). Verify your site setting matches your account registration region. Available sites: global, eea, us, tr. Do not retry." },
|
|
1372
1372
|
// Account issues -> do not retry
|
|
1373
1373
|
"50007": { retry: false, suggestion: "Account suspended. Contact OKX support. Do not retry." },
|
|
1374
1374
|
"50009": { retry: false, suggestion: "Account blocked by risk control. Contact OKX support. Do not retry." },
|
|
@@ -2519,6 +2519,11 @@ var OKX_SITES = {
|
|
|
2519
2519
|
label: "US",
|
|
2520
2520
|
apiBaseUrl: "https://us.okx.com",
|
|
2521
2521
|
webUrl: "https://app.okx.com"
|
|
2522
|
+
},
|
|
2523
|
+
tr: {
|
|
2524
|
+
label: "TR",
|
|
2525
|
+
apiBaseUrl: "https://tr.okx.com",
|
|
2526
|
+
webUrl: "https://tr.okx.com"
|
|
2522
2527
|
}
|
|
2523
2528
|
};
|
|
2524
2529
|
var SITE_IDS = Object.keys(OKX_SITES);
|
|
@@ -12715,7 +12720,7 @@ var _require = createRequire(import.meta.url);
|
|
|
12715
12720
|
var pkg = _require("../package.json");
|
|
12716
12721
|
var SERVER_NAME = "okx-trade-mcp";
|
|
12717
12722
|
var SERVER_VERSION = pkg.version;
|
|
12718
|
-
var GIT_HASH = true ? "
|
|
12723
|
+
var GIT_HASH = true ? "1c1b0a96" : "dev";
|
|
12719
12724
|
|
|
12720
12725
|
// src/server.ts
|
|
12721
12726
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
@@ -12898,8 +12903,8 @@ Options:
|
|
|
12898
12903
|
|
|
12899
12904
|
--profile <name> Profile to load from ${configFilePath()}
|
|
12900
12905
|
Falls back to default_profile in config, then "default"
|
|
12901
|
-
--site <site> OKX site to connect to: global, eea, us (default: global)
|
|
12902
|
-
global -> www.okx.com, eea -> eea.okx.com, us -> app.okx.com
|
|
12906
|
+
--site <site> OKX site to connect to: global, eea, us, tr (default: global)
|
|
12907
|
+
global -> www.okx.com, eea -> eea.okx.com, us -> app.okx.com, tr -> tr.okx.com
|
|
12903
12908
|
--read-only Expose only read/query tools and disable write operations
|
|
12904
12909
|
--demo Enable simulated trading (injects x-simulated-trading: 1)
|
|
12905
12910
|
--live Force live trading mode (overrides profile demo=true; mutually exclusive with --demo)
|
|
@@ -12914,7 +12919,7 @@ Credentials (priority: env vars > ${configFilePath()} > none):
|
|
|
12914
12919
|
OKX_PASSPHRASE OKX passphrase
|
|
12915
12920
|
|
|
12916
12921
|
Other Environment Variables:
|
|
12917
|
-
OKX_SITE OKX site: global, eea, us (overridden by --site flag)
|
|
12922
|
+
OKX_SITE OKX site: global, eea, us, tr (overridden by --site flag)
|
|
12918
12923
|
OKX_API_BASE_URL Optional API base URL override (overrides --site mapping)
|
|
12919
12924
|
OKX_TIMEOUT_MS Optional request timeout in milliseconds (default: 15000)
|
|
12920
12925
|
`;
|