Skip to content

Commit

Permalink
Merge pull request #52 from clear-street/release-please--branches--ma…
Browse files Browse the repository at this point in the history
…in--changes--next

release: 0.1.0-alpha.11
  • Loading branch information
sonicxml authored Oct 11, 2024
2 parents 2b24c77 + 05f239e commit f14d0e1
Show file tree
Hide file tree
Showing 23 changed files with 1,001 additions and 67 deletions.
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.1.0-alpha.10"
".": "0.1.0-alpha.11"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 27
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/clear-street%2Fstudio-sdk-414d28e743994ae591921b9df65e07bbd8d423d847d9607a0363c510d6d79e36.yml
configured_endpoints: 29
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/clear-street%2Fstudio-sdk-468b5da24bbf73b3a3861d44c5a8051fe6c55a6ec64c5c6f2d45f22c76bf35b2.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.11 (2024-10-11)

Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/clear-street/studio-sdk-python/compare/v0.1.0-alpha.10...v0.1.0-alpha.11)

### Features

* **api:** api update ([#51](https://github.com/clear-street/studio-sdk-python/issues/51)) ([c594d64](https://github.com/clear-street/studio-sdk-python/commit/c594d64497b66ccbb6c4c6b10d8289094c2f12f0))

## 0.1.0-alpha.10 (2024-10-04)

Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/clear-street/studio-sdk-python/compare/v0.1.0-alpha.9...v0.1.0-alpha.10)
Expand Down
24 changes: 24 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,30 @@ Methods:

- <code title="get /accounts/{account_id}/pnl-details">client.accounts.pnl_details.<a href="./src/studio_sdk/resources/accounts/pnl_details.py">list</a>(account_id) -> <a href="./src/studio_sdk/types/accounts/pnl_detail_list_response.py">PnlDetailListResponse</a></code>

## PnlSums

Types:

```python
from studio_sdk.types.accounts import PnlSumListResponse
```

Methods:

- <code title="get /accounts/{account_id}/pnl-sums">client.accounts.pnl_sums.<a href="./src/studio_sdk/resources/accounts/pnl_sums.py">list</a>(account_id, \*\*<a href="src/studio_sdk/types/accounts/pnl_sum_list_params.py">params</a>) -> <a href="./src/studio_sdk/types/accounts/pnl_sum_list_response.py">PnlSumListResponse</a></code>

## Holdings

Types:

```python
from studio_sdk.types.accounts import HoldingListResponse
```

Methods:

- <code title="get /accounts/{account_id}/holdings">client.accounts.holdings.<a href="./src/studio_sdk/resources/accounts/holdings.py">list</a>(account_id, \*\*<a href="src/studio_sdk/types/accounts/holding_list_params.py">params</a>) -> <a href="./src/studio_sdk/types/accounts/holding_list_response.py">HoldingListResponse</a></code>

# Instruments

Types:
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 = "clear-street-studio-sdk"
version = "0.1.0-alpha.10"
version = "0.1.0-alpha.11"
description = "The official Python library for the studio-sdk API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/studio_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__ = "studio_sdk"
__version__ = "0.1.0-alpha.10" # x-release-please-version
__version__ = "0.1.0-alpha.11" # x-release-please-version
28 changes: 28 additions & 0 deletions src/studio_sdk/resources/accounts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@
AccountsResourceWithStreamingResponse,
AsyncAccountsResourceWithStreamingResponse,
)
from .holdings import (
HoldingsResource,
AsyncHoldingsResource,
HoldingsResourceWithRawResponse,
AsyncHoldingsResourceWithRawResponse,
HoldingsResourceWithStreamingResponse,
AsyncHoldingsResourceWithStreamingResponse,
)
from .pnl_sums import (
PnlSumsResource,
AsyncPnlSumsResource,
PnlSumsResourceWithRawResponse,
AsyncPnlSumsResourceWithRawResponse,
PnlSumsResourceWithStreamingResponse,
AsyncPnlSumsResourceWithStreamingResponse,
)
from .positions import (
PositionsResource,
AsyncPositionsResource,
Expand Down Expand Up @@ -122,6 +138,18 @@
"AsyncPnlDetailsResourceWithRawResponse",
"PnlDetailsResourceWithStreamingResponse",
"AsyncPnlDetailsResourceWithStreamingResponse",
"PnlSumsResource",
"AsyncPnlSumsResource",
"PnlSumsResourceWithRawResponse",
"AsyncPnlSumsResourceWithRawResponse",
"PnlSumsResourceWithStreamingResponse",
"AsyncPnlSumsResourceWithStreamingResponse",
"HoldingsResource",
"AsyncHoldingsResource",
"HoldingsResourceWithRawResponse",
"AsyncHoldingsResourceWithRawResponse",
"HoldingsResourceWithStreamingResponse",
"AsyncHoldingsResourceWithStreamingResponse",
"AccountsResource",
"AsyncAccountsResource",
"AccountsResourceWithRawResponse",
Expand Down
64 changes: 64 additions & 0 deletions src/studio_sdk/resources/accounts/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@
AsyncTradesResourceWithStreamingResponse,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .holdings import (
HoldingsResource,
AsyncHoldingsResource,
HoldingsResourceWithRawResponse,
AsyncHoldingsResourceWithRawResponse,
HoldingsResourceWithStreamingResponse,
AsyncHoldingsResourceWithStreamingResponse,
)
from .pnl_sums import (
PnlSumsResource,
AsyncPnlSumsResource,
PnlSumsResourceWithRawResponse,
AsyncPnlSumsResourceWithRawResponse,
PnlSumsResourceWithStreamingResponse,
AsyncPnlSumsResourceWithStreamingResponse,
)
from ..._compat import cached_property
from .positions import (
PositionsResource,
Expand Down Expand Up @@ -117,6 +133,14 @@ def pnl_summary(self) -> PnlSummaryResource:
def pnl_details(self) -> PnlDetailsResource:
return PnlDetailsResource(self._client)

@cached_property
def pnl_sums(self) -> PnlSumsResource:
return PnlSumsResource(self._client)

@cached_property
def holdings(self) -> HoldingsResource:
return HoldingsResource(self._client)

@cached_property
def with_raw_response(self) -> AccountsResourceWithRawResponse:
"""
Expand Down Expand Up @@ -224,6 +248,14 @@ def pnl_summary(self) -> AsyncPnlSummaryResource:
def pnl_details(self) -> AsyncPnlDetailsResource:
return AsyncPnlDetailsResource(self._client)

@cached_property
def pnl_sums(self) -> AsyncPnlSumsResource:
return AsyncPnlSumsResource(self._client)

@cached_property
def holdings(self) -> AsyncHoldingsResource:
return AsyncHoldingsResource(self._client)

@cached_property
def with_raw_response(self) -> AsyncAccountsResourceWithRawResponse:
"""
Expand Down Expand Up @@ -341,6 +373,14 @@ def pnl_summary(self) -> PnlSummaryResourceWithRawResponse:
def pnl_details(self) -> PnlDetailsResourceWithRawResponse:
return PnlDetailsResourceWithRawResponse(self._accounts.pnl_details)

@cached_property
def pnl_sums(self) -> PnlSumsResourceWithRawResponse:
return PnlSumsResourceWithRawResponse(self._accounts.pnl_sums)

@cached_property
def holdings(self) -> HoldingsResourceWithRawResponse:
return HoldingsResourceWithRawResponse(self._accounts.holdings)


class AsyncAccountsResourceWithRawResponse:
def __init__(self, accounts: AsyncAccountsResource) -> None:
Expand Down Expand Up @@ -385,6 +425,14 @@ def pnl_summary(self) -> AsyncPnlSummaryResourceWithRawResponse:
def pnl_details(self) -> AsyncPnlDetailsResourceWithRawResponse:
return AsyncPnlDetailsResourceWithRawResponse(self._accounts.pnl_details)

@cached_property
def pnl_sums(self) -> AsyncPnlSumsResourceWithRawResponse:
return AsyncPnlSumsResourceWithRawResponse(self._accounts.pnl_sums)

@cached_property
def holdings(self) -> AsyncHoldingsResourceWithRawResponse:
return AsyncHoldingsResourceWithRawResponse(self._accounts.holdings)


class AccountsResourceWithStreamingResponse:
def __init__(self, accounts: AccountsResource) -> None:
Expand Down Expand Up @@ -429,6 +477,14 @@ def pnl_summary(self) -> PnlSummaryResourceWithStreamingResponse:
def pnl_details(self) -> PnlDetailsResourceWithStreamingResponse:
return PnlDetailsResourceWithStreamingResponse(self._accounts.pnl_details)

@cached_property
def pnl_sums(self) -> PnlSumsResourceWithStreamingResponse:
return PnlSumsResourceWithStreamingResponse(self._accounts.pnl_sums)

@cached_property
def holdings(self) -> HoldingsResourceWithStreamingResponse:
return HoldingsResourceWithStreamingResponse(self._accounts.holdings)


class AsyncAccountsResourceWithStreamingResponse:
def __init__(self, accounts: AsyncAccountsResource) -> None:
Expand Down Expand Up @@ -472,3 +528,11 @@ def pnl_summary(self) -> AsyncPnlSummaryResourceWithStreamingResponse:
@cached_property
def pnl_details(self) -> AsyncPnlDetailsResourceWithStreamingResponse:
return AsyncPnlDetailsResourceWithStreamingResponse(self._accounts.pnl_details)

@cached_property
def pnl_sums(self) -> AsyncPnlSumsResourceWithStreamingResponse:
return AsyncPnlSumsResourceWithStreamingResponse(self._accounts.pnl_sums)

@cached_property
def holdings(self) -> AsyncHoldingsResourceWithStreamingResponse:
return AsyncHoldingsResourceWithStreamingResponse(self._accounts.holdings)
Loading

0 comments on commit f14d0e1

Please sign in to comment.