@coingecko/coingecko-typescript 2.2.0 → 2.5.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/CHANGELOG.md +74 -0
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/coins/circulating-supply-chart.d.mts +1 -1
- package/resources/coins/circulating-supply-chart.d.mts.map +1 -1
- package/resources/coins/circulating-supply-chart.d.ts +1 -1
- package/resources/coins/circulating-supply-chart.d.ts.map +1 -1
- package/resources/coins/coins.d.mts +149 -0
- package/resources/coins/coins.d.mts.map +1 -1
- package/resources/coins/coins.d.ts +149 -0
- package/resources/coins/coins.d.ts.map +1 -1
- package/resources/coins/coins.js.map +1 -1
- package/resources/coins/coins.mjs.map +1 -1
- package/resources/coins/history.d.mts +1 -1
- package/resources/coins/history.d.ts +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/onchain/networks/dexes.d.mts +8 -0
- package/resources/onchain/networks/dexes.d.mts.map +1 -1
- package/resources/onchain/networks/dexes.d.ts +8 -0
- package/resources/onchain/networks/dexes.d.ts.map +1 -1
- package/resources/onchain/networks/new-pools.d.mts +16 -0
- package/resources/onchain/networks/new-pools.d.mts.map +1 -1
- package/resources/onchain/networks/new-pools.d.ts +16 -0
- package/resources/onchain/networks/new-pools.d.ts.map +1 -1
- package/resources/onchain/networks/pools/info.d.mts +2 -0
- package/resources/onchain/networks/pools/info.d.mts.map +1 -1
- package/resources/onchain/networks/pools/info.d.ts +2 -0
- package/resources/onchain/networks/pools/info.d.ts.map +1 -1
- package/resources/onchain/networks/pools/pools.d.mts +8 -0
- package/resources/onchain/networks/pools/pools.d.mts.map +1 -1
- package/resources/onchain/networks/pools/pools.d.ts +8 -0
- package/resources/onchain/networks/pools/pools.d.ts.map +1 -1
- package/resources/onchain/networks/pools/pools.js.map +1 -1
- package/resources/onchain/networks/pools/pools.mjs.map +1 -1
- package/resources/onchain/networks/tokens/index.d.mts +1 -0
- package/resources/onchain/networks/tokens/index.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/index.d.ts +1 -0
- package/resources/onchain/networks/tokens/index.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/index.js +3 -1
- package/resources/onchain/networks/tokens/index.js.map +1 -1
- package/resources/onchain/networks/tokens/index.mjs +1 -0
- package/resources/onchain/networks/tokens/index.mjs.map +1 -1
- package/resources/onchain/networks/tokens/info.d.mts +2 -0
- package/resources/onchain/networks/tokens/info.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/info.d.ts +2 -0
- package/resources/onchain/networks/tokens/info.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/multi.d.mts +6 -0
- package/resources/onchain/networks/tokens/multi.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/multi.d.ts +6 -0
- package/resources/onchain/networks/tokens/multi.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/ohlcv.d.mts +5 -0
- package/resources/onchain/networks/tokens/ohlcv.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/ohlcv.d.ts +5 -0
- package/resources/onchain/networks/tokens/ohlcv.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/pools.d.mts +6 -0
- package/resources/onchain/networks/tokens/pools.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/pools.d.ts +6 -0
- package/resources/onchain/networks/tokens/pools.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/tokens.d.mts +10 -0
- package/resources/onchain/networks/tokens/tokens.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/tokens.d.ts +10 -0
- package/resources/onchain/networks/tokens/tokens.d.ts.map +1 -1
- package/resources/onchain/networks/tokens/tokens.js +4 -0
- package/resources/onchain/networks/tokens/tokens.js.map +1 -1
- package/resources/onchain/networks/tokens/tokens.mjs +4 -0
- package/resources/onchain/networks/tokens/tokens.mjs.map +1 -1
- package/resources/onchain/networks/tokens/top-traders.d.mts +77 -0
- package/resources/onchain/networks/tokens/top-traders.d.mts.map +1 -0
- package/resources/onchain/networks/tokens/top-traders.d.ts +77 -0
- package/resources/onchain/networks/tokens/top-traders.d.ts.map +1 -0
- package/resources/onchain/networks/tokens/top-traders.js +30 -0
- package/resources/onchain/networks/tokens/top-traders.js.map +1 -0
- package/resources/onchain/networks/tokens/top-traders.mjs +26 -0
- package/resources/onchain/networks/tokens/top-traders.mjs.map +1 -0
- package/resources/onchain/networks/trending-pools.d.mts +16 -0
- package/resources/onchain/networks/trending-pools.d.mts.map +1 -1
- package/resources/onchain/networks/trending-pools.d.ts +16 -0
- package/resources/onchain/networks/trending-pools.d.ts.map +1 -1
- package/resources/onchain/simple/networks/token-price.d.mts +20 -0
- package/resources/onchain/simple/networks/token-price.d.mts.map +1 -1
- package/resources/onchain/simple/networks/token-price.d.ts +20 -0
- package/resources/onchain/simple/networks/token-price.d.ts.map +1 -1
- package/resources/public-treasury.d.mts +106 -1
- package/resources/public-treasury.d.mts.map +1 -1
- package/resources/public-treasury.d.ts +106 -1
- package/resources/public-treasury.d.ts.map +1 -1
- package/resources/public-treasury.js +35 -0
- package/resources/public-treasury.js.map +1 -1
- package/resources/public-treasury.mjs +35 -0
- package/resources/public-treasury.mjs.map +1 -1
- package/src/client.ts +9 -1
- package/src/resources/coins/circulating-supply-chart.ts +1 -1
- package/src/resources/coins/coins.ts +182 -0
- package/src/resources/coins/history.ts +1 -1
- package/src/resources/index.ts +4 -0
- package/src/resources/onchain/networks/dexes.ts +12 -0
- package/src/resources/onchain/networks/new-pools.ts +24 -0
- package/src/resources/onchain/networks/pools/info.ts +4 -0
- package/src/resources/onchain/networks/pools/pools.ts +12 -0
- package/src/resources/onchain/networks/tokens/index.ts +1 -0
- package/src/resources/onchain/networks/tokens/info.ts +4 -0
- package/src/resources/onchain/networks/tokens/multi.ts +8 -0
- package/src/resources/onchain/networks/tokens/ohlcv.ts +6 -0
- package/src/resources/onchain/networks/tokens/pools.ts +8 -0
- package/src/resources/onchain/networks/tokens/tokens.ts +18 -0
- package/src/resources/onchain/networks/tokens/top-traders.ts +116 -0
- package/src/resources/onchain/networks/trending-pools.ts +24 -0
- package/src/resources/onchain/simple/networks/token-price.ts +16 -0
- package/src/resources/public-treasury.ts +153 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -109,6 +109,11 @@ export interface CoinGetIDResponse {
|
|
|
109
109
|
*/
|
|
110
110
|
categories?: Array<string>;
|
|
111
111
|
|
|
112
|
+
/**
|
|
113
|
+
* detailed coin categories
|
|
114
|
+
*/
|
|
115
|
+
categories_details?: Array<CoinGetIDResponse.CategoriesDetail>;
|
|
116
|
+
|
|
112
117
|
/**
|
|
113
118
|
* coin community data
|
|
114
119
|
*/
|
|
@@ -144,6 +149,11 @@ export interface CoinGetIDResponse {
|
|
|
144
149
|
*/
|
|
145
150
|
hashing_algorithm?: string;
|
|
146
151
|
|
|
152
|
+
/**
|
|
153
|
+
* coin ICO data
|
|
154
|
+
*/
|
|
155
|
+
ico_data?: CoinGetIDResponse.IcoData;
|
|
156
|
+
|
|
147
157
|
/**
|
|
148
158
|
* coin image url
|
|
149
159
|
*/
|
|
@@ -231,6 +241,18 @@ export interface CoinGetIDResponse {
|
|
|
231
241
|
}
|
|
232
242
|
|
|
233
243
|
export namespace CoinGetIDResponse {
|
|
244
|
+
export interface CategoriesDetail {
|
|
245
|
+
/**
|
|
246
|
+
* category ID
|
|
247
|
+
*/
|
|
248
|
+
id?: string;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* category name
|
|
252
|
+
*/
|
|
253
|
+
name?: string;
|
|
254
|
+
}
|
|
255
|
+
|
|
234
256
|
/**
|
|
235
257
|
* coin community data
|
|
236
258
|
*/
|
|
@@ -344,6 +366,161 @@ export namespace CoinGetIDResponse {
|
|
|
344
366
|
}
|
|
345
367
|
}
|
|
346
368
|
|
|
369
|
+
/**
|
|
370
|
+
* coin ICO data
|
|
371
|
+
*/
|
|
372
|
+
export interface IcoData {
|
|
373
|
+
/**
|
|
374
|
+
* accepting currencies
|
|
375
|
+
*/
|
|
376
|
+
accepting_currencies?: string;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* amount for sale
|
|
380
|
+
*/
|
|
381
|
+
amount_for_sale?: number;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* base pre-sale amount
|
|
385
|
+
*/
|
|
386
|
+
base_pre_sale_amount?: number;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* base public sale amount
|
|
390
|
+
*/
|
|
391
|
+
base_public_sale_amount?: number;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* bounty detail url
|
|
395
|
+
*/
|
|
396
|
+
bounty_detail_url?: string;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* country of origin
|
|
400
|
+
*/
|
|
401
|
+
country_origin?: string;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* detailed description
|
|
405
|
+
*/
|
|
406
|
+
description?: string;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* hardcap amount
|
|
410
|
+
*/
|
|
411
|
+
hardcap_amount?: number;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* hardcap currency
|
|
415
|
+
*/
|
|
416
|
+
hardcap_currency?: string;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* ICO end date
|
|
420
|
+
*/
|
|
421
|
+
ico_end_date?: string;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* ICO start date
|
|
425
|
+
*/
|
|
426
|
+
ico_start_date?: string;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* KYC required
|
|
430
|
+
*/
|
|
431
|
+
kyc_required?: boolean;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* ICO related links
|
|
435
|
+
*/
|
|
436
|
+
links?: { [key: string]: string };
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* pre-sale available
|
|
440
|
+
*/
|
|
441
|
+
pre_sale_available?: boolean;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* pre-sale end date
|
|
445
|
+
*/
|
|
446
|
+
pre_sale_end_date?: string;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* pre-sale ended
|
|
450
|
+
*/
|
|
451
|
+
pre_sale_ended?: boolean;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* pre-sale start date
|
|
455
|
+
*/
|
|
456
|
+
pre_sale_start_date?: string;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* quote pre-sale amount
|
|
460
|
+
*/
|
|
461
|
+
quote_pre_sale_amount?: number;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* quote pre-sale currency
|
|
465
|
+
*/
|
|
466
|
+
quote_pre_sale_currency?: string;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* quote public sale amount
|
|
470
|
+
*/
|
|
471
|
+
quote_public_sale_amount?: number;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* quote public sale currency
|
|
475
|
+
*/
|
|
476
|
+
quote_public_sale_currency?: string;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* short description
|
|
480
|
+
*/
|
|
481
|
+
short_desc?: string;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* softcap amount
|
|
485
|
+
*/
|
|
486
|
+
softcap_amount?: number;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* softcap currency
|
|
490
|
+
*/
|
|
491
|
+
softcap_currency?: string;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* total raised amount
|
|
495
|
+
*/
|
|
496
|
+
total_raised?: number;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* total raised currency
|
|
500
|
+
*/
|
|
501
|
+
total_raised_currency?: string;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* whitelist available
|
|
505
|
+
*/
|
|
506
|
+
whitelist_available?: boolean;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* whitelist end date
|
|
510
|
+
*/
|
|
511
|
+
whitelist_end_date?: string;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* whitelist start date
|
|
515
|
+
*/
|
|
516
|
+
whitelist_start_date?: string;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* whitelist url
|
|
520
|
+
*/
|
|
521
|
+
whitelist_url?: string;
|
|
522
|
+
}
|
|
523
|
+
|
|
347
524
|
/**
|
|
348
525
|
* coin image url
|
|
349
526
|
*/
|
|
@@ -1055,6 +1232,11 @@ export interface CoinGetIDParams {
|
|
|
1055
1232
|
*/
|
|
1056
1233
|
dex_pair_format?: 'contract_address' | 'symbol';
|
|
1057
1234
|
|
|
1235
|
+
/**
|
|
1236
|
+
* include categories details, default: false
|
|
1237
|
+
*/
|
|
1238
|
+
include_categories_details?: boolean;
|
|
1239
|
+
|
|
1058
1240
|
/**
|
|
1059
1241
|
* include all the localized languages in the response, default: true
|
|
1060
1242
|
*/
|
package/src/resources/index.ts
CHANGED
|
@@ -34,7 +34,11 @@ export {
|
|
|
34
34
|
PublicTreasury,
|
|
35
35
|
type PublicTreasuryGetCoinIDResponse,
|
|
36
36
|
type PublicTreasuryGetEntityIDResponse,
|
|
37
|
+
type PublicTreasuryGetHoldingChartResponse,
|
|
38
|
+
type PublicTreasuryGetTransactionHistoryResponse,
|
|
37
39
|
type PublicTreasuryGetCoinIDParams,
|
|
40
|
+
type PublicTreasuryGetHoldingChartParams,
|
|
41
|
+
type PublicTreasuryGetTransactionHistoryParams,
|
|
38
42
|
} from './public-treasury';
|
|
39
43
|
export { Search, type SearchGetResponse, type SearchGetParams } from './search/search';
|
|
40
44
|
export { Simple } from './simple/simple';
|
|
@@ -93,6 +93,8 @@ export namespace DexGetPoolsResponse {
|
|
|
93
93
|
|
|
94
94
|
base_token_price_usd?: string;
|
|
95
95
|
|
|
96
|
+
community_sus_report?: number;
|
|
97
|
+
|
|
96
98
|
fdv_usd?: string;
|
|
97
99
|
|
|
98
100
|
market_cap_usd?: string;
|
|
@@ -111,6 +113,10 @@ export namespace DexGetPoolsResponse {
|
|
|
111
113
|
|
|
112
114
|
reserve_in_usd?: string;
|
|
113
115
|
|
|
116
|
+
sentiment_vote_negative_percentage?: number;
|
|
117
|
+
|
|
118
|
+
sentiment_vote_positive_percentage?: number;
|
|
119
|
+
|
|
114
120
|
transactions?: Attributes.Transactions;
|
|
115
121
|
|
|
116
122
|
volume_usd?: Attributes.VolumeUsd;
|
|
@@ -301,6 +307,12 @@ export interface DexGetPoolsParams {
|
|
|
301
307
|
*/
|
|
302
308
|
include?: string;
|
|
303
309
|
|
|
310
|
+
/**
|
|
311
|
+
* Query param: include GeckoTerminal community data (Sentiment votes, Suspicious
|
|
312
|
+
* reports) Default value: false
|
|
313
|
+
*/
|
|
314
|
+
include_gt_community_data?: boolean;
|
|
315
|
+
|
|
304
316
|
/**
|
|
305
317
|
* Query param: page through results Default value: 1
|
|
306
318
|
*/
|
|
@@ -69,6 +69,8 @@ export namespace NewPoolGetResponse {
|
|
|
69
69
|
|
|
70
70
|
base_token_price_usd?: string;
|
|
71
71
|
|
|
72
|
+
community_sus_report?: number;
|
|
73
|
+
|
|
72
74
|
fdv_usd?: string;
|
|
73
75
|
|
|
74
76
|
market_cap_usd?: string;
|
|
@@ -87,6 +89,10 @@ export namespace NewPoolGetResponse {
|
|
|
87
89
|
|
|
88
90
|
reserve_in_usd?: string;
|
|
89
91
|
|
|
92
|
+
sentiment_vote_negative_percentage?: number;
|
|
93
|
+
|
|
94
|
+
sentiment_vote_positive_percentage?: number;
|
|
95
|
+
|
|
90
96
|
transactions?: Attributes.Transactions;
|
|
91
97
|
|
|
92
98
|
volume_usd?: Attributes.VolumeUsd;
|
|
@@ -285,6 +291,8 @@ export namespace NewPoolGetNetworkResponse {
|
|
|
285
291
|
|
|
286
292
|
base_token_price_usd?: string;
|
|
287
293
|
|
|
294
|
+
community_sus_report?: number;
|
|
295
|
+
|
|
288
296
|
fdv_usd?: string;
|
|
289
297
|
|
|
290
298
|
market_cap_usd?: string;
|
|
@@ -303,6 +311,10 @@ export namespace NewPoolGetNetworkResponse {
|
|
|
303
311
|
|
|
304
312
|
reserve_in_usd?: string;
|
|
305
313
|
|
|
314
|
+
sentiment_vote_negative_percentage?: number;
|
|
315
|
+
|
|
316
|
+
sentiment_vote_positive_percentage?: number;
|
|
317
|
+
|
|
306
318
|
transactions?: Attributes.Transactions;
|
|
307
319
|
|
|
308
320
|
volume_usd?: Attributes.VolumeUsd;
|
|
@@ -481,6 +493,12 @@ export interface NewPoolGetParams {
|
|
|
481
493
|
*/
|
|
482
494
|
include?: string;
|
|
483
495
|
|
|
496
|
+
/**
|
|
497
|
+
* include GeckoTerminal community data (Sentiment votes, Suspicious reports)
|
|
498
|
+
* Default value: false
|
|
499
|
+
*/
|
|
500
|
+
include_gt_community_data?: boolean;
|
|
501
|
+
|
|
484
502
|
/**
|
|
485
503
|
* page through results Default value: 1
|
|
486
504
|
*/
|
|
@@ -494,6 +512,12 @@ export interface NewPoolGetNetworkParams {
|
|
|
494
512
|
*/
|
|
495
513
|
include?: string;
|
|
496
514
|
|
|
515
|
+
/**
|
|
516
|
+
* include GeckoTerminal community data (Sentiment votes, Suspicious reports)
|
|
517
|
+
* Default value: false
|
|
518
|
+
*/
|
|
519
|
+
include_gt_community_data?: boolean;
|
|
520
|
+
|
|
497
521
|
/**
|
|
498
522
|
* page through results Default value: 1
|
|
499
523
|
*/
|
|
@@ -60,6 +60,8 @@ export namespace InfoGetResponse {
|
|
|
60
60
|
|
|
61
61
|
discord_url?: string;
|
|
62
62
|
|
|
63
|
+
farcaster_url?: string;
|
|
64
|
+
|
|
63
65
|
freeze_authority?: string;
|
|
64
66
|
|
|
65
67
|
gt_categories_id?: Array<string>;
|
|
@@ -87,6 +89,8 @@ export namespace InfoGetResponse {
|
|
|
87
89
|
twitter_handle?: string;
|
|
88
90
|
|
|
89
91
|
websites?: Array<string>;
|
|
92
|
+
|
|
93
|
+
zora_url?: string;
|
|
90
94
|
}
|
|
91
95
|
|
|
92
96
|
export namespace Attributes {
|
|
@@ -86,6 +86,8 @@ export namespace PoolGetResponse {
|
|
|
86
86
|
|
|
87
87
|
base_token_price_usd?: string;
|
|
88
88
|
|
|
89
|
+
community_sus_report?: number;
|
|
90
|
+
|
|
89
91
|
fdv_usd?: string;
|
|
90
92
|
|
|
91
93
|
market_cap_usd?: string;
|
|
@@ -104,6 +106,10 @@ export namespace PoolGetResponse {
|
|
|
104
106
|
|
|
105
107
|
reserve_in_usd?: string;
|
|
106
108
|
|
|
109
|
+
sentiment_vote_negative_percentage?: number;
|
|
110
|
+
|
|
111
|
+
sentiment_vote_positive_percentage?: number;
|
|
112
|
+
|
|
107
113
|
transactions?: Attributes.Transactions;
|
|
108
114
|
|
|
109
115
|
volume_usd?: Attributes.VolumeUsd;
|
|
@@ -572,6 +578,12 @@ export interface PoolGetParams {
|
|
|
572
578
|
*/
|
|
573
579
|
include?: string;
|
|
574
580
|
|
|
581
|
+
/**
|
|
582
|
+
* include GeckoTerminal community data (Sentiment votes, Suspicious reports)
|
|
583
|
+
* Default value: false
|
|
584
|
+
*/
|
|
585
|
+
include_gt_community_data?: boolean;
|
|
586
|
+
|
|
575
587
|
/**
|
|
576
588
|
* page through results Default value: 1
|
|
577
589
|
*/
|
|
@@ -7,4 +7,5 @@ export { Ohlcv, type OhlcvGetTimeframeResponse, type OhlcvGetTimeframeParams } f
|
|
|
7
7
|
export { Pools, type PoolGetResponse, type PoolGetParams } from './pools';
|
|
8
8
|
export { Tokens, type TokenGetAddressResponse, type TokenGetAddressParams } from './tokens';
|
|
9
9
|
export { TopHolders, type TopHolderGetResponse, type TopHolderGetParams } from './top-holders';
|
|
10
|
+
export { TopTraders, type TopTraderGetResponse, type TopTraderGetParams } from './top-traders';
|
|
10
11
|
export { Trades, type TradeGetResponse, type TradeGetParams } from './trades';
|
|
@@ -50,6 +50,8 @@ export namespace InfoGetResponse {
|
|
|
50
50
|
|
|
51
51
|
discord_url?: string;
|
|
52
52
|
|
|
53
|
+
farcaster_url?: string;
|
|
54
|
+
|
|
53
55
|
freeze_authority?: string;
|
|
54
56
|
|
|
55
57
|
gt_categories_id?: Array<string>;
|
|
@@ -77,6 +79,8 @@ export namespace InfoGetResponse {
|
|
|
77
79
|
twitter_handle?: string;
|
|
78
80
|
|
|
79
81
|
websites?: Array<string>;
|
|
82
|
+
|
|
83
|
+
zora_url?: string;
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
export namespace Attributes {
|
|
@@ -61,6 +61,8 @@ export namespace MultiGetAddressesResponse {
|
|
|
61
61
|
|
|
62
62
|
image_url?: string;
|
|
63
63
|
|
|
64
|
+
last_trade_timestamp?: number;
|
|
65
|
+
|
|
64
66
|
launchpad_details?: Attributes.LaunchpadDetails;
|
|
65
67
|
|
|
66
68
|
market_cap_usd?: string;
|
|
@@ -335,6 +337,12 @@ export interface MultiGetAddressesParams {
|
|
|
335
337
|
* Query param: include pool composition, default: false
|
|
336
338
|
*/
|
|
337
339
|
include_composition?: boolean;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Query param: include tokens from inactive pools using the most recent swap,
|
|
343
|
+
* default: false
|
|
344
|
+
*/
|
|
345
|
+
include_inactive_source?: boolean;
|
|
338
346
|
}
|
|
339
347
|
|
|
340
348
|
export declare namespace Multi {
|
|
@@ -120,6 +120,12 @@ export interface OhlcvGetTimeframeParams {
|
|
|
120
120
|
*/
|
|
121
121
|
include_empty_intervals?: boolean;
|
|
122
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Query param: include token data from inactive pools using the most recent swap,
|
|
125
|
+
* default: false
|
|
126
|
+
*/
|
|
127
|
+
include_inactive_source?: boolean;
|
|
128
|
+
|
|
123
129
|
/**
|
|
124
130
|
* Query param: number of OHLCV results to return, maximum 1000 Default value: 100
|
|
125
131
|
*/
|
|
@@ -56,6 +56,8 @@ export namespace PoolGetResponse {
|
|
|
56
56
|
|
|
57
57
|
fdv_usd?: string;
|
|
58
58
|
|
|
59
|
+
last_trade_timestamp?: number;
|
|
60
|
+
|
|
59
61
|
market_cap_usd?: string;
|
|
60
62
|
|
|
61
63
|
name?: string;
|
|
@@ -255,6 +257,12 @@ export interface PoolGetParams {
|
|
|
255
257
|
*/
|
|
256
258
|
include?: string;
|
|
257
259
|
|
|
260
|
+
/**
|
|
261
|
+
* Query param: include tokens from inactive pools using the most recent swap,
|
|
262
|
+
* default: false
|
|
263
|
+
*/
|
|
264
|
+
include_inactive_source?: boolean;
|
|
265
|
+
|
|
258
266
|
/**
|
|
259
267
|
* Query param: page through results Default value: 1
|
|
260
268
|
*/
|
|
@@ -13,6 +13,8 @@ import * as PoolsAPI from './pools';
|
|
|
13
13
|
import { PoolGetParams, PoolGetResponse, Pools } from './pools';
|
|
14
14
|
import * as TopHoldersAPI from './top-holders';
|
|
15
15
|
import { TopHolderGetParams, TopHolderGetResponse, TopHolders } from './top-holders';
|
|
16
|
+
import * as TopTradersAPI from './top-traders';
|
|
17
|
+
import { TopTraderGetParams, TopTraderGetResponse, TopTraders } from './top-traders';
|
|
16
18
|
import * as TradesAPI from './trades';
|
|
17
19
|
import { TradeGetParams, TradeGetResponse, Trades } from './trades';
|
|
18
20
|
import { APIPromise } from '../../../../core/api-promise';
|
|
@@ -27,6 +29,7 @@ export class Tokens extends APIResource {
|
|
|
27
29
|
ohlcv: OhlcvAPI.Ohlcv = new OhlcvAPI.Ohlcv(this._client);
|
|
28
30
|
pools: PoolsAPI.Pools = new PoolsAPI.Pools(this._client);
|
|
29
31
|
trades: TradesAPI.Trades = new TradesAPI.Trades(this._client);
|
|
32
|
+
topTraders: TopTradersAPI.TopTraders = new TopTradersAPI.TopTraders(this._client);
|
|
30
33
|
|
|
31
34
|
/**
|
|
32
35
|
* This endpoint allows you to **query specific token data based on the provided
|
|
@@ -80,6 +83,8 @@ export namespace TokenGetAddressResponse {
|
|
|
80
83
|
|
|
81
84
|
image_url?: string;
|
|
82
85
|
|
|
86
|
+
last_trade_timestamp?: number;
|
|
87
|
+
|
|
83
88
|
market_cap_usd?: string;
|
|
84
89
|
|
|
85
90
|
name?: string;
|
|
@@ -344,6 +349,12 @@ export interface TokenGetAddressParams {
|
|
|
344
349
|
* Query param: include pool composition, default: false
|
|
345
350
|
*/
|
|
346
351
|
include_composition?: boolean;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Query param: include token data from inactive pools using the most recent swap,
|
|
355
|
+
* default: false
|
|
356
|
+
*/
|
|
357
|
+
include_inactive_source?: boolean;
|
|
347
358
|
}
|
|
348
359
|
|
|
349
360
|
Tokens.Multi = Multi;
|
|
@@ -353,6 +364,7 @@ Tokens.HoldersChart = HoldersChart;
|
|
|
353
364
|
Tokens.Ohlcv = Ohlcv;
|
|
354
365
|
Tokens.Pools = Pools;
|
|
355
366
|
Tokens.Trades = Trades;
|
|
367
|
+
Tokens.TopTraders = TopTraders;
|
|
356
368
|
|
|
357
369
|
export declare namespace Tokens {
|
|
358
370
|
export {
|
|
@@ -393,4 +405,10 @@ export declare namespace Tokens {
|
|
|
393
405
|
type TradeGetResponse as TradeGetResponse,
|
|
394
406
|
type TradeGetParams as TradeGetParams,
|
|
395
407
|
};
|
|
408
|
+
|
|
409
|
+
export {
|
|
410
|
+
TopTraders as TopTraders,
|
|
411
|
+
type TopTraderGetResponse as TopTraderGetResponse,
|
|
412
|
+
type TopTraderGetParams as TopTraderGetParams,
|
|
413
|
+
};
|
|
396
414
|
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class TopTraders extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* This endpoint allows you to **query top token traders based on the provided
|
|
11
|
+
* token contract address on a network**
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const topTrader =
|
|
16
|
+
* await client.onchain.networks.tokens.topTraders.get(
|
|
17
|
+
* '0x6921b130d297cc43754afba22e5eac0fbf8db75b',
|
|
18
|
+
* { network_id: 'base' },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
get(
|
|
23
|
+
tokenAddress: string,
|
|
24
|
+
params: TopTraderGetParams,
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): APIPromise<TopTraderGetResponse> {
|
|
27
|
+
const { network_id, ...query } = params;
|
|
28
|
+
return this._client.get(path`/onchain/networks/${network_id}/tokens/${tokenAddress}/top_traders`, {
|
|
29
|
+
query,
|
|
30
|
+
...options,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface TopTraderGetResponse {
|
|
36
|
+
data?: TopTraderGetResponse.Data;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export namespace TopTraderGetResponse {
|
|
40
|
+
export interface Data {
|
|
41
|
+
id?: string;
|
|
42
|
+
|
|
43
|
+
attributes?: Data.Attributes;
|
|
44
|
+
|
|
45
|
+
type?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace Data {
|
|
49
|
+
export interface Attributes {
|
|
50
|
+
traders?: Array<Attributes.Trader>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export namespace Attributes {
|
|
54
|
+
export interface Trader {
|
|
55
|
+
address?: string;
|
|
56
|
+
|
|
57
|
+
average_buy_price_usd?: string;
|
|
58
|
+
|
|
59
|
+
average_sell_price_usd?: string;
|
|
60
|
+
|
|
61
|
+
explorer_url?: string;
|
|
62
|
+
|
|
63
|
+
label?: string;
|
|
64
|
+
|
|
65
|
+
name?: string;
|
|
66
|
+
|
|
67
|
+
realized_pnl_usd?: string;
|
|
68
|
+
|
|
69
|
+
token_balance?: string;
|
|
70
|
+
|
|
71
|
+
total_buy_count?: number;
|
|
72
|
+
|
|
73
|
+
total_buy_token_amount?: string;
|
|
74
|
+
|
|
75
|
+
total_buy_usd?: string;
|
|
76
|
+
|
|
77
|
+
total_sell_count?: number;
|
|
78
|
+
|
|
79
|
+
total_sell_token_amount?: string;
|
|
80
|
+
|
|
81
|
+
total_sell_usd?: string;
|
|
82
|
+
|
|
83
|
+
type?: string;
|
|
84
|
+
|
|
85
|
+
unrealized_pnl_usd?: string;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface TopTraderGetParams {
|
|
92
|
+
/**
|
|
93
|
+
* Path param: network ID \*refers to [/networks](/reference/networks-list)
|
|
94
|
+
*/
|
|
95
|
+
network_id: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Query param: include address label data, default: false
|
|
99
|
+
*/
|
|
100
|
+
include_address_label?: boolean;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Query param: sort the traders by field Default value: realized_pnl_usd_desc
|
|
104
|
+
*/
|
|
105
|
+
sort?: 'realized_pnl_usd_desc' | 'unrealized_pnl_usd_desc' | 'total_buy_usd_desc' | 'total_sell_usd_desc';
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Query param: number of top token traders to return, you may use any integer or
|
|
109
|
+
* `max` Default value: 10
|
|
110
|
+
*/
|
|
111
|
+
traders?: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export declare namespace TopTraders {
|
|
115
|
+
export { type TopTraderGetResponse as TopTraderGetResponse, type TopTraderGetParams as TopTraderGetParams };
|
|
116
|
+
}
|