@pionex/pionex-ai-kit 0.2.51 → 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 +2 -1
- package/dist/{chunk-O45XCZNU.js → chunk-I6Z3QX5T.js} +11 -7
- package/dist/chunk-I6Z3QX5T.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/{kit-TC3MJAIO.js → kit-DBQGQY64.js} +2 -2
- package/dist/{trade-ARTTYJHM.js → trade-4DUOU56K.js} +36 -23
- package/dist/trade-4DUOU56K.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-O45XCZNU.js.map +0 -1
- package/dist/trade-ARTTYJHM.js.map +0 -1
- /package/dist/{kit-TC3MJAIO.js.map → kit-DBQGQY64.js.map} +0 -0
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
|
|
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) {
|
|
@@ -1319,10 +1319,14 @@ function registerAccountTools() {
|
|
|
1319
1319
|
async handler(_args, { client }) {
|
|
1320
1320
|
return (await client.signedGet("/api/v1/account/balances")).data;
|
|
1321
1321
|
}
|
|
1322
|
-
}
|
|
1322
|
+
}
|
|
1323
|
+
];
|
|
1324
|
+
}
|
|
1325
|
+
function registerWalletTools() {
|
|
1326
|
+
return [
|
|
1323
1327
|
{
|
|
1324
|
-
name: "
|
|
1325
|
-
module: "
|
|
1328
|
+
name: "pionex_wallet_get_balance_full",
|
|
1329
|
+
module: "wallet",
|
|
1326
1330
|
isWrite: false,
|
|
1327
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.",
|
|
1328
1332
|
inputSchema: {
|
|
@@ -3015,7 +3019,7 @@ function registerEarnDualTools() {
|
|
|
3015
3019
|
];
|
|
3016
3020
|
}
|
|
3017
3021
|
function allToolSpecs() {
|
|
3018
|
-
return [...registerMarketTools(), ...registerAccountTools(), ...registerOrdersTools(), ...registerBotTools(), ...registerEarnDualTools()];
|
|
3022
|
+
return [...registerMarketTools(), ...registerAccountTools(), ...registerWalletTools(), ...registerOrdersTools(), ...registerBotTools(), ...registerEarnDualTools()];
|
|
3019
3023
|
}
|
|
3020
3024
|
function createToolRunner(client, config) {
|
|
3021
3025
|
const fullConfig = { ...config, modules: [...MODULES] };
|
|
@@ -3122,4 +3126,4 @@ smol-toml/dist/index.js:
|
|
|
3122
3126
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3123
3127
|
*)
|
|
3124
3128
|
*/
|
|
3125
|
-
//# sourceMappingURL=chunk-
|
|
3129
|
+
//# sourceMappingURL=chunk-I6Z3QX5T.js.map
|