File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2- "." : " 1.10.0 "
2+ "." : " 1.10.1 "
33}
Original file line number Diff line number Diff line change 11configured_endpoints : 81
22openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/coingecko%2Fcoingecko-91c83447321ba66e6f4972b448ee54d2361be73423ff0200633740f47dfb0cea.yml
33openapi_spec_hash : 775dac0b3f4bd1d7bb64745c22546758
4- config_hash : 43f1224de55e7812fa92ff04f51214bf
4+ config_hash : 7710c0bb2c0cea0ec5a44596f81188a6
Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.10.1 (2025-09-25)
4+
5+ Full Changelog: [ v1.10.0...v1.10.1] ( https://github.com/coingecko/coingecko-python/compare/v1.10.0...v1.10.1 )
6+
7+ ### Bug Fixes
8+
9+ * Correct accessing example in README ([ 7a8c9fd] ( https://github.com/coingecko/coingecko-python/commit/7a8c9fd3c281c92b3946d6f8e4a46566f88ef810 ) )
10+
311## 1.10.0 (2025-09-22)
412
513Full Changelog: [ v1.9.0...v1.10.0] ( https://github.com/coingecko/coingecko-python/compare/v1.9.0...v1.10.0 )
Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ client = Coingecko(
3434 environment = " pro" , # "demo" to initialize the client with Demo API access
3535)
3636
37- price = client.simple.price.get(
37+ price_data = client.simple.price.get(
3838 vs_currencies = " usd" ,
3939 ids = " bitcoin" ,
4040)
41- print (price. bitcoin)
41+ print (price_data[ ' bitcoin' ].usd )
4242```
4343
4444While you can provide a ` pro_api_key ` keyword argument,
@@ -63,11 +63,11 @@ client = AsyncCoingecko(
6363
6464
6565async def main () -> None :
66- price = await client.simple.price.get(
66+ price_data = await client.simple.price.get(
6767 vs_currencies = " usd" ,
6868 ids = " bitcoin" ,
6969 )
70- print (price. bitcoin)
70+ print (price_data[ ' bitcoin' ].usd )
7171
7272
7373asyncio.run(main())
@@ -255,8 +255,8 @@ response = client.simple.price.with_raw_response.get(
255255)
256256print (response.headers.get(' X-My-Header' ))
257257
258- price = response.parse() # get the object that `simple.price.get()` would have returned
259- print (price. bitcoin)
258+ price_data = response.parse() # get the object that `simple.price.get()` would have returned
259+ print (price_data[ ' bitcoin' ].usd )
260260```
261261
262262These methods return an [ ` APIResponse ` ] ( https://github.com/coingecko/coingecko-python/tree/main/src/coingecko_sdk/_response.py ) object.
Original file line number Diff line number Diff line change 11[project ]
22name = " coingecko_sdk"
3- version = " 1.10.0 "
3+ version = " 1.10.1 "
44description = " The official Python library for the coingecko API"
55dynamic = [" readme" ]
66license = " Apache-2.0"
Original file line number Diff line number Diff line change 11# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22
33__title__ = "coingecko_sdk"
4- __version__ = "1.10.0 " # x-release-please-version
4+ __version__ = "1.10.1 " # x-release-please-version
You can’t perform that action at this time.
0 commit comments