@sharpe-terminal/mcp-server 1.4.0 → 1.6.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/README.md +17 -7
- package/dist/api-client.d.ts +38 -1
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +119 -10
- package/dist/api-client.js.map +1 -1
- package/dist/composite-tools.d.ts +27 -45
- package/dist/composite-tools.d.ts.map +1 -1
- package/dist/composite-tools.js +372 -546
- package/dist/composite-tools.js.map +1 -1
- package/dist/contracts/manifest.d.ts +52 -0
- package/dist/contracts/manifest.d.ts.map +1 -0
- package/dist/contracts/manifest.js +9 -0
- package/dist/contracts/manifest.js.map +1 -0
- package/dist/endpoint-tools.d.ts +107 -0
- package/dist/endpoint-tools.d.ts.map +1 -0
- package/dist/endpoint-tools.js +382 -0
- package/dist/endpoint-tools.js.map +1 -0
- package/dist/server.d.ts +20 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +143 -101
- package/dist/server.js.map +1 -1
- package/dist/tool-runtime.d.ts +33 -38
- package/dist/tool-runtime.d.ts.map +1 -1
- package/dist/tool-runtime.js +113 -238
- package/dist/tool-runtime.js.map +1 -1
- package/package.json +1 -1
- package/dist/tools.d.ts +0 -567
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js +0 -1166
- package/dist/tools.js.map +0 -1
package/dist/tools.d.ts
DELETED
|
@@ -1,567 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const globalOverviewSchema: {
|
|
3
|
-
tab: z.ZodDefault<z.ZodEnum<{
|
|
4
|
-
crypto: "crypto";
|
|
5
|
-
equity: "equity";
|
|
6
|
-
preipo: "preipo";
|
|
7
|
-
etf: "etf";
|
|
8
|
-
index: "index";
|
|
9
|
-
commodity: "commodity";
|
|
10
|
-
fx: "fx";
|
|
11
|
-
}>>;
|
|
12
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
13
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
14
|
-
};
|
|
15
|
-
export declare const rwaPerpRatesSchema: {
|
|
16
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
17
|
-
current: "current";
|
|
18
|
-
history: "history";
|
|
19
|
-
stats: "stats";
|
|
20
|
-
}>>;
|
|
21
|
-
symbol: z.ZodOptional<z.ZodString>;
|
|
22
|
-
venue: z.ZodOptional<z.ZodString>;
|
|
23
|
-
days: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
24
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
25
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
26
|
-
};
|
|
27
|
-
export declare const fundingRatesSchema: {
|
|
28
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
29
|
-
current: "current";
|
|
30
|
-
history: "history";
|
|
31
|
-
accumulated: "accumulated";
|
|
32
|
-
}>>;
|
|
33
|
-
coin: z.ZodOptional<z.ZodString>;
|
|
34
|
-
exchange: z.ZodOptional<z.ZodString>;
|
|
35
|
-
margin: z.ZodOptional<z.ZodEnum<{
|
|
36
|
-
linear: "linear";
|
|
37
|
-
inverse: "inverse";
|
|
38
|
-
}>>;
|
|
39
|
-
asset_class: z.ZodOptional<z.ZodEnum<{
|
|
40
|
-
crypto: "crypto";
|
|
41
|
-
equity: "equity";
|
|
42
|
-
index: "index";
|
|
43
|
-
commodity: "commodity";
|
|
44
|
-
fx: "fx";
|
|
45
|
-
}>>;
|
|
46
|
-
days: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
47
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
48
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
49
|
-
};
|
|
50
|
-
export declare const fundingSettlementSchema: {
|
|
51
|
-
window: z.ZodDefault<z.ZodEnum<{
|
|
52
|
-
current: "current";
|
|
53
|
-
"1d": "1d";
|
|
54
|
-
"3d": "3d";
|
|
55
|
-
"7d": "7d";
|
|
56
|
-
}>>;
|
|
57
|
-
class: z.ZodDefault<z.ZodEnum<{
|
|
58
|
-
rwa: "rwa";
|
|
59
|
-
crypto: "crypto";
|
|
60
|
-
all: "all";
|
|
61
|
-
}>>;
|
|
62
|
-
coin: z.ZodOptional<z.ZodString>;
|
|
63
|
-
exchange: z.ZodOptional<z.ZodString>;
|
|
64
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
65
|
-
};
|
|
66
|
-
export declare const futuresDataSchema: {
|
|
67
|
-
chart: z.ZodEnum<{
|
|
68
|
-
[x: string]: string;
|
|
69
|
-
}>;
|
|
70
|
-
coin: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
71
|
-
timeframe: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
72
|
-
"1W": "1W";
|
|
73
|
-
"2W": "2W";
|
|
74
|
-
"1M": "1M";
|
|
75
|
-
"3M": "3M";
|
|
76
|
-
"6M": "6M";
|
|
77
|
-
"1Y": "1Y";
|
|
78
|
-
"3Y": "3Y";
|
|
79
|
-
}>>>;
|
|
80
|
-
exchanges: z.ZodOptional<z.ZodString>;
|
|
81
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
82
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
83
|
-
};
|
|
84
|
-
export declare const futuresCoinsSchema: {};
|
|
85
|
-
export declare const correlationMatrixSchema: {
|
|
86
|
-
period: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
87
|
-
"30d": "30d";
|
|
88
|
-
"90d": "90d";
|
|
89
|
-
"1y": "1y";
|
|
90
|
-
"3y": "3y";
|
|
91
|
-
}>>>;
|
|
92
|
-
ids: z.ZodOptional<z.ZodString>;
|
|
93
|
-
};
|
|
94
|
-
export declare const arbitrageSpotPerpSchema: {
|
|
95
|
-
exchange: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
96
|
-
direction: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
97
|
-
all: "all";
|
|
98
|
-
long: "long";
|
|
99
|
-
short: "short";
|
|
100
|
-
}>>>;
|
|
101
|
-
};
|
|
102
|
-
export declare const arbitrageCrossExchangeSchema: {
|
|
103
|
-
exchanges: z.ZodOptional<z.ZodString>;
|
|
104
|
-
minOiUsd: z.ZodOptional<z.ZodNumber>;
|
|
105
|
-
minVolUsd: z.ZodOptional<z.ZodNumber>;
|
|
106
|
-
assetClass: z.ZodOptional<z.ZodEnum<{
|
|
107
|
-
rwa: "rwa";
|
|
108
|
-
crypto: "crypto";
|
|
109
|
-
all: "all";
|
|
110
|
-
}>>;
|
|
111
|
-
};
|
|
112
|
-
export declare const arbitrageScannerSchema: {
|
|
113
|
-
coin: z.ZodOptional<z.ZodString>;
|
|
114
|
-
exchanges: z.ZodOptional<z.ZodString>;
|
|
115
|
-
minApr: z.ZodOptional<z.ZodNumber>;
|
|
116
|
-
minOiUsd: z.ZodOptional<z.ZodNumber>;
|
|
117
|
-
minVolumeUsd: z.ZodOptional<z.ZodNumber>;
|
|
118
|
-
minDepthUsd: z.ZodOptional<z.ZodNumber>;
|
|
119
|
-
marginType: z.ZodOptional<z.ZodEnum<{
|
|
120
|
-
linear: "linear";
|
|
121
|
-
inverse: "inverse";
|
|
122
|
-
both: "both";
|
|
123
|
-
}>>;
|
|
124
|
-
notional: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
125
|
-
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
126
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
127
|
-
};
|
|
128
|
-
export declare const cexSpotTransferScannerSchema: {
|
|
129
|
-
coin: z.ZodOptional<z.ZodString>;
|
|
130
|
-
exchanges: z.ZodOptional<z.ZodString>;
|
|
131
|
-
minApr: z.ZodOptional<z.ZodNumber>;
|
|
132
|
-
minDepthUsd: z.ZodOptional<z.ZodNumber>;
|
|
133
|
-
notional: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
134
|
-
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
135
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
136
|
-
};
|
|
137
|
-
export declare const heatmapSchema: {
|
|
138
|
-
mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
139
|
-
coins: "coins";
|
|
140
|
-
narratives: "narratives";
|
|
141
|
-
ecosystems: "ecosystems";
|
|
142
|
-
}>>>;
|
|
143
|
-
category: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
144
|
-
};
|
|
145
|
-
export declare const tokenScannerSchema: {
|
|
146
|
-
mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
147
|
-
hot: "hot";
|
|
148
|
-
"new-runners": "new-runners";
|
|
149
|
-
"alpha-drops": "alpha-drops";
|
|
150
|
-
"ai-top": "ai-top";
|
|
151
|
-
"top-new": "top-new";
|
|
152
|
-
}>>>;
|
|
153
|
-
chains: z.ZodOptional<z.ZodString>;
|
|
154
|
-
chain: z.ZodOptional<z.ZodString>;
|
|
155
|
-
profile: z.ZodOptional<z.ZodEnum<{
|
|
156
|
-
discovery: "discovery";
|
|
157
|
-
balanced: "balanced";
|
|
158
|
-
strict: "strict";
|
|
159
|
-
}>>;
|
|
160
|
-
days: z.ZodOptional<z.ZodNumber>;
|
|
161
|
-
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
162
|
-
minLiquidityUsd: z.ZodOptional<z.ZodNumber>;
|
|
163
|
-
minVolumeH24: z.ZodOptional<z.ZodNumber>;
|
|
164
|
-
minTxnsH1: z.ZodOptional<z.ZodNumber>;
|
|
165
|
-
minTxnsH24: z.ZodOptional<z.ZodNumber>;
|
|
166
|
-
maxAgeHours: z.ZodOptional<z.ZodNumber>;
|
|
167
|
-
includeUnknownAge: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
-
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
169
|
-
score: "score";
|
|
170
|
-
readiness: "readiness";
|
|
171
|
-
rs: "rs";
|
|
172
|
-
volume: "volume";
|
|
173
|
-
momentum: "momentum";
|
|
174
|
-
}>>;
|
|
175
|
-
minBreakoutReadiness: z.ZodOptional<z.ZodNumber>;
|
|
176
|
-
minRelativeStrength: z.ZodOptional<z.ZodNumber>;
|
|
177
|
-
maxVolLiqRatio: z.ZodOptional<z.ZodNumber>;
|
|
178
|
-
minPriceChangeH1: z.ZodOptional<z.ZodNumber>;
|
|
179
|
-
};
|
|
180
|
-
export declare const rugCheckSecuritySchema: {
|
|
181
|
-
address: z.ZodString;
|
|
182
|
-
chainId: z.ZodNumber;
|
|
183
|
-
};
|
|
184
|
-
export declare const rugCheckTrendingSchema: {
|
|
185
|
-
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
186
|
-
};
|
|
187
|
-
export declare const stablecoinsSchema: {
|
|
188
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
189
|
-
detail: "detail";
|
|
190
|
-
overview: "overview";
|
|
191
|
-
yields: "yields";
|
|
192
|
-
}>>>;
|
|
193
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
194
|
-
};
|
|
195
|
-
export declare const mindshareSchema: {
|
|
196
|
-
tokens: z.ZodOptional<z.ZodEnum<{
|
|
197
|
-
true: "true";
|
|
198
|
-
false: "false";
|
|
199
|
-
}>>;
|
|
200
|
-
narrative: z.ZodOptional<z.ZodString>;
|
|
201
|
-
historical: z.ZodOptional<z.ZodEnum<{
|
|
202
|
-
true: "true";
|
|
203
|
-
false: "false";
|
|
204
|
-
}>>;
|
|
205
|
-
timeframe: z.ZodOptional<z.ZodEnum<{
|
|
206
|
-
"1W": "1W";
|
|
207
|
-
"1M": "1M";
|
|
208
|
-
"3M": "3M";
|
|
209
|
-
"6M": "6M";
|
|
210
|
-
"1Y": "1Y";
|
|
211
|
-
"3Y": "3Y";
|
|
212
|
-
}>>;
|
|
213
|
-
window: z.ZodOptional<z.ZodEnum<{
|
|
214
|
-
"7d": "7d";
|
|
215
|
-
"30d": "30d";
|
|
216
|
-
now: "now";
|
|
217
|
-
"24h": "24h";
|
|
218
|
-
}>>;
|
|
219
|
-
};
|
|
220
|
-
export declare const webTrafficSchema: {
|
|
221
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
222
|
-
exchange: "exchange";
|
|
223
|
-
coin: "coin";
|
|
224
|
-
narrative: "narrative";
|
|
225
|
-
}>>;
|
|
226
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
227
|
-
rankings: "rankings";
|
|
228
|
-
snapshots: "snapshots";
|
|
229
|
-
market: "market";
|
|
230
|
-
}>>;
|
|
231
|
-
tf: z.ZodOptional<z.ZodEnum<{
|
|
232
|
-
"7d": "7d";
|
|
233
|
-
all: "all";
|
|
234
|
-
"30d": "30d";
|
|
235
|
-
"90d": "90d";
|
|
236
|
-
"1y": "1y";
|
|
237
|
-
"3y": "3y";
|
|
238
|
-
}>>;
|
|
239
|
-
entities: z.ZodOptional<z.ZodString>;
|
|
240
|
-
sub: z.ZodOptional<z.ZodEnum<{
|
|
241
|
-
trending: "trending";
|
|
242
|
-
categories: "categories";
|
|
243
|
-
global: "global";
|
|
244
|
-
}>>;
|
|
245
|
-
};
|
|
246
|
-
export declare const narrativesSchema: {
|
|
247
|
-
narrative: z.ZodOptional<z.ZodString>;
|
|
248
|
-
correlation: z.ZodOptional<z.ZodString>;
|
|
249
|
-
timeframe: z.ZodOptional<z.ZodString>;
|
|
250
|
-
};
|
|
251
|
-
export declare const ecosystemsSchema: {
|
|
252
|
-
ecosystem: z.ZodOptional<z.ZodString>;
|
|
253
|
-
excludeNative: z.ZodOptional<z.ZodString>;
|
|
254
|
-
correlation: z.ZodOptional<z.ZodString>;
|
|
255
|
-
timeframe: z.ZodOptional<z.ZodString>;
|
|
256
|
-
};
|
|
257
|
-
export declare const memecoinsSchema: {
|
|
258
|
-
narrative: z.ZodOptional<z.ZodString>;
|
|
259
|
-
historical: z.ZodOptional<z.ZodEnum<{
|
|
260
|
-
"7d": "7d";
|
|
261
|
-
"30d": "30d";
|
|
262
|
-
"1y": "1y";
|
|
263
|
-
"24h": "24h";
|
|
264
|
-
}>>;
|
|
265
|
-
coinHistory: z.ZodOptional<z.ZodEnum<{
|
|
266
|
-
"7d": "7d";
|
|
267
|
-
"1y": "1y";
|
|
268
|
-
"24h": "24h";
|
|
269
|
-
"1m": "1m";
|
|
270
|
-
}>>;
|
|
271
|
-
};
|
|
272
|
-
export declare const memecoinLaunchesSchema: {
|
|
273
|
-
chains: z.ZodOptional<z.ZodString>;
|
|
274
|
-
days: z.ZodOptional<z.ZodNumber>;
|
|
275
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
276
|
-
profile: z.ZodOptional<z.ZodEnum<{
|
|
277
|
-
discovery: "discovery";
|
|
278
|
-
balanced: "balanced";
|
|
279
|
-
strict: "strict";
|
|
280
|
-
}>>;
|
|
281
|
-
};
|
|
282
|
-
export declare const newsSchema: {
|
|
283
|
-
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
284
|
-
category: z.ZodOptional<z.ZodString>;
|
|
285
|
-
coin: z.ZodOptional<z.ZodString>;
|
|
286
|
-
since: z.ZodOptional<z.ZodString>;
|
|
287
|
-
q: z.ZodOptional<z.ZodString>;
|
|
288
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
289
|
-
};
|
|
290
|
-
export declare const marketOverviewSchema: {};
|
|
291
|
-
export declare const pricePredictionSchema: {
|
|
292
|
-
coin: z.ZodOptional<z.ZodString>;
|
|
293
|
-
};
|
|
294
|
-
export declare const searchMarketCapSchema: {
|
|
295
|
-
q: z.ZodString;
|
|
296
|
-
};
|
|
297
|
-
export declare const gemFinderSchema: {
|
|
298
|
-
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
299
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
300
|
-
};
|
|
301
|
-
export declare const derivativesOverviewSchema: {};
|
|
302
|
-
export declare const apiCoverageSchema: {};
|
|
303
|
-
export declare const listingsDataSchema: {
|
|
304
|
-
narrative: z.ZodOptional<z.ZodString>;
|
|
305
|
-
exchange: z.ZodOptional<z.ZodEnum<{
|
|
306
|
-
binance: "binance";
|
|
307
|
-
okx: "okx";
|
|
308
|
-
bybit: "bybit";
|
|
309
|
-
gateio: "gateio";
|
|
310
|
-
mexc: "mexc";
|
|
311
|
-
}>>;
|
|
312
|
-
};
|
|
313
|
-
export declare const listingsRecentSchema: {
|
|
314
|
-
narrative: z.ZodOptional<z.ZodString>;
|
|
315
|
-
exchange: z.ZodOptional<z.ZodEnum<{
|
|
316
|
-
hyperliquid: "hyperliquid";
|
|
317
|
-
binance: "binance";
|
|
318
|
-
okx: "okx";
|
|
319
|
-
bybit: "bybit";
|
|
320
|
-
gateio: "gateio";
|
|
321
|
-
mexc: "mexc";
|
|
322
|
-
bitget: "bitget";
|
|
323
|
-
kucoin: "kucoin";
|
|
324
|
-
bingx: "bingx";
|
|
325
|
-
bitmart: "bitmart";
|
|
326
|
-
deepcoin: "deepcoin";
|
|
327
|
-
coinbase: "coinbase";
|
|
328
|
-
kraken: "kraken";
|
|
329
|
-
crypto_com: "crypto_com";
|
|
330
|
-
upbit: "upbit";
|
|
331
|
-
bithumb: "bithumb";
|
|
332
|
-
htx: "htx";
|
|
333
|
-
bitfinex: "bitfinex";
|
|
334
|
-
bitstamp: "bitstamp";
|
|
335
|
-
gemini: "gemini";
|
|
336
|
-
bitmex: "bitmex";
|
|
337
|
-
deribit: "deribit";
|
|
338
|
-
phemex: "phemex";
|
|
339
|
-
lbank: "lbank";
|
|
340
|
-
bitrue: "bitrue";
|
|
341
|
-
coinex: "coinex";
|
|
342
|
-
backpack: "backpack";
|
|
343
|
-
hashkey: "hashkey";
|
|
344
|
-
whitebit: "whitebit";
|
|
345
|
-
toobit: "toobit";
|
|
346
|
-
aster: "aster";
|
|
347
|
-
dydx: "dydx";
|
|
348
|
-
aevo: "aevo";
|
|
349
|
-
}>>;
|
|
350
|
-
venue_type: z.ZodOptional<z.ZodEnum<{
|
|
351
|
-
dex: "dex";
|
|
352
|
-
cex: "cex";
|
|
353
|
-
perp_dex: "perp_dex";
|
|
354
|
-
}>>;
|
|
355
|
-
market_type: z.ZodOptional<z.ZodEnum<{
|
|
356
|
-
spot: "spot";
|
|
357
|
-
perp: "perp";
|
|
358
|
-
futures: "futures";
|
|
359
|
-
options: "options";
|
|
360
|
-
margin: "margin";
|
|
361
|
-
}>>;
|
|
362
|
-
event_type: z.ZodOptional<z.ZodEnum<{
|
|
363
|
-
listing: "listing";
|
|
364
|
-
delisting: "delisting";
|
|
365
|
-
suspension: "suspension";
|
|
366
|
-
resumption: "resumption";
|
|
367
|
-
prelaunch: "prelaunch";
|
|
368
|
-
}>>;
|
|
369
|
-
asset_class: z.ZodOptional<z.ZodEnum<{
|
|
370
|
-
token: "token";
|
|
371
|
-
spot_pair: "spot_pair";
|
|
372
|
-
perp_contract: "perp_contract";
|
|
373
|
-
futures_contract: "futures_contract";
|
|
374
|
-
options_contract: "options_contract";
|
|
375
|
-
}>>;
|
|
376
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
377
|
-
announced: "announced";
|
|
378
|
-
scheduled: "scheduled";
|
|
379
|
-
live: "live";
|
|
380
|
-
completed: "completed";
|
|
381
|
-
cancelled: "cancelled";
|
|
382
|
-
needs_review: "needs_review";
|
|
383
|
-
}>>;
|
|
384
|
-
confidence: z.ZodOptional<z.ZodEnum<{
|
|
385
|
-
manual: "manual";
|
|
386
|
-
authoritative: "authoritative";
|
|
387
|
-
high: "high";
|
|
388
|
-
medium: "medium";
|
|
389
|
-
low: "low";
|
|
390
|
-
proxy: "proxy";
|
|
391
|
-
}>>;
|
|
392
|
-
from: z.ZodOptional<z.ZodString>;
|
|
393
|
-
to: z.ZodOptional<z.ZodString>;
|
|
394
|
-
days: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
395
|
-
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
396
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
397
|
-
};
|
|
398
|
-
export declare const listingsEventsSchema: {
|
|
399
|
-
exchange: z.ZodOptional<z.ZodEnum<{
|
|
400
|
-
hyperliquid: "hyperliquid";
|
|
401
|
-
binance: "binance";
|
|
402
|
-
okx: "okx";
|
|
403
|
-
bybit: "bybit";
|
|
404
|
-
gateio: "gateio";
|
|
405
|
-
mexc: "mexc";
|
|
406
|
-
bitget: "bitget";
|
|
407
|
-
kucoin: "kucoin";
|
|
408
|
-
bingx: "bingx";
|
|
409
|
-
bitmart: "bitmart";
|
|
410
|
-
deepcoin: "deepcoin";
|
|
411
|
-
coinbase: "coinbase";
|
|
412
|
-
kraken: "kraken";
|
|
413
|
-
crypto_com: "crypto_com";
|
|
414
|
-
upbit: "upbit";
|
|
415
|
-
bithumb: "bithumb";
|
|
416
|
-
htx: "htx";
|
|
417
|
-
bitfinex: "bitfinex";
|
|
418
|
-
bitstamp: "bitstamp";
|
|
419
|
-
gemini: "gemini";
|
|
420
|
-
bitmex: "bitmex";
|
|
421
|
-
deribit: "deribit";
|
|
422
|
-
phemex: "phemex";
|
|
423
|
-
lbank: "lbank";
|
|
424
|
-
bitrue: "bitrue";
|
|
425
|
-
coinex: "coinex";
|
|
426
|
-
backpack: "backpack";
|
|
427
|
-
hashkey: "hashkey";
|
|
428
|
-
whitebit: "whitebit";
|
|
429
|
-
toobit: "toobit";
|
|
430
|
-
aster: "aster";
|
|
431
|
-
dydx: "dydx";
|
|
432
|
-
aevo: "aevo";
|
|
433
|
-
}>>;
|
|
434
|
-
venue_type: z.ZodOptional<z.ZodEnum<{
|
|
435
|
-
dex: "dex";
|
|
436
|
-
cex: "cex";
|
|
437
|
-
perp_dex: "perp_dex";
|
|
438
|
-
}>>;
|
|
439
|
-
market_type: z.ZodOptional<z.ZodEnum<{
|
|
440
|
-
spot: "spot";
|
|
441
|
-
perp: "perp";
|
|
442
|
-
futures: "futures";
|
|
443
|
-
options: "options";
|
|
444
|
-
margin: "margin";
|
|
445
|
-
}>>;
|
|
446
|
-
event_type: z.ZodOptional<z.ZodEnum<{
|
|
447
|
-
listing: "listing";
|
|
448
|
-
delisting: "delisting";
|
|
449
|
-
suspension: "suspension";
|
|
450
|
-
resumption: "resumption";
|
|
451
|
-
prelaunch: "prelaunch";
|
|
452
|
-
}>>;
|
|
453
|
-
asset_class: z.ZodOptional<z.ZodEnum<{
|
|
454
|
-
token: "token";
|
|
455
|
-
spot_pair: "spot_pair";
|
|
456
|
-
perp_contract: "perp_contract";
|
|
457
|
-
futures_contract: "futures_contract";
|
|
458
|
-
options_contract: "options_contract";
|
|
459
|
-
}>>;
|
|
460
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
461
|
-
announced: "announced";
|
|
462
|
-
scheduled: "scheduled";
|
|
463
|
-
live: "live";
|
|
464
|
-
completed: "completed";
|
|
465
|
-
cancelled: "cancelled";
|
|
466
|
-
needs_review: "needs_review";
|
|
467
|
-
}>>;
|
|
468
|
-
narrative: z.ZodOptional<z.ZodString>;
|
|
469
|
-
confidence: z.ZodOptional<z.ZodEnum<{
|
|
470
|
-
manual: "manual";
|
|
471
|
-
authoritative: "authoritative";
|
|
472
|
-
high: "high";
|
|
473
|
-
medium: "medium";
|
|
474
|
-
low: "low";
|
|
475
|
-
proxy: "proxy";
|
|
476
|
-
}>>;
|
|
477
|
-
from: z.ZodOptional<z.ZodString>;
|
|
478
|
-
to: z.ZodOptional<z.ZodString>;
|
|
479
|
-
days: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
480
|
-
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
481
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
482
|
-
};
|
|
483
|
-
export declare const listingsExchangesSchema: {
|
|
484
|
-
venue_type: z.ZodOptional<z.ZodEnum<{
|
|
485
|
-
dex: "dex";
|
|
486
|
-
cex: "cex";
|
|
487
|
-
perp_dex: "perp_dex";
|
|
488
|
-
}>>;
|
|
489
|
-
market_type: z.ZodOptional<z.ZodEnum<{
|
|
490
|
-
spot: "spot";
|
|
491
|
-
perp: "perp";
|
|
492
|
-
futures: "futures";
|
|
493
|
-
options: "options";
|
|
494
|
-
margin: "margin";
|
|
495
|
-
}>>;
|
|
496
|
-
enabled: z.ZodOptional<z.ZodEnum<{
|
|
497
|
-
true: "true";
|
|
498
|
-
false: "false";
|
|
499
|
-
}>>;
|
|
500
|
-
};
|
|
501
|
-
export declare const signalScoreSchema: {
|
|
502
|
-
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
503
|
-
min_score: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
504
|
-
};
|
|
505
|
-
export declare const pumpDumpSchema: {
|
|
506
|
-
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
507
|
-
min_score: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
508
|
-
phase: z.ZodOptional<z.ZodEnum<{
|
|
509
|
-
setup: "setup";
|
|
510
|
-
markup: "markup";
|
|
511
|
-
distribution: "distribution";
|
|
512
|
-
dump: "dump";
|
|
513
|
-
dumping: "dumping";
|
|
514
|
-
}>>;
|
|
515
|
-
};
|
|
516
|
-
/**
|
|
517
|
-
* The free pump-dump and insider-selling routes are statically cached and
|
|
518
|
-
* read no query params, so limit, min_score and phase only ever reached v1
|
|
519
|
-
* (2026-09-24 audit). Re-apply them to the keyless `{ scores, meta }` payload
|
|
520
|
-
* the way the v1 routes do: score floor, phase mapping, then limit over the
|
|
521
|
-
* score-ordered rows. The v1 payload (`{ coins, ... }`) is already filtered.
|
|
522
|
-
*/
|
|
523
|
-
export declare function filterSignalScores(data: unknown, args: Record<string, unknown>): unknown;
|
|
524
|
-
/**
|
|
525
|
-
* oi-snapshot is documented as current open interest by exchange, but both
|
|
526
|
-
* routes return the whole ascending window (up to 5,000 raw rows). Keep each
|
|
527
|
-
* exchange's newest reading, largest first, so "current" means current.
|
|
528
|
-
*/
|
|
529
|
-
export declare function latestRowPerExchange(rows: unknown[]): unknown[];
|
|
530
|
-
export interface PostProcessContext {
|
|
531
|
-
/** The API already paged this response (it carried a pagination block). */
|
|
532
|
-
paginated: boolean;
|
|
533
|
-
}
|
|
534
|
-
export interface ToolDef {
|
|
535
|
-
name: string;
|
|
536
|
-
description: string;
|
|
537
|
-
schema: Record<string, z.ZodType>;
|
|
538
|
-
apiPath: string;
|
|
539
|
-
fallbackPath: string;
|
|
540
|
-
/**
|
|
541
|
-
* Adjusts the arguments before the request, e.g. a default page size for a
|
|
542
|
-
* route whose unpaged answer is megabytes the MAX_ITEMS cap would discard.
|
|
543
|
-
*/
|
|
544
|
-
prepareArgs?: (args: Record<string, unknown>) => Record<string, unknown>;
|
|
545
|
-
/**
|
|
546
|
-
* Runs after the HTTP response is unwrapped but before MAX_ITEMS truncation.
|
|
547
|
-
* Use this to re-apply a filter the tool already sent to the backend, so the
|
|
548
|
-
* requested rows survive truncation instead of being cut off by an
|
|
549
|
-
* arbitrary prefix of the unfiltered book, or to page a free route that
|
|
550
|
-
* ignores limit/cursor (skip it when `context.paginated` says the API
|
|
551
|
-
* already did).
|
|
552
|
-
*/
|
|
553
|
-
postProcess?: (data: unknown, args: Record<string, unknown>, context?: PostProcessContext) => unknown;
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* The rows of a funding response that belong to `coin`. The funding API
|
|
557
|
-
* resolves `coin` to an asset and returns every contract of it, so `PEPE`
|
|
558
|
-
* also returns the 1000PEPE and KPEPE lot contracts, whose base_coin differs.
|
|
559
|
-
* A row is kept when its base_coin, asset_symbol or asset_id names the coin,
|
|
560
|
-
* or when it is a contract of the same asset as a row that does
|
|
561
|
-
* (`coin=1000PEPE` keeps the PEPE-spelled contracts too). Rows from an API
|
|
562
|
-
* without the asset fields, or with them null (no instrument master to read),
|
|
563
|
-
* match on base_coin exactly as before.
|
|
564
|
-
*/
|
|
565
|
-
export declare function rowsForFundingCoin<T>(rows: readonly T[], coin: string): T[];
|
|
566
|
-
export declare const TOOL_DEFS: ToolDef[];
|
|
567
|
-
//# sourceMappingURL=tools.d.ts.map
|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