Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.11.3"
".": "1.12.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 81
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/coingecko%2Fcoingecko-9782d0fc256ca80aa3bb4c14cb3b3944b0076c5cea6046563c8a5979adc8981d.yml
openapi_spec_hash: dcb61d2acfd79e5b906fd191f6b512bb
config_hash: 7710c0bb2c0cea0ec5a44596f81188a6
configured_endpoints: 84
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/coingecko%2Fcoingecko-a23494dedfc230f769076f4022de83a327d642db68ceadedf998921c66ff9310.yml
openapi_spec_hash: 0bcc6962d4ee8f39880019986e87e433
config_hash: f101f417dba7f9352f7573639dd5938f
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 1.12.0 (2025-12-18)

Full Changelog: [v1.11.3...v1.12.0](https://github.com/coingecko/coingecko-python/compare/v1.11.3...v1.12.0)

### Features

* **api:** api update ([e0bf518](https://github.com/coingecko/coingecko-python/commit/e0bf5186eaaf4a10315c162e71f40a1c7c8bfffc))
* **api:** manual updates ([9a717af](https://github.com/coingecko/coingecko-python/commit/9a717af9715da994018f8fbb9b3199e1bf3929ad))

## 1.11.3 (2025-12-18)

Full Changelog: [v1.11.2...v1.11.3](https://github.com/coingecko/coingecko-python/compare/v1.11.2...v1.11.3)
Expand Down
21 changes: 20 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,18 @@ Methods:

- <code title="get /onchain/networks/{network}/tokens/{token_address}/trades">client.onchain.networks.tokens.trades.<a href="./src/coingecko_sdk/resources/onchain/networks/tokens/trades.py">get</a>(token_address, \*, network, \*\*<a href="src/coingecko_sdk/types/onchain/networks/tokens/trade_get_params.py">params</a>) -> <a href="./src/coingecko_sdk/types/onchain/networks/tokens/trade_get_response.py">TradeGetResponse</a></code>

#### TopTraders

Types:

```python
from coingecko_sdk.types.onchain.networks.tokens import TopTraderGetResponse
```

Methods:

- <code title="get /onchain/networks/{network_id}/tokens/{token_address}/top_traders">client.onchain.networks.tokens.top_traders.<a href="./src/coingecko_sdk/resources/onchain/networks/tokens/top_traders.py">get</a>(token_address, \*, network_id, \*\*<a href="src/coingecko_sdk/types/onchain/networks/tokens/top_trader_get_params.py">params</a>) -> <a href="./src/coingecko_sdk/types/onchain/networks/tokens/top_trader_get_response.py">TopTraderGetResponse</a></code>

## Pools

### Megafilter
Expand Down Expand Up @@ -692,13 +704,20 @@ Methods:
Types:

```python
from coingecko_sdk.types import PublicTreasuryGetCoinIDResponse, PublicTreasuryGetEntityIDResponse
from coingecko_sdk.types import (
PublicTreasuryGetCoinIDResponse,
PublicTreasuryGetEntityIDResponse,
PublicTreasuryGetHoldingChartResponse,
PublicTreasuryGetTransactionHistoryResponse,
)
```

Methods:

- <code title="get /{entity}/public_treasury/{coin_id}">client.public_treasury.<a href="./src/coingecko_sdk/resources/public_treasury.py">get_coin_id</a>(coin_id, \*, entity) -> <a href="./src/coingecko_sdk/types/public_treasury_get_coin_id_response.py">PublicTreasuryGetCoinIDResponse</a></code>
- <code title="get /public_treasury/{entity_id}">client.public_treasury.<a href="./src/coingecko_sdk/resources/public_treasury.py">get_entity_id</a>(entity_id) -> <a href="./src/coingecko_sdk/types/public_treasury_get_entity_id_response.py">PublicTreasuryGetEntityIDResponse</a></code>
- <code title="get /public_treasury/{entity_id}/{coin_id}/holding_chart">client.public_treasury.<a href="./src/coingecko_sdk/resources/public_treasury.py">get_holding_chart</a>(coin_id, \*, entity_id, \*\*<a href="src/coingecko_sdk/types/public_treasury_get_holding_chart_params.py">params</a>) -> <a href="./src/coingecko_sdk/types/public_treasury_get_holding_chart_response.py">PublicTreasuryGetHoldingChartResponse</a></code>
- <code title="get /public_treasury/{entity_id}/transaction_history">client.public_treasury.<a href="./src/coingecko_sdk/resources/public_treasury.py">get_transaction_history</a>(entity_id, \*\*<a href="src/coingecko_sdk/types/public_treasury_get_transaction_history_params.py">params</a>) -> <a href="./src/coingecko_sdk/types/public_treasury_get_transaction_history_response.py">PublicTreasuryGetTransactionHistoryResponse</a></code>

# Search

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "coingecko_sdk"
version = "1.11.3"
version = "1.12.0"
description = "The official Python library for the coingecko API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/coingecko_sdk/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "coingecko_sdk"
__version__ = "1.11.3" # x-release-please-version
__version__ = "1.12.0" # x-release-please-version
4 changes: 2 additions & 2 deletions src/coingecko_sdk/resources/coins/circulating_supply_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get(
id: str,
*,
days: str,
interval: Literal["daily"] | Omit = omit,
interval: Literal["5m", "hourly", "daily"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -172,7 +172,7 @@ async def get(
id: str,
*,
days: str,
interval: Literal["daily"] | Omit = omit,
interval: Literal["5m", "hourly", "daily"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down
8 changes: 8 additions & 0 deletions src/coingecko_sdk/resources/coins/coins.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def get_id(
community_data: bool | Omit = omit,
developer_data: bool | Omit = omit,
dex_pair_format: Literal["contract_address", "symbol"] | Omit = omit,
include_categories_details: bool | Omit = omit,
localization: bool | Omit = omit,
market_data: bool | Omit = omit,
sparkline: bool | Omit = omit,
Expand All @@ -208,6 +209,8 @@ def get_id(
set to `symbol` to display DEX pair base and target as symbols, default:
`contract_address`

include_categories_details: include categories details, default: false

localization: include all the localized languages in the response, default: true

market_data: include market data, default: true
Expand Down Expand Up @@ -238,6 +241,7 @@ def get_id(
"community_data": community_data,
"developer_data": developer_data,
"dex_pair_format": dex_pair_format,
"include_categories_details": include_categories_details,
"localization": localization,
"market_data": market_data,
"sparkline": sparkline,
Expand Down Expand Up @@ -321,6 +325,7 @@ async def get_id(
community_data: bool | Omit = omit,
developer_data: bool | Omit = omit,
dex_pair_format: Literal["contract_address", "symbol"] | Omit = omit,
include_categories_details: bool | Omit = omit,
localization: bool | Omit = omit,
market_data: bool | Omit = omit,
sparkline: bool | Omit = omit,
Expand All @@ -347,6 +352,8 @@ async def get_id(
set to `symbol` to display DEX pair base and target as symbols, default:
`contract_address`

include_categories_details: include categories details, default: false

localization: include all the localized languages in the response, default: true

market_data: include market data, default: true
Expand Down Expand Up @@ -377,6 +384,7 @@ async def get_id(
"community_data": community_data,
"developer_data": developer_data,
"dex_pair_format": dex_pair_format,
"include_categories_details": include_categories_details,
"localization": localization,
"market_data": market_data,
"sparkline": sparkline,
Expand Down
4 changes: 2 additions & 2 deletions src/coingecko_sdk/resources/coins/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get(
24hrs volume, ...) at a given date for a coin based on a particular coin ID**

Args:
date: date of data snapshot (`YYYY-MM-DD` or `YYYY-MM-DDTHH:MM`)
date: date of data snapshot (`YYYY-MM-DD`)

localization: include all the localized languages in response, default: true

Expand Down Expand Up @@ -130,7 +130,7 @@ async def get(
24hrs volume, ...) at a given date for a coin based on a particular coin ID**

Args:
date: date of data snapshot (`YYYY-MM-DD` or `YYYY-MM-DDTHH:MM`)
date: date of data snapshot (`YYYY-MM-DD`)

localization: include all the localized languages in response, default: true

Expand Down
10 changes: 10 additions & 0 deletions src/coingecko_sdk/resources/onchain/networks/dexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def get_pools(
*,
network: str,
include: str | Omit = omit,
include_gt_community_data: bool | Omit = omit,
page: int | Omit = omit,
sort: Literal["h24_tx_count_desc", "h24_volume_usd_desc"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -108,6 +109,9 @@ def get_pools(
include: attributes to include, comma-separated if more than one to include Available
values: `base_token`, `quote_token`, `dex`

include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
Default value: false

page: page through results Default value: 1

sort: sort the pools by field Default value: h24_tx_count_desc
Expand All @@ -134,6 +138,7 @@ def get_pools(
query=maybe_transform(
{
"include": include,
"include_gt_community_data": include_gt_community_data,
"page": page,
"sort": sort,
},
Expand Down Expand Up @@ -211,6 +216,7 @@ async def get_pools(
*,
network: str,
include: str | Omit = omit,
include_gt_community_data: bool | Omit = omit,
page: int | Omit = omit,
sort: Literal["h24_tx_count_desc", "h24_volume_usd_desc"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -228,6 +234,9 @@ async def get_pools(
include: attributes to include, comma-separated if more than one to include Available
values: `base_token`, `quote_token`, `dex`

include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
Default value: false

page: page through results Default value: 1

sort: sort the pools by field Default value: h24_tx_count_desc
Expand All @@ -254,6 +263,7 @@ async def get_pools(
query=await async_maybe_transform(
{
"include": include,
"include_gt_community_data": include_gt_community_data,
"page": page,
"sort": sort,
},
Expand Down
20 changes: 20 additions & 0 deletions src/coingecko_sdk/resources/onchain/networks/new_pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def get(
self,
*,
include: str | Omit = omit,
include_gt_community_data: bool | Omit = omit,
page: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -62,6 +63,9 @@ def get(
include: attributes to include, comma-separated if more than one to include Available
values: `base_token`, `quote_token`, `dex`, `network`

include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
Default value: false

page: page through results Default value: 1

extra_headers: Send extra headers
Expand All @@ -82,6 +86,7 @@ def get(
query=maybe_transform(
{
"include": include,
"include_gt_community_data": include_gt_community_data,
"page": page,
},
new_pool_get_params.NewPoolGetParams,
Expand All @@ -95,6 +100,7 @@ def get_network(
network: str,
*,
include: str | Omit = omit,
include_gt_community_data: bool | Omit = omit,
page: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -111,6 +117,9 @@ def get_network(
include: attributes to include, comma-separated if more than one to include Available
values: `base_token`, `quote_token`, `dex`

include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
Default value: false

page: page through results Default value: 1

extra_headers: Send extra headers
Expand All @@ -133,6 +142,7 @@ def get_network(
query=maybe_transform(
{
"include": include,
"include_gt_community_data": include_gt_community_data,
"page": page,
},
new_pool_get_network_params.NewPoolGetNetworkParams,
Expand Down Expand Up @@ -166,6 +176,7 @@ async def get(
self,
*,
include: str | Omit = omit,
include_gt_community_data: bool | Omit = omit,
page: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -182,6 +193,9 @@ async def get(
include: attributes to include, comma-separated if more than one to include Available
values: `base_token`, `quote_token`, `dex`, `network`

include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
Default value: false

page: page through results Default value: 1

extra_headers: Send extra headers
Expand All @@ -202,6 +216,7 @@ async def get(
query=await async_maybe_transform(
{
"include": include,
"include_gt_community_data": include_gt_community_data,
"page": page,
},
new_pool_get_params.NewPoolGetParams,
Expand All @@ -215,6 +230,7 @@ async def get_network(
network: str,
*,
include: str | Omit = omit,
include_gt_community_data: bool | Omit = omit,
page: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -231,6 +247,9 @@ async def get_network(
include: attributes to include, comma-separated if more than one to include Available
values: `base_token`, `quote_token`, `dex`

include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
Default value: false

page: page through results Default value: 1

extra_headers: Send extra headers
Expand All @@ -253,6 +272,7 @@ async def get_network(
query=await async_maybe_transform(
{
"include": include,
"include_gt_community_data": include_gt_community_data,
"page": page,
},
new_pool_get_network_params.NewPoolGetNetworkParams,
Expand Down
10 changes: 10 additions & 0 deletions src/coingecko_sdk/resources/onchain/networks/pools/pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def get(
network: str,
*,
include: str | Omit = omit,
include_gt_community_data: bool | Omit = omit,
page: int | Omit = omit,
sort: Literal["h24_tx_count_desc", "h24_volume_usd_desc"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -114,6 +115,9 @@ def get(
include: attributes to include, comma-separated if more than one to include Available
values: `base_token`, `quote_token`, `dex`

include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
Default value: false

page: page through results Default value: 1

sort: sort the pools by field Default value: h24_tx_count_desc
Expand All @@ -138,6 +142,7 @@ def get(
query=maybe_transform(
{
"include": include,
"include_gt_community_data": include_gt_community_data,
"page": page,
"sort": sort,
},
Expand Down Expand Up @@ -247,6 +252,7 @@ async def get(
network: str,
*,
include: str | Omit = omit,
include_gt_community_data: bool | Omit = omit,
page: int | Omit = omit,
sort: Literal["h24_tx_count_desc", "h24_volume_usd_desc"] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -264,6 +270,9 @@ async def get(
include: attributes to include, comma-separated if more than one to include Available
values: `base_token`, `quote_token`, `dex`

include_gt_community_data: include GeckoTerminal community data (Sentiment votes, Suspicious reports)
Default value: false

page: page through results Default value: 1

sort: sort the pools by field Default value: h24_tx_count_desc
Expand All @@ -288,6 +297,7 @@ async def get(
query=await async_maybe_transform(
{
"include": include,
"include_gt_community_data": include_gt_community_data,
"page": page,
"sort": sort,
},
Expand Down
Loading