hive-intelligence 0.1.0 → 0.3.0
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/LICENSE +21 -0
- package/README.md +112 -77
- package/bin/hive.js +25 -0
- package/build/alias-INGXWFCG.js +41 -0
- package/build/alias-INGXWFCG.js.map +1 -0
- package/build/auth-PVT4GTAD.js +233 -0
- package/build/auth-PVT4GTAD.js.map +1 -0
- package/build/cache-US4LSZPI.js +52 -0
- package/build/cache-US4LSZPI.js.map +1 -0
- package/build/chunk-FAFUYZQS.js +280 -0
- package/build/chunk-FAFUYZQS.js.map +1 -0
- package/build/chunk-IWBWPHYY.js +212 -0
- package/build/chunk-IWBWPHYY.js.map +1 -0
- package/build/chunk-LBTLYTZS.js +115 -0
- package/build/chunk-LBTLYTZS.js.map +1 -0
- package/build/chunk-N43VRMVB.js +3108 -0
- package/build/chunk-N43VRMVB.js.map +1 -0
- package/build/chunk-NEKSTV6P.js +911 -0
- package/build/chunk-NEKSTV6P.js.map +1 -0
- package/build/chunk-OK3LSM73.js +22 -0
- package/build/chunk-OK3LSM73.js.map +1 -0
- package/build/chunk-QMRVH5ZP.js +44 -0
- package/build/chunk-QMRVH5ZP.js.map +1 -0
- package/build/chunk-WKVZVQTG.js +66 -0
- package/build/chunk-WKVZVQTG.js.map +1 -0
- package/build/chunk-XQJ6PB2L.js +95 -0
- package/build/chunk-XQJ6PB2L.js.map +1 -0
- package/build/cli.js +3858 -0
- package/build/cli.js.map +1 -0
- package/build/completion-N35TWBLT.js +274 -0
- package/build/completion-N35TWBLT.js.map +1 -0
- package/build/config-2VDB2ZHE.js +100 -0
- package/build/config-2VDB2ZHE.js.map +1 -0
- package/build/config-dir-IEOID7Q6.js +31 -0
- package/build/config-dir-IEOID7Q6.js.map +1 -0
- package/build/doctor-GYP6IHPP.js +231 -0
- package/build/doctor-GYP6IHPP.js.map +1 -0
- package/build/errors-HRGXEUZR.js +17 -0
- package/build/errors-HRGXEUZR.js.map +1 -0
- package/build/format-4OIUGZKY.js +43 -0
- package/build/format-4OIUGZKY.js.map +1 -0
- package/build/init-YOJK6CH2.js +102 -0
- package/build/init-YOJK6CH2.js.map +1 -0
- package/build/namespace-GWTS6U6J.js +13 -0
- package/build/namespace-GWTS6U6J.js.map +1 -0
- package/build/open-FUXYIHFO.js +37 -0
- package/build/open-FUXYIHFO.js.map +1 -0
- package/build/output-6TJ3JTZ7.js +41 -0
- package/build/output-6TJ3JTZ7.js.map +1 -0
- package/build/server.js +14763 -0
- package/build/server.js.map +1 -0
- package/build/telemetry-KNWMQURH.js +18 -0
- package/build/telemetry-KNWMQURH.js.map +1 -0
- package/build/tools-4W3GGCUC.js +178 -0
- package/build/tools-4W3GGCUC.js.map +1 -0
- package/build/version-3TZ3U4IR.js +9 -0
- package/build/version-3TZ3U4IR.js.map +1 -0
- package/build/watch-P2QWGFYV.js +67 -0
- package/build/watch-P2QWGFYV.js.map +1 -0
- package/package.json +56 -15
- package/.env,example +0 -1
- package/dist/client.d.ts +0 -7
- package/dist/client.js +0 -52
- package/dist/errors.d.ts +0 -7
- package/dist/errors.js +0 -15
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -20
- package/dist/types.d.ts +0 -19
- package/dist/types.js +0 -2
- package/example.ts +0 -35
- package/jest.config.js +0 -7
- package/src/client.js +0 -52
- package/src/client.ts +0 -42
- package/src/errors.js +0 -15
- package/src/errors.ts +0 -11
- package/src/index.js +0 -20
- package/src/index.ts +0 -5
- package/src/types.js +0 -2
- package/src/types.ts +0 -21
- package/tests/client.test.js +0 -28
- package/tests/client.test.ts +0 -18
- package/tests/hive.test.js +0 -69
- package/tests/hive.test.ts +0 -63
- package/tsconfig.json +0 -117
|
@@ -0,0 +1,911 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/cli/namespace.ts
|
|
4
|
+
var NAMESPACE = [
|
|
5
|
+
{
|
|
6
|
+
name: "market",
|
|
7
|
+
description: "Crypto market data \u2014 prices, charts, rankings, stablecoins",
|
|
8
|
+
commands: [
|
|
9
|
+
{
|
|
10
|
+
name: "price",
|
|
11
|
+
description: "Get token price",
|
|
12
|
+
tool: "get_price",
|
|
13
|
+
args: {
|
|
14
|
+
ids: {
|
|
15
|
+
flag: "--ids <tokens>",
|
|
16
|
+
description: "Token IDs (comma-separated)",
|
|
17
|
+
required: true
|
|
18
|
+
},
|
|
19
|
+
vs_currencies: {
|
|
20
|
+
flag: "--vs <currencies>",
|
|
21
|
+
description: "Target currencies",
|
|
22
|
+
required: true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "top",
|
|
28
|
+
description: "Top coins by market cap",
|
|
29
|
+
tool: "get_coins_market_data",
|
|
30
|
+
args: {
|
|
31
|
+
vs_currency: {
|
|
32
|
+
flag: "--vs <currency>",
|
|
33
|
+
description: "Quote currency",
|
|
34
|
+
required: true
|
|
35
|
+
},
|
|
36
|
+
per_page: { flag: "--limit <n>", description: "Number of results" }
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{ name: "trending", description: "Trending coins", tool: "get_trending" },
|
|
40
|
+
{
|
|
41
|
+
name: "global",
|
|
42
|
+
description: "Global market stats",
|
|
43
|
+
tool: "get_global_stats"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "ohlc",
|
|
47
|
+
description: "OHLC candle data",
|
|
48
|
+
tool: "get_coin_ohlc",
|
|
49
|
+
args: {
|
|
50
|
+
id: { flag: "--id <coin>", description: "Coin ID", required: true },
|
|
51
|
+
vs_currency: {
|
|
52
|
+
flag: "--vs <currency>",
|
|
53
|
+
description: "Quote currency (default: usd)"
|
|
54
|
+
},
|
|
55
|
+
days: { flag: "--days <n>", description: "Number of days" }
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "chart",
|
|
60
|
+
description: "Price chart data",
|
|
61
|
+
tool: "get_coin_market_chart_range",
|
|
62
|
+
args: {
|
|
63
|
+
id: { flag: "--id <coin>", description: "Coin ID", required: true },
|
|
64
|
+
vs_currency: {
|
|
65
|
+
flag: "--vs <currency>",
|
|
66
|
+
description: "Quote currency (default: usd)"
|
|
67
|
+
},
|
|
68
|
+
from: {
|
|
69
|
+
flag: "--from <timestamp>",
|
|
70
|
+
description: "Start UNIX timestamp",
|
|
71
|
+
required: true
|
|
72
|
+
},
|
|
73
|
+
to: {
|
|
74
|
+
flag: "--to <timestamp>",
|
|
75
|
+
description: "End UNIX timestamp",
|
|
76
|
+
required: true
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "gainers",
|
|
82
|
+
description: "Top gainers and losers",
|
|
83
|
+
tool: "get_gainers_losers",
|
|
84
|
+
args: {
|
|
85
|
+
vs_currency: {
|
|
86
|
+
flag: "--vs <currency>",
|
|
87
|
+
description: "Quote currency (default: usd)"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "gas",
|
|
93
|
+
description: "Gas prices by chain",
|
|
94
|
+
tool: "goldrush_get_gas_prices",
|
|
95
|
+
args: {
|
|
96
|
+
chainName: {
|
|
97
|
+
flag: "--chain <name>",
|
|
98
|
+
description: "Chain name",
|
|
99
|
+
required: true
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "defi",
|
|
107
|
+
description: "DeFi protocol analytics \u2014 TVL, fees, yields, bridges",
|
|
108
|
+
commands: [
|
|
109
|
+
{
|
|
110
|
+
name: "tvl",
|
|
111
|
+
description: "Protocol TVL",
|
|
112
|
+
tool: "get_protocol_tvl",
|
|
113
|
+
args: {
|
|
114
|
+
protocol: {
|
|
115
|
+
flag: "--protocol <name>",
|
|
116
|
+
description: "Protocol slug",
|
|
117
|
+
required: true
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: "protocols",
|
|
123
|
+
description: "All DeFi protocols",
|
|
124
|
+
tool: "get_protocols"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: "fees",
|
|
128
|
+
description: "Protocol fee data",
|
|
129
|
+
tool: "get_protocol_fees",
|
|
130
|
+
args: {
|
|
131
|
+
protocol: {
|
|
132
|
+
flag: "--protocol <name>",
|
|
133
|
+
description: "Protocol slug",
|
|
134
|
+
required: true
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "yields",
|
|
140
|
+
description: "Yield farming pools",
|
|
141
|
+
tool: "get_yield_pools"
|
|
142
|
+
},
|
|
143
|
+
{ name: "chains", description: "Chain TVL rankings", tool: "get_chains" },
|
|
144
|
+
{
|
|
145
|
+
name: "bridges",
|
|
146
|
+
description: "Cross-chain bridges",
|
|
147
|
+
tool: "defillama_get_bridges"
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: "portfolio",
|
|
153
|
+
description: "Wallet portfolios \u2014 balances, DeFi positions, NFTs, history",
|
|
154
|
+
commands: [
|
|
155
|
+
{
|
|
156
|
+
name: "balance",
|
|
157
|
+
description: "Wallet total balance",
|
|
158
|
+
tool: "get_wallet_balance",
|
|
159
|
+
args: {
|
|
160
|
+
id: {
|
|
161
|
+
flag: "--address <addr>",
|
|
162
|
+
description: "Wallet address",
|
|
163
|
+
required: true
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: "tokens",
|
|
169
|
+
description: "Token holdings",
|
|
170
|
+
tool: "get_wallet_token_balances",
|
|
171
|
+
args: {
|
|
172
|
+
id: {
|
|
173
|
+
flag: "--address <addr>",
|
|
174
|
+
description: "Wallet address",
|
|
175
|
+
required: true
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: "positions",
|
|
181
|
+
description: "DeFi positions",
|
|
182
|
+
tool: "get_wallet_defi_positions",
|
|
183
|
+
args: {
|
|
184
|
+
id: {
|
|
185
|
+
flag: "--address <addr>",
|
|
186
|
+
description: "Wallet address",
|
|
187
|
+
required: true
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: "nfts",
|
|
193
|
+
description: "NFT holdings",
|
|
194
|
+
tool: "get_wallet_nft_collections",
|
|
195
|
+
args: {
|
|
196
|
+
id: {
|
|
197
|
+
flag: "--address <addr>",
|
|
198
|
+
description: "Wallet address",
|
|
199
|
+
required: true
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: "history",
|
|
205
|
+
description: "Portfolio value history",
|
|
206
|
+
tool: "goldrush_get_portfolio_history",
|
|
207
|
+
args: {
|
|
208
|
+
walletAddress: {
|
|
209
|
+
flag: "--address <addr>",
|
|
210
|
+
description: "Wallet address",
|
|
211
|
+
required: true
|
|
212
|
+
},
|
|
213
|
+
chainName: {
|
|
214
|
+
flag: "--chain <name>",
|
|
215
|
+
description: "Chain name",
|
|
216
|
+
required: true
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: "security",
|
|
224
|
+
description: "Token and contract security \u2014 scans, approvals, simulations",
|
|
225
|
+
commands: [
|
|
226
|
+
{
|
|
227
|
+
name: "scan",
|
|
228
|
+
description: "Token security analysis",
|
|
229
|
+
tool: "get_token_security",
|
|
230
|
+
args: {
|
|
231
|
+
chain_id: {
|
|
232
|
+
flag: "--chain <id>",
|
|
233
|
+
description: "Chain ID (1=ETH, 56=BSC)",
|
|
234
|
+
required: true
|
|
235
|
+
},
|
|
236
|
+
contract_addresses: {
|
|
237
|
+
flag: "--address <addr>",
|
|
238
|
+
description: "Token contract",
|
|
239
|
+
required: true
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: "approve",
|
|
245
|
+
description: "Audit token approvals",
|
|
246
|
+
tool: "check_approval_security",
|
|
247
|
+
args: {
|
|
248
|
+
chain_id: {
|
|
249
|
+
flag: "--chain <id>",
|
|
250
|
+
description: "Chain ID",
|
|
251
|
+
required: true
|
|
252
|
+
},
|
|
253
|
+
contract_addresses: {
|
|
254
|
+
flag: "--address <addr>",
|
|
255
|
+
description: "Contract address",
|
|
256
|
+
required: true
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: "simulate",
|
|
262
|
+
description: "Simulate a transaction",
|
|
263
|
+
tool: "simulate_evm_transaction",
|
|
264
|
+
args: {
|
|
265
|
+
chain_id: {
|
|
266
|
+
flag: "--chain <id>",
|
|
267
|
+
description: "Chain ID (1=ETH)",
|
|
268
|
+
required: true
|
|
269
|
+
},
|
|
270
|
+
from: {
|
|
271
|
+
flag: "--from <addr>",
|
|
272
|
+
description: "Sender address",
|
|
273
|
+
required: true
|
|
274
|
+
},
|
|
275
|
+
to: {
|
|
276
|
+
flag: "--to <addr>",
|
|
277
|
+
description: "Contract/recipient address",
|
|
278
|
+
required: true
|
|
279
|
+
},
|
|
280
|
+
data: {
|
|
281
|
+
flag: "--data <hex>",
|
|
282
|
+
description: "Transaction calldata (hex)"
|
|
283
|
+
},
|
|
284
|
+
value: { flag: "--value <wei>", description: "Value in wei" }
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
name: "rugpull",
|
|
289
|
+
description: "Detect rug pull indicators",
|
|
290
|
+
tool: "detect_rugpull",
|
|
291
|
+
args: {
|
|
292
|
+
chain_id: {
|
|
293
|
+
flag: "--chain <id>",
|
|
294
|
+
description: "Chain ID",
|
|
295
|
+
required: true
|
|
296
|
+
},
|
|
297
|
+
contract_addresses: {
|
|
298
|
+
flag: "--address <addr>",
|
|
299
|
+
description: "Contract",
|
|
300
|
+
required: true
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
name: "hacks",
|
|
306
|
+
description: "Recent DeFi hacks",
|
|
307
|
+
tool: "defillama_get_hacks"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
name: "stocks",
|
|
313
|
+
description: "Stock market data \u2014 quotes, candles, financials, analyst ratings",
|
|
314
|
+
commands: [
|
|
315
|
+
{
|
|
316
|
+
name: "quote",
|
|
317
|
+
description: "Real-time stock quote",
|
|
318
|
+
tool: "finnhub_get_stock_quote",
|
|
319
|
+
args: {
|
|
320
|
+
symbol: {
|
|
321
|
+
flag: "--symbol <ticker>",
|
|
322
|
+
description: "Stock ticker (e.g. AAPL)",
|
|
323
|
+
required: true
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
name: "candles",
|
|
329
|
+
description: "Historical OHLCV",
|
|
330
|
+
tool: "finnhub_get_stock_candles",
|
|
331
|
+
args: {
|
|
332
|
+
symbol: {
|
|
333
|
+
flag: "--symbol <ticker>",
|
|
334
|
+
description: "Stock ticker",
|
|
335
|
+
required: true
|
|
336
|
+
},
|
|
337
|
+
resolution: {
|
|
338
|
+
flag: "--resolution <r>",
|
|
339
|
+
description: "Timeframe (1,5,15,30,60,D,W,M)",
|
|
340
|
+
required: true
|
|
341
|
+
},
|
|
342
|
+
from: {
|
|
343
|
+
flag: "--from <timestamp>",
|
|
344
|
+
description: "Start UNIX timestamp",
|
|
345
|
+
required: true
|
|
346
|
+
},
|
|
347
|
+
to: {
|
|
348
|
+
flag: "--to <timestamp>",
|
|
349
|
+
description: "End UNIX timestamp",
|
|
350
|
+
required: true
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
name: "profile",
|
|
356
|
+
description: "Company profile",
|
|
357
|
+
tool: "finnhub_get_company_profile",
|
|
358
|
+
args: {
|
|
359
|
+
symbol: {
|
|
360
|
+
flag: "--symbol <ticker>",
|
|
361
|
+
description: "Stock ticker",
|
|
362
|
+
required: true
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
name: "financials",
|
|
368
|
+
description: "Key financial metrics",
|
|
369
|
+
tool: "finnhub_get_basic_financials",
|
|
370
|
+
args: {
|
|
371
|
+
symbol: {
|
|
372
|
+
flag: "--symbol <ticker>",
|
|
373
|
+
description: "Stock ticker",
|
|
374
|
+
required: true
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: "recommendations",
|
|
380
|
+
description: "Analyst recommendations",
|
|
381
|
+
tool: "finnhub_get_stock_recommendations",
|
|
382
|
+
args: {
|
|
383
|
+
symbol: {
|
|
384
|
+
flag: "--symbol <ticker>",
|
|
385
|
+
description: "Stock ticker",
|
|
386
|
+
required: true
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
name: "news",
|
|
392
|
+
description: "Company news",
|
|
393
|
+
tool: "finnhub_get_company_news",
|
|
394
|
+
args: {
|
|
395
|
+
symbol: {
|
|
396
|
+
flag: "--symbol <ticker>",
|
|
397
|
+
description: "Stock ticker",
|
|
398
|
+
required: true
|
|
399
|
+
},
|
|
400
|
+
from: {
|
|
401
|
+
flag: "--from <date>",
|
|
402
|
+
description: "From date (YYYY-MM-DD)",
|
|
403
|
+
required: true
|
|
404
|
+
},
|
|
405
|
+
to: {
|
|
406
|
+
flag: "--to <date>",
|
|
407
|
+
description: "To date (YYYY-MM-DD)",
|
|
408
|
+
required: true
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
name: "macro",
|
|
416
|
+
description: "Macroeconomic indicators \u2014 GDP, CPI, rates, employment, calendar",
|
|
417
|
+
commands: [
|
|
418
|
+
{ name: "gdp", description: "US GDP", tool: "fred_get_gdp" },
|
|
419
|
+
{
|
|
420
|
+
name: "cpi",
|
|
421
|
+
description: "CPI inflation rate",
|
|
422
|
+
tool: "fred_get_inflation"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
name: "fed-rate",
|
|
426
|
+
description: "Federal funds rate",
|
|
427
|
+
tool: "fred_get_fed_rate"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
name: "treasury",
|
|
431
|
+
description: "10-year treasury yield",
|
|
432
|
+
tool: "fred_get_treasury_10y"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
name: "unemployment",
|
|
436
|
+
description: "Unemployment rate",
|
|
437
|
+
tool: "fred_get_unemployment"
|
|
438
|
+
},
|
|
439
|
+
{ name: "sp500", description: "S&P 500 index", tool: "fred_get_sp500" },
|
|
440
|
+
{
|
|
441
|
+
name: "calendar",
|
|
442
|
+
description: "Economic event calendar",
|
|
443
|
+
tool: "finnhub_get_economic_calendar"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
name: "search",
|
|
447
|
+
description: "Search FRED series",
|
|
448
|
+
tool: "fred_search_series",
|
|
449
|
+
args: {
|
|
450
|
+
search_text: {
|
|
451
|
+
flag: "--query <text>",
|
|
452
|
+
description: "Search term",
|
|
453
|
+
required: true
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
name: "social",
|
|
461
|
+
description: "Social media analytics \u2014 sentiment, influencers, trending topics",
|
|
462
|
+
commands: [
|
|
463
|
+
{
|
|
464
|
+
name: "trending",
|
|
465
|
+
description: "Trending topics",
|
|
466
|
+
tool: "get_trending_topics"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
name: "metrics",
|
|
470
|
+
description: "Topic engagement metrics",
|
|
471
|
+
tool: "get_topic_metrics",
|
|
472
|
+
args: {
|
|
473
|
+
topic: {
|
|
474
|
+
flag: "--topic <name>",
|
|
475
|
+
description: "Topic or coin name",
|
|
476
|
+
required: true
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: "creators",
|
|
482
|
+
description: "Top content creators",
|
|
483
|
+
tool: "get_topic_creators",
|
|
484
|
+
args: {
|
|
485
|
+
topic: {
|
|
486
|
+
flag: "--topic <name>",
|
|
487
|
+
description: "Topic or coin name",
|
|
488
|
+
required: true
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
name: "posts",
|
|
494
|
+
description: "Social media posts",
|
|
495
|
+
tool: "get_topic_posts",
|
|
496
|
+
args: {
|
|
497
|
+
topic: {
|
|
498
|
+
flag: "--topic <name>",
|
|
499
|
+
description: "Topic or coin name",
|
|
500
|
+
required: true
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
name: "news",
|
|
506
|
+
description: "Topic news articles",
|
|
507
|
+
tool: "get_topic_news",
|
|
508
|
+
args: {
|
|
509
|
+
topic: {
|
|
510
|
+
flag: "--topic <name>",
|
|
511
|
+
description: "Topic or coin name",
|
|
512
|
+
required: true
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
]
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
name: "exchange",
|
|
520
|
+
description: "Centralized exchange data \u2014 tickers, orderbooks, trades, funding",
|
|
521
|
+
commands: [
|
|
522
|
+
{
|
|
523
|
+
name: "ticker",
|
|
524
|
+
description: "Exchange ticker",
|
|
525
|
+
tool: "get_ticker",
|
|
526
|
+
args: {
|
|
527
|
+
exchange: {
|
|
528
|
+
flag: "--exchange <name>",
|
|
529
|
+
description: "Exchange (binance, coinbase)",
|
|
530
|
+
required: true
|
|
531
|
+
},
|
|
532
|
+
symbol: {
|
|
533
|
+
flag: "--symbol <pair>",
|
|
534
|
+
description: "Trading pair (BTC/USDT)",
|
|
535
|
+
required: true
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
name: "orderbook",
|
|
541
|
+
description: "Order book depth",
|
|
542
|
+
tool: "get_orderbook",
|
|
543
|
+
args: {
|
|
544
|
+
exchange: {
|
|
545
|
+
flag: "--exchange <name>",
|
|
546
|
+
description: "Exchange",
|
|
547
|
+
required: true
|
|
548
|
+
},
|
|
549
|
+
symbol: {
|
|
550
|
+
flag: "--symbol <pair>",
|
|
551
|
+
description: "Trading pair",
|
|
552
|
+
required: true
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
name: "trades",
|
|
558
|
+
description: "Recent trades",
|
|
559
|
+
tool: "get_recent_trades",
|
|
560
|
+
args: {
|
|
561
|
+
exchange: {
|
|
562
|
+
flag: "--exchange <name>",
|
|
563
|
+
description: "Exchange",
|
|
564
|
+
required: true
|
|
565
|
+
},
|
|
566
|
+
symbol: {
|
|
567
|
+
flag: "--symbol <pair>",
|
|
568
|
+
description: "Trading pair",
|
|
569
|
+
required: true
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
name: "funding",
|
|
575
|
+
description: "Perpetual funding rates",
|
|
576
|
+
tool: "get_funding_rate",
|
|
577
|
+
args: {
|
|
578
|
+
exchange: {
|
|
579
|
+
flag: "--exchange <name>",
|
|
580
|
+
description: "Exchange (binance, bybit)",
|
|
581
|
+
required: true
|
|
582
|
+
},
|
|
583
|
+
symbol: {
|
|
584
|
+
flag: "--symbol <pair>",
|
|
585
|
+
description: "Futures pair (e.g. BTC/USDT:USDT)",
|
|
586
|
+
required: true
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
name: "list",
|
|
592
|
+
description: "List all exchanges",
|
|
593
|
+
tool: "get_exchanges"
|
|
594
|
+
}
|
|
595
|
+
]
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
name: "dex",
|
|
599
|
+
description: "DEX analytics \u2014 pools, trending pairs, trades, volume",
|
|
600
|
+
commands: [
|
|
601
|
+
{
|
|
602
|
+
name: "trending",
|
|
603
|
+
description: "Trending DEX pools",
|
|
604
|
+
tool: "get_trending_pools"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
name: "pools",
|
|
608
|
+
description: "Pool search and filter",
|
|
609
|
+
tool: "get_pools",
|
|
610
|
+
args: {
|
|
611
|
+
network: {
|
|
612
|
+
flag: "--network <name>",
|
|
613
|
+
description: "Network (eth, bsc, solana)",
|
|
614
|
+
required: true
|
|
615
|
+
},
|
|
616
|
+
page: { flag: "--page <n>", description: "Page number" }
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
name: "trades",
|
|
621
|
+
description: "Token trading activity",
|
|
622
|
+
tool: "get_token_trades",
|
|
623
|
+
args: {
|
|
624
|
+
network: {
|
|
625
|
+
flag: "--network <name>",
|
|
626
|
+
description: "Network (eth, bsc, solana)"
|
|
627
|
+
},
|
|
628
|
+
pool_address: { flag: "--pool <addr>", description: "Pool address" }
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
name: "volume",
|
|
633
|
+
description: "DEX volume rankings",
|
|
634
|
+
tool: "get_dex_volumes"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
name: "pairs",
|
|
638
|
+
description: "Token trading pairs",
|
|
639
|
+
tool: "get_token_pools",
|
|
640
|
+
args: {
|
|
641
|
+
network: {
|
|
642
|
+
flag: "--network <name>",
|
|
643
|
+
description: "Network",
|
|
644
|
+
required: true
|
|
645
|
+
},
|
|
646
|
+
token_address: {
|
|
647
|
+
flag: "--token <addr>",
|
|
648
|
+
description: "Token address",
|
|
649
|
+
required: true
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
]
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
name: "wallet",
|
|
657
|
+
description: "On-chain wallet data \u2014 balances, transfers, transactions, approvals",
|
|
658
|
+
commands: [
|
|
659
|
+
{
|
|
660
|
+
name: "balances",
|
|
661
|
+
description: "Token balances across chains",
|
|
662
|
+
tool: "goldrush_get_multichain_balances",
|
|
663
|
+
args: {
|
|
664
|
+
walletAddress: {
|
|
665
|
+
flag: "--address <addr>",
|
|
666
|
+
description: "Wallet address",
|
|
667
|
+
required: true
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
name: "transfers",
|
|
673
|
+
description: "ERC-20 transfers",
|
|
674
|
+
tool: "goldrush_get_erc20_transfers",
|
|
675
|
+
args: {
|
|
676
|
+
walletAddress: {
|
|
677
|
+
flag: "--address <addr>",
|
|
678
|
+
description: "Wallet address",
|
|
679
|
+
required: true
|
|
680
|
+
},
|
|
681
|
+
chainName: {
|
|
682
|
+
flag: "--chain <name>",
|
|
683
|
+
description: "Chain name",
|
|
684
|
+
required: true
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
name: "transactions",
|
|
690
|
+
description: "Recent transactions",
|
|
691
|
+
tool: "goldrush_get_transactions_latest",
|
|
692
|
+
args: {
|
|
693
|
+
walletAddress: {
|
|
694
|
+
flag: "--address <addr>",
|
|
695
|
+
description: "Wallet address",
|
|
696
|
+
required: true
|
|
697
|
+
},
|
|
698
|
+
chainName: {
|
|
699
|
+
flag: "--chain <name>",
|
|
700
|
+
description: "Chain name",
|
|
701
|
+
required: true
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
name: "approvals",
|
|
707
|
+
description: "Token approval audit",
|
|
708
|
+
tool: "goldrush_get_token_approvals",
|
|
709
|
+
args: {
|
|
710
|
+
walletAddress: {
|
|
711
|
+
flag: "--address <addr>",
|
|
712
|
+
description: "Wallet address",
|
|
713
|
+
required: true
|
|
714
|
+
},
|
|
715
|
+
chainName: {
|
|
716
|
+
flag: "--chain <name>",
|
|
717
|
+
description: "Chain name",
|
|
718
|
+
required: true
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
]
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
name: "nft",
|
|
726
|
+
description: "NFT analytics \u2014 collections, markets, trends, holders",
|
|
727
|
+
commands: [
|
|
728
|
+
{
|
|
729
|
+
name: "trending",
|
|
730
|
+
description: "Trending NFT collections",
|
|
731
|
+
tool: "get_nft_market_trends"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
name: "collection",
|
|
735
|
+
description: "Collection details",
|
|
736
|
+
tool: "get_nft_collection",
|
|
737
|
+
args: {
|
|
738
|
+
slug: { flag: "--slug <name>", description: "Collection slug" }
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
name: "markets",
|
|
743
|
+
description: "NFT marketplace data",
|
|
744
|
+
tool: "get_nft_markets"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
name: "search",
|
|
748
|
+
description: "Search NFT collections",
|
|
749
|
+
tool: "search_nfts",
|
|
750
|
+
args: {
|
|
751
|
+
query: {
|
|
752
|
+
flag: "--query <text>",
|
|
753
|
+
description: "Search term",
|
|
754
|
+
required: true
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
]
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
name: "network",
|
|
762
|
+
description: "Blockchain infrastructure \u2014 chains, gas, blocks, transactions",
|
|
763
|
+
commands: [
|
|
764
|
+
{
|
|
765
|
+
name: "chains",
|
|
766
|
+
description: "List supported chains",
|
|
767
|
+
tool: "goldrush_get_chains"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
name: "gas",
|
|
771
|
+
description: "Gas prices",
|
|
772
|
+
tool: "goldrush_get_gas_prices",
|
|
773
|
+
args: {
|
|
774
|
+
chainName: {
|
|
775
|
+
flag: "--chain <name>",
|
|
776
|
+
description: "Chain name",
|
|
777
|
+
required: true
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
name: "block",
|
|
783
|
+
description: "Block data",
|
|
784
|
+
tool: "goldrush_get_block",
|
|
785
|
+
args: {
|
|
786
|
+
chainName: {
|
|
787
|
+
flag: "--chain <name>",
|
|
788
|
+
description: "Chain name",
|
|
789
|
+
required: true
|
|
790
|
+
},
|
|
791
|
+
blockHeight: {
|
|
792
|
+
flag: "--height <n>",
|
|
793
|
+
description: "Block height",
|
|
794
|
+
required: true
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
name: "resolve",
|
|
800
|
+
description: "Resolve ENS/DNS name",
|
|
801
|
+
tool: "goldrush_resolve_address",
|
|
802
|
+
args: {
|
|
803
|
+
chainName: {
|
|
804
|
+
flag: "--chain <name>",
|
|
805
|
+
description: "Chain name",
|
|
806
|
+
required: true
|
|
807
|
+
},
|
|
808
|
+
walletAddress: {
|
|
809
|
+
flag: "--address <addr>",
|
|
810
|
+
description: "Address or ENS name",
|
|
811
|
+
required: true
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
]
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
name: "search",
|
|
819
|
+
description: "Search across all data",
|
|
820
|
+
commands: [
|
|
821
|
+
{
|
|
822
|
+
name: "tokens",
|
|
823
|
+
description: "Search tokens",
|
|
824
|
+
tool: "search_all",
|
|
825
|
+
args: {
|
|
826
|
+
query: {
|
|
827
|
+
flag: "--query <text>",
|
|
828
|
+
description: "Search term",
|
|
829
|
+
required: true
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
name: "pools",
|
|
835
|
+
description: "Search DEX pools",
|
|
836
|
+
tool: "search_pools",
|
|
837
|
+
args: {
|
|
838
|
+
query: {
|
|
839
|
+
flag: "--query <text>",
|
|
840
|
+
description: "Search term",
|
|
841
|
+
required: true
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
]
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
name: "altdata",
|
|
849
|
+
description: "Alternative data \u2014 insider trades, earnings, IPOs, sentiment",
|
|
850
|
+
commands: [
|
|
851
|
+
{
|
|
852
|
+
name: "insider",
|
|
853
|
+
description: "Insider trading transactions",
|
|
854
|
+
tool: "finnhub_get_insider_transactions",
|
|
855
|
+
args: {
|
|
856
|
+
symbol: {
|
|
857
|
+
flag: "--symbol <ticker>",
|
|
858
|
+
description: "Stock ticker",
|
|
859
|
+
required: true
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
name: "sentiment",
|
|
865
|
+
description: "Insider sentiment score",
|
|
866
|
+
tool: "finnhub_get_insider_sentiment",
|
|
867
|
+
args: {
|
|
868
|
+
symbol: {
|
|
869
|
+
flag: "--symbol <ticker>",
|
|
870
|
+
description: "Stock ticker",
|
|
871
|
+
required: true
|
|
872
|
+
},
|
|
873
|
+
from: {
|
|
874
|
+
flag: "--from <date>",
|
|
875
|
+
description: "From date (YYYY-MM-DD)",
|
|
876
|
+
required: true
|
|
877
|
+
},
|
|
878
|
+
to: {
|
|
879
|
+
flag: "--to <date>",
|
|
880
|
+
description: "To date (YYYY-MM-DD)",
|
|
881
|
+
required: true
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
name: "earnings",
|
|
887
|
+
description: "Earnings calendar",
|
|
888
|
+
tool: "finnhub_get_earnings_calendar"
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
name: "ipo",
|
|
892
|
+
description: "IPO calendar",
|
|
893
|
+
tool: "finnhub_get_ipo_calendar"
|
|
894
|
+
}
|
|
895
|
+
]
|
|
896
|
+
}
|
|
897
|
+
];
|
|
898
|
+
function resolveCommand(domain, subcommand) {
|
|
899
|
+
const d = NAMESPACE.find((n) => n.name === domain);
|
|
900
|
+
return d?.commands.find((c) => c.name === subcommand);
|
|
901
|
+
}
|
|
902
|
+
function getAllDomainCommands() {
|
|
903
|
+
return NAMESPACE;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
export {
|
|
907
|
+
NAMESPACE,
|
|
908
|
+
resolveCommand,
|
|
909
|
+
getAllDomainCommands
|
|
910
|
+
};
|
|
911
|
+
//# sourceMappingURL=chunk-NEKSTV6P.js.map
|