@tapline/client 0.1.0 → 0.2.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 +7 -3
- package/dist/cjs/client.d.ts +2 -0
- package/dist/cjs/client.d.ts.map +1 -1
- package/dist/cjs/client.js +3 -0
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/geckoterminal/client.d.ts +63 -0
- package/dist/cjs/services/geckoterminal/client.d.ts.map +1 -0
- package/dist/cjs/services/geckoterminal/client.js +139 -0
- package/dist/cjs/services/geckoterminal/client.js.map +1 -0
- package/dist/cjs/services/geckoterminal/index.d.ts +3 -0
- package/dist/cjs/services/geckoterminal/index.d.ts.map +1 -0
- package/dist/cjs/services/geckoterminal/index.js +22 -0
- package/dist/cjs/services/geckoterminal/index.js.map +1 -0
- package/dist/cjs/services/geckoterminal/types.d.ts +1453 -0
- package/dist/cjs/services/geckoterminal/types.d.ts.map +1 -0
- package/dist/cjs/services/geckoterminal/types.js +4 -0
- package/dist/cjs/services/geckoterminal/types.js.map +1 -0
- package/dist/cjs/services/gmgn/client.d.ts +61 -61
- package/dist/cjs/services/gmgn/client.d.ts.map +1 -1
- package/dist/cjs/services/gmgn/client.js +61 -61
- package/dist/cjs/services/gmgn/client.js.map +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/services/geckoterminal/client.d.ts +63 -0
- package/dist/services/geckoterminal/client.d.ts.map +1 -0
- package/dist/services/geckoterminal/client.js +135 -0
- package/dist/services/geckoterminal/client.js.map +1 -0
- package/dist/services/geckoterminal/index.d.ts +3 -0
- package/dist/services/geckoterminal/index.d.ts.map +1 -0
- package/dist/services/geckoterminal/index.js +4 -0
- package/dist/services/geckoterminal/index.js.map +1 -0
- package/dist/services/geckoterminal/types.d.ts +1453 -0
- package/dist/services/geckoterminal/types.d.ts.map +1 -0
- package/dist/services/geckoterminal/types.js +3 -0
- package/dist/services/geckoterminal/types.js.map +1 -0
- package/dist/services/gmgn/client.d.ts +61 -61
- package/dist/services/gmgn/client.d.ts.map +1 -1
- package/dist/services/gmgn/client.js +61 -61
- package/dist/services/gmgn/client.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1453 @@
|
|
|
1
|
+
export type CandlestickCurrency = "usd" | "token";
|
|
2
|
+
export type CandlestickResolution = "1" | "5" | "15" | "60" | "120" | "240" | "720" | "1D";
|
|
3
|
+
export interface CandlesticksParams {
|
|
4
|
+
/** Denomination of the bar prices. */
|
|
5
|
+
currency?: CandlestickCurrency;
|
|
6
|
+
/** Unix timestamp for the start of the window. */
|
|
7
|
+
from_timestamp: number;
|
|
8
|
+
/** Quote bars in the other token of the pair. */
|
|
9
|
+
is_inverted?: boolean;
|
|
10
|
+
/** GeckoTerminal numeric pair id, from the pool's `pairs` relationship. */
|
|
11
|
+
pair_id: string;
|
|
12
|
+
/** GeckoTerminal numeric pool id, as returned in a pool resource's `id`. */
|
|
13
|
+
pool_id: string;
|
|
14
|
+
/** Bar width in minutes, or `1D`. */
|
|
15
|
+
resolution?: CandlestickResolution;
|
|
16
|
+
/** Unix timestamp for the end of the window. */
|
|
17
|
+
to_timestamp: number;
|
|
18
|
+
}
|
|
19
|
+
export interface CandlesticksResponse {
|
|
20
|
+
data: CandlesticksResponseData[];
|
|
21
|
+
meta: Record<string, string>;
|
|
22
|
+
}
|
|
23
|
+
export interface CandlesticksResponseData {
|
|
24
|
+
c: number;
|
|
25
|
+
dt: string;
|
|
26
|
+
h: number;
|
|
27
|
+
l: number;
|
|
28
|
+
o: number;
|
|
29
|
+
v: number;
|
|
30
|
+
}
|
|
31
|
+
export interface DexAttributes {
|
|
32
|
+
analytics_pool_page_url?: string | null;
|
|
33
|
+
analytics_token_page_url?: string | null;
|
|
34
|
+
identifier?: string;
|
|
35
|
+
image_url: string;
|
|
36
|
+
is_bonding_curve?: boolean;
|
|
37
|
+
is_launchpad?: boolean;
|
|
38
|
+
name: string;
|
|
39
|
+
no_reserves?: boolean;
|
|
40
|
+
url?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface DexLinkServiceAttributes {
|
|
43
|
+
category: string;
|
|
44
|
+
image_url: string;
|
|
45
|
+
name: string;
|
|
46
|
+
priority: number | null;
|
|
47
|
+
sub_category: string;
|
|
48
|
+
url: string;
|
|
49
|
+
}
|
|
50
|
+
export interface DexLinkServiceResource {
|
|
51
|
+
attributes: DexLinkServiceAttributes;
|
|
52
|
+
id: string;
|
|
53
|
+
type: string;
|
|
54
|
+
}
|
|
55
|
+
export interface DexMetricAttributes {
|
|
56
|
+
pools_count: number;
|
|
57
|
+
rank_by_volume: number | null;
|
|
58
|
+
reserve_in_usd: string;
|
|
59
|
+
swap_count_24h: number;
|
|
60
|
+
swap_volume_percent_change_24h: number | string;
|
|
61
|
+
swap_volume_usd_24h: string;
|
|
62
|
+
swap_volume_usd_48h_24h: string;
|
|
63
|
+
tokens_count: number;
|
|
64
|
+
}
|
|
65
|
+
export interface DexMetricResource {
|
|
66
|
+
attributes: DexMetricAttributes;
|
|
67
|
+
id: string;
|
|
68
|
+
type: string;
|
|
69
|
+
}
|
|
70
|
+
export interface DexRelationships {
|
|
71
|
+
dex_metric?: ResourceLinkage;
|
|
72
|
+
network: ResourceLinkage;
|
|
73
|
+
}
|
|
74
|
+
export interface DexResource {
|
|
75
|
+
attributes: DexAttributes;
|
|
76
|
+
id: string;
|
|
77
|
+
relationships: DexRelationships;
|
|
78
|
+
type: string;
|
|
79
|
+
}
|
|
80
|
+
export interface DexesParams {
|
|
81
|
+
/** Restrict results to one network identifier. */
|
|
82
|
+
network?: string | null;
|
|
83
|
+
/** 1-based result page. */
|
|
84
|
+
page?: number | null;
|
|
85
|
+
}
|
|
86
|
+
export interface DexesResponse {
|
|
87
|
+
data: DexResource[];
|
|
88
|
+
included: (DexMetricResource | NetworkResource)[];
|
|
89
|
+
links: DexesResponseLinks;
|
|
90
|
+
}
|
|
91
|
+
export interface DexesResponseLinks {
|
|
92
|
+
first: string;
|
|
93
|
+
last: DexesResponseLinksLast;
|
|
94
|
+
next: string | null;
|
|
95
|
+
prev: string | null;
|
|
96
|
+
}
|
|
97
|
+
export interface DexesResponseLinksLast {
|
|
98
|
+
href: string;
|
|
99
|
+
meta: DexesResponseLinksLastMeta;
|
|
100
|
+
}
|
|
101
|
+
export interface DexesResponseLinksLastMeta {
|
|
102
|
+
series: string[];
|
|
103
|
+
}
|
|
104
|
+
export interface ErrorDetail {
|
|
105
|
+
ctx?: Record<string, unknown> | null;
|
|
106
|
+
input?: unknown | null;
|
|
107
|
+
loc?: (string | number)[] | null;
|
|
108
|
+
msg?: string | null;
|
|
109
|
+
type?: string | null;
|
|
110
|
+
}
|
|
111
|
+
export interface ErrorResponse {
|
|
112
|
+
code: PublicError;
|
|
113
|
+
details?: ErrorDetail[] | null;
|
|
114
|
+
domain?: string | null;
|
|
115
|
+
message: string;
|
|
116
|
+
request_id: string;
|
|
117
|
+
}
|
|
118
|
+
export interface ExplorerAttributes {
|
|
119
|
+
coin_url: string;
|
|
120
|
+
holders_url: string;
|
|
121
|
+
logo_url: string;
|
|
122
|
+
name: string;
|
|
123
|
+
rank: number | null;
|
|
124
|
+
tx_url: string;
|
|
125
|
+
url: string;
|
|
126
|
+
}
|
|
127
|
+
export interface ExplorerResource {
|
|
128
|
+
attributes: ExplorerAttributes;
|
|
129
|
+
id: string;
|
|
130
|
+
type: string;
|
|
131
|
+
}
|
|
132
|
+
export interface GlobalStatAttributes {
|
|
133
|
+
dexes_count: number;
|
|
134
|
+
eth_gas_oracle: GlobalStatAttributesEthGasOracle;
|
|
135
|
+
fng_stats: GlobalStatAttributesFngStats;
|
|
136
|
+
networks_count: number;
|
|
137
|
+
pools_count: number;
|
|
138
|
+
tokens_count: number;
|
|
139
|
+
}
|
|
140
|
+
export interface GlobalStatAttributesEthGasOracle {
|
|
141
|
+
fast_gas_price: number;
|
|
142
|
+
gas_used_ratio: string;
|
|
143
|
+
last_block: number;
|
|
144
|
+
propose_gas_price: number;
|
|
145
|
+
safe_gas_price: number;
|
|
146
|
+
suggest_base_fee: number;
|
|
147
|
+
updated_at: string;
|
|
148
|
+
}
|
|
149
|
+
export interface GlobalStatAttributesFngStats {
|
|
150
|
+
next_update_at: string;
|
|
151
|
+
value: number;
|
|
152
|
+
value_classification: string;
|
|
153
|
+
}
|
|
154
|
+
export interface GlobalStatResource {
|
|
155
|
+
attributes: GlobalStatAttributes;
|
|
156
|
+
id: string;
|
|
157
|
+
type: string;
|
|
158
|
+
}
|
|
159
|
+
export interface GlobalStatsResponse {
|
|
160
|
+
data: GlobalStatResource;
|
|
161
|
+
}
|
|
162
|
+
export type HolderHistoryPeriod = "1W" | "1M" | "all";
|
|
163
|
+
export interface LatestPoolsParams {
|
|
164
|
+
/** 1-based result page. */
|
|
165
|
+
page?: number;
|
|
166
|
+
/** Only include pools created within this many hours. */
|
|
167
|
+
pool_creation_hours_ago_lte?: number;
|
|
168
|
+
}
|
|
169
|
+
export interface LatestPoolsResponse {
|
|
170
|
+
data: PoolResource[];
|
|
171
|
+
included: (DexResource | NetworkResource | PoolMetricResource | TokenResource)[];
|
|
172
|
+
links: LatestPoolsResponseLinks;
|
|
173
|
+
meta: LatestPoolsResponseMeta;
|
|
174
|
+
}
|
|
175
|
+
export interface LatestPoolsResponseLinks {
|
|
176
|
+
first: string;
|
|
177
|
+
last: LatestPoolsResponseLinksLast;
|
|
178
|
+
next: string | null;
|
|
179
|
+
prev: string | null;
|
|
180
|
+
}
|
|
181
|
+
export interface LatestPoolsResponseLinksLast {
|
|
182
|
+
meta: LatestPoolsResponseLinksLastMeta;
|
|
183
|
+
}
|
|
184
|
+
export interface LatestPoolsResponseLinksLastMeta {
|
|
185
|
+
series: (number | string)[];
|
|
186
|
+
}
|
|
187
|
+
export interface LatestPoolsResponseMeta {
|
|
188
|
+
sort: string;
|
|
189
|
+
}
|
|
190
|
+
export interface NetworkAttributes {
|
|
191
|
+
cg_network_id?: string | null;
|
|
192
|
+
chain_id?: number | null;
|
|
193
|
+
explorer_coin_url?: string;
|
|
194
|
+
explorer_logo_url?: string;
|
|
195
|
+
explorer_tx_url?: string;
|
|
196
|
+
explorer_url?: string;
|
|
197
|
+
identifier: string;
|
|
198
|
+
image_url?: string;
|
|
199
|
+
is_new?: boolean;
|
|
200
|
+
name?: string;
|
|
201
|
+
native_currency_address?: string;
|
|
202
|
+
native_currency_symbol?: string;
|
|
203
|
+
pool_reserve_threshold?: string;
|
|
204
|
+
supports_top_holders?: boolean;
|
|
205
|
+
}
|
|
206
|
+
export interface NetworkLatestPoolsParams {
|
|
207
|
+
/** GeckoTerminal network identifier. */
|
|
208
|
+
network: string;
|
|
209
|
+
/** 1-based result page. */
|
|
210
|
+
page?: number;
|
|
211
|
+
/** Only include pools created within this many hours. */
|
|
212
|
+
pool_creation_hours_ago_lte?: number;
|
|
213
|
+
}
|
|
214
|
+
export interface NetworkLatestPoolsResponse {
|
|
215
|
+
data: PoolResource[];
|
|
216
|
+
included: (DexResource | NetworkResource | PoolMetricResource | TokenResource)[];
|
|
217
|
+
links: LatestPoolsResponseLinks;
|
|
218
|
+
meta: NetworkLatestPoolsResponseMeta;
|
|
219
|
+
}
|
|
220
|
+
export interface NetworkLatestPoolsResponseMeta {
|
|
221
|
+
network: string;
|
|
222
|
+
sort: string;
|
|
223
|
+
}
|
|
224
|
+
export interface NetworkLinkServiceAttributes {
|
|
225
|
+
category: string;
|
|
226
|
+
image_url: string;
|
|
227
|
+
name: string;
|
|
228
|
+
priority: number | null;
|
|
229
|
+
sub_category: string | null;
|
|
230
|
+
url: string;
|
|
231
|
+
}
|
|
232
|
+
export interface NetworkLinkServiceResource {
|
|
233
|
+
attributes: NetworkLinkServiceAttributes;
|
|
234
|
+
id: string;
|
|
235
|
+
type: string;
|
|
236
|
+
}
|
|
237
|
+
export interface NetworkMetricAttributes {
|
|
238
|
+
dexes_count?: number;
|
|
239
|
+
latest_pools_count: number;
|
|
240
|
+
pools_count?: number;
|
|
241
|
+
rank_by_liquidity?: number;
|
|
242
|
+
reserve_in_usd?: string;
|
|
243
|
+
swap_count_24h?: number;
|
|
244
|
+
swap_volume_percent_change_24h?: string;
|
|
245
|
+
swap_volume_usd_24h?: string;
|
|
246
|
+
swap_volume_usd_48h_24h?: string;
|
|
247
|
+
tokens_count?: number;
|
|
248
|
+
trending_pools_count?: number;
|
|
249
|
+
}
|
|
250
|
+
export interface NetworkMetricResource {
|
|
251
|
+
attributes: NetworkMetricAttributes;
|
|
252
|
+
id: string;
|
|
253
|
+
type: string;
|
|
254
|
+
}
|
|
255
|
+
export interface NetworkPoolScreenerRequest {
|
|
256
|
+
/** Buy tax percentage. */
|
|
257
|
+
buy_tax?: RangeFilter | null;
|
|
258
|
+
/** Buy count over the chosen window. */
|
|
259
|
+
buys?: TimeframedRangeFilter | null;
|
|
260
|
+
/** Restrict to a single DEX on this network, by identifier. */
|
|
261
|
+
dex?: string | null;
|
|
262
|
+
/** Restrict to these DEX identifiers. */
|
|
263
|
+
dexes?: string[] | null;
|
|
264
|
+
/** Fully diluted valuation in USD. */
|
|
265
|
+
fdv_in_usd?: RangeFilter | null;
|
|
266
|
+
/** Only pools above GeckoTerminal's GT score threshold. */
|
|
267
|
+
good_gt_score?: boolean | null;
|
|
268
|
+
/** Only pools whose token declares social links. */
|
|
269
|
+
has_social?: boolean | null;
|
|
270
|
+
/** Number of token holders. */
|
|
271
|
+
holder_count?: RangeFilter | null;
|
|
272
|
+
/** Pool liquidity in USD. */
|
|
273
|
+
liquidity?: RangeFilter | null;
|
|
274
|
+
/** Market cap in USD. */
|
|
275
|
+
mc_in_usd?: RangeFilter | null;
|
|
276
|
+
/** Restrict to these network identifiers. */
|
|
277
|
+
networks?: string[] | null;
|
|
278
|
+
/** Exclude tokens flagged as honeypots. */
|
|
279
|
+
no_honeypot?: boolean | null;
|
|
280
|
+
/** Only pools whose token is listed on CoinGecko. */
|
|
281
|
+
on_coingecko?: boolean | null;
|
|
282
|
+
/** 1-based result page. */
|
|
283
|
+
page?: number;
|
|
284
|
+
/** Pool age in hours. */
|
|
285
|
+
pool_creation_hours_ago?: RangeFilter | null;
|
|
286
|
+
/** Sell tax percentage. */
|
|
287
|
+
sell_tax?: RangeFilter | null;
|
|
288
|
+
/** Sell count over the chosen window. */
|
|
289
|
+
sells?: TimeframedRangeFilter | null;
|
|
290
|
+
/** Ranking applied before pagination. Omit for GeckoTerminal's default. */
|
|
291
|
+
sort?: PoolSort | null;
|
|
292
|
+
/** Share of supply held by the ten largest holders. */
|
|
293
|
+
top_10_holders_percentage?: RangeFilter | null;
|
|
294
|
+
/** Transaction count over the chosen window. */
|
|
295
|
+
tx_count?: TimeframedRangeFilter | null;
|
|
296
|
+
/** 24h traded volume in USD. */
|
|
297
|
+
volume_24h?: RangeFilter | null;
|
|
298
|
+
}
|
|
299
|
+
export interface NetworkPoolsParams {
|
|
300
|
+
/** GeckoTerminal network identifier. */
|
|
301
|
+
network: string;
|
|
302
|
+
}
|
|
303
|
+
export interface NetworkPoolsResponse {
|
|
304
|
+
data: PoolResource[];
|
|
305
|
+
included: (DexMetricResource | DexResource | NetworkResource | TokenResource)[];
|
|
306
|
+
links: LatestPoolsResponseLinks;
|
|
307
|
+
meta: LatestPoolsResponseMeta;
|
|
308
|
+
}
|
|
309
|
+
export interface NetworkRankingsParams {
|
|
310
|
+
/** 1-based result page. */
|
|
311
|
+
page?: number;
|
|
312
|
+
}
|
|
313
|
+
export interface NetworkRankingsResponse {
|
|
314
|
+
data: NetworkResource[];
|
|
315
|
+
included: NetworkMetricResource[];
|
|
316
|
+
links: LatestPoolsResponseLinks;
|
|
317
|
+
}
|
|
318
|
+
export interface NetworkRelationships {
|
|
319
|
+
explorers?: ResourceLinkageList;
|
|
320
|
+
network_metric?: ResourceLinkage;
|
|
321
|
+
}
|
|
322
|
+
export interface NetworkResource {
|
|
323
|
+
attributes: NetworkAttributes;
|
|
324
|
+
id: string;
|
|
325
|
+
relationships: NetworkRelationships;
|
|
326
|
+
type: string;
|
|
327
|
+
}
|
|
328
|
+
export interface NetworksParams {
|
|
329
|
+
/** Ordering applied to the chain list, e.g. `-24h_volume`. */
|
|
330
|
+
sort?: string | null;
|
|
331
|
+
}
|
|
332
|
+
export interface NetworksResponse {
|
|
333
|
+
data: NetworkResource[];
|
|
334
|
+
}
|
|
335
|
+
export interface PairAttributes {
|
|
336
|
+
base_address: string;
|
|
337
|
+
base_name: string;
|
|
338
|
+
base_price_in_currency: string;
|
|
339
|
+
base_price_in_quote: string;
|
|
340
|
+
base_price_in_usd: string;
|
|
341
|
+
base_price_in_usd_percent_change: number;
|
|
342
|
+
base_symbol: string;
|
|
343
|
+
base_token_id: string;
|
|
344
|
+
data_24h: PairAttributesData24h;
|
|
345
|
+
name: string;
|
|
346
|
+
price_change_data: PairAttributesPriceChangeData;
|
|
347
|
+
quote_address: string;
|
|
348
|
+
quote_name: string;
|
|
349
|
+
quote_price_in_base: string;
|
|
350
|
+
quote_price_in_currency: string;
|
|
351
|
+
quote_price_in_usd: string;
|
|
352
|
+
quote_price_in_usd_percent_change: number;
|
|
353
|
+
quote_symbol: string;
|
|
354
|
+
quote_token_id: string;
|
|
355
|
+
swap_count: number;
|
|
356
|
+
transaction_data: PairAttributesTransactionData;
|
|
357
|
+
volume_data: PairAttributesVolumeData;
|
|
358
|
+
volume_in_currency: string;
|
|
359
|
+
volume_in_usd: string;
|
|
360
|
+
}
|
|
361
|
+
export interface PairAttributesData24h {
|
|
362
|
+
buys: number;
|
|
363
|
+
sells: number;
|
|
364
|
+
total_in_usd: number;
|
|
365
|
+
}
|
|
366
|
+
export interface PairAttributesPriceChangeData {
|
|
367
|
+
last_172800_s: PairAttributesPriceChangeDataEntry;
|
|
368
|
+
last_1800_s: PairAttributesPriceChangeDataEntry;
|
|
369
|
+
last_21600_s: PairAttributesPriceChangeDataEntry;
|
|
370
|
+
last_300_s: PairAttributesPriceChangeDataEntry;
|
|
371
|
+
last_3600_s: PairAttributesPriceChangeDataEntry;
|
|
372
|
+
last_43200_s: PairAttributesPriceChangeDataEntry;
|
|
373
|
+
last_7200_s: PairAttributesPriceChangeDataEntry;
|
|
374
|
+
last_86400_s: PairAttributesPriceChangeDataEntry;
|
|
375
|
+
last_900_s: PairAttributesPriceChangeDataEntry;
|
|
376
|
+
}
|
|
377
|
+
export interface PairAttributesPriceChangeDataEntry {
|
|
378
|
+
base_token_percentage: number;
|
|
379
|
+
base_token_usd: number;
|
|
380
|
+
prices: PairAttributesPriceChangeDataEntryPrices;
|
|
381
|
+
quote_token_percentage: number;
|
|
382
|
+
quote_token_usd: number;
|
|
383
|
+
}
|
|
384
|
+
export interface PairAttributesPriceChangeDataEntryPrices {
|
|
385
|
+
base_token_high_price_in_usd?: number;
|
|
386
|
+
base_token_high_price_timestamp?: string;
|
|
387
|
+
base_token_last_price_in_usd?: number;
|
|
388
|
+
base_token_low_price_in_usd?: number;
|
|
389
|
+
base_token_low_price_timestamp?: string;
|
|
390
|
+
base_token_start_price_in_usd?: number;
|
|
391
|
+
quote_token_high_price_in_usd?: number;
|
|
392
|
+
quote_token_high_price_timestamp?: string;
|
|
393
|
+
quote_token_last_price_in_usd?: number;
|
|
394
|
+
quote_token_low_price_in_usd?: number;
|
|
395
|
+
quote_token_low_price_timestamp?: string;
|
|
396
|
+
quote_token_start_price_in_usd?: number;
|
|
397
|
+
}
|
|
398
|
+
export interface PairAttributesTransactionData {
|
|
399
|
+
last_172800_s: PairAttributesTransactionDataEntry;
|
|
400
|
+
last_1800_s: PairAttributesTransactionDataEntry;
|
|
401
|
+
last_21600_s: PairAttributesTransactionDataEntry;
|
|
402
|
+
last_300_s: PairAttributesTransactionDataEntry;
|
|
403
|
+
last_3600_s: PairAttributesTransactionDataEntry;
|
|
404
|
+
last_43200_s: PairAttributesTransactionDataEntry;
|
|
405
|
+
last_7200_s: PairAttributesTransactionDataEntry;
|
|
406
|
+
last_86400_s: PairAttributesTransactionDataEntry;
|
|
407
|
+
last_900_s: PairAttributesTransactionDataEntry;
|
|
408
|
+
}
|
|
409
|
+
export interface PairAttributesTransactionDataEntry {
|
|
410
|
+
buys: number;
|
|
411
|
+
sells: number;
|
|
412
|
+
}
|
|
413
|
+
export interface PairAttributesVolumeData {
|
|
414
|
+
last_172800_s: PairAttributesVolumeDataEntry;
|
|
415
|
+
last_1800_s: PairAttributesVolumeDataEntry;
|
|
416
|
+
last_21600_s: PairAttributesVolumeDataEntry;
|
|
417
|
+
last_300_s: PairAttributesVolumeDataEntry;
|
|
418
|
+
last_3600_s: PairAttributesVolumeDataEntry;
|
|
419
|
+
last_43200_s: PairAttributesVolumeDataEntry;
|
|
420
|
+
last_7200_s: PairAttributesVolumeDataEntry;
|
|
421
|
+
last_86400_s: PairAttributesVolumeDataEntry;
|
|
422
|
+
last_900_s: PairAttributesVolumeDataEntry;
|
|
423
|
+
}
|
|
424
|
+
export interface PairAttributesVolumeDataEntry {
|
|
425
|
+
buys_in_currency_token: number;
|
|
426
|
+
buys_in_usd: number;
|
|
427
|
+
sells_in_currency_token: number;
|
|
428
|
+
sells_in_usd: number;
|
|
429
|
+
total_in_base_token: number;
|
|
430
|
+
total_in_currency_token: number;
|
|
431
|
+
total_in_quote_token: number;
|
|
432
|
+
total_in_usd: number;
|
|
433
|
+
}
|
|
434
|
+
export interface PairRelationships {
|
|
435
|
+
pool: ResourceLinkage;
|
|
436
|
+
}
|
|
437
|
+
export interface PairResource {
|
|
438
|
+
attributes: PairAttributes;
|
|
439
|
+
id: string;
|
|
440
|
+
relationships: PairRelationships;
|
|
441
|
+
type: string;
|
|
442
|
+
}
|
|
443
|
+
export interface PastTokensDeveloperDetailAttributes {
|
|
444
|
+
past_tokens: PastTokensDeveloperDetailAttributesPastTokens[] | string[];
|
|
445
|
+
past_tokens_count: number;
|
|
446
|
+
}
|
|
447
|
+
export interface PastTokensDeveloperDetailAttributesPastTokens {
|
|
448
|
+
address: string;
|
|
449
|
+
fdv_in_usd: number;
|
|
450
|
+
market_cap_in_usd: number | null;
|
|
451
|
+
name: string;
|
|
452
|
+
symbol: string;
|
|
453
|
+
token_image_url: string;
|
|
454
|
+
top_pool_address: string;
|
|
455
|
+
}
|
|
456
|
+
export interface PastTokensDeveloperDetailResource {
|
|
457
|
+
attributes: PastTokensDeveloperDetailAttributes;
|
|
458
|
+
id: string;
|
|
459
|
+
type: string;
|
|
460
|
+
}
|
|
461
|
+
export interface PoolAttributes {
|
|
462
|
+
address: string;
|
|
463
|
+
aggregated_network_metrics?: PoolAttributesAggregatedNetworkMetrics;
|
|
464
|
+
api_address?: string;
|
|
465
|
+
balancer_pool_id?: string | null;
|
|
466
|
+
base_token_id: string;
|
|
467
|
+
from_volume_in_usd?: string;
|
|
468
|
+
fully_diluted_valuation?: string;
|
|
469
|
+
graduated_pool_address?: string | null;
|
|
470
|
+
graduation_percentage?: number | null;
|
|
471
|
+
gt_score?: number;
|
|
472
|
+
gt_score_details?: PoolAttributesGtScoreDetails;
|
|
473
|
+
high_low_price_data_by_token_id?: Record<string, PoolAttributesHighLowPriceDataByTokenIdEntry>;
|
|
474
|
+
historical_data?: PoolAttributesHistoricalData;
|
|
475
|
+
holder_count?: number | null;
|
|
476
|
+
is_nsfw?: boolean;
|
|
477
|
+
is_pool_address_explorable?: boolean;
|
|
478
|
+
is_stale_pool?: boolean | null;
|
|
479
|
+
is_suspicious_chart?: boolean | null;
|
|
480
|
+
latest_swap_timestamp?: string;
|
|
481
|
+
name?: string;
|
|
482
|
+
net_volume_data_24h?: PoolAttributesNetVolumeData24h;
|
|
483
|
+
pool_created_at: string;
|
|
484
|
+
pool_fee?: string | null;
|
|
485
|
+
pool_reports_count?: number;
|
|
486
|
+
price_in_target_token?: string;
|
|
487
|
+
price_in_usd?: string;
|
|
488
|
+
price_percent_change: string | null;
|
|
489
|
+
price_percent_changes?: PoolAttributesPricePercentChanges;
|
|
490
|
+
price_sparkline_7d?: number[] | null;
|
|
491
|
+
reserve_in_usd?: string | null;
|
|
492
|
+
reserve_threshold_met?: boolean;
|
|
493
|
+
risk_flags?: string[];
|
|
494
|
+
security_indicators?: string[];
|
|
495
|
+
security_indicators_data?: PoolAttributesSecurityIndicatorsData;
|
|
496
|
+
sentiment_votes?: PoolAttributesSentimentVotes;
|
|
497
|
+
suggested_pools_by_liquidity?: PoolAttributesSuggestedPoolsByLiquidity;
|
|
498
|
+
swap_count_24h?: number;
|
|
499
|
+
swap_url?: string;
|
|
500
|
+
tagged_token_id?: string;
|
|
501
|
+
to_volume_in_usd?: string;
|
|
502
|
+
token_reserves?: Record<string, PoolAttributesTokenReservesEntry>;
|
|
503
|
+
token_value_data?: Record<string, PoolAttributesTokenValueDataEntry>;
|
|
504
|
+
token_weightages?: Record<string, string> | null;
|
|
505
|
+
trending_narrative?: string | null;
|
|
506
|
+
}
|
|
507
|
+
export interface PoolAttributesAggregatedNetworkMetrics {
|
|
508
|
+
total_swap_count_24h: number;
|
|
509
|
+
total_swap_volume_percent_change_24h: string;
|
|
510
|
+
total_swap_volume_usd_24h: string;
|
|
511
|
+
total_swap_volume_usd_48h_24h: string;
|
|
512
|
+
}
|
|
513
|
+
export interface PoolAttributesGtScoreDetails {
|
|
514
|
+
creation: number;
|
|
515
|
+
holders: number;
|
|
516
|
+
info: number;
|
|
517
|
+
pool: number;
|
|
518
|
+
transactions: number;
|
|
519
|
+
}
|
|
520
|
+
export interface PoolAttributesHighLowPriceDataByTokenIdEntry {
|
|
521
|
+
high_price_in_usd_24h: number;
|
|
522
|
+
high_price_timestamp_24h: string;
|
|
523
|
+
low_price_in_usd_24h: number;
|
|
524
|
+
low_price_timestamp_24h: string;
|
|
525
|
+
}
|
|
526
|
+
export interface PoolAttributesHistoricalData {
|
|
527
|
+
last_15m: PoolAttributesHistoricalDataEntry;
|
|
528
|
+
last_1h: PoolAttributesHistoricalDataEntry;
|
|
529
|
+
last_24h: PoolAttributesHistoricalDataEntry;
|
|
530
|
+
last_30m: PoolAttributesHistoricalDataEntry;
|
|
531
|
+
last_5m: PoolAttributesHistoricalDataEntry;
|
|
532
|
+
last_6h: PoolAttributesHistoricalDataEntry;
|
|
533
|
+
}
|
|
534
|
+
export interface PoolAttributesHistoricalDataEntry {
|
|
535
|
+
buy_swaps_count: number;
|
|
536
|
+
buy_volume_in_usd?: string;
|
|
537
|
+
buyers_count: number;
|
|
538
|
+
net_volume_in_usd?: string;
|
|
539
|
+
price_in_usd: string | null;
|
|
540
|
+
sell_swaps_count: number;
|
|
541
|
+
sell_volume_in_usd?: string;
|
|
542
|
+
sellers_count: number;
|
|
543
|
+
swaps_count: number;
|
|
544
|
+
volume_in_usd: string;
|
|
545
|
+
}
|
|
546
|
+
export interface PoolAttributesNetVolumeData24h {
|
|
547
|
+
buy_volume_in_usd: string;
|
|
548
|
+
net_volume_in_usd: string;
|
|
549
|
+
sell_volume_in_usd: string;
|
|
550
|
+
}
|
|
551
|
+
export interface PoolAttributesPricePercentChanges {
|
|
552
|
+
last_15m: string | null;
|
|
553
|
+
last_1h: string | null;
|
|
554
|
+
last_24h: string | null;
|
|
555
|
+
last_30m: string | null;
|
|
556
|
+
last_5m: string | null;
|
|
557
|
+
last_6h: string | null;
|
|
558
|
+
}
|
|
559
|
+
export interface PoolAttributesSecurityIndicatorsData {
|
|
560
|
+
bundler_percentage: number | null;
|
|
561
|
+
buy_tax: number | null;
|
|
562
|
+
cluster_percentage: number | null;
|
|
563
|
+
developer_holding_percentage: number | null;
|
|
564
|
+
early_buyers_percentage: number | null;
|
|
565
|
+
freezable: boolean | null;
|
|
566
|
+
gt_score: number | null;
|
|
567
|
+
holder_count: number | null;
|
|
568
|
+
honeypot: boolean | null;
|
|
569
|
+
is_liquidity_locked: boolean | null;
|
|
570
|
+
mintable: boolean | null;
|
|
571
|
+
pool_created_at: string;
|
|
572
|
+
sell_tax: number | null;
|
|
573
|
+
top_10_holders_percentage: number | null;
|
|
574
|
+
}
|
|
575
|
+
export interface PoolAttributesSentimentVotes {
|
|
576
|
+
down_percentage: number;
|
|
577
|
+
total: number;
|
|
578
|
+
up_percentage: number;
|
|
579
|
+
}
|
|
580
|
+
export interface PoolAttributesSuggestedPoolsByLiquidity {
|
|
581
|
+
by_base_token_address: string[];
|
|
582
|
+
by_base_token_symbol: PoolAttributesSuggestedPoolsByLiquidityByBaseTokenSymbol[];
|
|
583
|
+
}
|
|
584
|
+
export interface PoolAttributesSuggestedPoolsByLiquidityByBaseTokenSymbol {
|
|
585
|
+
address: string;
|
|
586
|
+
dex_identifier: string;
|
|
587
|
+
dex_name: string;
|
|
588
|
+
name: string;
|
|
589
|
+
network_identifier: string;
|
|
590
|
+
}
|
|
591
|
+
export interface PoolAttributesTokenReservesEntry {
|
|
592
|
+
reserves: string;
|
|
593
|
+
reserves_in_usd: number;
|
|
594
|
+
}
|
|
595
|
+
export interface PoolAttributesTokenValueDataEntry {
|
|
596
|
+
fdv_in_usd: number | null;
|
|
597
|
+
market_cap_in_usd: number | null;
|
|
598
|
+
market_cap_to_holders_ratio: number | null;
|
|
599
|
+
}
|
|
600
|
+
export type PoolFilterTimeframe = "5m" | "1h" | "6h" | "24h";
|
|
601
|
+
export interface PoolLockedLiquidityAttributes {
|
|
602
|
+
final_unlock_timestamp: string | null;
|
|
603
|
+
locked_percent: number;
|
|
604
|
+
next_unlock_percent: number | null;
|
|
605
|
+
next_unlock_timestamp: string | null;
|
|
606
|
+
source: string;
|
|
607
|
+
url: string;
|
|
608
|
+
}
|
|
609
|
+
export interface PoolLockedLiquidityResource {
|
|
610
|
+
attributes: PoolLockedLiquidityAttributes;
|
|
611
|
+
id: string;
|
|
612
|
+
type: string;
|
|
613
|
+
}
|
|
614
|
+
export interface PoolMetricAttributes {
|
|
615
|
+
currency_token_id: number;
|
|
616
|
+
currency_token_symbol: string;
|
|
617
|
+
dex_id: number;
|
|
618
|
+
from_token_address: string;
|
|
619
|
+
from_token_id: number;
|
|
620
|
+
from_token_name: string;
|
|
621
|
+
from_token_symbol: string;
|
|
622
|
+
from_volume: string;
|
|
623
|
+
from_volume_in_currency_token: string;
|
|
624
|
+
from_volume_in_usd: string;
|
|
625
|
+
historical_data: Record<string, PoolMetricAttributesHistoricalDataEntry>;
|
|
626
|
+
pool_id: number;
|
|
627
|
+
price: string;
|
|
628
|
+
reserve_in_currency_token: string;
|
|
629
|
+
reserve_in_usd: string;
|
|
630
|
+
swap_count_24h: number;
|
|
631
|
+
to_token_address: string;
|
|
632
|
+
to_token_id: number;
|
|
633
|
+
to_token_name: string;
|
|
634
|
+
to_token_symbol: string;
|
|
635
|
+
to_volume: string;
|
|
636
|
+
to_volume_in_currency_token: string;
|
|
637
|
+
to_volume_in_usd: string;
|
|
638
|
+
}
|
|
639
|
+
export interface PoolMetricAttributesHistoricalDataEntry {
|
|
640
|
+
last_172800_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
641
|
+
last_1800_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
642
|
+
last_21600_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
643
|
+
last_300_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
644
|
+
last_3600_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
645
|
+
last_43200_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
646
|
+
last_7200_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
647
|
+
last_86400_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
648
|
+
last_900_s: PoolMetricAttributesHistoricalDataEntryEntry;
|
|
649
|
+
}
|
|
650
|
+
export interface PoolMetricAttributesHistoricalDataEntryEntry {
|
|
651
|
+
buy_swaps_count: number;
|
|
652
|
+
buy_volume_in_usd: string;
|
|
653
|
+
buyers_count: number;
|
|
654
|
+
net_volume_in_usd: string;
|
|
655
|
+
price_in_usd: string | null;
|
|
656
|
+
sell_swaps_count: number;
|
|
657
|
+
sell_volume_in_usd: string;
|
|
658
|
+
sellers_count: number;
|
|
659
|
+
swaps_count: number;
|
|
660
|
+
volume_in_usd: string;
|
|
661
|
+
}
|
|
662
|
+
export interface PoolMetricResource {
|
|
663
|
+
attributes: PoolMetricAttributes;
|
|
664
|
+
id: string;
|
|
665
|
+
type: string;
|
|
666
|
+
}
|
|
667
|
+
export interface PoolParams {
|
|
668
|
+
/** On-chain pool address. */
|
|
669
|
+
address: string;
|
|
670
|
+
/** Index of the token to quote the pool in. */
|
|
671
|
+
base_token?: number;
|
|
672
|
+
/** GeckoTerminal network identifier. */
|
|
673
|
+
network: string;
|
|
674
|
+
}
|
|
675
|
+
export interface PoolRelatedPoolsParams {
|
|
676
|
+
/** On-chain pool address. */
|
|
677
|
+
address: string;
|
|
678
|
+
/** GeckoTerminal network identifier. */
|
|
679
|
+
network: string;
|
|
680
|
+
}
|
|
681
|
+
export interface PoolRelatedPoolsResponse {
|
|
682
|
+
data: RelatedPoolResource[];
|
|
683
|
+
included: (DexResource | NetworkResource | TokenResource)[];
|
|
684
|
+
}
|
|
685
|
+
export interface PoolRelationships {
|
|
686
|
+
dex?: ResourceLinkage;
|
|
687
|
+
pairs?: ResourceLinkageList;
|
|
688
|
+
pool_metric?: ResourceLinkage;
|
|
689
|
+
tokens: ResourceLinkageList;
|
|
690
|
+
}
|
|
691
|
+
export interface PoolResource {
|
|
692
|
+
attributes: PoolAttributes;
|
|
693
|
+
id: string;
|
|
694
|
+
relationships: PoolRelationships;
|
|
695
|
+
type: string;
|
|
696
|
+
}
|
|
697
|
+
export interface PoolResponse {
|
|
698
|
+
data: PoolResource;
|
|
699
|
+
included: (DexLinkServiceResource | DexResource | ExplorerResource | NetworkLinkServiceResource | NetworkResource | PairResource | PoolLockedLiquidityResource | TagResource | TokenDeveloperDetailResource | TokenResource | TokenSecurityMetricResource)[];
|
|
700
|
+
}
|
|
701
|
+
export interface PoolScreenerRequest {
|
|
702
|
+
/** Buy tax percentage. */
|
|
703
|
+
buy_tax?: RangeFilter | null;
|
|
704
|
+
/** Buy count over the chosen window. */
|
|
705
|
+
buys?: TimeframedRangeFilter | null;
|
|
706
|
+
/** Restrict to these DEX identifiers. */
|
|
707
|
+
dexes?: string[] | null;
|
|
708
|
+
/** Fully diluted valuation in USD. */
|
|
709
|
+
fdv_in_usd?: RangeFilter | null;
|
|
710
|
+
/** Only pools above GeckoTerminal's GT score threshold. */
|
|
711
|
+
good_gt_score?: boolean | null;
|
|
712
|
+
/** Only pools whose token declares social links. */
|
|
713
|
+
has_social?: boolean | null;
|
|
714
|
+
/** Number of token holders. */
|
|
715
|
+
holder_count?: RangeFilter | null;
|
|
716
|
+
/** Pool liquidity in USD. */
|
|
717
|
+
liquidity?: RangeFilter | null;
|
|
718
|
+
/** Market cap in USD. */
|
|
719
|
+
mc_in_usd?: RangeFilter | null;
|
|
720
|
+
/** Restrict to these network identifiers. */
|
|
721
|
+
networks?: string[] | null;
|
|
722
|
+
/** Exclude tokens flagged as honeypots. */
|
|
723
|
+
no_honeypot?: boolean | null;
|
|
724
|
+
/** Only pools whose token is listed on CoinGecko. */
|
|
725
|
+
on_coingecko?: boolean | null;
|
|
726
|
+
/** 1-based result page. */
|
|
727
|
+
page?: number;
|
|
728
|
+
/** Pool age in hours. */
|
|
729
|
+
pool_creation_hours_ago?: RangeFilter | null;
|
|
730
|
+
/** Sell tax percentage. */
|
|
731
|
+
sell_tax?: RangeFilter | null;
|
|
732
|
+
/** Sell count over the chosen window. */
|
|
733
|
+
sells?: TimeframedRangeFilter | null;
|
|
734
|
+
/** Ranking applied before pagination. Omit for GeckoTerminal's default. */
|
|
735
|
+
sort?: PoolSort | null;
|
|
736
|
+
/** Share of supply held by the ten largest holders. */
|
|
737
|
+
top_10_holders_percentage?: RangeFilter | null;
|
|
738
|
+
/** Transaction count over the chosen window. */
|
|
739
|
+
tx_count?: TimeframedRangeFilter | null;
|
|
740
|
+
/** 24h traded volume in USD. */
|
|
741
|
+
volume_24h?: RangeFilter | null;
|
|
742
|
+
}
|
|
743
|
+
export interface PoolSenderSwapsParams {
|
|
744
|
+
/** On-chain pool address. */
|
|
745
|
+
address: string;
|
|
746
|
+
/** Unix timestamp for the start of the window. */
|
|
747
|
+
from_timestamp: number;
|
|
748
|
+
/** Tag swaps made by the token's developer wallet. */
|
|
749
|
+
include_developer?: boolean;
|
|
750
|
+
/** Quote prices in the other token of the pair. */
|
|
751
|
+
inverted?: boolean;
|
|
752
|
+
/** GeckoTerminal network identifier. */
|
|
753
|
+
network: string;
|
|
754
|
+
/** Pair id from the pool's `pairs` relationship. */
|
|
755
|
+
pair_id: string;
|
|
756
|
+
/** Restrict swaps to one sender wallet address. */
|
|
757
|
+
sender?: string | null;
|
|
758
|
+
/** Unix timestamp for the end of the window. */
|
|
759
|
+
to_timestamp: number;
|
|
760
|
+
}
|
|
761
|
+
export interface PoolSenderSwapsResponse {
|
|
762
|
+
data: SenderSwapResource[];
|
|
763
|
+
}
|
|
764
|
+
export type PoolSort = "-5m_trend_score" | "-1h_trend_score" | "-6h_trend_score" | "-24h_trend_score" | "-24h_transactions" | "-24h_volume" | "-pool_creation_date" | "-24h_price_percent_change" | "-6h_price_percent_change" | "-1h_price_percent_change" | "-5m_price_percent_change" | "fdv" | "-fdv" | "liquidity" | "-liquidity" | "mc" | "-mc";
|
|
765
|
+
export interface PoolSwapsParams {
|
|
766
|
+
/** On-chain pool address. */
|
|
767
|
+
address: string;
|
|
768
|
+
/** Quote prices in the other token of the pair. */
|
|
769
|
+
inverted?: boolean;
|
|
770
|
+
/** GeckoTerminal network identifier. */
|
|
771
|
+
network: string;
|
|
772
|
+
/** Return swaps older than this cursor. */
|
|
773
|
+
page_after?: string | null;
|
|
774
|
+
/** Return swaps newer than this cursor. */
|
|
775
|
+
page_before?: string | null;
|
|
776
|
+
/** Pair id from the pool's `pairs` relationship. */
|
|
777
|
+
pair_id: string;
|
|
778
|
+
/** Restrict swaps to one sender wallet address. */
|
|
779
|
+
sender?: string | null;
|
|
780
|
+
}
|
|
781
|
+
export interface PoolSwapsResponse {
|
|
782
|
+
data: SwapResource[];
|
|
783
|
+
included: TokenResource[];
|
|
784
|
+
links: PoolSwapsResponseLinks;
|
|
785
|
+
meta?: PoolSwapsResponseMeta;
|
|
786
|
+
}
|
|
787
|
+
export interface PoolSwapsResponseLinks {
|
|
788
|
+
next: string;
|
|
789
|
+
prev: string;
|
|
790
|
+
}
|
|
791
|
+
export interface PoolSwapsResponseMeta {
|
|
792
|
+
next_limit: number;
|
|
793
|
+
}
|
|
794
|
+
export interface PoolTokenInfoSnapshotsParams {
|
|
795
|
+
/** On-chain pool address. */
|
|
796
|
+
address: string;
|
|
797
|
+
/** GeckoTerminal network identifier. */
|
|
798
|
+
network: string;
|
|
799
|
+
}
|
|
800
|
+
export interface PoolTokenInfoSnapshotsResponse {
|
|
801
|
+
data: TokenResource[];
|
|
802
|
+
}
|
|
803
|
+
export interface PoolsResponse {
|
|
804
|
+
data: PoolResource[];
|
|
805
|
+
included: (DexResource | NetworkResource | TokenResource)[];
|
|
806
|
+
links: LatestPoolsResponseLinks;
|
|
807
|
+
meta: LatestPoolsResponseMeta;
|
|
808
|
+
}
|
|
809
|
+
export type PublicError = "blocked" | "concurrency_exceeded" | "timeout" | "extraction_failed" | "upstream_blocked" | "upstream_unavailable" | "upstream_response_invalid" | "invalid_url_scheme" | "invalid_url_host" | "unauthenticated" | "forbidden" | "resource_forbidden" | "not_found" | "rate_limited" | "invalid_request" | "invalid_cursor" | "insufficient_credits" | "internal_error";
|
|
810
|
+
export interface RangeFilter {
|
|
811
|
+
/** Inclusive lower bound. */
|
|
812
|
+
gte?: number | null;
|
|
813
|
+
/** Inclusive upper bound. */
|
|
814
|
+
lte?: number | null;
|
|
815
|
+
}
|
|
816
|
+
export interface RelatedPoolAttributes {
|
|
817
|
+
address: string;
|
|
818
|
+
liquidity: string;
|
|
819
|
+
pool_fee: string | null;
|
|
820
|
+
token_id: string;
|
|
821
|
+
volume_in_usd_24h: string;
|
|
822
|
+
}
|
|
823
|
+
export interface RelatedPoolRelationships {
|
|
824
|
+
dex: ResourceLinkage;
|
|
825
|
+
tokens: ResourceLinkageList;
|
|
826
|
+
}
|
|
827
|
+
export interface RelatedPoolResource {
|
|
828
|
+
attributes: RelatedPoolAttributes;
|
|
829
|
+
id: string;
|
|
830
|
+
relationships: RelatedPoolRelationships;
|
|
831
|
+
type: string;
|
|
832
|
+
}
|
|
833
|
+
export interface ResourceIdentifier {
|
|
834
|
+
id: string;
|
|
835
|
+
type: string;
|
|
836
|
+
}
|
|
837
|
+
export interface ResourceLinkage {
|
|
838
|
+
data: ResourceIdentifier | null;
|
|
839
|
+
}
|
|
840
|
+
export interface ResourceLinkageList {
|
|
841
|
+
data: ResourceIdentifier[];
|
|
842
|
+
}
|
|
843
|
+
export interface RevivalRadarPoolsResponse {
|
|
844
|
+
data: PoolResource[];
|
|
845
|
+
included: (DexResource | NetworkResource | TokenResource)[];
|
|
846
|
+
meta: RevivalRadarPoolsResponseMeta;
|
|
847
|
+
}
|
|
848
|
+
export interface RevivalRadarPoolsResponseMeta {
|
|
849
|
+
sections: RevivalRadarPoolsResponseMetaSections;
|
|
850
|
+
}
|
|
851
|
+
export interface RevivalRadarPoolsResponseMetaSections {
|
|
852
|
+
revived: string[];
|
|
853
|
+
reviving: string[];
|
|
854
|
+
sunsetting: string[];
|
|
855
|
+
}
|
|
856
|
+
export interface SearchAttributes {
|
|
857
|
+
dexes: string[];
|
|
858
|
+
networks: SearchAttributesNetworks[] | string[];
|
|
859
|
+
pairs: string[];
|
|
860
|
+
pools: SearchAttributesPools[] | string[];
|
|
861
|
+
tags: SearchAttributesTags[] | string[];
|
|
862
|
+
}
|
|
863
|
+
export interface SearchAttributesNetworks {
|
|
864
|
+
identifier: string;
|
|
865
|
+
image_url: string;
|
|
866
|
+
name: string;
|
|
867
|
+
pools_count: number;
|
|
868
|
+
rank_by_volume_usd_24h: number;
|
|
869
|
+
swap_count_24h: number;
|
|
870
|
+
swap_volume_usd_24h: string;
|
|
871
|
+
type: string;
|
|
872
|
+
}
|
|
873
|
+
export interface SearchAttributesPools {
|
|
874
|
+
address: string;
|
|
875
|
+
api_address: string;
|
|
876
|
+
dex: TrendAttributesNewPoolsDex;
|
|
877
|
+
fdv_in_usd: string;
|
|
878
|
+
from_volume_in_usd: string;
|
|
879
|
+
gt_score: number;
|
|
880
|
+
market_cap_in_usd: string;
|
|
881
|
+
network: TrendAttributesNewPoolsNetwork;
|
|
882
|
+
on_coingecko: boolean;
|
|
883
|
+
pool_creation_date: string;
|
|
884
|
+
pool_id: number;
|
|
885
|
+
price_in_usd: string;
|
|
886
|
+
price_percent_change: string;
|
|
887
|
+
reserve_in_usd: string;
|
|
888
|
+
to_volume_in_usd: string;
|
|
889
|
+
tokens: SearchAttributesPoolsTokens[];
|
|
890
|
+
type: string;
|
|
891
|
+
volume_percent_change_24h: string;
|
|
892
|
+
}
|
|
893
|
+
export interface SearchAttributesPoolsTokens {
|
|
894
|
+
address: string;
|
|
895
|
+
holder_count: number;
|
|
896
|
+
image_url: string;
|
|
897
|
+
is_base_token: boolean;
|
|
898
|
+
is_verified: boolean;
|
|
899
|
+
name: string;
|
|
900
|
+
symbol: string;
|
|
901
|
+
}
|
|
902
|
+
export interface SearchAttributesTags {
|
|
903
|
+
identifier: string;
|
|
904
|
+
name: string;
|
|
905
|
+
type: string;
|
|
906
|
+
}
|
|
907
|
+
export interface SearchParams {
|
|
908
|
+
/** Free-text query matched against tokens, pools, categories, chains and DEXes. */
|
|
909
|
+
query: string;
|
|
910
|
+
}
|
|
911
|
+
export interface SearchResource {
|
|
912
|
+
attributes: SearchAttributes;
|
|
913
|
+
id: string;
|
|
914
|
+
type: string;
|
|
915
|
+
}
|
|
916
|
+
export interface SearchResponse {
|
|
917
|
+
data: SearchResource;
|
|
918
|
+
}
|
|
919
|
+
export interface SearchTrendAttributes {
|
|
920
|
+
search_items: SearchTrendAttributesSearchItems[];
|
|
921
|
+
}
|
|
922
|
+
export interface SearchTrendAttributesSearchItems {
|
|
923
|
+
base_token_image_url: string;
|
|
924
|
+
base_token_name: string;
|
|
925
|
+
base_token_symbol: string;
|
|
926
|
+
dex_identifier: string;
|
|
927
|
+
dex_image_url: string;
|
|
928
|
+
is_verified: boolean;
|
|
929
|
+
name: string;
|
|
930
|
+
network_identifier: string;
|
|
931
|
+
network_image_url: string;
|
|
932
|
+
on_coingecko: boolean;
|
|
933
|
+
pool_address: string;
|
|
934
|
+
pool_api_address: string;
|
|
935
|
+
price_percent_change: string;
|
|
936
|
+
reserve_in_usd: string;
|
|
937
|
+
type: string;
|
|
938
|
+
volume_in_usd_24h: string;
|
|
939
|
+
}
|
|
940
|
+
export interface SearchTrendResource {
|
|
941
|
+
attributes: SearchTrendAttributes;
|
|
942
|
+
id: string;
|
|
943
|
+
type: string;
|
|
944
|
+
}
|
|
945
|
+
export interface SearchTrendsResponse {
|
|
946
|
+
data: SearchTrendResource;
|
|
947
|
+
}
|
|
948
|
+
export interface SenderSwapAttributes {
|
|
949
|
+
action: string;
|
|
950
|
+
by: string;
|
|
951
|
+
swap_total_in_usd: string;
|
|
952
|
+
timestamp: string;
|
|
953
|
+
}
|
|
954
|
+
export interface SenderSwapResource {
|
|
955
|
+
attributes: SenderSwapAttributes;
|
|
956
|
+
id: string;
|
|
957
|
+
type: string;
|
|
958
|
+
}
|
|
959
|
+
export interface SwapAttributes {
|
|
960
|
+
from_token_amount: string;
|
|
961
|
+
from_token_total_in_usd: string;
|
|
962
|
+
price_from: string;
|
|
963
|
+
price_from_in_currency_token: string;
|
|
964
|
+
price_from_in_usd: string;
|
|
965
|
+
price_to: string;
|
|
966
|
+
price_to_in_currency_token: string;
|
|
967
|
+
price_to_in_usd: string;
|
|
968
|
+
timestamp: string;
|
|
969
|
+
to_token_amount: string;
|
|
970
|
+
to_token_total_in_usd: string;
|
|
971
|
+
tx_from_address: string;
|
|
972
|
+
tx_hash: string;
|
|
973
|
+
}
|
|
974
|
+
export interface SwapRelationships {
|
|
975
|
+
from_token: ResourceLinkage;
|
|
976
|
+
to_token: ResourceLinkage;
|
|
977
|
+
}
|
|
978
|
+
export interface SwapResource {
|
|
979
|
+
attributes: SwapAttributes;
|
|
980
|
+
id: string;
|
|
981
|
+
relationships: SwapRelationships;
|
|
982
|
+
type: string;
|
|
983
|
+
}
|
|
984
|
+
export interface TagAttributes {
|
|
985
|
+
buy_count_24h?: number;
|
|
986
|
+
description?: string | null;
|
|
987
|
+
fdv_in_usd?: string;
|
|
988
|
+
icon_url: string | null;
|
|
989
|
+
identifier: string;
|
|
990
|
+
name: string;
|
|
991
|
+
pool_trend_rank: number | null;
|
|
992
|
+
reserve_in_usd?: string;
|
|
993
|
+
sell_count_24h?: number;
|
|
994
|
+
swap_count_24h?: number;
|
|
995
|
+
swap_volume_usd_24h?: number;
|
|
996
|
+
volume_percent_changes?: TagAttributesVolumePercentChanges;
|
|
997
|
+
}
|
|
998
|
+
export interface TagAttributesVolumePercentChanges {
|
|
999
|
+
last_12h: string;
|
|
1000
|
+
last_1h: string;
|
|
1001
|
+
last_24h: string;
|
|
1002
|
+
last_6h: string;
|
|
1003
|
+
}
|
|
1004
|
+
export interface TagNetworkPoolsParams {
|
|
1005
|
+
/** GeckoTerminal network identifier. */
|
|
1006
|
+
network: string;
|
|
1007
|
+
/** 1-based result page. */
|
|
1008
|
+
page?: number;
|
|
1009
|
+
/** Category slug, as returned by the tags endpoint. */
|
|
1010
|
+
tag: string;
|
|
1011
|
+
}
|
|
1012
|
+
export interface TagNetworkPoolsResponse {
|
|
1013
|
+
data: PoolResource[];
|
|
1014
|
+
included: (DexResource | NetworkResource | TokenResource)[];
|
|
1015
|
+
links: LatestPoolsResponseLinks;
|
|
1016
|
+
meta: LatestPoolsResponseMeta;
|
|
1017
|
+
}
|
|
1018
|
+
export interface TagPoolsParams {
|
|
1019
|
+
/** 1-based result page. */
|
|
1020
|
+
page?: number;
|
|
1021
|
+
/** Category slug, as returned by the tags endpoint. */
|
|
1022
|
+
tag: string;
|
|
1023
|
+
}
|
|
1024
|
+
export interface TagPoolsResponse {
|
|
1025
|
+
data: PoolResource[];
|
|
1026
|
+
included: (DexResource | NetworkResource | TokenResource)[];
|
|
1027
|
+
links: LatestPoolsResponseLinks;
|
|
1028
|
+
meta: LatestPoolsResponseMeta;
|
|
1029
|
+
}
|
|
1030
|
+
export interface TagRelationships {
|
|
1031
|
+
top_tokens?: ResourceLinkageList;
|
|
1032
|
+
}
|
|
1033
|
+
export interface TagResource {
|
|
1034
|
+
attributes: TagAttributes;
|
|
1035
|
+
id: string;
|
|
1036
|
+
relationships: TagRelationships;
|
|
1037
|
+
type: string;
|
|
1038
|
+
}
|
|
1039
|
+
export interface TagsParams {
|
|
1040
|
+
/** 1-based result page. */
|
|
1041
|
+
page?: number;
|
|
1042
|
+
}
|
|
1043
|
+
export interface TagsResponse {
|
|
1044
|
+
data: TagResource[];
|
|
1045
|
+
included: TokenResource[];
|
|
1046
|
+
links: TagsResponseLinks;
|
|
1047
|
+
}
|
|
1048
|
+
export interface TagsResponseLinks {
|
|
1049
|
+
first: string;
|
|
1050
|
+
last: TagsResponseLinksLast;
|
|
1051
|
+
next: string;
|
|
1052
|
+
prev: string | null;
|
|
1053
|
+
}
|
|
1054
|
+
export interface TagsResponseLinksLast {
|
|
1055
|
+
href: string;
|
|
1056
|
+
meta: LatestPoolsResponseLinksLastMeta;
|
|
1057
|
+
}
|
|
1058
|
+
export interface ThemeAttributes {
|
|
1059
|
+
pools: ThemeAttributesPools[];
|
|
1060
|
+
pools_count: number;
|
|
1061
|
+
tag: ThemeAttributesTag;
|
|
1062
|
+
}
|
|
1063
|
+
export interface ThemeAttributesPools {
|
|
1064
|
+
base_token_id: string;
|
|
1065
|
+
network_identifier: string;
|
|
1066
|
+
pool_address: string;
|
|
1067
|
+
tagged_token_id: string;
|
|
1068
|
+
tokens: ThemeAttributesPoolsTokens[];
|
|
1069
|
+
}
|
|
1070
|
+
export interface ThemeAttributesPoolsTokens {
|
|
1071
|
+
id: string;
|
|
1072
|
+
image_url: string;
|
|
1073
|
+
symbol: string;
|
|
1074
|
+
}
|
|
1075
|
+
export interface ThemeAttributesTag {
|
|
1076
|
+
description?: string;
|
|
1077
|
+
id: string;
|
|
1078
|
+
identifier: string;
|
|
1079
|
+
name: string;
|
|
1080
|
+
swap_count_24h: number;
|
|
1081
|
+
swap_volume_usd_24h?: number;
|
|
1082
|
+
}
|
|
1083
|
+
export interface ThemeResource {
|
|
1084
|
+
attributes: ThemeAttributes;
|
|
1085
|
+
id: string;
|
|
1086
|
+
type: string;
|
|
1087
|
+
}
|
|
1088
|
+
export interface TimeframedRangeFilter {
|
|
1089
|
+
/** Inclusive lower bound. */
|
|
1090
|
+
gte?: number | null;
|
|
1091
|
+
/** Inclusive upper bound. */
|
|
1092
|
+
lte?: number | null;
|
|
1093
|
+
/** Window the trade counts are measured over. */
|
|
1094
|
+
timeframe?: PoolFilterTimeframe;
|
|
1095
|
+
}
|
|
1096
|
+
export interface TokenAttributes {
|
|
1097
|
+
address?: string;
|
|
1098
|
+
banner_image_url?: string;
|
|
1099
|
+
cg_coin_id?: string | null;
|
|
1100
|
+
circulating_supply?: number;
|
|
1101
|
+
cto?: string | null;
|
|
1102
|
+
decimals?: number;
|
|
1103
|
+
description?: TokenAttributesDescription;
|
|
1104
|
+
image_url?: string;
|
|
1105
|
+
is_verified?: boolean;
|
|
1106
|
+
links?: TokenAttributesLinks;
|
|
1107
|
+
market_cap_in_usd?: number | null;
|
|
1108
|
+
metadata_updated_at?: string | null;
|
|
1109
|
+
name?: string;
|
|
1110
|
+
on_coingecko?: boolean | null;
|
|
1111
|
+
on_pump_fun?: boolean | null;
|
|
1112
|
+
supports_bubblemaps?: boolean;
|
|
1113
|
+
supports_bubblemaps_v2?: boolean;
|
|
1114
|
+
symbol?: string;
|
|
1115
|
+
token_info_snapshots?: TokenAttributesTokenInfoSnapshots[];
|
|
1116
|
+
top_traders_enabled?: boolean;
|
|
1117
|
+
verified_at?: string | null;
|
|
1118
|
+
}
|
|
1119
|
+
export interface TokenAttributesDescription {
|
|
1120
|
+
en?: string;
|
|
1121
|
+
}
|
|
1122
|
+
export interface TokenAttributesLinks {
|
|
1123
|
+
discord_url?: string | null;
|
|
1124
|
+
facebook_handle?: string | null;
|
|
1125
|
+
github_repo_name?: string | null;
|
|
1126
|
+
instagram_handle?: string | null;
|
|
1127
|
+
medium_handle?: string | null;
|
|
1128
|
+
subreddit_handle?: string | null;
|
|
1129
|
+
telegram_handle?: string | null;
|
|
1130
|
+
tiktok_handle?: string | null;
|
|
1131
|
+
twitter_handle?: string | null;
|
|
1132
|
+
warpcast_url?: string | null;
|
|
1133
|
+
websites?: string[];
|
|
1134
|
+
youtube_handle?: string | null;
|
|
1135
|
+
zora_url?: string | null;
|
|
1136
|
+
}
|
|
1137
|
+
export interface TokenAttributesTokenInfoSnapshots {
|
|
1138
|
+
description: TokenAttributesDescription;
|
|
1139
|
+
links: TokenAttributesTokenInfoSnapshotsLinks;
|
|
1140
|
+
timestamp: string | null;
|
|
1141
|
+
type: string;
|
|
1142
|
+
}
|
|
1143
|
+
export interface TokenAttributesTokenInfoSnapshotsLinks {
|
|
1144
|
+
discord_url?: string | null;
|
|
1145
|
+
facebook_handle?: string | null;
|
|
1146
|
+
github_repo_name?: string | null;
|
|
1147
|
+
instagram_handle?: string | null;
|
|
1148
|
+
medium_handle?: string | null;
|
|
1149
|
+
subreddit_handle?: string | null;
|
|
1150
|
+
telegram_handle?: string | null;
|
|
1151
|
+
tiktok_handle?: string | null;
|
|
1152
|
+
twitter_handle?: string | null;
|
|
1153
|
+
warpcast_url?: string | null;
|
|
1154
|
+
websites?: string[];
|
|
1155
|
+
youtube_handle?: string | null;
|
|
1156
|
+
zora_url?: string | null;
|
|
1157
|
+
}
|
|
1158
|
+
export interface TokenDeveloperDetailAttributes {
|
|
1159
|
+
address: string;
|
|
1160
|
+
holding_amount: string;
|
|
1161
|
+
holding_percentage: number;
|
|
1162
|
+
label: string | null;
|
|
1163
|
+
realized_pnl_amount: string | null;
|
|
1164
|
+
realized_pnl_percentage: number | null;
|
|
1165
|
+
unrealized_pnl_amount: string | null;
|
|
1166
|
+
unrealized_pnl_percentage: number | null;
|
|
1167
|
+
}
|
|
1168
|
+
export interface TokenDeveloperDetailResource {
|
|
1169
|
+
attributes: TokenDeveloperDetailAttributes;
|
|
1170
|
+
id: string;
|
|
1171
|
+
relationships: TokenSecurityMetricRelationships;
|
|
1172
|
+
type: string;
|
|
1173
|
+
}
|
|
1174
|
+
export interface TokenDeveloperPastTokensParams {
|
|
1175
|
+
/** Id of a `token_developer_detail` resource embedded in a pool response. */
|
|
1176
|
+
developer_detail_id: string;
|
|
1177
|
+
}
|
|
1178
|
+
export interface TokenDeveloperPastTokensResponse {
|
|
1179
|
+
data: PastTokensDeveloperDetailResource;
|
|
1180
|
+
}
|
|
1181
|
+
export interface TokenHistoricalHoldersParams {
|
|
1182
|
+
/** GeckoTerminal network identifier. */
|
|
1183
|
+
network: string;
|
|
1184
|
+
/** Look-back window for the snapshot series. */
|
|
1185
|
+
period?: HolderHistoryPeriod;
|
|
1186
|
+
/** On-chain token address. */
|
|
1187
|
+
token_address: string;
|
|
1188
|
+
}
|
|
1189
|
+
export interface TokenHistoricalHoldersResponse {
|
|
1190
|
+
data: TokenHoldersSnapshotResource[];
|
|
1191
|
+
}
|
|
1192
|
+
export interface TokenHoldersDetailAttributes {
|
|
1193
|
+
explorer_coin_url: string;
|
|
1194
|
+
explorer_holder_url: string;
|
|
1195
|
+
source: string | null;
|
|
1196
|
+
top_holders: TokenHoldersDetailAttributesTopHolders[];
|
|
1197
|
+
}
|
|
1198
|
+
export interface TokenHoldersDetailAttributesTopHolders {
|
|
1199
|
+
amount: number;
|
|
1200
|
+
average_buy_in_usd: number | null;
|
|
1201
|
+
entity_name: string | null;
|
|
1202
|
+
entity_type: string | null;
|
|
1203
|
+
is_liquidity_pool: boolean | null;
|
|
1204
|
+
label: string | null;
|
|
1205
|
+
owner_percent: number;
|
|
1206
|
+
realized_pnl: number | null;
|
|
1207
|
+
realized_pnl_percentage: number | null;
|
|
1208
|
+
total_buy_count: number | null;
|
|
1209
|
+
total_sell_count: number | null;
|
|
1210
|
+
unrealized_pnl: number | null;
|
|
1211
|
+
unrealized_pnl_percentage: number | null;
|
|
1212
|
+
value_in_usd: number;
|
|
1213
|
+
wallet_address: string;
|
|
1214
|
+
}
|
|
1215
|
+
export interface TokenHoldersDetailResource {
|
|
1216
|
+
attributes: TokenHoldersDetailAttributes;
|
|
1217
|
+
id: string;
|
|
1218
|
+
type: string;
|
|
1219
|
+
}
|
|
1220
|
+
export interface TokenHoldersSnapshotAttributes {
|
|
1221
|
+
holder_count: number;
|
|
1222
|
+
timestamp: string;
|
|
1223
|
+
}
|
|
1224
|
+
export interface TokenHoldersSnapshotResource {
|
|
1225
|
+
attributes: TokenHoldersSnapshotAttributes;
|
|
1226
|
+
id: string;
|
|
1227
|
+
type: string;
|
|
1228
|
+
}
|
|
1229
|
+
export interface TokenRelationships {
|
|
1230
|
+
tags?: ResourceLinkageList;
|
|
1231
|
+
}
|
|
1232
|
+
export interface TokenResource {
|
|
1233
|
+
attributes: TokenAttributes;
|
|
1234
|
+
id: string;
|
|
1235
|
+
relationships: TokenRelationships;
|
|
1236
|
+
type: string;
|
|
1237
|
+
}
|
|
1238
|
+
export interface TokenSecurityMetricAttributes {
|
|
1239
|
+
defi_scanner_data: Record<string, string | null>;
|
|
1240
|
+
defi_scanner_updated_at: string | null;
|
|
1241
|
+
go_plus_token_security_data: TokenSecurityMetricAttributesGoPlusTokenSecurityData;
|
|
1242
|
+
go_plus_token_security_updated_at: string | null;
|
|
1243
|
+
holder_count: number;
|
|
1244
|
+
honeypot_scanner_data: TokenSecurityMetricAttributesHoneypotScannerData;
|
|
1245
|
+
honeypot_scanner_updated_at: string | null;
|
|
1246
|
+
insightx_security_data: TokenSecurityMetricAttributesInsightxSecurityData;
|
|
1247
|
+
insightx_updated_at: string | null;
|
|
1248
|
+
soul_scanner_data: TokenSecurityMetricAttributesSoulScannerData;
|
|
1249
|
+
soul_scanner_updated_at: string | null;
|
|
1250
|
+
}
|
|
1251
|
+
export interface TokenSecurityMetricAttributesGoPlusTokenSecurityData {
|
|
1252
|
+
anti_whale_modifiable?: string;
|
|
1253
|
+
buy_tax?: string;
|
|
1254
|
+
can_take_back_ownership?: string;
|
|
1255
|
+
cannot_buy?: string;
|
|
1256
|
+
cannot_sell_all?: string;
|
|
1257
|
+
creator_address?: string;
|
|
1258
|
+
creator_balance?: string;
|
|
1259
|
+
creator_percent?: string;
|
|
1260
|
+
external_call?: string;
|
|
1261
|
+
hidden_owner?: string;
|
|
1262
|
+
holder_count?: string;
|
|
1263
|
+
is_anti_whale?: string;
|
|
1264
|
+
is_blacklisted?: string;
|
|
1265
|
+
is_honeypot?: string;
|
|
1266
|
+
is_in_dex?: string;
|
|
1267
|
+
is_mintable?: string;
|
|
1268
|
+
is_open_source?: string;
|
|
1269
|
+
is_proxy?: string;
|
|
1270
|
+
is_whitelisted?: string;
|
|
1271
|
+
owner_address?: string;
|
|
1272
|
+
owner_balance?: string;
|
|
1273
|
+
owner_change_balance?: string;
|
|
1274
|
+
owner_percent?: string;
|
|
1275
|
+
personal_slippage_modifiable?: string;
|
|
1276
|
+
selfdestruct?: string;
|
|
1277
|
+
sell_tax?: string;
|
|
1278
|
+
slippage_modifiable?: string;
|
|
1279
|
+
top_10_holders_percent?: string | null;
|
|
1280
|
+
trading_cooldown?: string;
|
|
1281
|
+
transfer_pausable?: string;
|
|
1282
|
+
trust_list?: string;
|
|
1283
|
+
}
|
|
1284
|
+
export interface TokenSecurityMetricAttributesHoneypotScannerData {
|
|
1285
|
+
holder_count?: number;
|
|
1286
|
+
honeypot?: string;
|
|
1287
|
+
}
|
|
1288
|
+
export interface TokenSecurityMetricAttributesInsightxSecurityData {
|
|
1289
|
+
bundlers_pct?: number;
|
|
1290
|
+
cluster_pct?: number;
|
|
1291
|
+
dev_pct?: number;
|
|
1292
|
+
insiders_pct?: number;
|
|
1293
|
+
snipers_pct?: number;
|
|
1294
|
+
top10_pct?: number;
|
|
1295
|
+
}
|
|
1296
|
+
export interface TokenSecurityMetricAttributesSoulScannerData {
|
|
1297
|
+
freezeable?: string;
|
|
1298
|
+
mintable?: string;
|
|
1299
|
+
}
|
|
1300
|
+
export interface TokenSecurityMetricRelationships {
|
|
1301
|
+
token: ResourceLinkage;
|
|
1302
|
+
}
|
|
1303
|
+
export interface TokenSecurityMetricResource {
|
|
1304
|
+
attributes: TokenSecurityMetricAttributes;
|
|
1305
|
+
id: string;
|
|
1306
|
+
relationships: TokenSecurityMetricRelationships;
|
|
1307
|
+
type: string;
|
|
1308
|
+
}
|
|
1309
|
+
export interface TokenTopHoldersParams {
|
|
1310
|
+
/** GeckoTerminal network identifier. */
|
|
1311
|
+
network: string;
|
|
1312
|
+
/** On-chain token address. */
|
|
1313
|
+
token_address: string;
|
|
1314
|
+
}
|
|
1315
|
+
export interface TokenTopHoldersResponse {
|
|
1316
|
+
data: TokenHoldersDetailResource;
|
|
1317
|
+
}
|
|
1318
|
+
export interface TokenTopTradersParams {
|
|
1319
|
+
/** GeckoTerminal numeric token id, as returned in a token resource's `id`. */
|
|
1320
|
+
token_id: string;
|
|
1321
|
+
}
|
|
1322
|
+
export interface TokenTopTradersResponse {
|
|
1323
|
+
data: WalletTokenResource[];
|
|
1324
|
+
included: string[];
|
|
1325
|
+
}
|
|
1326
|
+
export interface TrendAttributes {
|
|
1327
|
+
new_pools: TrendAttributesNewPools[];
|
|
1328
|
+
top_gainers_pairs: TrendAttributesTopGainersPairs[];
|
|
1329
|
+
}
|
|
1330
|
+
export interface TrendAttributesNewPools {
|
|
1331
|
+
address: string;
|
|
1332
|
+
api_address: string;
|
|
1333
|
+
dex: TrendAttributesNewPoolsDex;
|
|
1334
|
+
network: TrendAttributesNewPoolsNetwork;
|
|
1335
|
+
pair_id: string | null;
|
|
1336
|
+
pool: TrendAttributesNewPoolsPool;
|
|
1337
|
+
pool_created_at: string;
|
|
1338
|
+
price_change: string;
|
|
1339
|
+
price_in_usd: string;
|
|
1340
|
+
price_percent_change: string;
|
|
1341
|
+
token_id: string | null;
|
|
1342
|
+
tokens: TrendAttributesNewPoolsTokens[];
|
|
1343
|
+
type: string;
|
|
1344
|
+
}
|
|
1345
|
+
export interface TrendAttributesNewPoolsDex {
|
|
1346
|
+
identifier: string;
|
|
1347
|
+
image_url: string;
|
|
1348
|
+
name: string;
|
|
1349
|
+
}
|
|
1350
|
+
export interface TrendAttributesNewPoolsNetwork {
|
|
1351
|
+
identifier: string;
|
|
1352
|
+
image_url: string;
|
|
1353
|
+
name: string;
|
|
1354
|
+
}
|
|
1355
|
+
export interface TrendAttributesNewPoolsPool {
|
|
1356
|
+
pairs_count: number;
|
|
1357
|
+
}
|
|
1358
|
+
export interface TrendAttributesNewPoolsTokens {
|
|
1359
|
+
image_url: string;
|
|
1360
|
+
is_base_token: boolean;
|
|
1361
|
+
name: string;
|
|
1362
|
+
symbol: string;
|
|
1363
|
+
}
|
|
1364
|
+
export interface TrendAttributesTopGainersPairs {
|
|
1365
|
+
address: string;
|
|
1366
|
+
api_address: string;
|
|
1367
|
+
dex: TrendAttributesNewPoolsDex;
|
|
1368
|
+
network: TrendAttributesNewPoolsNetwork;
|
|
1369
|
+
pair_id: number;
|
|
1370
|
+
pool: TrendAttributesNewPoolsPool;
|
|
1371
|
+
price_change: number;
|
|
1372
|
+
price_in_usd: string;
|
|
1373
|
+
price_percent_change: number;
|
|
1374
|
+
token_id: string | null;
|
|
1375
|
+
tokens: TrendAttributesNewPoolsTokens[];
|
|
1376
|
+
type: string;
|
|
1377
|
+
}
|
|
1378
|
+
export interface TrendResource {
|
|
1379
|
+
attributes: TrendAttributes;
|
|
1380
|
+
id: string;
|
|
1381
|
+
type: string;
|
|
1382
|
+
}
|
|
1383
|
+
export interface TrendingLinkAttributes {
|
|
1384
|
+
name: string;
|
|
1385
|
+
path: string;
|
|
1386
|
+
}
|
|
1387
|
+
export interface TrendingLinkResource {
|
|
1388
|
+
attributes: TrendingLinkAttributes;
|
|
1389
|
+
id: string;
|
|
1390
|
+
type: string;
|
|
1391
|
+
}
|
|
1392
|
+
export interface TrendingLinksResponse {
|
|
1393
|
+
data: TrendingLinkResource[];
|
|
1394
|
+
}
|
|
1395
|
+
export interface TrendingThemesParams {
|
|
1396
|
+
/** Restrict results to one DEX identifier. */
|
|
1397
|
+
dex?: string | null;
|
|
1398
|
+
/** Return GeckoTerminal's extended theme list rather than the top few. */
|
|
1399
|
+
more_themes?: boolean;
|
|
1400
|
+
/** Restrict results to one network identifier. */
|
|
1401
|
+
network?: string | null;
|
|
1402
|
+
}
|
|
1403
|
+
export interface TrendingThemesResponse {
|
|
1404
|
+
data: ThemeResource[];
|
|
1405
|
+
}
|
|
1406
|
+
export interface TrendsParams {
|
|
1407
|
+
/** Restrict results to one DEX identifier. */
|
|
1408
|
+
dex?: string | null;
|
|
1409
|
+
/** Restrict results to one network identifier. */
|
|
1410
|
+
network?: string | null;
|
|
1411
|
+
}
|
|
1412
|
+
export interface TrendsResponse {
|
|
1413
|
+
data: TrendResource;
|
|
1414
|
+
}
|
|
1415
|
+
export interface WalletTokenAttributes {
|
|
1416
|
+
average_buy_in_usd: string;
|
|
1417
|
+
average_sell_in_usd: string;
|
|
1418
|
+
balance: string | null;
|
|
1419
|
+
explorer_holder_url: string;
|
|
1420
|
+
realized_pnl: string;
|
|
1421
|
+
realized_pnl_percentage: number | null;
|
|
1422
|
+
total_buy_amount: string;
|
|
1423
|
+
total_buy_count: number;
|
|
1424
|
+
total_buy_in_usd: string;
|
|
1425
|
+
total_buys: number;
|
|
1426
|
+
total_sell_amount: string;
|
|
1427
|
+
total_sell_count: number;
|
|
1428
|
+
total_sell_in_usd: string;
|
|
1429
|
+
total_sells: number;
|
|
1430
|
+
unrealized_pnl: string | null;
|
|
1431
|
+
unrealized_pnl_percentage: number | null;
|
|
1432
|
+
wallet_address: string;
|
|
1433
|
+
}
|
|
1434
|
+
export interface WalletTokenParams {
|
|
1435
|
+
/** GeckoTerminal numeric token id, as returned in a token resource's `id`. */
|
|
1436
|
+
token_id: string;
|
|
1437
|
+
/** Wallet address to scope the token position to. */
|
|
1438
|
+
wallet_address: string;
|
|
1439
|
+
}
|
|
1440
|
+
export interface WalletTokenRelationships {
|
|
1441
|
+
address_label: ResourceLinkage;
|
|
1442
|
+
}
|
|
1443
|
+
export interface WalletTokenResource {
|
|
1444
|
+
attributes: WalletTokenAttributes;
|
|
1445
|
+
id: string;
|
|
1446
|
+
relationships: WalletTokenRelationships;
|
|
1447
|
+
type: string;
|
|
1448
|
+
}
|
|
1449
|
+
export interface WalletTokenResponse {
|
|
1450
|
+
data: WalletTokenResource[];
|
|
1451
|
+
included: string[];
|
|
1452
|
+
}
|
|
1453
|
+
//# sourceMappingURL=types.d.ts.map
|