Skip to content

Commit 3b7e379

Browse files
authored
Merge pull request #5 from cryptechdev/release-please--branches--main--changes--next
2 parents 7812ed7 + 7686739 commit 3b7e379

18 files changed

Lines changed: 290 additions & 46 deletions

.github/workflows/release-doctor.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.4.0"
2+
".": "0.5.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 49
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-99a21fdf9159c28a75eb60c0b7ad4710d01b0a98dd0474267a07e9914039fa83.yml
3-
openapi_spec_hash: f58f326c00c34bc45b28b09b9530566c
4-
config_hash: 27aff5f3f84397a9b3c2cb8a3c1d1e71
1+
configured_endpoints: 50
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-40d8045cda417d4c8a7a4a0d014345cdeb273fb5fdfa48eea08493bc5a5079ce.yml
3+
openapi_spec_hash: 71ca66dcf6e775aae3f49b42cd6ce2cc
4+
config_hash: f5ca3bc259f95069f0db4114d34e29ef

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## 0.5.0 (2026-04-17)
4+
5+
Full Changelog: [v0.4.0...v0.5.0](https://github.com/cryptechdev/neptune-api-v2-python/compare/v0.4.0...v0.5.0)
6+
7+
### Features
8+
9+
* **api:** add TVL, missing balance variants ([10486d5](https://github.com/cryptechdev/neptune-api-v2-python/commit/10486d58a60c4e1744125c00f7cee3b8eb34382e))
10+
11+
12+
### Bug Fixes
13+
14+
* ensure file data are only sent as 1 parameter ([1581f6d](https://github.com/cryptechdev/neptune-api-v2-python/commit/1581f6dae176d8896f9d7dcfc79cda9413aa7275))
15+
16+
17+
### Chores
18+
19+
* **ci:** remove release-doctor workflow ([39b2df7](https://github.com/cryptechdev/neptune-api-v2-python/commit/39b2df7b359adc03bcad1e4f6521ace263c88393))
20+
321
## 0.4.0 (2026-04-09)
422

523
Full Changelog: [v0.3.0...v0.4.0](https://github.com/cryptechdev/neptune-api-v2-python/compare/v0.3.0...v0.4.0)

api.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ from neptune_api_v2.types import (
6363
GlobalMarketConfig,
6464
MarketRate,
6565
MergedMarket,
66+
Tvl,
6667
MarketGetMergedResponse,
6768
MarketGetMergedByAssetResponse,
6869
MarketGetOverviewResponse,
6970
MarketGetParamsResponse,
71+
MarketGetTvlResponse,
7072
)
7173
```
7274

@@ -76,6 +78,7 @@ Methods:
7678
- <code title="get /api/v1/markets/merged/lookup">client.markets.<a href="./src/neptune_api_v2/resources/markets/markets.py">get_merged_by_asset</a>(\*\*<a href="src/neptune_api_v2/types/market_get_merged_by_asset_params.py">params</a>) -> <a href="./src/neptune_api_v2/types/market_get_merged_by_asset_response.py">MarketGetMergedByAssetResponse</a></code>
7779
- <code title="get /api/v1/markets">client.markets.<a href="./src/neptune_api_v2/resources/markets/markets.py">get_overview</a>(\*\*<a href="src/neptune_api_v2/types/market_get_overview_params.py">params</a>) -> <a href="./src/neptune_api_v2/types/market_get_overview_response.py">MarketGetOverviewResponse</a></code>
7880
- <code title="get /api/v1/markets/config">client.markets.<a href="./src/neptune_api_v2/resources/markets/markets.py">get_params</a>(\*\*<a href="src/neptune_api_v2/types/market_get_params_params.py">params</a>) -> <a href="./src/neptune_api_v2/types/market_get_params_response.py">MarketGetParamsResponse</a></code>
81+
- <code title="get /api/v1/markets/tvl">client.markets.<a href="./src/neptune_api_v2/resources/markets/markets.py">get_tvl</a>(\*\*<a href="src/neptune_api_v2/types/market_get_tvl_params.py">params</a>) -> <a href="./src/neptune_api_v2/types/market_get_tvl_response.py">MarketGetTvlResponse</a></code>
7982

8083
## Lend
8184

bin/check-release-environment

Lines changed: 0 additions & 17 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "neptune_api_v2"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
description = "The official Python library for the neptune-api-v2 API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/neptune_api_v2/_utils/_utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ def _extract_items(
8686
index += 1
8787
if is_dict(obj):
8888
try:
89-
# We are at the last entry in the path so we must remove the field
90-
if (len(path)) == index:
89+
# Remove the field if there are no more dict keys in the path,
90+
# only "<array>" traversal markers or end.
91+
if all(p == "<array>" for p in path[index:]):
9192
item = obj.pop(key)
9293
else:
9394
item = obj[key]

src/neptune_api_v2/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "neptune_api_v2"
4-
__version__ = "0.4.0" # x-release-please-version
4+
__version__ = "0.5.0" # x-release-please-version

src/neptune_api_v2/resources/markets/markets.py

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
AsyncLendResourceWithStreamingResponse,
1414
)
1515
from ...types import (
16+
market_get_tvl_params,
1617
market_get_merged_params,
1718
market_get_params_params,
1819
market_get_overview_params,
@@ -37,6 +38,7 @@
3738
AsyncBorrowResourceWithStreamingResponse,
3839
)
3940
from ..._base_client import make_request_options
41+
from ...types.market_get_tvl_response import MarketGetTvlResponse
4042
from ...types.market_get_merged_response import MarketGetMergedResponse
4143
from ...types.market_get_params_response import MarketGetParamsResponse
4244
from ...types.market_get_overview_response import MarketGetOverviewResponse
@@ -252,6 +254,43 @@ def get_params(
252254
cast_to=MarketGetParamsResponse,
253255
)
254256

257+
def get_tvl(
258+
self,
259+
*,
260+
with_text: bool | Omit = omit,
261+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
262+
# The extra values given here take precedence over values defined on the client or passed to this method.
263+
extra_headers: Headers | None = None,
264+
extra_query: Query | None = None,
265+
extra_body: Body | None = None,
266+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
267+
) -> MarketGetTvlResponse:
268+
"""
269+
Get market TVL
270+
271+
Args:
272+
with_text: Include text variation fields
273+
274+
extra_headers: Send extra headers
275+
276+
extra_query: Add additional query parameters to the request
277+
278+
extra_body: Add additional JSON properties to the request
279+
280+
timeout: Override the client-level default timeout for this request, in seconds
281+
"""
282+
return self._get(
283+
"/api/v1/markets/tvl",
284+
options=make_request_options(
285+
extra_headers=extra_headers,
286+
extra_query=extra_query,
287+
extra_body=extra_body,
288+
timeout=timeout,
289+
query=maybe_transform({"with_text": with_text}, market_get_tvl_params.MarketGetTvlParams),
290+
),
291+
cast_to=MarketGetTvlResponse,
292+
)
293+
255294

256295
class AsyncMarketsResource(AsyncAPIResource):
257296
@cached_property
@@ -462,6 +501,43 @@ async def get_params(
462501
cast_to=MarketGetParamsResponse,
463502
)
464503

504+
async def get_tvl(
505+
self,
506+
*,
507+
with_text: bool | Omit = omit,
508+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
509+
# The extra values given here take precedence over values defined on the client or passed to this method.
510+
extra_headers: Headers | None = None,
511+
extra_query: Query | None = None,
512+
extra_body: Body | None = None,
513+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
514+
) -> MarketGetTvlResponse:
515+
"""
516+
Get market TVL
517+
518+
Args:
519+
with_text: Include text variation fields
520+
521+
extra_headers: Send extra headers
522+
523+
extra_query: Add additional query parameters to the request
524+
525+
extra_body: Add additional JSON properties to the request
526+
527+
timeout: Override the client-level default timeout for this request, in seconds
528+
"""
529+
return await self._get(
530+
"/api/v1/markets/tvl",
531+
options=make_request_options(
532+
extra_headers=extra_headers,
533+
extra_query=extra_query,
534+
extra_body=extra_body,
535+
timeout=timeout,
536+
query=await async_maybe_transform({"with_text": with_text}, market_get_tvl_params.MarketGetTvlParams),
537+
),
538+
cast_to=MarketGetTvlResponse,
539+
)
540+
465541

466542
class MarketsResourceWithRawResponse:
467543
def __init__(self, markets: MarketsResource) -> None:
@@ -479,6 +555,9 @@ def __init__(self, markets: MarketsResource) -> None:
479555
self.get_params = to_raw_response_wrapper(
480556
markets.get_params,
481557
)
558+
self.get_tvl = to_raw_response_wrapper(
559+
markets.get_tvl,
560+
)
482561

483562
@cached_property
484563
def lend(self) -> LendResourceWithRawResponse:
@@ -505,6 +584,9 @@ def __init__(self, markets: AsyncMarketsResource) -> None:
505584
self.get_params = async_to_raw_response_wrapper(
506585
markets.get_params,
507586
)
587+
self.get_tvl = async_to_raw_response_wrapper(
588+
markets.get_tvl,
589+
)
508590

509591
@cached_property
510592
def lend(self) -> AsyncLendResourceWithRawResponse:
@@ -531,6 +613,9 @@ def __init__(self, markets: MarketsResource) -> None:
531613
self.get_params = to_streamed_response_wrapper(
532614
markets.get_params,
533615
)
616+
self.get_tvl = to_streamed_response_wrapper(
617+
markets.get_tvl,
618+
)
534619

535620
@cached_property
536621
def lend(self) -> LendResourceWithStreamingResponse:
@@ -557,6 +642,9 @@ def __init__(self, markets: AsyncMarketsResource) -> None:
557642
self.get_params = async_to_streamed_response_wrapper(
558643
markets.get_params,
559644
)
645+
self.get_tvl = async_to_streamed_response_wrapper(
646+
markets.get_tvl,
647+
)
560648

561649
@cached_property
562650
def lend(self) -> AsyncLendResourceWithStreamingResponse:

0 commit comments

Comments
 (0)