@coingecko/coingecko-typescript 2.3.0 → 3.0.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 +100 -0
- package/LICENSE +1 -1
- package/README.md +23 -10
- package/client.d.mts +4 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -3
- package/client.d.ts.map +1 -1
- package/client.js +15 -2
- package/client.js.map +1 -1
- package/client.mjs +15 -2
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.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 +158 -1
- package/resources/coins/coins.d.mts.map +1 -1
- package/resources/coins/coins.d.ts +158 -1
- 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/contract/contract.d.mts +9 -1
- package/resources/coins/contract/contract.d.mts.map +1 -1
- package/resources/coins/contract/contract.d.ts +9 -1
- package/resources/coins/contract/contract.d.ts.map +1 -1
- package/resources/coins/contract/contract.js.map +1 -1
- package/resources/coins/contract/contract.mjs.map +1 -1
- package/resources/coins/contract/market-chart.d.mts +5 -1
- package/resources/coins/contract/market-chart.d.mts.map +1 -1
- package/resources/coins/contract/market-chart.d.ts +5 -1
- package/resources/coins/contract/market-chart.d.ts.map +1 -1
- package/resources/coins/contract/market-chart.js +5 -1
- package/resources/coins/contract/market-chart.js.map +1 -1
- package/resources/coins/contract/market-chart.mjs +5 -1
- package/resources/coins/contract/market-chart.mjs.map +1 -1
- package/resources/coins/history.d.mts +1 -1
- package/resources/coins/history.d.ts +1 -1
- package/resources/coins/market-chart.d.mts +5 -1
- package/resources/coins/market-chart.d.mts.map +1 -1
- package/resources/coins/market-chart.d.ts +5 -1
- package/resources/coins/market-chart.d.ts.map +1 -1
- package/resources/coins/market-chart.js +5 -1
- package/resources/coins/market-chart.js.map +1 -1
- package/resources/coins/market-chart.mjs +5 -1
- package/resources/coins/market-chart.mjs.map +1 -1
- package/resources/coins/markets.d.mts +9 -0
- package/resources/coins/markets.d.mts.map +1 -1
- package/resources/coins/markets.d.ts +9 -0
- package/resources/coins/markets.d.ts.map +1 -1
- package/resources/coins/tickers.d.mts +1 -1
- package/resources/coins/tickers.d.mts.map +1 -1
- package/resources/coins/tickers.d.ts +1 -1
- package/resources/coins/tickers.d.ts.map +1 -1
- package/resources/exchanges/exchanges.d.mts +3 -3
- package/resources/exchanges/exchanges.d.mts.map +1 -1
- package/resources/exchanges/exchanges.d.ts +3 -3
- package/resources/exchanges/exchanges.d.ts.map +1 -1
- package/resources/exchanges/tickers.d.mts +1 -1
- package/resources/exchanges/tickers.d.mts.map +1 -1
- package/resources/exchanges/tickers.d.ts +1 -1
- package/resources/exchanges/tickers.d.ts.map +1 -1
- package/resources/global/global.d.mts +4 -0
- package/resources/global/global.d.mts.map +1 -1
- package/resources/global/global.d.ts +4 -0
- package/resources/global/global.d.ts.map +1 -1
- package/resources/global/global.js.map +1 -1
- package/resources/global/global.mjs.map +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/key.d.mts +10 -0
- package/resources/key.d.mts.map +1 -1
- package/resources/key.d.ts +10 -0
- package/resources/key.d.ts.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 +14 -0
- package/resources/onchain/networks/tokens/pools.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/pools.d.ts +14 -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-holders.d.mts +12 -0
- package/resources/onchain/networks/tokens/top-holders.d.mts.map +1 -1
- package/resources/onchain/networks/tokens/top-holders.d.ts +12 -0
- package/resources/onchain/networks/tokens/top-holders.d.ts.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/pools/megafilter.d.mts +13 -1
- package/resources/onchain/pools/megafilter.d.mts.map +1 -1
- package/resources/onchain/pools/megafilter.d.ts +13 -1
- package/resources/onchain/pools/megafilter.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 +286 -31
- package/resources/public-treasury.d.mts.map +1 -1
- package/resources/public-treasury.d.ts +286 -31
- package/resources/public-treasury.d.ts.map +1 -1
- package/resources/public-treasury.js +39 -4
- package/resources/public-treasury.js.map +1 -1
- package/resources/public-treasury.mjs +39 -4
- package/resources/public-treasury.mjs.map +1 -1
- package/src/client.ts +29 -4
- package/src/internal/parse.ts +6 -0
- package/src/resources/coins/circulating-supply-chart.ts +1 -1
- package/src/resources/coins/coins.ts +193 -1
- package/src/resources/coins/contract/contract.ts +11 -1
- package/src/resources/coins/contract/market-chart.ts +5 -1
- package/src/resources/coins/history.ts +1 -1
- package/src/resources/coins/market-chart.ts +5 -1
- package/src/resources/coins/markets.ts +11 -0
- package/src/resources/coins/tickers.ts +1 -1
- package/src/resources/exchanges/exchanges.ts +3 -3
- package/src/resources/exchanges/tickers.ts +1 -1
- package/src/resources/global/global.ts +5 -0
- package/src/resources/index.ts +5 -0
- package/src/resources/key.ts +12 -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 +20 -0
- package/src/resources/onchain/networks/tokens/tokens.ts +18 -0
- package/src/resources/onchain/networks/tokens/top-holders.ts +21 -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/pools/megafilter.ts +19 -0
- package/src/resources/onchain/simple/networks/token-price.ts +16 -0
- package/src/resources/public-treasury.ts +386 -35
- 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
|
*/
|
|
@@ -169,6 +179,11 @@ export interface CoinGetIDResponse {
|
|
|
169
179
|
*/
|
|
170
180
|
market_cap_rank?: number;
|
|
171
181
|
|
|
182
|
+
/**
|
|
183
|
+
* coin rank by market cap including rehypothecated tokens
|
|
184
|
+
*/
|
|
185
|
+
market_cap_rank_with_rehypothecated?: number;
|
|
186
|
+
|
|
172
187
|
/**
|
|
173
188
|
* coin market data
|
|
174
189
|
*/
|
|
@@ -231,6 +246,18 @@ export interface CoinGetIDResponse {
|
|
|
231
246
|
}
|
|
232
247
|
|
|
233
248
|
export namespace CoinGetIDResponse {
|
|
249
|
+
export interface CategoriesDetail {
|
|
250
|
+
/**
|
|
251
|
+
* category ID
|
|
252
|
+
*/
|
|
253
|
+
id?: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* category name
|
|
257
|
+
*/
|
|
258
|
+
name?: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
234
261
|
/**
|
|
235
262
|
* coin community data
|
|
236
263
|
*/
|
|
@@ -344,6 +371,161 @@ export namespace CoinGetIDResponse {
|
|
|
344
371
|
}
|
|
345
372
|
}
|
|
346
373
|
|
|
374
|
+
/**
|
|
375
|
+
* coin ICO data
|
|
376
|
+
*/
|
|
377
|
+
export interface IcoData {
|
|
378
|
+
/**
|
|
379
|
+
* accepting currencies
|
|
380
|
+
*/
|
|
381
|
+
accepting_currencies?: string;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* amount for sale
|
|
385
|
+
*/
|
|
386
|
+
amount_for_sale?: number;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* base pre-sale amount
|
|
390
|
+
*/
|
|
391
|
+
base_pre_sale_amount?: number;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* base public sale amount
|
|
395
|
+
*/
|
|
396
|
+
base_public_sale_amount?: number;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* bounty detail url
|
|
400
|
+
*/
|
|
401
|
+
bounty_detail_url?: string;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* country of origin
|
|
405
|
+
*/
|
|
406
|
+
country_origin?: string;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* detailed description
|
|
410
|
+
*/
|
|
411
|
+
description?: string;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* hardcap amount
|
|
415
|
+
*/
|
|
416
|
+
hardcap_amount?: number;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* hardcap currency
|
|
420
|
+
*/
|
|
421
|
+
hardcap_currency?: string;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* ICO end date
|
|
425
|
+
*/
|
|
426
|
+
ico_end_date?: string;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* ICO start date
|
|
430
|
+
*/
|
|
431
|
+
ico_start_date?: string;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* KYC required
|
|
435
|
+
*/
|
|
436
|
+
kyc_required?: boolean;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* ICO related links
|
|
440
|
+
*/
|
|
441
|
+
links?: { [key: string]: string };
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* pre-sale available
|
|
445
|
+
*/
|
|
446
|
+
pre_sale_available?: boolean;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* pre-sale end date
|
|
450
|
+
*/
|
|
451
|
+
pre_sale_end_date?: string;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* pre-sale ended
|
|
455
|
+
*/
|
|
456
|
+
pre_sale_ended?: boolean;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* pre-sale start date
|
|
460
|
+
*/
|
|
461
|
+
pre_sale_start_date?: string;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* quote pre-sale amount
|
|
465
|
+
*/
|
|
466
|
+
quote_pre_sale_amount?: number;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* quote pre-sale currency
|
|
470
|
+
*/
|
|
471
|
+
quote_pre_sale_currency?: string;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* quote public sale amount
|
|
475
|
+
*/
|
|
476
|
+
quote_public_sale_amount?: number;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* quote public sale currency
|
|
480
|
+
*/
|
|
481
|
+
quote_public_sale_currency?: string;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* short description
|
|
485
|
+
*/
|
|
486
|
+
short_desc?: string;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* softcap amount
|
|
490
|
+
*/
|
|
491
|
+
softcap_amount?: number;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* softcap currency
|
|
495
|
+
*/
|
|
496
|
+
softcap_currency?: string;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* total raised amount
|
|
500
|
+
*/
|
|
501
|
+
total_raised?: number;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* total raised currency
|
|
505
|
+
*/
|
|
506
|
+
total_raised_currency?: string;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* whitelist available
|
|
510
|
+
*/
|
|
511
|
+
whitelist_available?: boolean;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* whitelist end date
|
|
515
|
+
*/
|
|
516
|
+
whitelist_end_date?: string;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* whitelist start date
|
|
520
|
+
*/
|
|
521
|
+
whitelist_start_date?: string;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* whitelist url
|
|
525
|
+
*/
|
|
526
|
+
whitelist_url?: string;
|
|
527
|
+
}
|
|
528
|
+
|
|
347
529
|
/**
|
|
348
530
|
* coin image url
|
|
349
531
|
*/
|
|
@@ -546,6 +728,11 @@ export namespace CoinGetIDResponse {
|
|
|
546
728
|
*/
|
|
547
729
|
market_cap_rank?: number;
|
|
548
730
|
|
|
731
|
+
/**
|
|
732
|
+
* coin rank by market cap including rehypothecated tokens
|
|
733
|
+
*/
|
|
734
|
+
market_cap_rank_with_rehypothecated?: number;
|
|
735
|
+
|
|
549
736
|
/**
|
|
550
737
|
* coin max supply
|
|
551
738
|
*/
|
|
@@ -985,7 +1172,7 @@ export namespace CoinGetIDResponse {
|
|
|
985
1172
|
/**
|
|
986
1173
|
* coin ticker trust score
|
|
987
1174
|
*/
|
|
988
|
-
trust_score?: string;
|
|
1175
|
+
trust_score?: string | null;
|
|
989
1176
|
|
|
990
1177
|
/**
|
|
991
1178
|
* coin ticker volume
|
|
@@ -1055,6 +1242,11 @@ export interface CoinGetIDParams {
|
|
|
1055
1242
|
*/
|
|
1056
1243
|
dex_pair_format?: 'contract_address' | 'symbol';
|
|
1057
1244
|
|
|
1245
|
+
/**
|
|
1246
|
+
* include categories details, default: false
|
|
1247
|
+
*/
|
|
1248
|
+
include_categories_details?: boolean;
|
|
1249
|
+
|
|
1058
1250
|
/**
|
|
1059
1251
|
* include all the localized languages in the response, default: true
|
|
1060
1252
|
*/
|
|
@@ -126,6 +126,11 @@ export interface ContractGetResponse {
|
|
|
126
126
|
*/
|
|
127
127
|
market_cap_rank?: number;
|
|
128
128
|
|
|
129
|
+
/**
|
|
130
|
+
* coin rank by market cap including rehypothecated tokens
|
|
131
|
+
*/
|
|
132
|
+
market_cap_rank_with_rehypothecated?: number;
|
|
133
|
+
|
|
129
134
|
/**
|
|
130
135
|
* coin market data
|
|
131
136
|
*/
|
|
@@ -503,6 +508,11 @@ export namespace ContractGetResponse {
|
|
|
503
508
|
*/
|
|
504
509
|
market_cap_rank?: number;
|
|
505
510
|
|
|
511
|
+
/**
|
|
512
|
+
* coin rank by market cap including rehypothecated tokens
|
|
513
|
+
*/
|
|
514
|
+
market_cap_rank_with_rehypothecated?: number;
|
|
515
|
+
|
|
506
516
|
/**
|
|
507
517
|
* coin max supply
|
|
508
518
|
*/
|
|
@@ -942,7 +952,7 @@ export namespace ContractGetResponse {
|
|
|
942
952
|
/**
|
|
943
953
|
* coin ticker trust score
|
|
944
954
|
*/
|
|
945
|
-
trust_score?: string;
|
|
955
|
+
trust_score?: string | null;
|
|
946
956
|
|
|
947
957
|
/**
|
|
948
958
|
* coin ticker volume
|
|
@@ -16,7 +16,11 @@ export class MarketChart extends APIResource {
|
|
|
16
16
|
* const marketChart =
|
|
17
17
|
* await client.coins.contract.marketChart.get(
|
|
18
18
|
* '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
|
|
19
|
-
* {
|
|
19
|
+
* {
|
|
20
|
+
* id: 'ethereum',
|
|
21
|
+
* days: 'days',
|
|
22
|
+
* vs_currency: 'usd',
|
|
23
|
+
* },
|
|
20
24
|
* );
|
|
21
25
|
* ```
|
|
22
26
|
*/
|
|
@@ -31,7 +31,11 @@ export class MarketChart extends APIResource {
|
|
|
31
31
|
* ```ts
|
|
32
32
|
* const response = await client.coins.marketChart.getRange(
|
|
33
33
|
* 'bitcoin',
|
|
34
|
-
* {
|
|
34
|
+
* {
|
|
35
|
+
* from: 'from',
|
|
36
|
+
* to: 'to',
|
|
37
|
+
* vs_currency: 'usd',
|
|
38
|
+
* },
|
|
35
39
|
* );
|
|
36
40
|
* ```
|
|
37
41
|
*/
|
|
@@ -115,6 +115,11 @@ export namespace MarketGetResponse {
|
|
|
115
115
|
*/
|
|
116
116
|
market_cap_rank?: number | null;
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* coin rank by market cap including rehypothecated tokens
|
|
120
|
+
*/
|
|
121
|
+
market_cap_rank_with_rehypothecated?: number | null;
|
|
122
|
+
|
|
118
123
|
/**
|
|
119
124
|
* coin max supply
|
|
120
125
|
*/
|
|
@@ -198,6 +203,12 @@ export interface MarketGetParams {
|
|
|
198
203
|
*/
|
|
199
204
|
ids?: string;
|
|
200
205
|
|
|
206
|
+
/**
|
|
207
|
+
* include rehypothecated tokens in results, default: false When true, returns
|
|
208
|
+
* `market_cap_rank_with_rehypothecated` field
|
|
209
|
+
*/
|
|
210
|
+
include_rehypothecated?: boolean;
|
|
211
|
+
|
|
201
212
|
/**
|
|
202
213
|
* for `symbols` lookups, specify `all` to include all matching tokens Default
|
|
203
214
|
* `top` returns top-ranked tokens (by market cap or volume)
|
|
@@ -91,7 +91,7 @@ export interface ExchangeGetResponse {
|
|
|
91
91
|
has_trading_incentive?: boolean;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* exchange image
|
|
94
|
+
* exchange image URL
|
|
95
95
|
*/
|
|
96
96
|
image?: string;
|
|
97
97
|
|
|
@@ -116,7 +116,7 @@ export interface ExchangeGetResponse {
|
|
|
116
116
|
trust_score_rank?: number;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* exchange website
|
|
119
|
+
* exchange website URL
|
|
120
120
|
*/
|
|
121
121
|
url?: string;
|
|
122
122
|
|
|
@@ -339,7 +339,7 @@ export namespace ExchangeGetIDResponse {
|
|
|
339
339
|
/**
|
|
340
340
|
* coin ticker trust score
|
|
341
341
|
*/
|
|
342
|
-
trust_score?: string;
|
|
342
|
+
trust_score?: string | null;
|
|
343
343
|
|
|
344
344
|
/**
|
|
345
345
|
* coin ticker volume
|
|
@@ -79,6 +79,11 @@ export namespace GlobalGetResponse {
|
|
|
79
79
|
upcoming_icos?: number;
|
|
80
80
|
|
|
81
81
|
updated_at?: number;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* cryptocurrencies volume change percentage in 24 hours in usd
|
|
85
|
+
*/
|
|
86
|
+
volume_change_percentage_24h_usd?: number;
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
export namespace Data {
|
package/src/resources/index.ts
CHANGED
|
@@ -34,7 +34,12 @@ export {
|
|
|
34
34
|
PublicTreasury,
|
|
35
35
|
type PublicTreasuryGetCoinIDResponse,
|
|
36
36
|
type PublicTreasuryGetEntityIDResponse,
|
|
37
|
+
type PublicTreasuryGetHoldingChartResponse,
|
|
38
|
+
type PublicTreasuryGetTransactionHistoryResponse,
|
|
37
39
|
type PublicTreasuryGetCoinIDParams,
|
|
40
|
+
type PublicTreasuryGetEntityIDParams,
|
|
41
|
+
type PublicTreasuryGetHoldingChartParams,
|
|
42
|
+
type PublicTreasuryGetTransactionHistoryParams,
|
|
38
43
|
} from './public-treasury';
|
|
39
44
|
export { Search, type SearchGetResponse, type SearchGetParams } from './search/search';
|
|
40
45
|
export { Simple } from './simple/simple';
|
package/src/resources/key.ts
CHANGED
|
@@ -20,6 +20,18 @@ export class Key extends APIResource {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export interface KeyGetResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Specific monthly credit limit configured for the API key used to authenticate
|
|
25
|
+
* this request
|
|
26
|
+
*/
|
|
27
|
+
api_key_monthly_call_credit?: number;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Specific request per minute configured for the API key used to authenticate this
|
|
31
|
+
* request
|
|
32
|
+
*/
|
|
33
|
+
api_key_rate_limit_request_per_minute?: number;
|
|
34
|
+
|
|
23
35
|
current_remaining_monthly_calls?: number;
|
|
24
36
|
|
|
25
37
|
current_total_monthly_calls?: number;
|
|
@@ -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
|
*/
|
|
@@ -54,8 +54,12 @@ export namespace PoolGetResponse {
|
|
|
54
54
|
|
|
55
55
|
base_token_price_usd?: string;
|
|
56
56
|
|
|
57
|
+
community_sus_report?: number;
|
|
58
|
+
|
|
57
59
|
fdv_usd?: string;
|
|
58
60
|
|
|
61
|
+
last_trade_timestamp?: number;
|
|
62
|
+
|
|
59
63
|
market_cap_usd?: string;
|
|
60
64
|
|
|
61
65
|
name?: string;
|
|
@@ -72,6 +76,10 @@ export namespace PoolGetResponse {
|
|
|
72
76
|
|
|
73
77
|
reserve_in_usd?: string;
|
|
74
78
|
|
|
79
|
+
sentiment_vote_negative_percentage?: number;
|
|
80
|
+
|
|
81
|
+
sentiment_vote_positive_percentage?: number;
|
|
82
|
+
|
|
75
83
|
transactions?: Attributes.Transactions;
|
|
76
84
|
|
|
77
85
|
volume_usd?: Attributes.VolumeUsd;
|
|
@@ -255,6 +263,18 @@ export interface PoolGetParams {
|
|
|
255
263
|
*/
|
|
256
264
|
include?: string;
|
|
257
265
|
|
|
266
|
+
/**
|
|
267
|
+
* Query param: include GeckoTerminal community data (Sentiment votes, Suspicious
|
|
268
|
+
* reports) Default value: false
|
|
269
|
+
*/
|
|
270
|
+
include_gt_community_data?: boolean;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Query param: include tokens from inactive pools using the most recent swap,
|
|
274
|
+
* default: false
|
|
275
|
+
*/
|
|
276
|
+
include_inactive_source?: boolean;
|
|
277
|
+
|
|
258
278
|
/**
|
|
259
279
|
* Query param: page through results Default value: 1
|
|
260
280
|
*/
|