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
26 changes: 16 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: CI
on:
push:
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
branches:
- '**'
- '!integrated/**'
- '!stl-preview-head/**'
- '!stl-preview-base/**'
- '!generated'
- '!codegen/**'
- 'codegen/stl/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
Expand All @@ -17,7 +19,7 @@ jobs:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/neptune-api-v2-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6

Expand All @@ -33,7 +35,7 @@ jobs:
run: ./scripts/lint

build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
timeout-minutes: 10
name: build
permissions:
Expand All @@ -55,14 +57,18 @@ jobs:
run: uv build

- name: Get GitHub OIDC Token
if: github.repository == 'stainless-sdks/neptune-api-v2-python'
if: |-
github.repository == 'stainless-sdks/neptune-api-v2-python' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: github.repository == 'stainless-sdks/neptune-api-v2-python'
if: |-
github.repository == 'stainless-sdks/neptune-api-v2-python' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow is triggered when a GitHub release is created.
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/cryptechdev/stainless-api-v2-python/actions/workflows/publish-pypi.yml
# You can run this workflow by navigating to https://www.github.com/cryptechdev/neptune-api-v2-python/actions/workflows/publish-pypi.yml
name: Publish PyPI
on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'cryptechdev/stainless-api-v2-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
if: github.repository == 'cryptechdev/neptune-api-v2-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v6
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.prism.log
.stdy.log
_dev

__pycache__
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.0.1"
".": "0.1.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: 47
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-9048b9a34641ce9f489cc9813115c2cbe53ba4e19fec4d4be8ad50cc4c6dc955.yml
openapi_spec_hash: 90a2e162ca6a44232297cba2c5017476
config_hash: da42ffa688c006ab6ebd3493c9dfb0c6
configured_endpoints: 48
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-5768d4f43166406f5b74235f2dd9e91082bd67a7b182ca05d5df55604ebedd7e.yml
openapi_spec_hash: 2c5da98fd945fbfc68611634b7aa7042
config_hash: fa0efc29593602eac57523d55bc83fa6
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Changelog

## 0.1.0 (2026-03-30)

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

### Features

* **api:** api update ([b6c29db](https://github.com/cryptechdev/neptune-api-v2-python/commit/b6c29dbc5c8474713d3b45ad71d9e6ad36f269d5))
* **api:** fix missing unlocks endpoint ([fabb464](https://github.com/cryptechdev/neptune-api-v2-python/commit/fabb464d4759502d7f49abdad35c2d06e227f414))
* **api:** fix npm package name yaml ([9ce497f](https://github.com/cryptechdev/neptune-api-v2-python/commit/9ce497f5da04a604c0fa6f1ff0ee229372a27bfb))
* **api:** manual updates ([b7c41b2](https://github.com/cryptechdev/neptune-api-v2-python/commit/b7c41b2c316bc714f82b75233307cb53040366c9))
* **api:** manual updates ([f9cfab2](https://github.com/cryptechdev/neptune-api-v2-python/commit/f9cfab2a146e924b7d3f07f253be4de3ba9e4a2a))
* **api:** manual updates ([6f72f25](https://github.com/cryptechdev/neptune-api-v2-python/commit/6f72f25e1ad1f5209d896e95ec091df0175e7381))
* **api:** manual updates ([ad3aa1d](https://github.com/cryptechdev/neptune-api-v2-python/commit/ad3aa1d9eb34446c929eef61fc8c1c7f02c47d27))
* **api:** manual updates ([1637771](https://github.com/cryptechdev/neptune-api-v2-python/commit/163777148c4c49df2a6a1bc43f674527c87543b8))
* **api:** manual updates ([88800d5](https://github.com/cryptechdev/neptune-api-v2-python/commit/88800d595d34fca5b632ee8905c691e8ece062d5))
* **api:** manual updates ([734507c](https://github.com/cryptechdev/neptune-api-v2-python/commit/734507cb06dfce17a1577895c23ee9498a6b2cc2))
* **api:** manual updates ([078f551](https://github.com/cryptechdev/neptune-api-v2-python/commit/078f551028b777b9f32caa954d16f98b0a188385))
* **api:** manual updates ([c020beb](https://github.com/cryptechdev/neptune-api-v2-python/commit/c020bebc90b10afcb8e3fb4c4bb92db31d79a3a6))
* **api:** manual updates ([e86feeb](https://github.com/cryptechdev/neptune-api-v2-python/commit/e86feeb3249f10c94bff4c20870d66b5d87c797f))
* **api:** manual updates ([3208888](https://github.com/cryptechdev/neptune-api-v2-python/commit/32088880c9c616e927016134b5ffaa8fc25bbcc4))
* **api:** manual updates ([e19ffc5](https://github.com/cryptechdev/neptune-api-v2-python/commit/e19ffc53385463539ba1ef1a2550c269053f301d))
* **api:** manual updates ([665f696](https://github.com/cryptechdev/neptune-api-v2-python/commit/665f696256c564619c93dffcb53afd7359c95e30))
* **api:** update openapi spec ([67890ec](https://github.com/cryptechdev/neptune-api-v2-python/commit/67890ec54db761e15180cb2553a757e57d4f9007))
* **internal:** implement indices array format for query and form serialization ([03d9eb0](https://github.com/cryptechdev/neptune-api-v2-python/commit/03d9eb0b52e51bef70134c34432e4899b2094632))


### Bug Fixes

* **deps:** bump minimum typing-extensions version ([c53e89a](https://github.com/cryptechdev/neptune-api-v2-python/commit/c53e89a6e5ba4e1b20012c7a141bc1858de26148))
* **pydantic:** do not pass `by_alias` unless set ([fc8fe1a](https://github.com/cryptechdev/neptune-api-v2-python/commit/fc8fe1ae1177429d60d06dc7f0ba836b90964ff1))
* sanitize endpoint path params ([44c0c8b](https://github.com/cryptechdev/neptune-api-v2-python/commit/44c0c8b8e3f5eeed5b54674c5a7ae43b8a176976))


### Chores

* **ci:** bump uv version ([2eb8bd0](https://github.com/cryptechdev/neptune-api-v2-python/commit/2eb8bd02d7bb0cfbd130a4c1fcadf80422954c64))
* **ci:** skip lint on metadata-only changes ([05a360f](https://github.com/cryptechdev/neptune-api-v2-python/commit/05a360fc519e9a75b6befeba4929e75f50bbd40b))
* **ci:** skip uploading artifacts on stainless-internal branches ([18daf63](https://github.com/cryptechdev/neptune-api-v2-python/commit/18daf632e1cce3dcd2a6ff59252f39523a731e86))
* configure new SDK language ([46f828a](https://github.com/cryptechdev/neptune-api-v2-python/commit/46f828ac3c0610a7e01eaa8577f8e822c629f3ec))
* configure new SDK language ([e5f08fa](https://github.com/cryptechdev/neptune-api-v2-python/commit/e5f08fa74eec724defb1621f896a5182522a540b))
* **internal:** add request options to SSE classes ([580d4ce](https://github.com/cryptechdev/neptune-api-v2-python/commit/580d4ce4f69a5cd75421af1465b5ebd209c34699))
* **internal:** make `test_proxy_environment_variables` more resilient ([29b6d23](https://github.com/cryptechdev/neptune-api-v2-python/commit/29b6d2306832ef6eec67c77cbe1147b785d0ce17))
* **internal:** make `test_proxy_environment_variables` more resilient to env ([75f44ea](https://github.com/cryptechdev/neptune-api-v2-python/commit/75f44eac55564fa4af69a3bf7bb00e4ede77ff29))
* **internal:** refactor authentication internals ([3261db6](https://github.com/cryptechdev/neptune-api-v2-python/commit/3261db685ebc85d286eef92d04fb416f2bed5b6c))
* **internal:** tweak CI branches ([73115dc](https://github.com/cryptechdev/neptune-api-v2-python/commit/73115dce28adf13fd26721e8d012ca37a5a15c5e))
* **internal:** update gitignore ([234d18a](https://github.com/cryptechdev/neptune-api-v2-python/commit/234d18a2f8796f655ae9b581a183d8692679cf32))
* update SDK settings ([a258db0](https://github.com/cryptechdev/neptune-api-v2-python/commit/a258db0798d0887900eec2e89153fde27f024349))
* update SDK settings ([658ca27](https://github.com/cryptechdev/neptune-api-v2-python/commit/658ca278b9e97285664bee1bea5664a36dd3afea))
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
To install via git:

```sh
$ pip install git+ssh://git@github.com/cryptechdev/stainless-api-v2-python.git
$ pip install git+ssh://git@github.com/cryptechdev/neptune-api-v2-python.git
```

Alternatively, you can build from source and install the wheel file:
Expand Down Expand Up @@ -113,7 +113,7 @@ the changes aren't made through the automated pipeline, you may want to make rel

### Publish with a GitHub workflow

You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/cryptechdev/stainless-api-v2-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/cryptechdev/neptune-api-v2-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.

### Publish manually

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The full API of this library can be found in [api.md](api.md).

```sh
# install from the production repo
pip install git+ssh://git@github.com/cryptechdev/stainless-api-v2-python.git
pip install git+ssh://git@github.com/cryptechdev/neptune-api-v2-python.git
```

> [!NOTE]
Expand Down Expand Up @@ -65,7 +65,7 @@ You can enable this by installing `aiohttp`:

```sh
# install from the production repo
pip install 'neptune_api_v2[aiohttp] @ git+ssh://git@github.com/cryptechdev/stainless-api-v2-python.git'
pip install 'neptune_api_v2[aiohttp] @ git+ssh://git@github.com/cryptechdev/neptune-api-v2-python.git'
```

Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
Expand Down Expand Up @@ -226,9 +226,9 @@ status = response.parse() # get the object that `status.check_health()` would h
print(status.status)
```

These methods return an [`APIResponse`](https://github.com/cryptechdev/stainless-api-v2-python/tree/main/src/neptune_api_v2/_response.py) object.
These methods return an [`APIResponse`](https://github.com/cryptechdev/neptune-api-v2-python/tree/main/src/neptune_api_v2/_response.py) object.

The async client returns an [`AsyncAPIResponse`](https://github.com/cryptechdev/stainless-api-v2-python/tree/main/src/neptune_api_v2/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
The async client returns an [`AsyncAPIResponse`](https://github.com/cryptechdev/neptune-api-v2-python/tree/main/src/neptune_api_v2/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.

#### `.with_streaming_response`

Expand Down Expand Up @@ -332,7 +332,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con

We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

We are keen for your feedback; please open an [issue](https://www.github.com/cryptechdev/stainless-api-v2-python/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/cryptechdev/neptune-api-v2-python/issues) with questions, bugs, or suggestions.

### Determining the installed version

Expand Down
64 changes: 57 additions & 7 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@
Types:

```python
from neptune_api_v2.types import ErrorData, Interval, IntervalUnit
from neptune_api_v2.types import (
ErrorData,
ErrorDataVariants,
ErrorKind,
ErrorResponseVariants,
ErrorScope,
FieldValidationError,
Interval,
IntervalUnit,
ListErrorResponse,
ObjErrorResponse,
ValidationErrorData,
ValidationFieldSource,
)
```

# Status
Expand All @@ -27,6 +40,9 @@ from neptune_api_v2.types import (
AssetClassification,
AssetInfo,
AssetMetadata,
AssetPrice,
AssetPriceHistory,
AssetRateHistory,
AssetSpec,
AssetListResponse,
AssetGetPriceHistoryResponse,
Expand All @@ -46,8 +62,8 @@ Types:

```python
from neptune_api_v2.types import (
AssetRateHistory,
GlobalMarketConfig,
MarketRate,
MergedMarket,
MarketGetMergedResponse,
MarketGetMergedByAssetResponse,
Expand All @@ -70,8 +86,8 @@ Types:
```python
from neptune_api_v2.types.markets import (
LendMarket,
LendMarketData,
LendMarketState,
MarketRate,
LendListResponse,
LendGetByAssetResponse,
LendGetRateHistoryResponse,
Expand Down Expand Up @@ -109,6 +125,7 @@ Types:
from neptune_api_v2.types.markets.borrow import (
BorrowCollateralConfig,
BorrowCollateralMarket,
BorrowCollateralMarketData,
BorrowCollateralState,
CollateralListResponse,
CollateralGetByAssetResponse,
Expand All @@ -128,6 +145,7 @@ Types:
from neptune_api_v2.types.markets.borrow import (
BorrowDebtConfig,
BorrowDebtMarket,
BorrowDebtMarketData,
BorrowDebtState,
DebtListResponse,
DebtGetByAssetResponse,
Expand All @@ -145,6 +163,9 @@ Types:

```python
from neptune_api_v2.types import (
NeptParams,
NeptState,
NeptUnlockDistributionGroup,
StakingPoolFull,
StakingPoolParams,
StakingPoolState,
Expand All @@ -165,7 +186,13 @@ Methods:
Types:

```python
from neptune_api_v2.types import EventAction, UserGetTxHistoryResponse, UserGetUserResponse
from neptune_api_v2.types import (
EventAction,
User,
UserTx,
UserGetTxHistoryResponse,
UserGetUserResponse,
)
```

Methods:
Expand Down Expand Up @@ -199,7 +226,7 @@ Types:

```python
from neptune_api_v2.types.user.market import (
UserDebtAssetPool,
UserLendMarket,
LendListResponse,
LendGetByAssetResponse,
)
Expand All @@ -217,6 +244,7 @@ Types:
```python
from neptune_api_v2.types.user.market import (
UserBorrowMarket,
UserBorrowMarketPools,
BorrowGetCollateralAccountsByAssetResponse,
BorrowGetCollateralTotalsResponse,
BorrowGetDebtAccountsByAssetResponse,
Expand All @@ -241,7 +269,10 @@ Types:
from neptune_api_v2.types.user.market.borrow import (
UserAccountHealth,
UserBorrowMarketAccount,
UserCollateralAccountPool,
UserCollateralAssetPool,
UserDebtAccountPool,
UserDebtAssetPool,
SubaccountGetSubaccountResponse,
SubaccountGetSubaccountCollateralsResponse,
SubaccountGetSubaccountDebtsResponse,
Expand All @@ -262,8 +293,11 @@ Types:

```python
from neptune_api_v2.types.user import (
UserNeptUnlockAmounts,
UserNeptUnlockOverview,
UserUnlockAmounts,
UserUnlockOverview,
UserUnlockSchedule,
UserUnlockScheduleLinear,
UserUnlockScheduleLumpSum,
NeptGetUnlocksResponse,
)
```
Expand All @@ -279,7 +313,9 @@ Types:
```python
from neptune_api_v2.types.user.nept import (
UserStake,
UserStakeBondingEntry,
UserStakePool,
UserStakeUnbonding,
UserStakeUnbondingEntry,
StakingGetOverviewResponse,
StakingGetStakingPoolResponse,
Expand All @@ -302,7 +338,9 @@ Types:
```python
from neptune_api_v2.types.user import (
UserWalletPortfolio,
WalletAsset,
WalletAssetKnown,
WalletAssetUnknown,
WalletBalance,
WalletGetBalanceByAssetResponse,
WalletGetBalancesResponse,
Expand Down Expand Up @@ -344,6 +382,18 @@ Methods:
- <code title="get /api/v1/analytics/market/history/loans-originated">client.analytics.market.history.<a href="./src/neptune_api_v2/resources/analytics/market/history.py">get_loans_originated</a>(\*\*<a href="src/neptune_api_v2/types/analytics/market/history_get_loans_originated_params.py">params</a>) -> <a href="./src/neptune_api_v2/types/analytics/market/history_get_loans_originated_response.py">HistoryGetLoansOriginatedResponse</a></code>
- <code title="get /api/v1/analytics/market/history/loans-originated/by-asset">client.analytics.market.history.<a href="./src/neptune_api_v2/resources/analytics/market/history.py">get_loans_originated_by_asset</a>(\*\*<a href="src/neptune_api_v2/types/analytics/market/history_get_loans_originated_by_asset_params.py">params</a>) -> <a href="./src/neptune_api_v2/types/analytics/market/history_get_loans_originated_by_asset_response.py">HistoryGetLoansOriginatedByAssetResponse</a></code>

## Nept

Types:

```python
from neptune_api_v2.types.analytics import NeptUnlocksDistributionResponse
```

Methods:

- <code title="get /api/v1/analytics/nept/unlocks-distribution">client.analytics.nept.<a href="./src/neptune_api_v2/resources/analytics/nept.py">unlocks_distribution</a>(\*\*<a href="src/neptune_api_v2/types/analytics/nept_unlocks_distribution_params.py">params</a>) -> <a href="./src/neptune_api_v2/types/analytics/nept_unlocks_distribution_response.py">NeptUnlocksDistributionResponse</a></code>

# Integrations

## Bantr
Expand Down
Loading
Loading