@aicoin/opendata-mcp 1.0.22 → 1.0.23
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/build/index.js +12 -8
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1258,15 +1258,17 @@ function registerMarketTools(server2) {
|
|
|
1258
1258
|
"get_latest_coin_treasury_entities",
|
|
1259
1259
|
"Get latest coin treasury entity data",
|
|
1260
1260
|
{
|
|
1261
|
-
coin: z4.string().describe("Coin ticker, e.g. BTC, ETH")
|
|
1261
|
+
coin: z4.string().describe("Coin ticker, e.g. BTC, ETH"),
|
|
1262
|
+
...maxItemsParam
|
|
1262
1263
|
},
|
|
1263
|
-
async ({ coin }) => {
|
|
1264
|
+
async ({ coin, _max_items }) => {
|
|
1264
1265
|
try {
|
|
1265
|
-
return
|
|
1266
|
+
return okList(
|
|
1266
1267
|
await apiGet(
|
|
1267
1268
|
"/api/upgrade/v2/coin-treasuries/latest/entities",
|
|
1268
1269
|
{ coin }
|
|
1269
|
-
)
|
|
1270
|
+
),
|
|
1271
|
+
parseMax(_max_items, 20)
|
|
1270
1272
|
);
|
|
1271
1273
|
} catch (e) {
|
|
1272
1274
|
return err(e);
|
|
@@ -1277,15 +1279,17 @@ function registerMarketTools(server2) {
|
|
|
1277
1279
|
"get_latest_coin_treasury_history",
|
|
1278
1280
|
"Get latest coin treasury history data",
|
|
1279
1281
|
{
|
|
1280
|
-
coin: z4.string().describe("Coin ticker, e.g. BTC, ETH")
|
|
1282
|
+
coin: z4.string().describe("Coin ticker, e.g. BTC, ETH"),
|
|
1283
|
+
...maxItemsParam
|
|
1281
1284
|
},
|
|
1282
|
-
async ({ coin }) => {
|
|
1285
|
+
async ({ coin, _max_items }) => {
|
|
1283
1286
|
try {
|
|
1284
|
-
return
|
|
1287
|
+
return okList(
|
|
1285
1288
|
await apiGet(
|
|
1286
1289
|
"/api/upgrade/v2/coin-treasuries/latest/history",
|
|
1287
1290
|
{ coin }
|
|
1288
|
-
)
|
|
1291
|
+
),
|
|
1292
|
+
parseMax(_max_items, 20)
|
|
1289
1293
|
);
|
|
1290
1294
|
} catch (e) {
|
|
1291
1295
|
return err(e);
|