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.10.1"
".": "1.11.0"
}
4 changes: 2 additions & 2 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-91c83447321ba66e6f4972b448ee54d2361be73423ff0200633740f47dfb0cea.yml
openapi_spec_hash: 775dac0b3f4bd1d7bb64745c22546758
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/coingecko%2Fcoingecko-9782d0fc256ca80aa3bb4c14cb3b3944b0076c5cea6046563c8a5979adc8981d.yml
openapi_spec_hash: dcb61d2acfd79e5b906fd191f6b512bb
config_hash: 7710c0bb2c0cea0ec5a44596f81188a6
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.11.0 (2025-10-06)

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

### Features

* **api:** api update ([384c417](https://github.com/coingecko/coingecko-python/commit/384c4173d02da6ee84c5650ded6c56530a960fd1))

## 1.10.1 (2025-09-25)

Full Changelog: [v1.10.0...v1.10.1](https://github.com/coingecko/coingecko-python/compare/v1.10.0...v1.10.1)
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.10.1"
version = "1.11.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.10.1" # x-release-please-version
__version__ = "1.11.0" # x-release-please-version
8 changes: 8 additions & 0 deletions src/coingecko_sdk/resources/onchain/pools/megafilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ def get(
"h24_trending",
"h24_tx_count_desc",
"h24_volume_usd_desc",
"m5_price_change_percentage_asc",
"h1_price_change_percentage_asc",
"h6_price_change_percentage_asc",
"h24_price_change_percentage_asc",
"m5_price_change_percentage_desc",
"h1_price_change_percentage_desc",
"h6_price_change_percentage_desc",
Expand Down Expand Up @@ -271,6 +275,10 @@ async def get(
"h24_trending",
"h24_tx_count_desc",
"h24_volume_usd_desc",
"m5_price_change_percentage_asc",
"h1_price_change_percentage_asc",
"h6_price_change_percentage_asc",
"h24_price_change_percentage_asc",
"m5_price_change_percentage_desc",
"h1_price_change_percentage_desc",
"h6_price_change_percentage_desc",
Expand Down
75 changes: 52 additions & 23 deletions src/coingecko_sdk/types/derivatives/exchange_get_id_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,79 @@

from ..._models import BaseModel

__all__ = ["ExchangeGetIDResponse", "Ticker"]
__all__ = ["ExchangeGetIDResponse", "Ticker", "TickerConvertedLast", "TickerConvertedVolume"]


class TickerConvertedLast(BaseModel):
btc: Optional[str] = None

eth: Optional[str] = None

usd: Optional[str] = None


class TickerConvertedVolume(BaseModel):
btc: Optional[str] = None

eth: Optional[str] = None

usd: Optional[str] = None


class Ticker(BaseModel):
basis: Optional[float] = None
"""difference of derivative price and index price"""
base: Optional[str] = None
"""derivative base asset"""

bid_ask_spread: Optional[float] = None
"""derivative bid ask spread"""

coin_id: Optional[str] = None
"""derivative base asset coin ID"""

contract_type: Optional[str] = None
"""derivative contract type"""

converted_last: Optional[TickerConvertedLast] = None

converted_volume: Optional[TickerConvertedVolume] = None

expired_at: Optional[str] = None

funding_rate: Optional[float] = None
"""derivative funding rate"""

index: Optional[float] = None
"""derivative underlying asset price"""

index_id: Optional[str] = None
"""derivative underlying asset"""
h24_percentage_change: Optional[float] = None
"""derivative price percentage change in 24 hours"""

last_traded_at: Optional[float] = None
"""derivative last updated time"""
h24_volume: Optional[float] = None
"""derivative volume in 24 hours"""

market: Optional[str] = None
"""derivative market name"""
index: Optional[float] = None
"""derivative underlying asset price"""

open_interest: Optional[float] = None
"""derivative open interest"""
index_basis_percentage: Optional[float] = None
"""difference of derivative price and index price in percentage"""

price: Optional[str] = None
"""derivative ticker price"""
last: Optional[float] = None
"""derivative last price"""

price_percentage_change_24h: Optional[float] = None
"""derivative ticker price percentage change in 24 hours"""
last_traded: Optional[float] = None
"""derivative last updated time"""

spread: Optional[float] = None
"""derivative bid ask spread"""
open_interest_usd: Optional[float] = None
"""derivative open interest in USD"""

symbol: Optional[str] = None
"""derivative ticker symbol"""

volume_24h: Optional[float] = None
"""derivative volume in 24 hours"""
target: Optional[str] = None
"""derivative target asset"""

target_coin_id: Optional[str] = None
"""derivative target asset coin ID"""

trade_url: Optional[str] = None
"""derivative trade url"""


class ExchangeGetIDResponse(BaseModel):
Expand All @@ -74,7 +103,7 @@ class ExchangeGetIDResponse(BaseModel):

tickers: Optional[List[Ticker]] = None

trade_volume_24h_btc: Optional[str] = None
trade_volume_24h_btc: Optional[float] = None
"""derivatives exchange trade volume in BTC in 24 hours"""

url: Optional[str] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"MultiGetAddressesResponse",
"Data",
"DataAttributes",
"DataAttributesLaunchpadDetails",
"DataAttributesVolumeUsd",
"DataRelationships",
"DataRelationshipsTopPools",
Expand All @@ -33,6 +34,16 @@
]


class DataAttributesLaunchpadDetails(BaseModel):
completed: Optional[bool] = None

completed_at: Optional[str] = None

graduation_percentage: Optional[float] = None

migrated_destination_pool_address: Optional[str] = None


class DataAttributesVolumeUsd(BaseModel):
h24: Optional[str] = None

Expand All @@ -48,6 +59,8 @@ class DataAttributes(BaseModel):

image_url: Optional[str] = None

launchpad_details: Optional[DataAttributesLaunchpadDetails] = None

market_cap_usd: Optional[str] = None

name: Optional[str] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ class MegafilterGetParams(TypedDict, total=False):
"h24_trending",
"h24_tx_count_desc",
"h24_volume_usd_desc",
"m5_price_change_percentage_asc",
"h1_price_change_percentage_asc",
"h6_price_change_percentage_asc",
"h24_price_change_percentage_asc",
"m5_price_change_percentage_desc",
"h1_price_change_percentage_desc",
"h6_price_change_percentage_desc",
Expand Down
20 changes: 10 additions & 10 deletions tests/api_resources/onchain/networks/tokens/test_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TestMulti:
def test_method_get_addresses(self, client: Coingecko) -> None:
multi = client.onchain.networks.tokens.multi.get_addresses(
addresses="addresses",
network="eth",
network="solana",
)
assert_matches_type(MultiGetAddressesResponse, multi, path=["response"])

Expand All @@ -31,7 +31,7 @@ def test_method_get_addresses(self, client: Coingecko) -> None:
def test_method_get_addresses_with_all_params(self, client: Coingecko) -> None:
multi = client.onchain.networks.tokens.multi.get_addresses(
addresses="addresses",
network="eth",
network="solana",
include="top_pools",
include_composition=True,
)
Expand All @@ -42,7 +42,7 @@ def test_method_get_addresses_with_all_params(self, client: Coingecko) -> None:
def test_raw_response_get_addresses(self, client: Coingecko) -> None:
response = client.onchain.networks.tokens.multi.with_raw_response.get_addresses(
addresses="addresses",
network="eth",
network="solana",
)

assert response.is_closed is True
Expand All @@ -55,7 +55,7 @@ def test_raw_response_get_addresses(self, client: Coingecko) -> None:
def test_streaming_response_get_addresses(self, client: Coingecko) -> None:
with client.onchain.networks.tokens.multi.with_streaming_response.get_addresses(
addresses="addresses",
network="eth",
network="solana",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -77,7 +77,7 @@ def test_path_params_get_addresses(self, client: Coingecko) -> None:
with pytest.raises(ValueError, match=r"Expected a non-empty value for `addresses` but received ''"):
client.onchain.networks.tokens.multi.with_raw_response.get_addresses(
addresses="",
network="eth",
network="solana",
)


Expand All @@ -91,7 +91,7 @@ class TestAsyncMulti:
async def test_method_get_addresses(self, async_client: AsyncCoingecko) -> None:
multi = await async_client.onchain.networks.tokens.multi.get_addresses(
addresses="addresses",
network="eth",
network="solana",
)
assert_matches_type(MultiGetAddressesResponse, multi, path=["response"])

Expand All @@ -100,7 +100,7 @@ async def test_method_get_addresses(self, async_client: AsyncCoingecko) -> None:
async def test_method_get_addresses_with_all_params(self, async_client: AsyncCoingecko) -> None:
multi = await async_client.onchain.networks.tokens.multi.get_addresses(
addresses="addresses",
network="eth",
network="solana",
include="top_pools",
include_composition=True,
)
Expand All @@ -111,7 +111,7 @@ async def test_method_get_addresses_with_all_params(self, async_client: AsyncCoi
async def test_raw_response_get_addresses(self, async_client: AsyncCoingecko) -> None:
response = await async_client.onchain.networks.tokens.multi.with_raw_response.get_addresses(
addresses="addresses",
network="eth",
network="solana",
)

assert response.is_closed is True
Expand All @@ -124,7 +124,7 @@ async def test_raw_response_get_addresses(self, async_client: AsyncCoingecko) ->
async def test_streaming_response_get_addresses(self, async_client: AsyncCoingecko) -> None:
async with async_client.onchain.networks.tokens.multi.with_streaming_response.get_addresses(
addresses="addresses",
network="eth",
network="solana",
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -146,5 +146,5 @@ async def test_path_params_get_addresses(self, async_client: AsyncCoingecko) ->
with pytest.raises(ValueError, match=r"Expected a non-empty value for `addresses` but received ''"):
await async_client.onchain.networks.tokens.multi.with_raw_response.get_addresses(
addresses="",
network="eth",
network="solana",
)