Skip to content

Commit 6f72f25

Browse files
feat(api): manual updates
1 parent a258db0 commit 6f72f25

6 files changed

Lines changed: 6 additions & 26 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 47
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-9048b9a34641ce9f489cc9813115c2cbe53ba4e19fec4d4be8ad50cc4c6dc955.yml
3-
openapi_spec_hash: 90a2e162ca6a44232297cba2c5017476
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cryptech%2Fneptune-api-v2-449ef5265461321adf3cf141e75d49a3c2c144d0ab33f32363c7d4d32ad77b25.yml
3+
openapi_spec_hash: 8dfec236737b3d0c3074d8b86ec819d1
44
config_hash: c0eef50aebf8314784456d5c6f539ce5

src/neptune_api_v2/resources/user/market/borrow/subaccount.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ def get_subaccount_health(
221221
*,
222222
address: str,
223223
with_text: bool | Omit = omit,
224-
with_value: bool | Omit = omit,
225224
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
226225
# The extra values given here take precedence over values defined on the client or passed to this method.
227226
extra_headers: Headers | None = None,
@@ -239,8 +238,6 @@ def get_subaccount_health(
239238
240239
with_text: Include text variation fields
241240
242-
with_value: Calculate and include USD values for amounts, where applicable
243-
244241
extra_headers: Send extra headers
245242
246243
extra_query: Add additional query parameters to the request
@@ -259,10 +256,7 @@ def get_subaccount_health(
259256
extra_body=extra_body,
260257
timeout=timeout,
261258
query=maybe_transform(
262-
{
263-
"with_text": with_text,
264-
"with_value": with_value,
265-
},
259+
{"with_text": with_text},
266260
subaccount_get_subaccount_health_params.SubaccountGetSubaccountHealthParams,
267261
),
268262
),
@@ -458,7 +452,6 @@ async def get_subaccount_health(
458452
*,
459453
address: str,
460454
with_text: bool | Omit = omit,
461-
with_value: bool | Omit = omit,
462455
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
463456
# The extra values given here take precedence over values defined on the client or passed to this method.
464457
extra_headers: Headers | None = None,
@@ -476,8 +469,6 @@ async def get_subaccount_health(
476469
477470
with_text: Include text variation fields
478471
479-
with_value: Calculate and include USD values for amounts, where applicable
480-
481472
extra_headers: Send extra headers
482473
483474
extra_query: Add additional query parameters to the request
@@ -496,10 +487,7 @@ async def get_subaccount_health(
496487
extra_body=extra_body,
497488
timeout=timeout,
498489
query=await async_maybe_transform(
499-
{
500-
"with_text": with_text,
501-
"with_value": with_value,
502-
},
490+
{"with_text": with_text},
503491
subaccount_get_subaccount_health_params.SubaccountGetSubaccountHealthParams,
504492
),
505493
),

src/neptune_api_v2/types/nept_get_staking_overview_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class DataGlobalState(BaseModel):
4343
"""When staking rewards were last distributed"""
4444

4545
stake_acc: str
46-
"""**TODO:** rename, proper description
46+
"""**TODO:** rename, proper description, text/value?
4747
4848
stake_acc = ∫ ( emission_rate / total_reward_weight ) dt
4949
"""

src/neptune_api_v2/types/user/market/borrow/subaccount_get_subaccount_health_params.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,3 @@ class SubaccountGetSubaccountHealthParams(TypedDict, total=False):
1313

1414
with_text: bool
1515
"""Include text variation fields"""
16-
17-
with_value: bool
18-
"""Calculate and include USD values for amounts, where applicable"""

src/neptune_api_v2/types/user/market/borrow_get_collateral_accounts_by_asset_response.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ class Data(BaseModel):
8383
"""Object data"""
8484

8585
accounts: List[DataAccount]
86-
"""
87-
All collateral subaccounts for the associated asset type Collateral sub-accounts
88-
for the user
89-
"""
86+
"""All collateral subaccounts for the associated asset type"""
9087

9188
asset_info: AssetInfo
9289
"""Asset identifiers with associated metadata"""

tests/api_resources/user/market/borrow/test_subaccount.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ def test_method_get_subaccount_health_with_all_params(self, client: NeptuneAPIV2
209209
index=0,
210210
address="address",
211211
with_text=True,
212-
with_value=True,
213212
)
214213
assert_matches_type(SubaccountGetSubaccountHealthResponse, subaccount, path=["response"])
215214

@@ -443,7 +442,6 @@ async def test_method_get_subaccount_health_with_all_params(self, async_client:
443442
index=0,
444443
address="address",
445444
with_text=True,
446-
with_value=True,
447445
)
448446
assert_matches_type(SubaccountGetSubaccountHealthResponse, subaccount, path=["response"])
449447

0 commit comments

Comments
 (0)