@pionex/pionex-ai-kit 0.2.50 → 0.2.53

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/README.md CHANGED
@@ -14,7 +14,8 @@ npm install -g @pionex/pionex-ai-kit
14
14
  - **pionex-ai-kit setup** — Register MCP servers for supported clients.
15
15
  - **pionex-ai-kit help** — Show help.
16
16
  - **pionex-trade-cli market ...** — Public market data commands.
17
- - **pionex-trade-cli account ...** — Account balance command.
17
+ - **pionex-trade-cli account ...** — Account balance command (`balance`).
18
+ - **pionex-trade-cli wallet ...** — Wallet commands (`balance_full`).
18
19
  - **pionex-trade-cli orders ...** — Spot order lifecycle commands.
19
20
  - **pionex-trade-cli bot futures_grid ...** — Futures grid bot lifecycle commands (`get/create/adjust_params/reduce/cancel`).
20
21
  - **pionex-trade-cli bot spot_grid ...** — Spot grid bot lifecycle commands (`get/get_ai_strategy/create/adjust_params/invest_in/cancel/profit`).
@@ -981,8 +981,8 @@ function runSetup(options) {
981
981
  );
982
982
  }
983
983
  var PIONEX_API_DEFAULT_BASE_URL = "https://api.pionex.com";
984
- var MODULES = ["market", "account", "orders", "bot", "earn_dual"];
985
- var DEFAULT_MODULES = ["market", "account", "orders", "bot", "earn_dual"];
984
+ var MODULES = ["market", "account", "wallet", "orders", "bot", "earn_dual"];
985
+ var DEFAULT_MODULES = ["market", "account", "wallet", "orders", "bot", "earn_dual"];
986
986
  var ConfigError = class extends Error {
987
987
  suggestion;
988
988
  constructor(message, suggestion) {
@@ -1322,6 +1322,27 @@ function registerAccountTools() {
1322
1322
  }
1323
1323
  ];
1324
1324
  }
1325
+ function registerWalletTools() {
1326
+ return [
1327
+ {
1328
+ name: "pionex_wallet_get_balance_full",
1329
+ module: "wallet",
1330
+ isWrite: false,
1331
+ description: "Query full account balance overview including spot (Bot Account) and futures (Trader Account), with per-coin price info and total USDT/BTC valuations. Requires authentication.",
1332
+ inputSchema: {
1333
+ type: "object",
1334
+ additionalProperties: false,
1335
+ properties: {
1336
+ appLang: { type: "string", description: "App language, e.g. 'en' or 'zh' (takes priority over sysLang)" },
1337
+ sysLang: { type: "string", description: "System language fallback when appLang is not set" }
1338
+ }
1339
+ },
1340
+ async handler(args, { client }) {
1341
+ return (await client.signedGet("/api/v1/wallet/balancesFull", args)).data;
1342
+ }
1343
+ }
1344
+ ];
1345
+ }
1325
1346
  function registerOrdersTools() {
1326
1347
  return [
1327
1348
  {
@@ -2998,7 +3019,7 @@ function registerEarnDualTools() {
2998
3019
  ];
2999
3020
  }
3000
3021
  function allToolSpecs() {
3001
- return [...registerMarketTools(), ...registerAccountTools(), ...registerOrdersTools(), ...registerBotTools(), ...registerEarnDualTools()];
3022
+ return [...registerMarketTools(), ...registerAccountTools(), ...registerWalletTools(), ...registerOrdersTools(), ...registerBotTools(), ...registerEarnDualTools()];
3002
3023
  }
3003
3024
  function createToolRunner(client, config) {
3004
3025
  const fullConfig = { ...config, modules: [...MODULES] };
@@ -3105,4 +3126,4 @@ smol-toml/dist/index.js:
3105
3126
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3106
3127
  *)
3107
3128
  */
3108
- //# sourceMappingURL=chunk-NGPWUQ2A.js.map
3129
+ //# sourceMappingURL=chunk-I6Z3QX5T.js.map