@coingecko/coingecko-typescript 1.2.1 → 1.3.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 +8 -0
- package/README.md +8 -6
- package/package.json +1 -1
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.3.0 (2025-06-13)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.2.1...v1.3.0](https://github.com/coingecko/coingecko-typescript/compare/v1.2.1...v1.3.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** Update example response ([d163a61](https://github.com/coingecko/coingecko-typescript/commit/d163a61aa6392059cd65eb496f6926405b00ec27))
|
|
10
|
+
|
|
3
11
|
## 1.2.1 (2025-06-10)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.2.0...v1.2.1](https://github.com/coingecko/coingecko-typescript/compare/v1.2.0...v1.2.1)
|
package/README.md
CHANGED
|
@@ -23,13 +23,14 @@ The full API of this library can be found in [api.md](api.md).
|
|
|
23
23
|
import Coingecko from '@coingecko/coingecko-typescript';
|
|
24
24
|
|
|
25
25
|
const client = new Coingecko({
|
|
26
|
-
proAPIKey: process.env['COINGECKO_PRO_API_KEY'],
|
|
27
|
-
|
|
26
|
+
proAPIKey: process.env['COINGECKO_PRO_API_KEY'],
|
|
27
|
+
// demoAPIKey: process.env['COINGECKO_DEMO_API_KEY'], // Optional, for Demo API access
|
|
28
|
+
environment: 'pro', // 'demo' to initialize the client with Demo API access
|
|
28
29
|
});
|
|
29
30
|
|
|
30
31
|
const price = await client.simple.price.get({ vs_currencies: 'usd', ids: 'bitcoin' });
|
|
31
32
|
|
|
32
|
-
console.log(price.
|
|
33
|
+
console.log(price.bitcoin.usd);
|
|
33
34
|
```
|
|
34
35
|
|
|
35
36
|
### Request & Response types
|
|
@@ -41,8 +42,9 @@ This library includes TypeScript definitions for all request params and response
|
|
|
41
42
|
import Coingecko from '@coingecko/coingecko-typescript';
|
|
42
43
|
|
|
43
44
|
const client = new Coingecko({
|
|
44
|
-
proAPIKey: process.env['COINGECKO_PRO_API_KEY'],
|
|
45
|
-
|
|
45
|
+
proAPIKey: process.env['COINGECKO_PRO_API_KEY'],
|
|
46
|
+
// demoAPIKey: process.env['COINGECKO_DEMO_API_KEY'], // Optional, for Demo API access
|
|
47
|
+
environment: 'pro', // 'demo' to initialize the client with Demo API access
|
|
46
48
|
});
|
|
47
49
|
|
|
48
50
|
const params: Coingecko.Simple.PriceGetParams = { vs_currencies: 'usd', ids: 'bitcoin' };
|
|
@@ -147,7 +149,7 @@ const { data: price, response: raw } = await client.simple.price
|
|
|
147
149
|
.get({ vs_currencies: 'usd', ids: 'bitcoin' })
|
|
148
150
|
.withResponse();
|
|
149
151
|
console.log(raw.headers.get('X-My-Header'));
|
|
150
|
-
console.log(price.
|
|
152
|
+
console.log(price.bitcoin.usd);
|
|
151
153
|
```
|
|
152
154
|
|
|
153
155
|
### Logging
|
package/package.json
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.3.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.3.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|