@pionex/pionex-trade-mcp 0.2.45 → 0.2.47
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 +1 -1
- package/dist/index.js +19 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ Credentials are read from `~/.pionex/config.toml` when the server starts; the cl
|
|
|
36
36
|
## Tools
|
|
37
37
|
|
|
38
38
|
- **Market** (no auth): `pionex_market_get_depth`, `pionex_market_get_trades`, `pionex_market_get_symbol_info`, `pionex_market_get_tickers`, `pionex_market_get_book_tickers`, `pionex_market_get_klines`
|
|
39
|
-
- **Account** (auth): `pionex_account_get_balance`
|
|
39
|
+
- **Account** (auth): `pionex_account_get_balance`, `pionex_account_get_balance_full`
|
|
40
40
|
- **Orders** (auth): `pionex_orders_new_order`, `pionex_orders_get_order`, `pionex_orders_get_order_by_client_order_id`, `pionex_orders_get_open_orders`, `pionex_orders_get_all_orders`, `pionex_orders_cancel_order`, `pionex_orders_get_fills`, `pionex_orders_get_fills_by_order_id`, `pionex_orders_cancel_all_orders`
|
|
41
41
|
- **Bot / Futures Grid** (auth): `pionex_bot_futures_grid_get_order`, `pionex_bot_futures_grid_create`, `pionex_bot_futures_grid_adjust_params`, `pionex_bot_futures_grid_reduce`, `pionex_bot_futures_grid_cancel`
|
|
42
42
|
- **Bot / Spot Grid** (auth): `pionex_bot_spot_grid_get_order`, `pionex_bot_spot_grid_get_ai_strategy`, `pionex_bot_spot_grid_create`, `pionex_bot_spot_grid_adjust_params`, `pionex_bot_spot_grid_invest_in`, `pionex_bot_spot_grid_cancel`, `pionex_bot_spot_grid_profit`
|
package/dist/index.js
CHANGED
|
@@ -1058,6 +1058,23 @@ function registerAccountTools() {
|
|
|
1058
1058
|
async handler(_args, { client }) {
|
|
1059
1059
|
return (await client.signedGet("/api/v1/account/balances")).data;
|
|
1060
1060
|
}
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
name: "pionex_account_get_balance_full",
|
|
1064
|
+
module: "account",
|
|
1065
|
+
isWrite: false,
|
|
1066
|
+
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.",
|
|
1067
|
+
inputSchema: {
|
|
1068
|
+
type: "object",
|
|
1069
|
+
additionalProperties: false,
|
|
1070
|
+
properties: {
|
|
1071
|
+
appLang: { type: "string", description: "App language, e.g. 'en' or 'zh' (takes priority over sysLang)" },
|
|
1072
|
+
sysLang: { type: "string", description: "System language fallback when appLang is not set" }
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
async handler(args, { client }) {
|
|
1076
|
+
return (await client.signedGet("/api/v1/wallet/balancesFull", args)).data;
|
|
1077
|
+
}
|
|
1061
1078
|
}
|
|
1062
1079
|
];
|
|
1063
1080
|
}
|
|
@@ -2403,7 +2420,7 @@ function registerBotTools() {
|
|
|
2403
2420
|
},
|
|
2404
2421
|
// ── Signal ────────────────────────────────────────────────────────────────
|
|
2405
2422
|
{
|
|
2406
|
-
name: "
|
|
2423
|
+
name: "pionex_bot_signal_listener",
|
|
2407
2424
|
module: "bot",
|
|
2408
2425
|
isWrite: true,
|
|
2409
2426
|
description: "Push a trading signal to the Pionex signal platform (signal provider use). The platform forwards the signal to all smart copy bots subscribed to the given signalType. Use action='buy' to open a position and action='sell' to close it. Endpoint: POST /api/v1/bot/signal/listener",
|
|
@@ -2433,7 +2450,7 @@ function registerBotTools() {
|
|
|
2433
2450
|
},
|
|
2434
2451
|
async handler(args, { client, config }) {
|
|
2435
2452
|
if (config.readOnly) {
|
|
2436
|
-
throw new Error("Server is running in --read-only mode; bot signal
|
|
2453
|
+
throw new Error("Server is running in --read-only mode; bot signal listener is disabled.");
|
|
2437
2454
|
}
|
|
2438
2455
|
const signalType = asNonEmptyString3(args.signalType, "signalType");
|
|
2439
2456
|
const signalParam = asNonEmptyString3(args.signalParam, "signalParam");
|