@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
|
@@ -71,6 +71,8 @@ export namespace TrendingPoolGetResponse {
|
|
|
71
71
|
|
|
72
72
|
base_token_price_usd?: string;
|
|
73
73
|
|
|
74
|
+
community_sus_report?: number;
|
|
75
|
+
|
|
74
76
|
fdv_usd?: string;
|
|
75
77
|
|
|
76
78
|
market_cap_usd?: string;
|
|
@@ -89,6 +91,10 @@ export namespace TrendingPoolGetResponse {
|
|
|
89
91
|
|
|
90
92
|
reserve_in_usd?: string;
|
|
91
93
|
|
|
94
|
+
sentiment_vote_negative_percentage?: number;
|
|
95
|
+
|
|
96
|
+
sentiment_vote_positive_percentage?: number;
|
|
97
|
+
|
|
92
98
|
transactions?: Attributes.Transactions;
|
|
93
99
|
|
|
94
100
|
volume_usd?: Attributes.VolumeUsd;
|
|
@@ -287,6 +293,8 @@ export namespace TrendingPoolGetNetworkResponse {
|
|
|
287
293
|
|
|
288
294
|
base_token_price_usd?: string;
|
|
289
295
|
|
|
296
|
+
community_sus_report?: number;
|
|
297
|
+
|
|
290
298
|
fdv_usd?: string;
|
|
291
299
|
|
|
292
300
|
market_cap_usd?: string;
|
|
@@ -305,6 +313,10 @@ export namespace TrendingPoolGetNetworkResponse {
|
|
|
305
313
|
|
|
306
314
|
reserve_in_usd?: string;
|
|
307
315
|
|
|
316
|
+
sentiment_vote_negative_percentage?: number;
|
|
317
|
+
|
|
318
|
+
sentiment_vote_positive_percentage?: number;
|
|
319
|
+
|
|
308
320
|
transactions?: Attributes.Transactions;
|
|
309
321
|
|
|
310
322
|
volume_usd?: Attributes.VolumeUsd;
|
|
@@ -489,6 +501,12 @@ export interface TrendingPoolGetParams {
|
|
|
489
501
|
*/
|
|
490
502
|
include?: string;
|
|
491
503
|
|
|
504
|
+
/**
|
|
505
|
+
* include GeckoTerminal community data (Sentiment votes, Suspicious reports)
|
|
506
|
+
* Default value: false
|
|
507
|
+
*/
|
|
508
|
+
include_gt_community_data?: boolean;
|
|
509
|
+
|
|
492
510
|
/**
|
|
493
511
|
* page through results Default value: 1
|
|
494
512
|
*/
|
|
@@ -507,6 +525,12 @@ export interface TrendingPoolGetNetworkParams {
|
|
|
507
525
|
*/
|
|
508
526
|
include?: string;
|
|
509
527
|
|
|
528
|
+
/**
|
|
529
|
+
* include GeckoTerminal community data (Sentiment votes, Suspicious reports)
|
|
530
|
+
* Default value: false
|
|
531
|
+
*/
|
|
532
|
+
include_gt_community_data?: boolean;
|
|
533
|
+
|
|
510
534
|
/**
|
|
511
535
|
* page through results Default value: 1
|
|
512
536
|
*/
|
|
@@ -47,7 +47,17 @@ export namespace TokenPriceGetAddressesResponse {
|
|
|
47
47
|
|
|
48
48
|
export namespace Data {
|
|
49
49
|
export interface Attributes {
|
|
50
|
+
h24_price_change_percentage?: { [key: string]: string };
|
|
51
|
+
|
|
52
|
+
h24_volume_usd?: { [key: string]: string };
|
|
53
|
+
|
|
54
|
+
last_trade_timestamp?: { [key: string]: number };
|
|
55
|
+
|
|
56
|
+
market_cap_usd?: { [key: string]: string };
|
|
57
|
+
|
|
50
58
|
token_prices?: { [key: string]: string };
|
|
59
|
+
|
|
60
|
+
total_reserve_in_usd?: { [key: string]: string };
|
|
51
61
|
}
|
|
52
62
|
}
|
|
53
63
|
}
|
|
@@ -68,6 +78,12 @@ export interface TokenPriceGetAddressesParams {
|
|
|
68
78
|
*/
|
|
69
79
|
include_24hr_vol?: boolean;
|
|
70
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Query param: include token price data from inactive pools using the most recent
|
|
83
|
+
* swap, default: false
|
|
84
|
+
*/
|
|
85
|
+
include_inactive_source?: boolean;
|
|
86
|
+
|
|
71
87
|
/**
|
|
72
88
|
* Query param: include market capitalization, default: false
|
|
73
89
|
*/
|
|
@@ -41,6 +41,51 @@ export class PublicTreasury extends APIResource {
|
|
|
41
41
|
getEntityID(entityID: string, options?: RequestOptions): APIPromise<PublicTreasuryGetEntityIDResponse> {
|
|
42
42
|
return this._client.get(path`/public_treasury/${entityID}`, options);
|
|
43
43
|
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* This endpoint allows you to **query historical cryptocurrency holdings chart of
|
|
47
|
+
* public companies & governments** by Entity ID and Coin ID
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const response =
|
|
52
|
+
* await client.publicTreasury.getHoldingChart('bitcoin', {
|
|
53
|
+
* entity_id: 'strategy',
|
|
54
|
+
* days: 'days',
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
getHoldingChart(
|
|
59
|
+
coinID: string,
|
|
60
|
+
params: PublicTreasuryGetHoldingChartParams,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): APIPromise<PublicTreasuryGetHoldingChartResponse> {
|
|
63
|
+
const { entity_id, ...query } = params;
|
|
64
|
+
return this._client.get(path`/public_treasury/${entity_id}/${coinID}/holding_chart`, {
|
|
65
|
+
query,
|
|
66
|
+
...options,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* This endpoint allows you **query public companies & governments' cryptocurrency
|
|
72
|
+
* transaction history** by Entity ID
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const response =
|
|
77
|
+
* await client.publicTreasury.getTransactionHistory(
|
|
78
|
+
* 'strategy',
|
|
79
|
+
* );
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
getTransactionHistory(
|
|
83
|
+
entityID: string,
|
|
84
|
+
query: PublicTreasuryGetTransactionHistoryParams | null | undefined = {},
|
|
85
|
+
options?: RequestOptions,
|
|
86
|
+
): APIPromise<PublicTreasuryGetTransactionHistoryResponse> {
|
|
87
|
+
return this._client.get(path`/public_treasury/${entityID}/transaction_history`, { query, ...options });
|
|
88
|
+
}
|
|
44
89
|
}
|
|
45
90
|
|
|
46
91
|
export interface PublicTreasuryGetCoinIDResponse {
|
|
@@ -162,6 +207,60 @@ export namespace PublicTreasuryGetEntityIDResponse {
|
|
|
162
207
|
}
|
|
163
208
|
}
|
|
164
209
|
|
|
210
|
+
export interface PublicTreasuryGetHoldingChartResponse {
|
|
211
|
+
holding_value_in_usd?: Array<Array<number>>;
|
|
212
|
+
|
|
213
|
+
holdings?: Array<Array<number>>;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export interface PublicTreasuryGetTransactionHistoryResponse {
|
|
217
|
+
transactions?: Array<PublicTreasuryGetTransactionHistoryResponse.Transaction>;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export namespace PublicTreasuryGetTransactionHistoryResponse {
|
|
221
|
+
export interface Transaction {
|
|
222
|
+
/**
|
|
223
|
+
* average entry value in usd after the transaction
|
|
224
|
+
*/
|
|
225
|
+
average_entry_value_usd?: number;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* coin ID
|
|
229
|
+
*/
|
|
230
|
+
coin_id?: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* transaction date in UNIX timestamp
|
|
234
|
+
*/
|
|
235
|
+
date?: number;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* total holding balance after the transaction
|
|
239
|
+
*/
|
|
240
|
+
holding_balance?: number;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* net change in holdings after the transaction
|
|
244
|
+
*/
|
|
245
|
+
holding_net_change?: number;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* source document URL
|
|
249
|
+
*/
|
|
250
|
+
source_url?: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* transaction value in usd
|
|
254
|
+
*/
|
|
255
|
+
transaction_value_usd?: number;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* transaction type: buy or sell
|
|
259
|
+
*/
|
|
260
|
+
type?: 'buy' | 'sell';
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
165
264
|
export interface PublicTreasuryGetCoinIDParams {
|
|
166
265
|
/**
|
|
167
266
|
* public company or government entity
|
|
@@ -169,10 +268,64 @@ export interface PublicTreasuryGetCoinIDParams {
|
|
|
169
268
|
entity: 'companies' | 'governments';
|
|
170
269
|
}
|
|
171
270
|
|
|
271
|
+
export interface PublicTreasuryGetHoldingChartParams {
|
|
272
|
+
/**
|
|
273
|
+
* Path param: public company or government entity ID \*refers to
|
|
274
|
+
* [`/entities/list`](/reference/entities-list).
|
|
275
|
+
*/
|
|
276
|
+
entity_id: string;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Query param: data up to number of days ago Valid values:
|
|
280
|
+
* `7, 14, 30, 90, 180, 365, 730, max`
|
|
281
|
+
*/
|
|
282
|
+
days: string;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Query param: include empty intervals with no transaction data, default: false
|
|
286
|
+
*/
|
|
287
|
+
include_empty_intervals?: boolean;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export interface PublicTreasuryGetTransactionHistoryParams {
|
|
291
|
+
/**
|
|
292
|
+
* filter transactions by coin IDs, comma-separated if querying more than 1 coin
|
|
293
|
+
* \*refers to [`/coins/list`](/reference/coins-list).
|
|
294
|
+
*/
|
|
295
|
+
coin_ids?: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* use this to sort the order of transactions, default: `date_desc`
|
|
299
|
+
*/
|
|
300
|
+
order?:
|
|
301
|
+
| 'date_desc'
|
|
302
|
+
| 'date_asc'
|
|
303
|
+
| 'holding_net_change_desc'
|
|
304
|
+
| 'holding_net_change_asc'
|
|
305
|
+
| 'transaction_value_usd_desc'
|
|
306
|
+
| 'transaction_value_usd_asc'
|
|
307
|
+
| 'average_cost_desc'
|
|
308
|
+
| 'average_cost_asc';
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* page through results, default: `1`
|
|
312
|
+
*/
|
|
313
|
+
page?: number;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* total results per page, default: `100` Valid values: 1...250
|
|
317
|
+
*/
|
|
318
|
+
per_page?: number;
|
|
319
|
+
}
|
|
320
|
+
|
|
172
321
|
export declare namespace PublicTreasury {
|
|
173
322
|
export {
|
|
174
323
|
type PublicTreasuryGetCoinIDResponse as PublicTreasuryGetCoinIDResponse,
|
|
175
324
|
type PublicTreasuryGetEntityIDResponse as PublicTreasuryGetEntityIDResponse,
|
|
325
|
+
type PublicTreasuryGetHoldingChartResponse as PublicTreasuryGetHoldingChartResponse,
|
|
326
|
+
type PublicTreasuryGetTransactionHistoryResponse as PublicTreasuryGetTransactionHistoryResponse,
|
|
176
327
|
type PublicTreasuryGetCoinIDParams as PublicTreasuryGetCoinIDParams,
|
|
328
|
+
type PublicTreasuryGetHoldingChartParams as PublicTreasuryGetHoldingChartParams,
|
|
329
|
+
type PublicTreasuryGetTransactionHistoryParams as PublicTreasuryGetTransactionHistoryParams,
|
|
177
330
|
};
|
|
178
331
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.5.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.5.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|