@tickwise/sdk 0.0.0-stage → 0.1.1
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 +661 -0
- package/README.md +203 -2
- package/dist/cjs/api-promise.d.ts +22 -0
- package/dist/cjs/api-promise.js +43 -0
- package/dist/cjs/client.d.ts +64 -0
- package/dist/cjs/client.js +123 -0
- package/dist/cjs/csv.d.ts +37 -0
- package/dist/cjs/csv.js +69 -0
- package/dist/cjs/errors.d.ts +133 -0
- package/dist/cjs/errors.js +242 -0
- package/dist/cjs/generated/openapi.d.ts +1949 -0
- package/dist/cjs/generated/openapi.js +6 -0
- package/dist/cjs/index.d.ts +11 -0
- package/dist/cjs/index.js +33 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/resources/base.d.ts +21 -0
- package/dist/cjs/resources/base.js +81 -0
- package/dist/cjs/resources/hooks.d.ts +26 -0
- package/dist/cjs/resources/hooks.js +46 -0
- package/dist/cjs/resources/meta.d.ts +23 -0
- package/dist/cjs/resources/meta.js +35 -0
- package/dist/cjs/resources/pools.d.ts +21 -0
- package/dist/cjs/resources/pools.js +40 -0
- package/dist/cjs/resources/positions.d.ts +59 -0
- package/dist/cjs/resources/positions.js +187 -0
- package/dist/cjs/resources/tokens.d.ts +19 -0
- package/dist/cjs/resources/tokens.js +28 -0
- package/dist/cjs/resources/wallets.d.ts +11 -0
- package/dist/cjs/resources/wallets.js +14 -0
- package/dist/cjs/routes.d.ts +84 -0
- package/dist/cjs/routes.js +45 -0
- package/dist/cjs/transport.d.ts +92 -0
- package/dist/cjs/transport.js +314 -0
- package/dist/cjs/types.d.ts +112 -0
- package/dist/cjs/types.js +2 -0
- package/dist/cjs/version.d.ts +2 -0
- package/dist/cjs/version.js +5 -0
- package/dist/esm/api-promise.d.ts +22 -0
- package/dist/esm/api-promise.js +39 -0
- package/dist/esm/client.d.ts +64 -0
- package/dist/esm/client.js +119 -0
- package/dist/esm/csv.d.ts +37 -0
- package/dist/esm/csv.js +64 -0
- package/dist/esm/errors.d.ts +133 -0
- package/dist/esm/errors.js +221 -0
- package/dist/esm/generated/openapi.d.ts +1949 -0
- package/dist/esm/generated/openapi.js +5 -0
- package/dist/esm/index.d.ts +11 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/resources/base.d.ts +21 -0
- package/dist/esm/resources/base.js +73 -0
- package/dist/esm/resources/hooks.d.ts +26 -0
- package/dist/esm/resources/hooks.js +42 -0
- package/dist/esm/resources/meta.d.ts +23 -0
- package/dist/esm/resources/meta.js +30 -0
- package/dist/esm/resources/pools.d.ts +21 -0
- package/dist/esm/resources/pools.js +36 -0
- package/dist/esm/resources/positions.d.ts +59 -0
- package/dist/esm/resources/positions.js +183 -0
- package/dist/esm/resources/tokens.d.ts +19 -0
- package/dist/esm/resources/tokens.js +24 -0
- package/dist/esm/resources/wallets.d.ts +11 -0
- package/dist/esm/resources/wallets.js +10 -0
- package/dist/esm/routes.d.ts +84 -0
- package/dist/esm/routes.js +41 -0
- package/dist/esm/transport.d.ts +92 -0
- package/dist/esm/transport.js +303 -0
- package/dist/esm/types.d.ts +112 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/version.d.ts +2 -0
- package/dist/esm/version.js +2 -0
- package/package.json +64 -4
|
@@ -0,0 +1,1949 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/v1/positions": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/** List positions */
|
|
14
|
+
get: operations["positions.list"];
|
|
15
|
+
put?: never;
|
|
16
|
+
post?: never;
|
|
17
|
+
delete?: never;
|
|
18
|
+
options?: never;
|
|
19
|
+
head?: never;
|
|
20
|
+
patch?: never;
|
|
21
|
+
trace?: never;
|
|
22
|
+
};
|
|
23
|
+
"/v1/positions/batch": {
|
|
24
|
+
parameters: {
|
|
25
|
+
query?: never;
|
|
26
|
+
header?: never;
|
|
27
|
+
path?: never;
|
|
28
|
+
cookie?: never;
|
|
29
|
+
};
|
|
30
|
+
/** Get positions by id */
|
|
31
|
+
get: operations["positions.batch"];
|
|
32
|
+
put?: never;
|
|
33
|
+
post?: never;
|
|
34
|
+
delete?: never;
|
|
35
|
+
options?: never;
|
|
36
|
+
head?: never;
|
|
37
|
+
patch?: never;
|
|
38
|
+
trace?: never;
|
|
39
|
+
};
|
|
40
|
+
"/v1/positions/{chainId}/{protocol}/{positionId}": {
|
|
41
|
+
parameters: {
|
|
42
|
+
query?: never;
|
|
43
|
+
header?: never;
|
|
44
|
+
path?: never;
|
|
45
|
+
cookie?: never;
|
|
46
|
+
};
|
|
47
|
+
/** Get one position */
|
|
48
|
+
get: operations["positions.detail"];
|
|
49
|
+
put?: never;
|
|
50
|
+
post?: never;
|
|
51
|
+
delete?: never;
|
|
52
|
+
options?: never;
|
|
53
|
+
head?: never;
|
|
54
|
+
patch?: never;
|
|
55
|
+
trace?: never;
|
|
56
|
+
};
|
|
57
|
+
"/v1/positions/{chainId}/{protocol}/{positionId}/transactions": {
|
|
58
|
+
parameters: {
|
|
59
|
+
query?: never;
|
|
60
|
+
header?: never;
|
|
61
|
+
path?: never;
|
|
62
|
+
cookie?: never;
|
|
63
|
+
};
|
|
64
|
+
/** Page through a position's transactions */
|
|
65
|
+
get: operations["positions.transactions"];
|
|
66
|
+
put?: never;
|
|
67
|
+
post?: never;
|
|
68
|
+
delete?: never;
|
|
69
|
+
options?: never;
|
|
70
|
+
head?: never;
|
|
71
|
+
patch?: never;
|
|
72
|
+
trace?: never;
|
|
73
|
+
};
|
|
74
|
+
"/v1/positions/{chainId}/{protocol}/{positionId}/charts": {
|
|
75
|
+
parameters: {
|
|
76
|
+
query?: never;
|
|
77
|
+
header?: never;
|
|
78
|
+
path?: never;
|
|
79
|
+
cookie?: never;
|
|
80
|
+
};
|
|
81
|
+
/** Get a position's time series */
|
|
82
|
+
get: operations["positions.charts"];
|
|
83
|
+
put?: never;
|
|
84
|
+
post?: never;
|
|
85
|
+
delete?: never;
|
|
86
|
+
options?: never;
|
|
87
|
+
head?: never;
|
|
88
|
+
patch?: never;
|
|
89
|
+
trace?: never;
|
|
90
|
+
};
|
|
91
|
+
"/v1/pools": {
|
|
92
|
+
parameters: {
|
|
93
|
+
query?: never;
|
|
94
|
+
header?: never;
|
|
95
|
+
path?: never;
|
|
96
|
+
cookie?: never;
|
|
97
|
+
};
|
|
98
|
+
/** List pools */
|
|
99
|
+
get: operations["pools.list"];
|
|
100
|
+
put?: never;
|
|
101
|
+
post?: never;
|
|
102
|
+
delete?: never;
|
|
103
|
+
options?: never;
|
|
104
|
+
head?: never;
|
|
105
|
+
patch?: never;
|
|
106
|
+
trace?: never;
|
|
107
|
+
};
|
|
108
|
+
"/v1/pools/{chainId}/{protocol}/{poolId}": {
|
|
109
|
+
parameters: {
|
|
110
|
+
query?: never;
|
|
111
|
+
header?: never;
|
|
112
|
+
path?: never;
|
|
113
|
+
cookie?: never;
|
|
114
|
+
};
|
|
115
|
+
/** Get one pool */
|
|
116
|
+
get: operations["pools.detail"];
|
|
117
|
+
put?: never;
|
|
118
|
+
post?: never;
|
|
119
|
+
delete?: never;
|
|
120
|
+
options?: never;
|
|
121
|
+
head?: never;
|
|
122
|
+
patch?: never;
|
|
123
|
+
trace?: never;
|
|
124
|
+
};
|
|
125
|
+
"/v1/pools/{chainId}/{protocol}/{poolId}/charts": {
|
|
126
|
+
parameters: {
|
|
127
|
+
query?: never;
|
|
128
|
+
header?: never;
|
|
129
|
+
path?: never;
|
|
130
|
+
cookie?: never;
|
|
131
|
+
};
|
|
132
|
+
/** Get a pool's time series */
|
|
133
|
+
get: operations["pools.charts"];
|
|
134
|
+
put?: never;
|
|
135
|
+
post?: never;
|
|
136
|
+
delete?: never;
|
|
137
|
+
options?: never;
|
|
138
|
+
head?: never;
|
|
139
|
+
patch?: never;
|
|
140
|
+
trace?: never;
|
|
141
|
+
};
|
|
142
|
+
"/v1/tokens/{chainId}/{address}": {
|
|
143
|
+
parameters: {
|
|
144
|
+
query?: never;
|
|
145
|
+
header?: never;
|
|
146
|
+
path?: never;
|
|
147
|
+
cookie?: never;
|
|
148
|
+
};
|
|
149
|
+
/** Look up a token */
|
|
150
|
+
get: operations["tokens.detail"];
|
|
151
|
+
put?: never;
|
|
152
|
+
post?: never;
|
|
153
|
+
delete?: never;
|
|
154
|
+
options?: never;
|
|
155
|
+
head?: never;
|
|
156
|
+
patch?: never;
|
|
157
|
+
trace?: never;
|
|
158
|
+
};
|
|
159
|
+
"/v1/tokens/search": {
|
|
160
|
+
parameters: {
|
|
161
|
+
query?: never;
|
|
162
|
+
header?: never;
|
|
163
|
+
path?: never;
|
|
164
|
+
cookie?: never;
|
|
165
|
+
};
|
|
166
|
+
/** Search tokens */
|
|
167
|
+
get: operations["tokens.search"];
|
|
168
|
+
put?: never;
|
|
169
|
+
post?: never;
|
|
170
|
+
delete?: never;
|
|
171
|
+
options?: never;
|
|
172
|
+
head?: never;
|
|
173
|
+
patch?: never;
|
|
174
|
+
trace?: never;
|
|
175
|
+
};
|
|
176
|
+
"/v1/wallets/{address}": {
|
|
177
|
+
parameters: {
|
|
178
|
+
query?: never;
|
|
179
|
+
header?: never;
|
|
180
|
+
path?: never;
|
|
181
|
+
cookie?: never;
|
|
182
|
+
};
|
|
183
|
+
/** Summarise a wallet's positions */
|
|
184
|
+
get: operations["wallets.summary"];
|
|
185
|
+
put?: never;
|
|
186
|
+
post?: never;
|
|
187
|
+
delete?: never;
|
|
188
|
+
options?: never;
|
|
189
|
+
head?: never;
|
|
190
|
+
patch?: never;
|
|
191
|
+
trace?: never;
|
|
192
|
+
};
|
|
193
|
+
"/v1/hooks": {
|
|
194
|
+
parameters: {
|
|
195
|
+
query?: never;
|
|
196
|
+
header?: never;
|
|
197
|
+
path?: never;
|
|
198
|
+
cookie?: never;
|
|
199
|
+
};
|
|
200
|
+
/** List hooks */
|
|
201
|
+
get: operations["hooks.list"];
|
|
202
|
+
put?: never;
|
|
203
|
+
post?: never;
|
|
204
|
+
delete?: never;
|
|
205
|
+
options?: never;
|
|
206
|
+
head?: never;
|
|
207
|
+
patch?: never;
|
|
208
|
+
trace?: never;
|
|
209
|
+
};
|
|
210
|
+
"/v1/chains": {
|
|
211
|
+
parameters: {
|
|
212
|
+
query?: never;
|
|
213
|
+
header?: never;
|
|
214
|
+
path?: never;
|
|
215
|
+
cookie?: never;
|
|
216
|
+
};
|
|
217
|
+
/** List supported chains */
|
|
218
|
+
get: operations["chains"];
|
|
219
|
+
put?: never;
|
|
220
|
+
post?: never;
|
|
221
|
+
delete?: never;
|
|
222
|
+
options?: never;
|
|
223
|
+
head?: never;
|
|
224
|
+
patch?: never;
|
|
225
|
+
trace?: never;
|
|
226
|
+
};
|
|
227
|
+
"/v1/protocols": {
|
|
228
|
+
parameters: {
|
|
229
|
+
query?: never;
|
|
230
|
+
header?: never;
|
|
231
|
+
path?: never;
|
|
232
|
+
cookie?: never;
|
|
233
|
+
};
|
|
234
|
+
/** List supported protocols */
|
|
235
|
+
get: operations["protocols"];
|
|
236
|
+
put?: never;
|
|
237
|
+
post?: never;
|
|
238
|
+
delete?: never;
|
|
239
|
+
options?: never;
|
|
240
|
+
head?: never;
|
|
241
|
+
patch?: never;
|
|
242
|
+
trace?: never;
|
|
243
|
+
};
|
|
244
|
+
"/v1/plans": {
|
|
245
|
+
parameters: {
|
|
246
|
+
query?: never;
|
|
247
|
+
header?: never;
|
|
248
|
+
path?: never;
|
|
249
|
+
cookie?: never;
|
|
250
|
+
};
|
|
251
|
+
/** List plans */
|
|
252
|
+
get: operations["plans"];
|
|
253
|
+
put?: never;
|
|
254
|
+
post?: never;
|
|
255
|
+
delete?: never;
|
|
256
|
+
options?: never;
|
|
257
|
+
head?: never;
|
|
258
|
+
patch?: never;
|
|
259
|
+
trace?: never;
|
|
260
|
+
};
|
|
261
|
+
"/v1/pricing/units": {
|
|
262
|
+
parameters: {
|
|
263
|
+
query?: never;
|
|
264
|
+
header?: never;
|
|
265
|
+
path?: never;
|
|
266
|
+
cookie?: never;
|
|
267
|
+
};
|
|
268
|
+
/** List unit costs */
|
|
269
|
+
get: operations["pricing.units"];
|
|
270
|
+
put?: never;
|
|
271
|
+
post?: never;
|
|
272
|
+
delete?: never;
|
|
273
|
+
options?: never;
|
|
274
|
+
head?: never;
|
|
275
|
+
patch?: never;
|
|
276
|
+
trace?: never;
|
|
277
|
+
};
|
|
278
|
+
"/v1/stats": {
|
|
279
|
+
parameters: {
|
|
280
|
+
query?: never;
|
|
281
|
+
header?: never;
|
|
282
|
+
path?: never;
|
|
283
|
+
cookie?: never;
|
|
284
|
+
};
|
|
285
|
+
/** Get corpus size */
|
|
286
|
+
get: operations["stats"];
|
|
287
|
+
put?: never;
|
|
288
|
+
post?: never;
|
|
289
|
+
delete?: never;
|
|
290
|
+
options?: never;
|
|
291
|
+
head?: never;
|
|
292
|
+
patch?: never;
|
|
293
|
+
trace?: never;
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
export type webhooks = Record<string, never>;
|
|
297
|
+
export interface components {
|
|
298
|
+
schemas: {
|
|
299
|
+
Error: {
|
|
300
|
+
/** @description Human-readable. Branch on the status code, never on this text. */
|
|
301
|
+
error: string;
|
|
302
|
+
} & {
|
|
303
|
+
[key: string]: unknown;
|
|
304
|
+
};
|
|
305
|
+
Pagination: {
|
|
306
|
+
page: number;
|
|
307
|
+
limit: number;
|
|
308
|
+
/** @description A floor when `totalCapped` is true. */
|
|
309
|
+
total?: number | null;
|
|
310
|
+
totalPages?: number | null;
|
|
311
|
+
/** @description Always exact. Loop until it is false. */
|
|
312
|
+
hasMore: boolean;
|
|
313
|
+
/** @description Present only when the count is not ready yet. */
|
|
314
|
+
totalPending?: boolean;
|
|
315
|
+
/** @description Present only when `total` is a floor (cap 25,000, or not ready in about two seconds). */
|
|
316
|
+
totalCapped?: boolean;
|
|
317
|
+
} & {
|
|
318
|
+
[key: string]: unknown;
|
|
319
|
+
};
|
|
320
|
+
Degradation: {
|
|
321
|
+
/** @description All-chains mode only: a chain whose data was unavailable is left out, and the request is not charged. */
|
|
322
|
+
partial?: boolean;
|
|
323
|
+
missingChains?: number[];
|
|
324
|
+
/** @description Complete but older than the usual 45-second freshness. Billed normally. */
|
|
325
|
+
stale?: boolean;
|
|
326
|
+
/**
|
|
327
|
+
* Format: date-time
|
|
328
|
+
* @description When a `stale` response was current.
|
|
329
|
+
*/
|
|
330
|
+
dataAsOf?: string;
|
|
331
|
+
} & {
|
|
332
|
+
[key: string]: unknown;
|
|
333
|
+
};
|
|
334
|
+
Token: {
|
|
335
|
+
address: string;
|
|
336
|
+
symbol: string;
|
|
337
|
+
decimals: number;
|
|
338
|
+
verified?: boolean;
|
|
339
|
+
priceUsd?: number;
|
|
340
|
+
priceConfidence?: string;
|
|
341
|
+
logoURI?: string | null;
|
|
342
|
+
} & {
|
|
343
|
+
[key: string]: unknown;
|
|
344
|
+
};
|
|
345
|
+
Risk: {
|
|
346
|
+
/** @description Why we would not rank this row. Ignore values you do not recognise. */
|
|
347
|
+
flags?: ("symbol-spoof" | "phishing-symbol" | "excluded-token" | "risky-pool")[];
|
|
348
|
+
} & {
|
|
349
|
+
[key: string]: unknown;
|
|
350
|
+
};
|
|
351
|
+
Position: {
|
|
352
|
+
rank?: number;
|
|
353
|
+
positionId: string;
|
|
354
|
+
tokenId?: string;
|
|
355
|
+
chainId: number;
|
|
356
|
+
protocol: string;
|
|
357
|
+
owner?: string;
|
|
358
|
+
poolId?: string;
|
|
359
|
+
token0?: components["schemas"]["Token"];
|
|
360
|
+
token1?: components["schemas"]["Token"];
|
|
361
|
+
fee?: number;
|
|
362
|
+
tickSpacing?: number;
|
|
363
|
+
tickLower?: number;
|
|
364
|
+
tickUpper?: number;
|
|
365
|
+
currentTick?: number;
|
|
366
|
+
liquidity?: string;
|
|
367
|
+
isActive?: boolean;
|
|
368
|
+
createdAtTimestamp?: number;
|
|
369
|
+
closedAtTimestamp?: number | null;
|
|
370
|
+
amounts?: {
|
|
371
|
+
amount0?: string;
|
|
372
|
+
amount1?: string;
|
|
373
|
+
depositedToken0?: string;
|
|
374
|
+
depositedToken1?: string;
|
|
375
|
+
withdrawnToken0?: string;
|
|
376
|
+
withdrawnToken1?: string;
|
|
377
|
+
totalFeesCollected0?: string;
|
|
378
|
+
totalFeesCollected1?: string;
|
|
379
|
+
totalFeesUncollected0?: string;
|
|
380
|
+
totalFeesUncollected1?: string;
|
|
381
|
+
} & {
|
|
382
|
+
[key: string]: unknown;
|
|
383
|
+
};
|
|
384
|
+
metrics?: {
|
|
385
|
+
apr?: number;
|
|
386
|
+
feeApr?: number;
|
|
387
|
+
roi?: number;
|
|
388
|
+
/** @description Total profit and loss in USD. When the vs-USD basis was not measured it equals pnlHodl. */
|
|
389
|
+
pnlUsd?: number;
|
|
390
|
+
underlyingValueUsd?: number;
|
|
391
|
+
pendingFeesUsd?: number;
|
|
392
|
+
investedUsd?: number;
|
|
393
|
+
ageSeconds?: number;
|
|
394
|
+
inRange?: boolean;
|
|
395
|
+
/** @description A leg could not be priced from any independent source. Not the same as a genuine zero. */
|
|
396
|
+
priceUnavailable?: boolean;
|
|
397
|
+
/** @description A leg valued at zero because the claim exceeds the pool's real exit liquidity. */
|
|
398
|
+
unrealizableLeg?: boolean;
|
|
399
|
+
/**
|
|
400
|
+
* @description Where the uncollected-fee figure came from. `unmeasured` means a placeholder 0, not a measurement.
|
|
401
|
+
* @enum {string}
|
|
402
|
+
*/
|
|
403
|
+
feesSource?: "onchain" | "indexer" | "settled" | "unmeasured";
|
|
404
|
+
/** Format: date-time */
|
|
405
|
+
feesMeasuredAt?: string | null;
|
|
406
|
+
} & {
|
|
407
|
+
[key: string]: unknown;
|
|
408
|
+
};
|
|
409
|
+
poolStats?: {
|
|
410
|
+
tvlUsd?: number;
|
|
411
|
+
volumeUsd?: number;
|
|
412
|
+
totalFeesUsd?: number;
|
|
413
|
+
} & {
|
|
414
|
+
[key: string]: unknown;
|
|
415
|
+
};
|
|
416
|
+
pricing?: {
|
|
417
|
+
source?: string;
|
|
418
|
+
usedFallback?: boolean;
|
|
419
|
+
pricedAt?: string;
|
|
420
|
+
} & {
|
|
421
|
+
[key: string]: unknown;
|
|
422
|
+
};
|
|
423
|
+
asOf?: {
|
|
424
|
+
/** Format: date-time */
|
|
425
|
+
priceAt?: string | null;
|
|
426
|
+
/** Format: date-time */
|
|
427
|
+
liquidityAt?: string | null;
|
|
428
|
+
/** Format: date-time */
|
|
429
|
+
feesAt?: string | null;
|
|
430
|
+
} & {
|
|
431
|
+
[key: string]: unknown;
|
|
432
|
+
};
|
|
433
|
+
risk?: components["schemas"]["Risk"];
|
|
434
|
+
/** @description The pool's v4 hook contract, lower case. Present only when the pool has one. */
|
|
435
|
+
hooks?: string;
|
|
436
|
+
/** @description True when the hook can take or redirect value the pool events do not show. Fee and value figures are then not provably complete. */
|
|
437
|
+
customAccounting?: boolean;
|
|
438
|
+
/**
|
|
439
|
+
* @description Present (true) only when the position's pool is low activity: see the pool's `lowActivity`.
|
|
440
|
+
* @constant
|
|
441
|
+
*/
|
|
442
|
+
poolLowActivity?: true;
|
|
443
|
+
} & {
|
|
444
|
+
[key: string]: unknown;
|
|
445
|
+
};
|
|
446
|
+
PositionList: components["schemas"]["Degradation"] & ({
|
|
447
|
+
positions: components["schemas"]["Position"][];
|
|
448
|
+
pagination: components["schemas"]["Pagination"];
|
|
449
|
+
} & {
|
|
450
|
+
[key: string]: unknown;
|
|
451
|
+
});
|
|
452
|
+
Transaction: {
|
|
453
|
+
chainId?: number;
|
|
454
|
+
protocol?: string;
|
|
455
|
+
positionId?: string;
|
|
456
|
+
tokenId?: string;
|
|
457
|
+
transactionId?: string;
|
|
458
|
+
txHash?: string;
|
|
459
|
+
type?: string;
|
|
460
|
+
timestamp?: number;
|
|
461
|
+
amount0?: string;
|
|
462
|
+
amount1?: string;
|
|
463
|
+
amount0PriceUsd?: number;
|
|
464
|
+
amount1PriceUsd?: number;
|
|
465
|
+
amount0PriceUsdUntracked?: number;
|
|
466
|
+
amount1PriceUsdUntracked?: number;
|
|
467
|
+
amount0HistoricalPriceUsd?: number;
|
|
468
|
+
amount1HistoricalPriceUsd?: number;
|
|
469
|
+
historicalValueUsd?: number;
|
|
470
|
+
historicalPricingSource?: string;
|
|
471
|
+
gasCostEth?: number;
|
|
472
|
+
gasCostUsd?: number;
|
|
473
|
+
sender?: string;
|
|
474
|
+
logIndex?: number;
|
|
475
|
+
} & {
|
|
476
|
+
[key: string]: unknown;
|
|
477
|
+
};
|
|
478
|
+
PositionDetail: components["schemas"]["Position"] & ({
|
|
479
|
+
transactions?: components["schemas"]["Transaction"][];
|
|
480
|
+
/** @description True means the full list could not be loaded for this response. A degraded answer is not charged. */
|
|
481
|
+
transactionsDegraded?: boolean;
|
|
482
|
+
/** @description Only the newest transactions (up to 1,000) are here while the full history loads; ask again shortly. */
|
|
483
|
+
transactionsPartial?: boolean;
|
|
484
|
+
/** @description The history is longer than 100,000 transactions and the newest are missing. */
|
|
485
|
+
transactionsTruncated?: boolean;
|
|
486
|
+
stale?: boolean;
|
|
487
|
+
/** Format: date-time */
|
|
488
|
+
dataAsOf?: string;
|
|
489
|
+
} & {
|
|
490
|
+
[key: string]: unknown;
|
|
491
|
+
});
|
|
492
|
+
PositionBatch: {
|
|
493
|
+
chainId: number;
|
|
494
|
+
protocol: string;
|
|
495
|
+
/** @description One entry per id found, in the order of `ids`: each exactly the single-position response for that id. */
|
|
496
|
+
positions: components["schemas"]["PositionDetail"][];
|
|
497
|
+
/** @description Ids with no position on this chain and protocol, in the order of `ids`. Not charged. */
|
|
498
|
+
missing: string[];
|
|
499
|
+
} & {
|
|
500
|
+
[key: string]: unknown;
|
|
501
|
+
};
|
|
502
|
+
TransactionsPage: {
|
|
503
|
+
chainId?: number;
|
|
504
|
+
protocol?: string;
|
|
505
|
+
positionId?: string;
|
|
506
|
+
transactions: components["schemas"]["Transaction"][];
|
|
507
|
+
/** @description How many transactions the position has, not how many are on this page. */
|
|
508
|
+
transactionsTotal?: number;
|
|
509
|
+
/** @description Pass as `before` for the next older page. Absent or null on the last page. */
|
|
510
|
+
transactionsNextCursor?: string | null;
|
|
511
|
+
/** @description True means the full list could not be loaded for this response. A degraded answer is not charged. */
|
|
512
|
+
transactionsDegraded: boolean;
|
|
513
|
+
/** @description Only the newest transactions (up to 1,000) are here while the full history loads; ask again shortly. Not charged. */
|
|
514
|
+
transactionsPartial?: boolean;
|
|
515
|
+
/** @description The history is longer than 100,000 transactions and the newest are missing. */
|
|
516
|
+
transactionsTruncated?: boolean;
|
|
517
|
+
/** @description Complete but read from a replica running more than 45 seconds behind. Billed normally. */
|
|
518
|
+
stale?: boolean;
|
|
519
|
+
/**
|
|
520
|
+
* Format: date-time
|
|
521
|
+
* @description When a `stale` response was current.
|
|
522
|
+
*/
|
|
523
|
+
dataAsOf?: string;
|
|
524
|
+
} & {
|
|
525
|
+
[key: string]: unknown;
|
|
526
|
+
};
|
|
527
|
+
Pool: {
|
|
528
|
+
rank?: number;
|
|
529
|
+
poolId: string;
|
|
530
|
+
chainId: number;
|
|
531
|
+
protocol: string;
|
|
532
|
+
token0?: components["schemas"]["Token"];
|
|
533
|
+
token1?: components["schemas"]["Token"];
|
|
534
|
+
fee?: number;
|
|
535
|
+
isDynamicFee?: boolean;
|
|
536
|
+
tickSpacing?: number;
|
|
537
|
+
currentTick?: number;
|
|
538
|
+
sqrtPriceX96?: string;
|
|
539
|
+
liquidity?: string;
|
|
540
|
+
createdAtTimestamp?: number;
|
|
541
|
+
metrics?: {
|
|
542
|
+
tvlUsd?: number;
|
|
543
|
+
/** @description USD volume over the 24 complete hours ending at `metricsAsOf`. */
|
|
544
|
+
volumeUsd24h?: number;
|
|
545
|
+
/** @description USD volume over the indexer's 7 newest UTC days, today's partial day included. */
|
|
546
|
+
volumeUsd7d?: number;
|
|
547
|
+
/** @description LPs' USD fees over the 24 complete hours ending at `metricsAsOf`, each swap at its own fee. */
|
|
548
|
+
feesUsd24h?: number;
|
|
549
|
+
feesUsd7d?: number;
|
|
550
|
+
/** @description `feesUsd24h` × 365 / `tvlUsd`, in percent. Clamped at ±100,000%. A value exactly on the cap means "not trustworthy". */
|
|
551
|
+
feeApr?: number;
|
|
552
|
+
txCount?: number;
|
|
553
|
+
currentPrice?: number;
|
|
554
|
+
} & {
|
|
555
|
+
[key: string]: unknown;
|
|
556
|
+
};
|
|
557
|
+
pricing?: {
|
|
558
|
+
source?: string;
|
|
559
|
+
usedFallback?: boolean;
|
|
560
|
+
} & {
|
|
561
|
+
[key: string]: unknown;
|
|
562
|
+
};
|
|
563
|
+
/** @description Open positions. `null` means not known yet, not zero. */
|
|
564
|
+
positionsCount?: number | null;
|
|
565
|
+
/** @description Distinct owners. `null` means not known yet, not zero. */
|
|
566
|
+
holdersCount?: number | null;
|
|
567
|
+
risk?: components["schemas"]["Risk"];
|
|
568
|
+
hooks?: string;
|
|
569
|
+
customAccounting?: boolean;
|
|
570
|
+
/**
|
|
571
|
+
* @description Present (true) only on a pool with at least 100,000 USD of TVL, at least 7 days old, whose 7-day volume is under 1% of its TVL. A label: such pools are neither hidden nor re-ranked.
|
|
572
|
+
* @constant
|
|
573
|
+
*/
|
|
574
|
+
lowActivity?: true;
|
|
575
|
+
/**
|
|
576
|
+
* Format: date-time
|
|
577
|
+
* @description The end of the window `volumeUsd24h`, `feesUsd24h` and `feeApr` cover: the top of an hour in the indexer's time (not the wall clock), the window being the 24 complete hours before it. `null` when not known.
|
|
578
|
+
*/
|
|
579
|
+
metricsAsOf?: string | null;
|
|
580
|
+
} & {
|
|
581
|
+
[key: string]: unknown;
|
|
582
|
+
};
|
|
583
|
+
PoolList: components["schemas"]["Degradation"] & ({
|
|
584
|
+
pools: components["schemas"]["Pool"][];
|
|
585
|
+
pagination: components["schemas"]["Pagination"];
|
|
586
|
+
/** @description Some pools carry `null` counts while they are computed. */
|
|
587
|
+
countsPending?: boolean;
|
|
588
|
+
} & {
|
|
589
|
+
[key: string]: unknown;
|
|
590
|
+
});
|
|
591
|
+
PoolDetail: components["schemas"]["Pool"] & ({
|
|
592
|
+
/** @description Share of the pool's open-position USD value held by its 5 largest wallets, in percent (0 to 100). Recomputed about every 10 minutes, off the request. `null` while it is being computed (ask again in a few seconds) or when it cannot be given: no priced open position, or a pool with more than 50,000 open positions. */
|
|
593
|
+
top5HoldersShare?: number | null;
|
|
594
|
+
/** @description Share of the pool's open-position USD value in positions that are in range now, in percent (0 to 100). Computed with `top5HoldersShare`, and `null` in the same cases. */
|
|
595
|
+
inRangeShare?: number | null;
|
|
596
|
+
} & {
|
|
597
|
+
[key: string]: unknown;
|
|
598
|
+
});
|
|
599
|
+
TokenPrice: {
|
|
600
|
+
/** @description USD price, or `null` when the API has no price it would value the token with (see `unavailableReason`). */
|
|
601
|
+
usd: number | null;
|
|
602
|
+
/**
|
|
603
|
+
* @description A config anchor (stablecoin, native / wrapped native, trusted token) or an external aggregator quote. `null` with no price.
|
|
604
|
+
* @enum {string|null}
|
|
605
|
+
*/
|
|
606
|
+
source: "stable-anchor" | "native-anchor" | "trusted-anchor" | "external" | null;
|
|
607
|
+
/** @description The aggregators that supplied or agreed on the stored price. */
|
|
608
|
+
providers: string[];
|
|
609
|
+
/** @description `anchor`, `external-verified` (two or more sources agreed) or `external-unverified`. `null` with no price. */
|
|
610
|
+
confidence: string | null;
|
|
611
|
+
/**
|
|
612
|
+
* Format: date-time
|
|
613
|
+
* @description When the stored price was last written. Kept when the price is too old to serve.
|
|
614
|
+
*/
|
|
615
|
+
pricedAt: string | null;
|
|
616
|
+
/**
|
|
617
|
+
* @description Present only when `usd` is null: `no-price` (never priced), `stale-price` (last priced more than 24 hours ago), `untrusted-token` (impersonates another token), `no-market` (not a trusted token, and no active DEX market is confirmed for it: none seen, or not checked yet), `unavailable` (the price could not be read for this answer; the response is `partial` and not charged).
|
|
618
|
+
* @enum {string}
|
|
619
|
+
*/
|
|
620
|
+
unavailableReason?: "no-price" | "stale-price" | "untrusted-token" | "no-market" | "unavailable";
|
|
621
|
+
} & {
|
|
622
|
+
[key: string]: unknown;
|
|
623
|
+
};
|
|
624
|
+
TokenSecurity: {
|
|
625
|
+
/** @description Honeypot, blacklist, cannot-sell-all, modifiable slippage or a fake token: the rule that keeps a token off the ranked lists. */
|
|
626
|
+
spam: boolean;
|
|
627
|
+
honeypot?: boolean;
|
|
628
|
+
blacklisted?: boolean;
|
|
629
|
+
cannotSellAll?: boolean;
|
|
630
|
+
slippageModifiable?: boolean;
|
|
631
|
+
fakeToken?: boolean;
|
|
632
|
+
cannotBuy?: boolean;
|
|
633
|
+
/** @description Fraction, 0.05 = 5%. */
|
|
634
|
+
buyTax?: number;
|
|
635
|
+
/** @description Fraction, 0.05 = 5%. */
|
|
636
|
+
sellTax?: number;
|
|
637
|
+
openSource?: boolean;
|
|
638
|
+
proxy?: boolean;
|
|
639
|
+
/** Format: date-time */
|
|
640
|
+
checkedAt: string;
|
|
641
|
+
} & {
|
|
642
|
+
[key: string]: unknown;
|
|
643
|
+
};
|
|
644
|
+
TokenTrust: {
|
|
645
|
+
/**
|
|
646
|
+
* @description The config anchor class; anchors are trusted for valuation whatever else is true.
|
|
647
|
+
* @enum {string|null}
|
|
648
|
+
*/
|
|
649
|
+
anchor: "stable" | "native" | "trusted" | null;
|
|
650
|
+
/** @description On the committed CoinGecko list for the chain. `null` on a chain with no list (every token's price is then accepted). */
|
|
651
|
+
listed: boolean | null;
|
|
652
|
+
/** @description GoPlus security signals as last checked; `null` when never checked (anchors and listed tokens are not). */
|
|
653
|
+
security: components["schemas"]["TokenSecurity"] | null;
|
|
654
|
+
/**
|
|
655
|
+
* @description A major token's symbol at another contract, or a link in the symbol.
|
|
656
|
+
* @enum {string|null}
|
|
657
|
+
*/
|
|
658
|
+
identity: "symbol-spoof" | "phishing-symbol" | null;
|
|
659
|
+
/** @description The name claims an issued stock token at an address the issuer never deployed. */
|
|
660
|
+
issuerSpoof: boolean;
|
|
661
|
+
/** @description An active DEX market was seen for it at the last price sweep. `null` = not swept. */
|
|
662
|
+
dexMarket: boolean | null;
|
|
663
|
+
} & {
|
|
664
|
+
[key: string]: unknown;
|
|
665
|
+
};
|
|
666
|
+
TokenLookup: components["schemas"]["Degradation"] & ({
|
|
667
|
+
chainId: number;
|
|
668
|
+
protocol: string;
|
|
669
|
+
/** @description Lower-cased. */
|
|
670
|
+
address: string;
|
|
671
|
+
token: {
|
|
672
|
+
symbol: string;
|
|
673
|
+
name: string | null;
|
|
674
|
+
decimals: number | null;
|
|
675
|
+
logoURI: string;
|
|
676
|
+
/**
|
|
677
|
+
* @description `equity` for a tokenized stock.
|
|
678
|
+
* @enum {string|null}
|
|
679
|
+
*/
|
|
680
|
+
assetClass: "equity" | null;
|
|
681
|
+
} & {
|
|
682
|
+
[key: string]: unknown;
|
|
683
|
+
};
|
|
684
|
+
price: components["schemas"]["TokenPrice"];
|
|
685
|
+
trust: components["schemas"]["TokenTrust"];
|
|
686
|
+
risk?: components["schemas"]["Risk"];
|
|
687
|
+
/** @description Pools holding the token, exactly as `GET /v1/pools` rows. */
|
|
688
|
+
pools: components["schemas"]["Pool"][];
|
|
689
|
+
pagination: components["schemas"]["Pagination"];
|
|
690
|
+
/** @description Some pools carry `null` counts while they are computed. */
|
|
691
|
+
countsPending?: boolean;
|
|
692
|
+
} & {
|
|
693
|
+
[key: string]: unknown;
|
|
694
|
+
});
|
|
695
|
+
TokenSearchPool: {
|
|
696
|
+
poolId: string;
|
|
697
|
+
/** @description The two symbols, token0 first, e.g. `USDC/WETH`. */
|
|
698
|
+
pair: string;
|
|
699
|
+
/** @description The pool fee in hundredths of a basis point (500 = 0.05%); `null` when not stored. */
|
|
700
|
+
fee: number | null;
|
|
701
|
+
tvlUsd: number;
|
|
702
|
+
/** @description The pool page on the Tickwise website, `/pool/{chainId}/{poolId}`. */
|
|
703
|
+
path: string;
|
|
704
|
+
/** @description `path` as an absolute link. */
|
|
705
|
+
url: string;
|
|
706
|
+
} & {
|
|
707
|
+
[key: string]: unknown;
|
|
708
|
+
};
|
|
709
|
+
TokenSearchMatch: {
|
|
710
|
+
chainId: number;
|
|
711
|
+
/** @description The chain's name. */
|
|
712
|
+
chain: string;
|
|
713
|
+
protocol: string;
|
|
714
|
+
/** @description The token contract, lower case. Pass it to `GET /v1/tokens/{chainId}/{address}`. */
|
|
715
|
+
address: string;
|
|
716
|
+
symbol: string;
|
|
717
|
+
/** @description The token's stored name; `null` when none is stored (most major tokens). */
|
|
718
|
+
name: string | null;
|
|
719
|
+
/**
|
|
720
|
+
* @description How `q` matched: the contract `address`, the exact `symbol`, a common name for a major token (`alias`), the exact stored `name`, the start of the symbol or name (`symbol-prefix`, `name-prefix`), or text inside the name (`name-contains`).
|
|
721
|
+
* @enum {string}
|
|
722
|
+
*/
|
|
723
|
+
match: "address" | "symbol" | "alias" | "name" | "symbol-prefix" | "name-prefix" | "name-contains";
|
|
724
|
+
/** @description Summed TVL of the listed pools holding the token on this chain. */
|
|
725
|
+
tvlUsd: number;
|
|
726
|
+
/** @description How many listed pools hold the token on this chain. */
|
|
727
|
+
pools: number;
|
|
728
|
+
/** @description The token page on the Tickwise website, `/token/{chainId}/{address}`. */
|
|
729
|
+
path: string;
|
|
730
|
+
/** @description `path` as an absolute link. */
|
|
731
|
+
url: string;
|
|
732
|
+
/** @description Its biggest pools by TVL, at most 3. */
|
|
733
|
+
topPools: components["schemas"]["TokenSearchPool"][];
|
|
734
|
+
} & {
|
|
735
|
+
[key: string]: unknown;
|
|
736
|
+
};
|
|
737
|
+
TokenSearch: {
|
|
738
|
+
/** @description `q` as it was searched (trimmed). */
|
|
739
|
+
query: string;
|
|
740
|
+
/** @description Best match first; empty when nothing matched. */
|
|
741
|
+
matches: components["schemas"]["TokenSearchMatch"][];
|
|
742
|
+
/** @description Chains that could not be searched yet. Empty on a complete answer. */
|
|
743
|
+
pendingChains: number[];
|
|
744
|
+
/** @description Chains with more listed pools than the index holds; their smallest pools were not searched. */
|
|
745
|
+
truncatedChains: number[];
|
|
746
|
+
/**
|
|
747
|
+
* Format: date-time
|
|
748
|
+
* @description When the oldest index used was built; `null` when no chain could be searched.
|
|
749
|
+
*/
|
|
750
|
+
asOf: string | null;
|
|
751
|
+
/** @description Present and true only when `pendingChains` is not empty. The request is not charged. */
|
|
752
|
+
partial?: boolean;
|
|
753
|
+
} & {
|
|
754
|
+
[key: string]: unknown;
|
|
755
|
+
};
|
|
756
|
+
Hook: {
|
|
757
|
+
rank: number;
|
|
758
|
+
chainId: number;
|
|
759
|
+
protocol: string;
|
|
760
|
+
/** @description The hook contract, lower case. */
|
|
761
|
+
address: string;
|
|
762
|
+
/** @description Curated name, else the verified contract name (a Solidity identifier, as its deployer named it: a label, not proof of who runs the hook), else null. */
|
|
763
|
+
name: string | null;
|
|
764
|
+
/**
|
|
765
|
+
* @description Where `name` came from.
|
|
766
|
+
* @enum {string|null}
|
|
767
|
+
*/
|
|
768
|
+
nameSource: "curated" | "verified" | null;
|
|
769
|
+
/** @description What the hook can do, from its address bits (and `dynamic-fee` from its pools): `custom-accounting` (can take or redirect value the pool events do not show), `dynamic-fee`, `swap`, `liquidity`, `initialize`, `donate`, or `no-callbacks`. Never empty. */
|
|
770
|
+
tags: ("custom-accounting" | "dynamic-fee" | "swap" | "liquidity" | "initialize" | "donate" | "no-callbacks")[];
|
|
771
|
+
/** @description The v4 permission flags the address sets. */
|
|
772
|
+
permissions: ("beforeInitialize" | "afterInitialize" | "beforeAddLiquidity" | "afterAddLiquidity" | "beforeRemoveLiquidity" | "afterRemoveLiquidity" | "beforeSwap" | "afterSwap" | "beforeDonate" | "afterDonate" | "beforeSwapReturnsDelta" | "afterSwapReturnsDelta" | "afterAddLiquidityReturnsDelta" | "afterRemoveLiquidityReturnsDelta")[];
|
|
773
|
+
/** @description As on pool rows: fee and value figures of its pools are then not provably complete. */
|
|
774
|
+
customAccounting: boolean;
|
|
775
|
+
/** @description At least one of its pools uses a dynamic fee. */
|
|
776
|
+
dynamicFee?: boolean;
|
|
777
|
+
/** @description Pools the default pools list shows. */
|
|
778
|
+
pools: number;
|
|
779
|
+
/** @description Every pool that uses the hook. */
|
|
780
|
+
poolsTotal: number;
|
|
781
|
+
tvlUsd: number;
|
|
782
|
+
volumeUsd24h: number;
|
|
783
|
+
feesUsd24h: number;
|
|
784
|
+
volumeUsd7d?: number;
|
|
785
|
+
feesUsd7d?: number;
|
|
786
|
+
/** @description Unix seconds of its first pool. */
|
|
787
|
+
firstPoolAt?: number | null;
|
|
788
|
+
/**
|
|
789
|
+
* Format: date-time
|
|
790
|
+
* @description End of the 24-hour window (the newest among its pools).
|
|
791
|
+
*/
|
|
792
|
+
metricsAsOf?: string | null;
|
|
793
|
+
/**
|
|
794
|
+
* Format: date-time
|
|
795
|
+
* @description When the figures were computed from the pools.
|
|
796
|
+
*/
|
|
797
|
+
updatedAt?: string | null;
|
|
798
|
+
} & {
|
|
799
|
+
[key: string]: unknown;
|
|
800
|
+
};
|
|
801
|
+
HookList: components["schemas"]["Degradation"] & ({
|
|
802
|
+
hooks: components["schemas"]["Hook"][];
|
|
803
|
+
pagination: components["schemas"]["Pagination"];
|
|
804
|
+
} & {
|
|
805
|
+
[key: string]: unknown;
|
|
806
|
+
});
|
|
807
|
+
WalletFigures: {
|
|
808
|
+
/** @description Sum of `metrics.underlyingValueUsd` over the priced positions. */
|
|
809
|
+
valueUsd: number;
|
|
810
|
+
/** @description Sum of `metrics.pendingFeesUsd` over the priced positions. */
|
|
811
|
+
uncollectedFeesUsd: number;
|
|
812
|
+
/** @description Sum of `metrics.pnlUsd` over the priced positions. */
|
|
813
|
+
pnlUsd: number;
|
|
814
|
+
/** @description `openCount` + `closedCount`. */
|
|
815
|
+
positions: number;
|
|
816
|
+
openCount: number;
|
|
817
|
+
closedCount: number;
|
|
818
|
+
/** @description Positions with no reliable price: counted, but in none of the USD figures. */
|
|
819
|
+
unpricedCount: number;
|
|
820
|
+
/** @description Priced positions whose PnL is not computed yet (they add 0 PnL). */
|
|
821
|
+
pnlPendingCount: number;
|
|
822
|
+
} & {
|
|
823
|
+
[key: string]: unknown;
|
|
824
|
+
};
|
|
825
|
+
WalletSummary: components["schemas"]["Degradation"] & ({
|
|
826
|
+
/** @description Lower-cased. */
|
|
827
|
+
address: string;
|
|
828
|
+
protocol: string;
|
|
829
|
+
filters: {
|
|
830
|
+
/** @enum {string} */
|
|
831
|
+
status: "active" | "inactive" | "all";
|
|
832
|
+
includeRisky: boolean;
|
|
833
|
+
minValueUsd: number;
|
|
834
|
+
minPoolTvl: number;
|
|
835
|
+
} & {
|
|
836
|
+
[key: string]: unknown;
|
|
837
|
+
};
|
|
838
|
+
totals: components["schemas"]["WalletFigures"];
|
|
839
|
+
/** @description Chains on which the wallet has at least one matching position, highest `valueUsd` first. */
|
|
840
|
+
byChain: (({
|
|
841
|
+
chainId: number;
|
|
842
|
+
} & {
|
|
843
|
+
[key: string]: unknown;
|
|
844
|
+
}) & components["schemas"]["WalletFigures"])[];
|
|
845
|
+
/**
|
|
846
|
+
* Format: date-time
|
|
847
|
+
* @description When the figures were read.
|
|
848
|
+
*/
|
|
849
|
+
asOf: string;
|
|
850
|
+
} & {
|
|
851
|
+
[key: string]: unknown;
|
|
852
|
+
});
|
|
853
|
+
ChartPoint: {
|
|
854
|
+
/** @description Unix seconds, start of the UTC day. */
|
|
855
|
+
t?: number;
|
|
856
|
+
value?: number;
|
|
857
|
+
} & {
|
|
858
|
+
[key: string]: unknown;
|
|
859
|
+
};
|
|
860
|
+
Charts: {
|
|
861
|
+
/** @enum {string} */
|
|
862
|
+
range: "30d" | "60d" | "90d" | "180d" | "all";
|
|
863
|
+
poolPrice?: ({
|
|
864
|
+
/** @description Unix seconds, start of the UTC day. */
|
|
865
|
+
t?: number;
|
|
866
|
+
token0Price?: number;
|
|
867
|
+
token1Price?: number;
|
|
868
|
+
open?: number;
|
|
869
|
+
high?: number;
|
|
870
|
+
low?: number;
|
|
871
|
+
close?: number;
|
|
872
|
+
/** @description Pool charts only. The tick after the day's last indexed event; null when the indexer has none. */
|
|
873
|
+
tick?: number | null;
|
|
874
|
+
} & {
|
|
875
|
+
[key: string]: unknown;
|
|
876
|
+
})[];
|
|
877
|
+
poolOverview?: {
|
|
878
|
+
tvl?: components["schemas"]["ChartPoint"][];
|
|
879
|
+
volume?: components["schemas"]["ChartPoint"][];
|
|
880
|
+
fees?: components["schemas"]["ChartPoint"][];
|
|
881
|
+
feesTvl?: components["schemas"]["ChartPoint"][];
|
|
882
|
+
price0?: components["schemas"]["ChartPoint"][];
|
|
883
|
+
price1?: components["schemas"]["ChartPoint"][];
|
|
884
|
+
divergence?: components["schemas"]["ChartPoint"][];
|
|
885
|
+
} & {
|
|
886
|
+
[key: string]: unknown;
|
|
887
|
+
};
|
|
888
|
+
liquidityDistribution?: {
|
|
889
|
+
currentTick?: number;
|
|
890
|
+
/** @description Present when the bins were windowed (`ticksLimit`, `tickFrom`, `tickTo`): how many there were before windowing. */
|
|
891
|
+
ticksTotal?: number;
|
|
892
|
+
tickWindow?: {
|
|
893
|
+
from?: number;
|
|
894
|
+
to?: number;
|
|
895
|
+
} & {
|
|
896
|
+
[key: string]: unknown;
|
|
897
|
+
};
|
|
898
|
+
/** @description Position charts only. */
|
|
899
|
+
tickLower?: number;
|
|
900
|
+
/** @description Position charts only. */
|
|
901
|
+
tickUpper?: number;
|
|
902
|
+
ticks?: ({
|
|
903
|
+
tickIdx?: number;
|
|
904
|
+
liquidityGross?: string;
|
|
905
|
+
liquidityNet?: string;
|
|
906
|
+
activeLiquidity?: number;
|
|
907
|
+
price0?: number;
|
|
908
|
+
price1?: number;
|
|
909
|
+
amount0?: number;
|
|
910
|
+
amount1?: number;
|
|
911
|
+
} & {
|
|
912
|
+
[key: string]: unknown;
|
|
913
|
+
})[];
|
|
914
|
+
} & {
|
|
915
|
+
[key: string]: unknown;
|
|
916
|
+
};
|
|
917
|
+
/** @description Position charts only. */
|
|
918
|
+
positionSeries?: ({
|
|
919
|
+
pnl?: components["schemas"]["ChartPoint"][];
|
|
920
|
+
assetsValue?: components["schemas"]["ChartPoint"][];
|
|
921
|
+
apr?: components["schemas"]["ChartPoint"][];
|
|
922
|
+
feeApr?: components["schemas"]["ChartPoint"][];
|
|
923
|
+
divLoss?: components["schemas"]["ChartPoint"][];
|
|
924
|
+
} & {
|
|
925
|
+
[key: string]: unknown;
|
|
926
|
+
}) | null;
|
|
927
|
+
/** @description Pool charts only. */
|
|
928
|
+
poolSeries?: {
|
|
929
|
+
volume?: components["schemas"]["ChartPoint"][];
|
|
930
|
+
tvl?: components["schemas"]["ChartPoint"][];
|
|
931
|
+
fees?: components["schemas"]["ChartPoint"][];
|
|
932
|
+
feeApr?: components["schemas"]["ChartPoint"][];
|
|
933
|
+
} & {
|
|
934
|
+
[key: string]: unknown;
|
|
935
|
+
};
|
|
936
|
+
poolOverviewCurrent?: ({
|
|
937
|
+
tvl?: number;
|
|
938
|
+
volume?: number;
|
|
939
|
+
fees?: number;
|
|
940
|
+
feesTvl?: number;
|
|
941
|
+
/**
|
|
942
|
+
* Format: date-time
|
|
943
|
+
* @description Present when `volume` and `fees` are the pool's rolling 24h (the pool row's `metricsAsOf`); absent: the newest UTC day's.
|
|
944
|
+
*/
|
|
945
|
+
metricsAsOf?: string;
|
|
946
|
+
} & {
|
|
947
|
+
[key: string]: unknown;
|
|
948
|
+
}) | null;
|
|
949
|
+
/** @description An input could not be loaded; the response is incomplete and is not charged. */
|
|
950
|
+
partial?: boolean;
|
|
951
|
+
missing?: string[];
|
|
952
|
+
} & {
|
|
953
|
+
[key: string]: unknown;
|
|
954
|
+
};
|
|
955
|
+
Chain: {
|
|
956
|
+
chainId: number;
|
|
957
|
+
slug: string;
|
|
958
|
+
name: string;
|
|
959
|
+
shortName?: string;
|
|
960
|
+
explorerUrl?: string;
|
|
961
|
+
nativeToken?: {
|
|
962
|
+
symbol?: string;
|
|
963
|
+
address?: string;
|
|
964
|
+
decimals?: number;
|
|
965
|
+
} & {
|
|
966
|
+
[key: string]: unknown;
|
|
967
|
+
};
|
|
968
|
+
wrappedNativeToken?: {
|
|
969
|
+
symbol?: string;
|
|
970
|
+
address?: string;
|
|
971
|
+
decimals?: number;
|
|
972
|
+
} & {
|
|
973
|
+
[key: string]: unknown;
|
|
974
|
+
};
|
|
975
|
+
protocols: string[];
|
|
976
|
+
} & {
|
|
977
|
+
[key: string]: unknown;
|
|
978
|
+
};
|
|
979
|
+
Protocol: {
|
|
980
|
+
key: string;
|
|
981
|
+
displayName?: string;
|
|
982
|
+
version?: string | null;
|
|
983
|
+
family?: string | null;
|
|
984
|
+
chains: number[];
|
|
985
|
+
enabled?: boolean;
|
|
986
|
+
} & {
|
|
987
|
+
[key: string]: unknown;
|
|
988
|
+
};
|
|
989
|
+
PlanList: {
|
|
990
|
+
plans: ({
|
|
991
|
+
key?: string;
|
|
992
|
+
name?: string;
|
|
993
|
+
description?: string;
|
|
994
|
+
features?: string[];
|
|
995
|
+
monthlyUnits?: number;
|
|
996
|
+
rateLimitPerMin?: number;
|
|
997
|
+
maxApiKeys?: number;
|
|
998
|
+
allowBrowserKeys?: boolean;
|
|
999
|
+
selfServe?: boolean;
|
|
1000
|
+
prices?: ({
|
|
1001
|
+
id?: string;
|
|
1002
|
+
/** @enum {string} */
|
|
1003
|
+
interval?: "month" | "year";
|
|
1004
|
+
unitAmountMinor?: number;
|
|
1005
|
+
currency?: string;
|
|
1006
|
+
displayNote?: string;
|
|
1007
|
+
} & {
|
|
1008
|
+
[key: string]: unknown;
|
|
1009
|
+
})[];
|
|
1010
|
+
} & {
|
|
1011
|
+
[key: string]: unknown;
|
|
1012
|
+
})[];
|
|
1013
|
+
} & {
|
|
1014
|
+
[key: string]: unknown;
|
|
1015
|
+
};
|
|
1016
|
+
UnitCostList: {
|
|
1017
|
+
units: ({
|
|
1018
|
+
routeKey?: string;
|
|
1019
|
+
cost?: number;
|
|
1020
|
+
description?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* @description Present when `cost` is charged per item (`position`: the positions batch). Absent: per call.
|
|
1023
|
+
* @enum {string}
|
|
1024
|
+
*/
|
|
1025
|
+
per?: "position";
|
|
1026
|
+
} & {
|
|
1027
|
+
[key: string]: unknown;
|
|
1028
|
+
})[];
|
|
1029
|
+
} & {
|
|
1030
|
+
[key: string]: unknown;
|
|
1031
|
+
};
|
|
1032
|
+
Stats: {
|
|
1033
|
+
pools: number;
|
|
1034
|
+
positions: number;
|
|
1035
|
+
activePositions?: number;
|
|
1036
|
+
tvlUsd?: number;
|
|
1037
|
+
indexedTo?: string | null;
|
|
1038
|
+
/** @description The same figures per chain and protocol. */
|
|
1039
|
+
byChain?: ({
|
|
1040
|
+
chainId?: number;
|
|
1041
|
+
protocol?: string;
|
|
1042
|
+
pools?: number;
|
|
1043
|
+
positions?: number;
|
|
1044
|
+
activePositions?: number;
|
|
1045
|
+
tvlUsd?: number;
|
|
1046
|
+
/** @description Indexer head for this shard, epoch seconds. */
|
|
1047
|
+
indexedUpToTimestamp?: number | null;
|
|
1048
|
+
} & {
|
|
1049
|
+
[key: string]: unknown;
|
|
1050
|
+
})[];
|
|
1051
|
+
} & {
|
|
1052
|
+
[key: string]: unknown;
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
responses: {
|
|
1056
|
+
/** @description A parameter is malformed or unrecognised. Fix the request; costs no units. */
|
|
1057
|
+
BadRequest: {
|
|
1058
|
+
headers: {
|
|
1059
|
+
"Cache-Control": components["headers"]["CacheControlNoStore"];
|
|
1060
|
+
[name: string]: unknown;
|
|
1061
|
+
};
|
|
1062
|
+
content: {
|
|
1063
|
+
"application/json": components["schemas"]["Error"];
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
/** @description The `KC-APIKey` header is missing, unknown, revoked, or the account is suspended. */
|
|
1067
|
+
Unauthorized: {
|
|
1068
|
+
headers: {
|
|
1069
|
+
"Cache-Control": components["headers"]["CacheControlNoStore"];
|
|
1070
|
+
[name: string]: unknown;
|
|
1071
|
+
};
|
|
1072
|
+
content: {
|
|
1073
|
+
"application/json": components["schemas"]["Error"];
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
/** @description A valid key used where it is not allowed: a server key from a browser (any request with an `Origin` header), or a browser key from an unregistered origin. */
|
|
1077
|
+
Forbidden: {
|
|
1078
|
+
headers: {
|
|
1079
|
+
"Cache-Control": components["headers"]["CacheControlNoStore"];
|
|
1080
|
+
[name: string]: unknown;
|
|
1081
|
+
};
|
|
1082
|
+
content: {
|
|
1083
|
+
"application/json": components["schemas"]["Error"];
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
/** @description No such position or pool on that chain and protocol. An id from another chain is the usual cause. */
|
|
1087
|
+
NotFound: {
|
|
1088
|
+
headers: {
|
|
1089
|
+
"Cache-Control": components["headers"]["CacheControlNoStore"];
|
|
1090
|
+
[name: string]: unknown;
|
|
1091
|
+
};
|
|
1092
|
+
content: {
|
|
1093
|
+
"application/json": components["schemas"]["Error"];
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
/** @description No token with that address on that chain: no record of it and no pool holding it. Costs no units. */
|
|
1097
|
+
TokenNotFound: {
|
|
1098
|
+
headers: {
|
|
1099
|
+
"Cache-Control": components["headers"]["CacheControlNoStore"];
|
|
1100
|
+
[name: string]: unknown;
|
|
1101
|
+
};
|
|
1102
|
+
content: {
|
|
1103
|
+
"application/json": components["schemas"]["Error"];
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
/** @description Burst rate limit or monthly quota. `Retry-After` (seconds) tells you which by how long it is. */
|
|
1107
|
+
TooManyRequests: {
|
|
1108
|
+
headers: {
|
|
1109
|
+
/** @description Seconds to wait. */
|
|
1110
|
+
"Retry-After"?: number;
|
|
1111
|
+
"Cache-Control": components["headers"]["CacheControlNoStore"];
|
|
1112
|
+
[name: string]: unknown;
|
|
1113
|
+
};
|
|
1114
|
+
content: {
|
|
1115
|
+
"application/json": {
|
|
1116
|
+
error?: string;
|
|
1117
|
+
retryAfterSec?: number;
|
|
1118
|
+
} & {
|
|
1119
|
+
[key: string]: unknown;
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
/** @description A read did not finish in time (often a very deep list page still being reached). Retry after `Retry-After`; costs no units. */
|
|
1124
|
+
Unavailable: {
|
|
1125
|
+
headers: {
|
|
1126
|
+
/** @description Seconds to wait. */
|
|
1127
|
+
"Retry-After"?: number;
|
|
1128
|
+
"Cache-Control": components["headers"]["CacheControlNoStore"];
|
|
1129
|
+
[name: string]: unknown;
|
|
1130
|
+
};
|
|
1131
|
+
content: {
|
|
1132
|
+
"application/json": components["schemas"]["Error"];
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
parameters: never;
|
|
1137
|
+
requestBodies: never;
|
|
1138
|
+
headers: {
|
|
1139
|
+
/** @description Burst limit: requests allowed per 60-second window for this key. */
|
|
1140
|
+
XRateLimitLimit: number;
|
|
1141
|
+
/** @description Requests left in the current burst window. */
|
|
1142
|
+
XRateLimitRemaining: number;
|
|
1143
|
+
/** @description Seconds until the burst window resets. */
|
|
1144
|
+
XRateLimitReset: number;
|
|
1145
|
+
/** @description Monthly unit quota for the account. */
|
|
1146
|
+
XQuotaLimit: number;
|
|
1147
|
+
/** @description Units left this month. */
|
|
1148
|
+
XQuotaRemaining: number;
|
|
1149
|
+
/** @description Seconds until the quota resets (00:00 UTC on the 1st). */
|
|
1150
|
+
XQuotaReset: number;
|
|
1151
|
+
/** @description `private, max-age=15`: your own client may reuse this response for 15 seconds; a shared cache or CDN must not store it. A reused copy costs no units because no request is sent; every request that reaches the API is metered. `no-store` instead when the answer is flagged `partial`, `stale` or `countsPending`. Says nothing about data age: read `dataAsOf` / `stale`. */
|
|
1152
|
+
CacheControl: string;
|
|
1153
|
+
/** @description Includes `KC-APIKey`, so a cached copy is reused only for the same key. */
|
|
1154
|
+
Vary: string;
|
|
1155
|
+
/** @description `no-store`: never cache an error. */
|
|
1156
|
+
CacheControlNoStore: string;
|
|
1157
|
+
/** @description With `format=csv`: `attachment; filename="tickwise-<route>-<chainId|all>-p<page>.csv"`. */
|
|
1158
|
+
ContentDisposition: string;
|
|
1159
|
+
/** @description With `format=csv`: `pagination.page`. */
|
|
1160
|
+
XPage: number;
|
|
1161
|
+
/** @description With `format=csv`: `pagination.limit`. */
|
|
1162
|
+
XLimit: number;
|
|
1163
|
+
/** @description With `format=csv`: `pagination.total` (absent when unknown). */
|
|
1164
|
+
XTotalCount: number;
|
|
1165
|
+
/** @description With `format=csv`: `pagination.totalPages` (absent when unknown). */
|
|
1166
|
+
XTotalPages: number;
|
|
1167
|
+
/** @description With `format=csv`: `pagination.hasMore` (`true` / `false`). Page with this. */
|
|
1168
|
+
XHasMore: string;
|
|
1169
|
+
/** @description With `format=csv`: `true` when `X-Total-Count` is a floor (`pagination.totalCapped`). */
|
|
1170
|
+
XTotalCapped: string;
|
|
1171
|
+
/** @description With `format=csv`: `true` when a chain could not be read (`partial`); the request is refunded. */
|
|
1172
|
+
XPartial: string;
|
|
1173
|
+
/** @description With `format=csv` and `X-Partial`: the chain ids left out (`missingChains`), comma-separated. */
|
|
1174
|
+
XMissingChains: string;
|
|
1175
|
+
/** @description With `format=csv`: `true` when the rows are older than usual (`stale`). */
|
|
1176
|
+
XStale: string;
|
|
1177
|
+
/** @description With `format=csv` and `X-Stale`: when the rows were read (`dataAsOf`, ISO 8601). */
|
|
1178
|
+
XDataAsOf: string;
|
|
1179
|
+
/** @description With `format=csv` on pools: `true` when holder counts are not in yet (`countsPending`). */
|
|
1180
|
+
XCountsPending: string;
|
|
1181
|
+
/** @description Units this request was charged after crediting back the ids not served (`missing`, or a degraded transaction list). `X-Quota-Remaining` already includes the credit. */
|
|
1182
|
+
XUnitsCharged: number;
|
|
1183
|
+
};
|
|
1184
|
+
pathItems: never;
|
|
1185
|
+
}
|
|
1186
|
+
export type $defs = Record<string, never>;
|
|
1187
|
+
export interface operations {
|
|
1188
|
+
"positions.list": {
|
|
1189
|
+
parameters: {
|
|
1190
|
+
query?: {
|
|
1191
|
+
/** @description Omit to merge every enabled chain into one ranking (not Ethereum). */
|
|
1192
|
+
chainId?: number;
|
|
1193
|
+
/** @description The only value served; anything else is a 400. */
|
|
1194
|
+
protocol?: "uniswap-v4";
|
|
1195
|
+
/** @description Every position held by one wallet (EVM address, case-insensitive). */
|
|
1196
|
+
owner?: string;
|
|
1197
|
+
/** @description Every position in one pool. */
|
|
1198
|
+
poolId?: string;
|
|
1199
|
+
/** @description Only positions in the pools of this v4 hook (`0x` plus 40 hex, any case). A hook with more than 1000 pools on a chain is a 400: filter its positions by `poolId`, or list its pools with `GET /v1/pools?hook=`. The zero address is a 400. */
|
|
1200
|
+
hook?: string;
|
|
1201
|
+
/** @description Exact match on one id. The other filters still apply. */
|
|
1202
|
+
positionId?: string;
|
|
1203
|
+
/** @description Open, closed, or both. Unset behaves as `active`; pass `all` to see closed positions. */
|
|
1204
|
+
status?: "active" | "inactive" | "all";
|
|
1205
|
+
/** @description Direction is part of the key: everything is descending except `nft_id_asc`. The rate sorts (`apr`, `fee_apr`, `roi`) leave closed and no-value positions out. */
|
|
1206
|
+
sort?: "apr" | "fee_apr" | "roi" | "age" | "pnl" | "underlying_value" | "nft_id_asc" | "nft_id_desc";
|
|
1207
|
+
/** @description `in` / `out` restricts to positions whose range currently contains the pool tick, or does not. */
|
|
1208
|
+
range?: "all" | "in" | "out";
|
|
1209
|
+
/** @description 1-based. */
|
|
1210
|
+
page?: number;
|
|
1211
|
+
/** @description 1–100. A larger value is a 400, not a silent clamp. */
|
|
1212
|
+
limit?: number;
|
|
1213
|
+
/** @description Floor on current underlying value. */
|
|
1214
|
+
minValueUsd?: number;
|
|
1215
|
+
/** @description Floor on the pool's TVL. **Not zero** — the one default that silently hides real positions in small pools. */
|
|
1216
|
+
minPoolTvl?: number;
|
|
1217
|
+
/** @description Admits rows whose token has no corroborated on-chain market. Off by default because a ranking full of issuer-seeded spam is worthless. Off also leaves positions minted less than 24 hours ago out of the `apr`, `fee_apr` and `roi` sorts (a few hours of fees annualise into inflated rates); each enters within an hour of turning 24 hours. Not applied to `owner`, `poolId` or `positionId` reads. */
|
|
1218
|
+
includeRisky?: boolean;
|
|
1219
|
+
/** @description `equity` restricts to tokenized-equity pools. A chain with none returns zero rows. */
|
|
1220
|
+
assetClass?: "equity";
|
|
1221
|
+
/** @description `compact` returns a curated smaller set of fields; `full` is the whole response. */
|
|
1222
|
+
view?: "full" | "compact";
|
|
1223
|
+
/** @description Comma-separated dotted paths (at most 60) to return instead of the full row, e.g. `positionId,metrics.apr`. An unknown path is a 400. */
|
|
1224
|
+
fields?: string;
|
|
1225
|
+
/** @description `csv` returns the page as a CSV file (`text/csv`) instead of JSON: same filters, paging, unit cost and limit of 100 rows. Paging and flags come back as headers: `X-Page`, `X-Limit`, `X-Total-Count`, `X-Total-Pages`, `X-Has-More`, `X-Total-Capped`, `X-Partial`, `X-Missing-Chains`, `X-Stale`, `X-Data-As-Of`, `X-Counts-Pending`. Errors stay JSON. */
|
|
1226
|
+
format?: "json" | "csv";
|
|
1227
|
+
};
|
|
1228
|
+
header?: never;
|
|
1229
|
+
path?: never;
|
|
1230
|
+
cookie?: never;
|
|
1231
|
+
};
|
|
1232
|
+
requestBody?: never;
|
|
1233
|
+
responses: {
|
|
1234
|
+
/** @description A page of positions. With `format=csv`, the same rows as CSV (`text/csv`), paging and flags in the `X-*` headers. */
|
|
1235
|
+
200: {
|
|
1236
|
+
headers: {
|
|
1237
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1238
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1239
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1240
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1241
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1242
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1243
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1244
|
+
Vary: components["headers"]["Vary"];
|
|
1245
|
+
"Content-Disposition": components["headers"]["ContentDisposition"];
|
|
1246
|
+
"X-Page": components["headers"]["XPage"];
|
|
1247
|
+
"X-Limit": components["headers"]["XLimit"];
|
|
1248
|
+
"X-Total-Count": components["headers"]["XTotalCount"];
|
|
1249
|
+
"X-Total-Pages": components["headers"]["XTotalPages"];
|
|
1250
|
+
"X-Has-More": components["headers"]["XHasMore"];
|
|
1251
|
+
"X-Total-Capped": components["headers"]["XTotalCapped"];
|
|
1252
|
+
"X-Partial": components["headers"]["XPartial"];
|
|
1253
|
+
"X-Missing-Chains": components["headers"]["XMissingChains"];
|
|
1254
|
+
"X-Stale": components["headers"]["XStale"];
|
|
1255
|
+
"X-Data-As-Of": components["headers"]["XDataAsOf"];
|
|
1256
|
+
"X-Counts-Pending": components["headers"]["XCountsPending"];
|
|
1257
|
+
[name: string]: unknown;
|
|
1258
|
+
};
|
|
1259
|
+
content: {
|
|
1260
|
+
"application/json": components["schemas"]["PositionList"];
|
|
1261
|
+
/**
|
|
1262
|
+
* @example rank,chainId,protocol,positionId,owner,poolId,token0.symbol,token0.address
|
|
1263
|
+
* 1,1,uniswap-v4,123456,0x1111111111111111111111111111111111111111,0xabc…,USDC,0xa0b8…
|
|
1264
|
+
*/
|
|
1265
|
+
"text/csv": string;
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1268
|
+
400: components["responses"]["BadRequest"];
|
|
1269
|
+
401: components["responses"]["Unauthorized"];
|
|
1270
|
+
403: components["responses"]["Forbidden"];
|
|
1271
|
+
429: components["responses"]["TooManyRequests"];
|
|
1272
|
+
503: components["responses"]["Unavailable"];
|
|
1273
|
+
};
|
|
1274
|
+
};
|
|
1275
|
+
"positions.batch": {
|
|
1276
|
+
parameters: {
|
|
1277
|
+
query: {
|
|
1278
|
+
/** @description The chain every id belongs to. */
|
|
1279
|
+
chainId: number;
|
|
1280
|
+
/** @description The only value served; anything else is a 400. */
|
|
1281
|
+
protocol?: "uniswap-v4";
|
|
1282
|
+
/** @description 1 to 100 position ids (token ids, digits), comma-separated. Duplicates are dropped; more than 100 distinct ids is a 400. */
|
|
1283
|
+
ids: string;
|
|
1284
|
+
/** @description `compact` returns a curated smaller set of fields; `full` is the whole response. */
|
|
1285
|
+
view?: "full" | "compact";
|
|
1286
|
+
/** @description Comma-separated dotted paths (at most 60) to return instead of the full row, e.g. `positionId,metrics.apr`. An unknown path is a 400. */
|
|
1287
|
+
fields?: string;
|
|
1288
|
+
/** @description Cap on each embedded `transactions` array. */
|
|
1289
|
+
transactionsLimit?: number;
|
|
1290
|
+
};
|
|
1291
|
+
header?: never;
|
|
1292
|
+
path?: never;
|
|
1293
|
+
cookie?: never;
|
|
1294
|
+
};
|
|
1295
|
+
requestBody?: never;
|
|
1296
|
+
responses: {
|
|
1297
|
+
/** @description The positions found, in request order, and the ids not found. */
|
|
1298
|
+
200: {
|
|
1299
|
+
headers: {
|
|
1300
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1301
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1302
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1303
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1304
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1305
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1306
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1307
|
+
Vary: components["headers"]["Vary"];
|
|
1308
|
+
"X-Units-Charged": components["headers"]["XUnitsCharged"];
|
|
1309
|
+
[name: string]: unknown;
|
|
1310
|
+
};
|
|
1311
|
+
content: {
|
|
1312
|
+
"application/json": components["schemas"]["PositionBatch"];
|
|
1313
|
+
};
|
|
1314
|
+
};
|
|
1315
|
+
400: components["responses"]["BadRequest"];
|
|
1316
|
+
401: components["responses"]["Unauthorized"];
|
|
1317
|
+
403: components["responses"]["Forbidden"];
|
|
1318
|
+
429: components["responses"]["TooManyRequests"];
|
|
1319
|
+
503: components["responses"]["Unavailable"];
|
|
1320
|
+
};
|
|
1321
|
+
};
|
|
1322
|
+
"positions.detail": {
|
|
1323
|
+
parameters: {
|
|
1324
|
+
query?: {
|
|
1325
|
+
/** @description `compact` returns a curated smaller set of fields; `full` is the whole response. */
|
|
1326
|
+
view?: "full" | "compact";
|
|
1327
|
+
/** @description Comma-separated dotted paths (at most 60) to return instead of the full row, e.g. `positionId,metrics.apr`. An unknown path is a 400. */
|
|
1328
|
+
fields?: string;
|
|
1329
|
+
/** @description Cap on the embedded `transactions` array. */
|
|
1330
|
+
transactionsLimit?: number;
|
|
1331
|
+
};
|
|
1332
|
+
header?: never;
|
|
1333
|
+
path: {
|
|
1334
|
+
chainId: number;
|
|
1335
|
+
protocol: "uniswap-v4";
|
|
1336
|
+
/** @description The tokenId for an ERC-721 protocol. An id from another chain is a 404. */
|
|
1337
|
+
positionId: string;
|
|
1338
|
+
};
|
|
1339
|
+
cookie?: never;
|
|
1340
|
+
};
|
|
1341
|
+
requestBody?: never;
|
|
1342
|
+
responses: {
|
|
1343
|
+
/** @description One position. */
|
|
1344
|
+
200: {
|
|
1345
|
+
headers: {
|
|
1346
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1347
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1348
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1349
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1350
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1351
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1352
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1353
|
+
Vary: components["headers"]["Vary"];
|
|
1354
|
+
[name: string]: unknown;
|
|
1355
|
+
};
|
|
1356
|
+
content: {
|
|
1357
|
+
"application/json": components["schemas"]["PositionDetail"];
|
|
1358
|
+
};
|
|
1359
|
+
};
|
|
1360
|
+
400: components["responses"]["BadRequest"];
|
|
1361
|
+
401: components["responses"]["Unauthorized"];
|
|
1362
|
+
403: components["responses"]["Forbidden"];
|
|
1363
|
+
404: components["responses"]["NotFound"];
|
|
1364
|
+
429: components["responses"]["TooManyRequests"];
|
|
1365
|
+
503: components["responses"]["Unavailable"];
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1368
|
+
"positions.transactions": {
|
|
1369
|
+
parameters: {
|
|
1370
|
+
query?: {
|
|
1371
|
+
/** @description 1–1000. */
|
|
1372
|
+
limit?: number;
|
|
1373
|
+
/** @description A `transactionsNextCursor` from the previous page. */
|
|
1374
|
+
before?: string;
|
|
1375
|
+
/** @description `compact` returns a curated smaller set of fields; `full` is the whole response. */
|
|
1376
|
+
view?: "full" | "compact";
|
|
1377
|
+
/** @description Comma-separated dotted paths (at most 60) to return instead of the full row, e.g. `positionId,metrics.apr`. An unknown path is a 400. */
|
|
1378
|
+
fields?: string;
|
|
1379
|
+
};
|
|
1380
|
+
header?: never;
|
|
1381
|
+
path: {
|
|
1382
|
+
chainId: number;
|
|
1383
|
+
protocol: "uniswap-v4";
|
|
1384
|
+
/** @description The tokenId for an ERC-721 protocol. An id from another chain is a 404. */
|
|
1385
|
+
positionId: string;
|
|
1386
|
+
};
|
|
1387
|
+
cookie?: never;
|
|
1388
|
+
};
|
|
1389
|
+
requestBody?: never;
|
|
1390
|
+
responses: {
|
|
1391
|
+
/** @description One page of transactions. */
|
|
1392
|
+
200: {
|
|
1393
|
+
headers: {
|
|
1394
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1395
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1396
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1397
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1398
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1399
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1400
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1401
|
+
Vary: components["headers"]["Vary"];
|
|
1402
|
+
[name: string]: unknown;
|
|
1403
|
+
};
|
|
1404
|
+
content: {
|
|
1405
|
+
"application/json": components["schemas"]["TransactionsPage"];
|
|
1406
|
+
};
|
|
1407
|
+
};
|
|
1408
|
+
400: components["responses"]["BadRequest"];
|
|
1409
|
+
401: components["responses"]["Unauthorized"];
|
|
1410
|
+
403: components["responses"]["Forbidden"];
|
|
1411
|
+
404: components["responses"]["NotFound"];
|
|
1412
|
+
429: components["responses"]["TooManyRequests"];
|
|
1413
|
+
503: components["responses"]["Unavailable"];
|
|
1414
|
+
};
|
|
1415
|
+
};
|
|
1416
|
+
"positions.charts": {
|
|
1417
|
+
parameters: {
|
|
1418
|
+
query?: {
|
|
1419
|
+
/** @description Counted back from the newest data point the series holds, not from today. An unrecognised value falls back to `30d` rather than erroring. */
|
|
1420
|
+
range?: "30d" | "60d" | "90d" | "180d" | "all";
|
|
1421
|
+
/** @description `compact` returns a curated smaller set of fields; `full` is the whole response. */
|
|
1422
|
+
view?: "full" | "compact";
|
|
1423
|
+
/** @description Comma-separated dotted paths (at most 60) to return instead of the full row, e.g. `positionId,metrics.apr`. An unknown path is a 400. */
|
|
1424
|
+
fields?: string;
|
|
1425
|
+
/** @description Liquidity bins to return, centred on the current tick. */
|
|
1426
|
+
ticksLimit?: number;
|
|
1427
|
+
/** @description Lowest tick of the liquidity window (inclusive). Must not exceed `tickTo`. */
|
|
1428
|
+
tickFrom?: number;
|
|
1429
|
+
/** @description Highest tick of the liquidity window (inclusive). */
|
|
1430
|
+
tickTo?: number;
|
|
1431
|
+
};
|
|
1432
|
+
header?: never;
|
|
1433
|
+
path: {
|
|
1434
|
+
chainId: number;
|
|
1435
|
+
protocol: "uniswap-v4";
|
|
1436
|
+
/** @description The tokenId for an ERC-721 protocol. An id from another chain is a 404. */
|
|
1437
|
+
positionId: string;
|
|
1438
|
+
};
|
|
1439
|
+
cookie?: never;
|
|
1440
|
+
};
|
|
1441
|
+
requestBody?: never;
|
|
1442
|
+
responses: {
|
|
1443
|
+
/** @description Time series for one position. */
|
|
1444
|
+
200: {
|
|
1445
|
+
headers: {
|
|
1446
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1447
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1448
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1449
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1450
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1451
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1452
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1453
|
+
Vary: components["headers"]["Vary"];
|
|
1454
|
+
[name: string]: unknown;
|
|
1455
|
+
};
|
|
1456
|
+
content: {
|
|
1457
|
+
"application/json": components["schemas"]["Charts"];
|
|
1458
|
+
};
|
|
1459
|
+
};
|
|
1460
|
+
400: components["responses"]["BadRequest"];
|
|
1461
|
+
401: components["responses"]["Unauthorized"];
|
|
1462
|
+
403: components["responses"]["Forbidden"];
|
|
1463
|
+
404: components["responses"]["NotFound"];
|
|
1464
|
+
429: components["responses"]["TooManyRequests"];
|
|
1465
|
+
503: components["responses"]["Unavailable"];
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
"pools.list": {
|
|
1469
|
+
parameters: {
|
|
1470
|
+
query?: {
|
|
1471
|
+
/** @description Omit to merge every enabled chain into one ranking (not Ethereum). */
|
|
1472
|
+
chainId?: number;
|
|
1473
|
+
/** @description The only value served; anything else is a 400. */
|
|
1474
|
+
protocol?: "uniswap-v4";
|
|
1475
|
+
sort?: "tvl" | "volume" | "fees" | "fee_apr" | "age";
|
|
1476
|
+
/** @description 1-based. */
|
|
1477
|
+
page?: number;
|
|
1478
|
+
/** @description 1–100. A larger value is a 400, not a silent clamp. */
|
|
1479
|
+
limit?: number;
|
|
1480
|
+
minTvlUsd?: number;
|
|
1481
|
+
/** @description Admits rows whose token has no corroborated on-chain market. Off by default because a ranking full of issuer-seeded spam is worthless. */
|
|
1482
|
+
includeRisky?: boolean;
|
|
1483
|
+
/** @description A full token address (`0x` + 40 hex) or pool id (`0x` + 64 hex) is an exact match, any case. Any other term is a case-insensitive substring over either token symbol, either token address, or the pool id. */
|
|
1484
|
+
search?: string;
|
|
1485
|
+
/** @description `equity` restricts to tokenized-equity pools. A chain with none returns zero rows. */
|
|
1486
|
+
assetClass?: "equity";
|
|
1487
|
+
/** @description Only the pools of this v4 hook (`0x` plus 40 hex, any case; `GET /v1/hooks` lists them). The zero address (no hook) is a 400. */
|
|
1488
|
+
hook?: string;
|
|
1489
|
+
/** @description `compact` returns a curated smaller set of fields; `full` is the whole response. */
|
|
1490
|
+
view?: "full" | "compact";
|
|
1491
|
+
/** @description Comma-separated dotted paths (at most 60) to return instead of the full row, e.g. `positionId,metrics.apr`. An unknown path is a 400. */
|
|
1492
|
+
fields?: string;
|
|
1493
|
+
/** @description `csv` returns the page as a CSV file (`text/csv`) instead of JSON: same filters, paging, unit cost and limit of 100 rows. Paging and flags come back as headers: `X-Page`, `X-Limit`, `X-Total-Count`, `X-Total-Pages`, `X-Has-More`, `X-Total-Capped`, `X-Partial`, `X-Missing-Chains`, `X-Stale`, `X-Data-As-Of`, `X-Counts-Pending`. Errors stay JSON. */
|
|
1494
|
+
format?: "json" | "csv";
|
|
1495
|
+
};
|
|
1496
|
+
header?: never;
|
|
1497
|
+
path?: never;
|
|
1498
|
+
cookie?: never;
|
|
1499
|
+
};
|
|
1500
|
+
requestBody?: never;
|
|
1501
|
+
responses: {
|
|
1502
|
+
/** @description A page of pools. With `format=csv`, the same rows as CSV (`text/csv`), paging and flags in the `X-*` headers. */
|
|
1503
|
+
200: {
|
|
1504
|
+
headers: {
|
|
1505
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1506
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1507
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1508
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1509
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1510
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1511
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1512
|
+
Vary: components["headers"]["Vary"];
|
|
1513
|
+
"Content-Disposition": components["headers"]["ContentDisposition"];
|
|
1514
|
+
"X-Page": components["headers"]["XPage"];
|
|
1515
|
+
"X-Limit": components["headers"]["XLimit"];
|
|
1516
|
+
"X-Total-Count": components["headers"]["XTotalCount"];
|
|
1517
|
+
"X-Total-Pages": components["headers"]["XTotalPages"];
|
|
1518
|
+
"X-Has-More": components["headers"]["XHasMore"];
|
|
1519
|
+
"X-Total-Capped": components["headers"]["XTotalCapped"];
|
|
1520
|
+
"X-Partial": components["headers"]["XPartial"];
|
|
1521
|
+
"X-Missing-Chains": components["headers"]["XMissingChains"];
|
|
1522
|
+
"X-Stale": components["headers"]["XStale"];
|
|
1523
|
+
"X-Data-As-Of": components["headers"]["XDataAsOf"];
|
|
1524
|
+
"X-Counts-Pending": components["headers"]["XCountsPending"];
|
|
1525
|
+
[name: string]: unknown;
|
|
1526
|
+
};
|
|
1527
|
+
content: {
|
|
1528
|
+
"application/json": components["schemas"]["PoolList"];
|
|
1529
|
+
/**
|
|
1530
|
+
* @example rank,chainId,protocol,poolId,token0.symbol,token0.address
|
|
1531
|
+
* 1,1,uniswap-v4,0xabc…,USDC,0xa0b8…
|
|
1532
|
+
*/
|
|
1533
|
+
"text/csv": string;
|
|
1534
|
+
};
|
|
1535
|
+
};
|
|
1536
|
+
400: components["responses"]["BadRequest"];
|
|
1537
|
+
401: components["responses"]["Unauthorized"];
|
|
1538
|
+
403: components["responses"]["Forbidden"];
|
|
1539
|
+
429: components["responses"]["TooManyRequests"];
|
|
1540
|
+
503: components["responses"]["Unavailable"];
|
|
1541
|
+
};
|
|
1542
|
+
};
|
|
1543
|
+
"pools.detail": {
|
|
1544
|
+
parameters: {
|
|
1545
|
+
query?: {
|
|
1546
|
+
/** @description `compact` returns a curated smaller set of fields; `full` is the whole response. */
|
|
1547
|
+
view?: "full" | "compact";
|
|
1548
|
+
/** @description Comma-separated dotted paths (at most 60) to return instead of the full row, e.g. `positionId,metrics.apr`. An unknown path is a 400. */
|
|
1549
|
+
fields?: string;
|
|
1550
|
+
};
|
|
1551
|
+
header?: never;
|
|
1552
|
+
path: {
|
|
1553
|
+
chainId: number;
|
|
1554
|
+
protocol: "uniswap-v4";
|
|
1555
|
+
/** @description `0x` plus 40 hex (a v3 pool address) or 64 hex (a v4 pool id). Anything else is a 400. */
|
|
1556
|
+
poolId: string;
|
|
1557
|
+
};
|
|
1558
|
+
cookie?: never;
|
|
1559
|
+
};
|
|
1560
|
+
requestBody?: never;
|
|
1561
|
+
responses: {
|
|
1562
|
+
/** @description One pool. */
|
|
1563
|
+
200: {
|
|
1564
|
+
headers: {
|
|
1565
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1566
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1567
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1568
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1569
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1570
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1571
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1572
|
+
Vary: components["headers"]["Vary"];
|
|
1573
|
+
[name: string]: unknown;
|
|
1574
|
+
};
|
|
1575
|
+
content: {
|
|
1576
|
+
"application/json": components["schemas"]["PoolDetail"];
|
|
1577
|
+
};
|
|
1578
|
+
};
|
|
1579
|
+
400: components["responses"]["BadRequest"];
|
|
1580
|
+
401: components["responses"]["Unauthorized"];
|
|
1581
|
+
403: components["responses"]["Forbidden"];
|
|
1582
|
+
404: components["responses"]["NotFound"];
|
|
1583
|
+
429: components["responses"]["TooManyRequests"];
|
|
1584
|
+
503: components["responses"]["Unavailable"];
|
|
1585
|
+
};
|
|
1586
|
+
};
|
|
1587
|
+
"pools.charts": {
|
|
1588
|
+
parameters: {
|
|
1589
|
+
query?: {
|
|
1590
|
+
/** @description Counted back from the newest data point the series holds, not from today. An unrecognised value falls back to `30d` rather than erroring. */
|
|
1591
|
+
range?: "30d" | "60d" | "90d" | "180d" | "all";
|
|
1592
|
+
/** @description `compact` returns a curated smaller set of fields; `full` is the whole response. */
|
|
1593
|
+
view?: "full" | "compact";
|
|
1594
|
+
/** @description Comma-separated dotted paths (at most 60) to return instead of the full row, e.g. `positionId,metrics.apr`. An unknown path is a 400. */
|
|
1595
|
+
fields?: string;
|
|
1596
|
+
/** @description Liquidity bins to return, centred on the current tick. */
|
|
1597
|
+
ticksLimit?: number;
|
|
1598
|
+
/** @description Lowest tick of the liquidity window (inclusive). Must not exceed `tickTo`. */
|
|
1599
|
+
tickFrom?: number;
|
|
1600
|
+
/** @description Highest tick of the liquidity window (inclusive). */
|
|
1601
|
+
tickTo?: number;
|
|
1602
|
+
};
|
|
1603
|
+
header?: never;
|
|
1604
|
+
path: {
|
|
1605
|
+
chainId: number;
|
|
1606
|
+
protocol: "uniswap-v4";
|
|
1607
|
+
/** @description `0x` plus 40 hex (a v3 pool address) or 64 hex (a v4 pool id). Anything else is a 400. */
|
|
1608
|
+
poolId: string;
|
|
1609
|
+
};
|
|
1610
|
+
cookie?: never;
|
|
1611
|
+
};
|
|
1612
|
+
requestBody?: never;
|
|
1613
|
+
responses: {
|
|
1614
|
+
/** @description Time series for one pool. */
|
|
1615
|
+
200: {
|
|
1616
|
+
headers: {
|
|
1617
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1618
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1619
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1620
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1621
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1622
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1623
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1624
|
+
Vary: components["headers"]["Vary"];
|
|
1625
|
+
[name: string]: unknown;
|
|
1626
|
+
};
|
|
1627
|
+
content: {
|
|
1628
|
+
"application/json": components["schemas"]["Charts"];
|
|
1629
|
+
};
|
|
1630
|
+
};
|
|
1631
|
+
400: components["responses"]["BadRequest"];
|
|
1632
|
+
401: components["responses"]["Unauthorized"];
|
|
1633
|
+
403: components["responses"]["Forbidden"];
|
|
1634
|
+
404: components["responses"]["NotFound"];
|
|
1635
|
+
429: components["responses"]["TooManyRequests"];
|
|
1636
|
+
503: components["responses"]["Unavailable"];
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
"tokens.detail": {
|
|
1640
|
+
parameters: {
|
|
1641
|
+
query?: {
|
|
1642
|
+
/** @description The only value served; anything else is a 400. */
|
|
1643
|
+
protocol?: "uniswap-v4";
|
|
1644
|
+
/** @description Order of `pools`, as on `GET /v1/pools`. */
|
|
1645
|
+
sort?: "tvl" | "volume" | "fees" | "fee_apr" | "age";
|
|
1646
|
+
/** @description 1-based. */
|
|
1647
|
+
page?: number;
|
|
1648
|
+
/** @description 1–100. A larger value is a 400, not a silent clamp. */
|
|
1649
|
+
limit?: number;
|
|
1650
|
+
/** @description Also list pools with no reliable price, as on `GET /v1/pools`. Refused (400) only for a token held by 10,000 or more pools on a chain whose token indexes are still being built. */
|
|
1651
|
+
includeRisky?: boolean;
|
|
1652
|
+
/** @description Shapes each row of `pools` as on `GET /v1/pools`; `token`, `price` and `trust` are always whole. */
|
|
1653
|
+
view?: "full" | "compact";
|
|
1654
|
+
/** @description Pool-row paths, as on `GET /v1/pools`; `token`, `price` and `trust` are always whole. An unknown path is a 400. */
|
|
1655
|
+
fields?: string;
|
|
1656
|
+
};
|
|
1657
|
+
header?: never;
|
|
1658
|
+
path: {
|
|
1659
|
+
chainId: number;
|
|
1660
|
+
/** @description The token contract, `0x` plus 40 hex, any case. The chain's native token is `0x0000000000000000000000000000000000000000`. Anything else is a 400. */
|
|
1661
|
+
address: string;
|
|
1662
|
+
};
|
|
1663
|
+
cookie?: never;
|
|
1664
|
+
};
|
|
1665
|
+
requestBody?: never;
|
|
1666
|
+
responses: {
|
|
1667
|
+
/** @description The token and a page of its pools. */
|
|
1668
|
+
200: {
|
|
1669
|
+
headers: {
|
|
1670
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1671
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1672
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1673
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1674
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1675
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1676
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1677
|
+
Vary: components["headers"]["Vary"];
|
|
1678
|
+
[name: string]: unknown;
|
|
1679
|
+
};
|
|
1680
|
+
content: {
|
|
1681
|
+
"application/json": components["schemas"]["TokenLookup"];
|
|
1682
|
+
};
|
|
1683
|
+
};
|
|
1684
|
+
400: components["responses"]["BadRequest"];
|
|
1685
|
+
401: components["responses"]["Unauthorized"];
|
|
1686
|
+
403: components["responses"]["Forbidden"];
|
|
1687
|
+
404: components["responses"]["TokenNotFound"];
|
|
1688
|
+
429: components["responses"]["TooManyRequests"];
|
|
1689
|
+
503: components["responses"]["Unavailable"];
|
|
1690
|
+
};
|
|
1691
|
+
};
|
|
1692
|
+
"tokens.search": {
|
|
1693
|
+
parameters: {
|
|
1694
|
+
query: {
|
|
1695
|
+
/**
|
|
1696
|
+
* @description A symbol (`USDC`), a name (`pepe`, `ethereum`) or a token contract (`0x` plus 40 hex), 1 to 100 characters, any case. Missing, blank or with no letter or digit in it is a 400.
|
|
1697
|
+
* @example usdc
|
|
1698
|
+
*/
|
|
1699
|
+
q: string;
|
|
1700
|
+
/** @description Search one chain. Omit to search every enabled chain. */
|
|
1701
|
+
chainId?: number;
|
|
1702
|
+
/** @description How many tokens to return, 1–20. A larger value is a 400, not a silent clamp. */
|
|
1703
|
+
limit?: number;
|
|
1704
|
+
};
|
|
1705
|
+
header?: never;
|
|
1706
|
+
path?: never;
|
|
1707
|
+
cookie?: never;
|
|
1708
|
+
};
|
|
1709
|
+
requestBody?: never;
|
|
1710
|
+
responses: {
|
|
1711
|
+
/** @description The matching tokens, best match first. */
|
|
1712
|
+
200: {
|
|
1713
|
+
headers: {
|
|
1714
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1715
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1716
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1717
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1718
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1719
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1720
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1721
|
+
Vary: components["headers"]["Vary"];
|
|
1722
|
+
[name: string]: unknown;
|
|
1723
|
+
};
|
|
1724
|
+
content: {
|
|
1725
|
+
"application/json": components["schemas"]["TokenSearch"];
|
|
1726
|
+
};
|
|
1727
|
+
};
|
|
1728
|
+
400: components["responses"]["BadRequest"];
|
|
1729
|
+
401: components["responses"]["Unauthorized"];
|
|
1730
|
+
403: components["responses"]["Forbidden"];
|
|
1731
|
+
429: components["responses"]["TooManyRequests"];
|
|
1732
|
+
503: components["responses"]["Unavailable"];
|
|
1733
|
+
};
|
|
1734
|
+
};
|
|
1735
|
+
"wallets.summary": {
|
|
1736
|
+
parameters: {
|
|
1737
|
+
query?: {
|
|
1738
|
+
/** @description Omit to sum every enabled chain. */
|
|
1739
|
+
chainId?: number;
|
|
1740
|
+
/** @description The only value served; anything else is a 400. */
|
|
1741
|
+
protocol?: "uniswap-v4";
|
|
1742
|
+
/** @description Open, closed, or both, as on `GET /v1/positions`. */
|
|
1743
|
+
status?: "active" | "inactive" | "all";
|
|
1744
|
+
/** @description Count positions with no reliable price, a zero value or an implausible APR / ROI, as `includeRisky` does on `GET /v1/positions` (closed positions are never held back by it). */
|
|
1745
|
+
includeRisky?: boolean;
|
|
1746
|
+
/** @description Floor on current underlying value, as on `GET /v1/positions`. */
|
|
1747
|
+
minValueUsd?: number;
|
|
1748
|
+
/** @description Floor on the pool's TVL, as on `GET /v1/positions`. */
|
|
1749
|
+
minPoolTvl?: number;
|
|
1750
|
+
};
|
|
1751
|
+
header?: never;
|
|
1752
|
+
path: {
|
|
1753
|
+
/** @description The wallet, `0x` plus 40 hex, any case. Anything else is a 400. */
|
|
1754
|
+
address: string;
|
|
1755
|
+
};
|
|
1756
|
+
cookie?: never;
|
|
1757
|
+
};
|
|
1758
|
+
requestBody?: never;
|
|
1759
|
+
responses: {
|
|
1760
|
+
/** @description The wallet's totals and per-chain split. */
|
|
1761
|
+
200: {
|
|
1762
|
+
headers: {
|
|
1763
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1764
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1765
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1766
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1767
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1768
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1769
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1770
|
+
Vary: components["headers"]["Vary"];
|
|
1771
|
+
[name: string]: unknown;
|
|
1772
|
+
};
|
|
1773
|
+
content: {
|
|
1774
|
+
"application/json": components["schemas"]["WalletSummary"];
|
|
1775
|
+
};
|
|
1776
|
+
};
|
|
1777
|
+
400: components["responses"]["BadRequest"];
|
|
1778
|
+
401: components["responses"]["Unauthorized"];
|
|
1779
|
+
403: components["responses"]["Forbidden"];
|
|
1780
|
+
429: components["responses"]["TooManyRequests"];
|
|
1781
|
+
503: components["responses"]["Unavailable"];
|
|
1782
|
+
};
|
|
1783
|
+
};
|
|
1784
|
+
"hooks.list": {
|
|
1785
|
+
parameters: {
|
|
1786
|
+
query?: {
|
|
1787
|
+
/** @description Omit to merge every enabled chain into one ranking (not Ethereum). */
|
|
1788
|
+
chainId?: number;
|
|
1789
|
+
/** @description The only value served; anything else is a 400. */
|
|
1790
|
+
protocol?: "uniswap-v4";
|
|
1791
|
+
/** @description Descending: `tvl`, `volume` (24 h), `fees` (24 h) or `pools` (listed pools). Ties by address. */
|
|
1792
|
+
sort?: "tvl" | "volume" | "fees" | "pools";
|
|
1793
|
+
/** @description 1-based. */
|
|
1794
|
+
page?: number;
|
|
1795
|
+
/** @description 1–100. A larger value is a 400, not a silent clamp. */
|
|
1796
|
+
limit?: number;
|
|
1797
|
+
/** @description Only hooks whose listed pools hold at least this much TVL. */
|
|
1798
|
+
minTvlUsd?: number;
|
|
1799
|
+
/** @description `csv` returns the page as a CSV file (`text/csv`) instead of JSON: same filters, paging, unit cost and limit of 100 rows. Paging and flags come back as headers: `X-Page`, `X-Limit`, `X-Total-Count`, `X-Total-Pages`, `X-Has-More`, `X-Total-Capped`, `X-Partial`, `X-Missing-Chains`, `X-Stale`, `X-Data-As-Of`, `X-Counts-Pending`. Errors stay JSON. */
|
|
1800
|
+
format?: "json" | "csv";
|
|
1801
|
+
};
|
|
1802
|
+
header?: never;
|
|
1803
|
+
path?: never;
|
|
1804
|
+
cookie?: never;
|
|
1805
|
+
};
|
|
1806
|
+
requestBody?: never;
|
|
1807
|
+
responses: {
|
|
1808
|
+
/** @description A page of hooks. With `format=csv`, the same rows as CSV (`text/csv`), paging and flags in the `X-*` headers. */
|
|
1809
|
+
200: {
|
|
1810
|
+
headers: {
|
|
1811
|
+
"X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
|
|
1812
|
+
"X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
|
|
1813
|
+
"X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
|
|
1814
|
+
"X-Quota-Limit": components["headers"]["XQuotaLimit"];
|
|
1815
|
+
"X-Quota-Remaining": components["headers"]["XQuotaRemaining"];
|
|
1816
|
+
"X-Quota-Reset": components["headers"]["XQuotaReset"];
|
|
1817
|
+
"Cache-Control": components["headers"]["CacheControl"];
|
|
1818
|
+
Vary: components["headers"]["Vary"];
|
|
1819
|
+
"Content-Disposition": components["headers"]["ContentDisposition"];
|
|
1820
|
+
"X-Page": components["headers"]["XPage"];
|
|
1821
|
+
"X-Limit": components["headers"]["XLimit"];
|
|
1822
|
+
"X-Total-Count": components["headers"]["XTotalCount"];
|
|
1823
|
+
"X-Total-Pages": components["headers"]["XTotalPages"];
|
|
1824
|
+
"X-Has-More": components["headers"]["XHasMore"];
|
|
1825
|
+
"X-Total-Capped": components["headers"]["XTotalCapped"];
|
|
1826
|
+
"X-Partial": components["headers"]["XPartial"];
|
|
1827
|
+
"X-Missing-Chains": components["headers"]["XMissingChains"];
|
|
1828
|
+
"X-Stale": components["headers"]["XStale"];
|
|
1829
|
+
"X-Data-As-Of": components["headers"]["XDataAsOf"];
|
|
1830
|
+
"X-Counts-Pending": components["headers"]["XCountsPending"];
|
|
1831
|
+
[name: string]: unknown;
|
|
1832
|
+
};
|
|
1833
|
+
content: {
|
|
1834
|
+
"application/json": components["schemas"]["HookList"];
|
|
1835
|
+
/**
|
|
1836
|
+
* @example rank,chainId,protocol,address,name,nameSource,tags,permissions
|
|
1837
|
+
* 1,1,uniswap-v4,0x0000000000000000000000000000000000000080,,,swap,beforeSwap
|
|
1838
|
+
*/
|
|
1839
|
+
"text/csv": string;
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1842
|
+
400: components["responses"]["BadRequest"];
|
|
1843
|
+
401: components["responses"]["Unauthorized"];
|
|
1844
|
+
403: components["responses"]["Forbidden"];
|
|
1845
|
+
429: components["responses"]["TooManyRequests"];
|
|
1846
|
+
503: components["responses"]["Unavailable"];
|
|
1847
|
+
};
|
|
1848
|
+
};
|
|
1849
|
+
chains: {
|
|
1850
|
+
parameters: {
|
|
1851
|
+
query?: never;
|
|
1852
|
+
header?: never;
|
|
1853
|
+
path?: never;
|
|
1854
|
+
cookie?: never;
|
|
1855
|
+
};
|
|
1856
|
+
requestBody?: never;
|
|
1857
|
+
responses: {
|
|
1858
|
+
/** @description Supported chains. */
|
|
1859
|
+
200: {
|
|
1860
|
+
headers: {
|
|
1861
|
+
[name: string]: unknown;
|
|
1862
|
+
};
|
|
1863
|
+
content: {
|
|
1864
|
+
"application/json": components["schemas"]["Chain"][];
|
|
1865
|
+
};
|
|
1866
|
+
};
|
|
1867
|
+
};
|
|
1868
|
+
};
|
|
1869
|
+
protocols: {
|
|
1870
|
+
parameters: {
|
|
1871
|
+
query?: never;
|
|
1872
|
+
header?: never;
|
|
1873
|
+
path?: never;
|
|
1874
|
+
cookie?: never;
|
|
1875
|
+
};
|
|
1876
|
+
requestBody?: never;
|
|
1877
|
+
responses: {
|
|
1878
|
+
/** @description Supported protocols. */
|
|
1879
|
+
200: {
|
|
1880
|
+
headers: {
|
|
1881
|
+
[name: string]: unknown;
|
|
1882
|
+
};
|
|
1883
|
+
content: {
|
|
1884
|
+
"application/json": components["schemas"]["Protocol"][];
|
|
1885
|
+
};
|
|
1886
|
+
};
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1889
|
+
plans: {
|
|
1890
|
+
parameters: {
|
|
1891
|
+
query?: never;
|
|
1892
|
+
header?: never;
|
|
1893
|
+
path?: never;
|
|
1894
|
+
cookie?: never;
|
|
1895
|
+
};
|
|
1896
|
+
requestBody?: never;
|
|
1897
|
+
responses: {
|
|
1898
|
+
/** @description Public plans. */
|
|
1899
|
+
200: {
|
|
1900
|
+
headers: {
|
|
1901
|
+
[name: string]: unknown;
|
|
1902
|
+
};
|
|
1903
|
+
content: {
|
|
1904
|
+
"application/json": components["schemas"]["PlanList"];
|
|
1905
|
+
};
|
|
1906
|
+
};
|
|
1907
|
+
};
|
|
1908
|
+
};
|
|
1909
|
+
"pricing.units": {
|
|
1910
|
+
parameters: {
|
|
1911
|
+
query?: never;
|
|
1912
|
+
header?: never;
|
|
1913
|
+
path?: never;
|
|
1914
|
+
cookie?: never;
|
|
1915
|
+
};
|
|
1916
|
+
requestBody?: never;
|
|
1917
|
+
responses: {
|
|
1918
|
+
/** @description Unit cost per route. */
|
|
1919
|
+
200: {
|
|
1920
|
+
headers: {
|
|
1921
|
+
[name: string]: unknown;
|
|
1922
|
+
};
|
|
1923
|
+
content: {
|
|
1924
|
+
"application/json": components["schemas"]["UnitCostList"];
|
|
1925
|
+
};
|
|
1926
|
+
};
|
|
1927
|
+
};
|
|
1928
|
+
};
|
|
1929
|
+
stats: {
|
|
1930
|
+
parameters: {
|
|
1931
|
+
query?: never;
|
|
1932
|
+
header?: never;
|
|
1933
|
+
path?: never;
|
|
1934
|
+
cookie?: never;
|
|
1935
|
+
};
|
|
1936
|
+
requestBody?: never;
|
|
1937
|
+
responses: {
|
|
1938
|
+
/** @description Corpus statistics. */
|
|
1939
|
+
200: {
|
|
1940
|
+
headers: {
|
|
1941
|
+
[name: string]: unknown;
|
|
1942
|
+
};
|
|
1943
|
+
content: {
|
|
1944
|
+
"application/json": components["schemas"]["Stats"];
|
|
1945
|
+
};
|
|
1946
|
+
};
|
|
1947
|
+
};
|
|
1948
|
+
};
|
|
1949
|
+
}
|