@coingecko/coingecko-typescript 1.7.3 → 1.9.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/resources/coins/coins.d.mts +11 -1
  4. package/resources/coins/coins.d.mts.map +1 -1
  5. package/resources/coins/coins.d.ts +11 -1
  6. package/resources/coins/coins.d.ts.map +1 -1
  7. package/resources/coins/coins.js.map +1 -1
  8. package/resources/coins/coins.mjs.map +1 -1
  9. package/resources/coins/contract/contract.d.mts +11 -1
  10. package/resources/coins/contract/contract.d.mts.map +1 -1
  11. package/resources/coins/contract/contract.d.ts +11 -1
  12. package/resources/coins/contract/contract.d.ts.map +1 -1
  13. package/resources/coins/contract/contract.js.map +1 -1
  14. package/resources/coins/contract/contract.mjs.map +1 -1
  15. package/resources/coins/markets.d.mts +128 -103
  16. package/resources/coins/markets.d.mts.map +1 -1
  17. package/resources/coins/markets.d.ts +128 -103
  18. package/resources/coins/markets.d.ts.map +1 -1
  19. package/resources/coins/markets.js +1 -1
  20. package/resources/coins/markets.mjs +1 -1
  21. package/resources/exchanges/exchanges.d.mts +12 -9
  22. package/resources/exchanges/exchanges.d.mts.map +1 -1
  23. package/resources/exchanges/exchanges.d.ts +12 -9
  24. package/resources/exchanges/exchanges.d.ts.map +1 -1
  25. package/resources/exchanges/exchanges.js.map +1 -1
  26. package/resources/exchanges/exchanges.mjs.map +1 -1
  27. package/resources/onchain/networks/pools/pools.d.mts +1 -1
  28. package/resources/onchain/networks/pools/pools.d.mts.map +1 -1
  29. package/resources/onchain/networks/pools/pools.d.ts +1 -1
  30. package/resources/onchain/networks/pools/pools.d.ts.map +1 -1
  31. package/resources/simple/price.d.mts +26 -21
  32. package/resources/simple/price.d.mts.map +1 -1
  33. package/resources/simple/price.d.ts +26 -21
  34. package/resources/simple/price.d.ts.map +1 -1
  35. package/src/resources/coins/coins.ts +13 -1
  36. package/src/resources/coins/contract/contract.ts +13 -1
  37. package/src/resources/coins/markets.ts +156 -127
  38. package/src/resources/exchanges/exchanges.ts +13 -9
  39. package/src/resources/onchain/networks/pools/pools.ts +1 -1
  40. package/src/resources/simple/price.ts +29 -25
  41. package/src/version.ts +1 -1
  42. package/version.d.mts +1 -1
  43. package/version.d.ts +1 -1
  44. package/version.js +1 -1
  45. package/version.mjs +1 -1
@@ -398,16 +398,20 @@ export namespace ExchangeGetIDResponse {
398
398
  }
399
399
  }
400
400
 
401
- export interface ExchangeGetListResponse {
402
- /**
403
- * exchange ID
404
- */
405
- id?: string;
401
+ export type ExchangeGetListResponse = Array<ExchangeGetListResponse.ExchangeGetListResponseItem>;
406
402
 
407
- /**
408
- * exchange name
409
- */
410
- name?: string;
403
+ export namespace ExchangeGetListResponse {
404
+ export interface ExchangeGetListResponseItem {
405
+ /**
406
+ * exchange ID
407
+ */
408
+ id: string;
409
+
410
+ /**
411
+ * exchange name
412
+ */
413
+ name: string;
414
+ }
411
415
  }
412
416
 
413
417
  export interface ExchangeGetParams {
@@ -276,7 +276,7 @@ export namespace PoolGetResponse {
276
276
  }
277
277
 
278
278
  export interface PoolGetAddressResponse {
279
- data?: Array<PoolGetAddressResponse.Data>;
279
+ data?: PoolGetAddressResponse.Data;
280
280
 
281
281
  included?: Array<PoolGetAddressResponse.Included>;
282
282
  }
@@ -21,31 +21,35 @@ export class Price extends APIResource {
21
21
  }
22
22
  }
23
23
 
24
- export interface PriceGetResponse {
25
- /**
26
- * last updated timestamp
27
- */
28
- last_updated_at?: number;
29
-
30
- /**
31
- * price in USD
32
- */
33
- usd?: number;
34
-
35
- /**
36
- * 24hr change in USD
37
- */
38
- usd_24h_change?: number;
39
-
40
- /**
41
- * 24hr volume in USD
42
- */
43
- usd_24h_vol?: number;
44
-
45
- /**
46
- * market cap in USD
47
- */
48
- usd_market_cap?: number;
24
+ export type PriceGetResponse = { [key: string]: PriceGetResponse.item };
25
+
26
+ export namespace PriceGetResponse {
27
+ export interface item {
28
+ /**
29
+ * last updated timestamp
30
+ */
31
+ last_updated_at?: number;
32
+
33
+ /**
34
+ * price in USD
35
+ */
36
+ usd?: number;
37
+
38
+ /**
39
+ * 24hr change in USD
40
+ */
41
+ usd_24h_change?: number;
42
+
43
+ /**
44
+ * 24hr volume in USD
45
+ */
46
+ usd_24h_vol?: number;
47
+
48
+ /**
49
+ * market cap in USD
50
+ */
51
+ usd_market_cap?: number;
52
+ }
49
53
  }
50
54
 
51
55
  export interface PriceGetParams {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.7.3'; // x-release-please-version
1
+ export const VERSION = '1.9.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.7.3";
1
+ export declare const VERSION = "1.9.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.7.3";
1
+ export declare const VERSION = "1.9.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.7.3'; // x-release-please-version
4
+ exports.VERSION = '1.9.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.7.3'; // x-release-please-version
1
+ export const VERSION = '1.9.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map