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.16.0"
".": "1.17.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: 8
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-ace647670dd24a6335738fb26360272dd0764b0f402e0186df0e92ecd0881c13.yml
openapi_spec_hash: c21512e10bd012cd347bb4afff7da9ae
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-64dee37a21a809941330b048765b0eff4805b5c6959bb17f141da70e61ecb88d.yml
openapi_spec_hash: d0fc0e51311de52c3aaa5c411db0f92b
config_hash: 4e76a07aea49753a61313dcd8c10fb0f
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 1.17.0 (2025-10-08)

Full Changelog: [v1.16.0...v1.17.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.16.0...v1.17.0)

### Features

* **api:** api update ([6c71e83](https://github.com/brand-dot-dev/python-sdk/commit/6c71e83258954d60bf452dfb0ff98d505c5b8fd4))
* **api:** api update ([5d94310](https://github.com/brand-dot-dev/python-sdk/commit/5d94310f089a9c68f371be77588f6d28d26e92b5))
* **api:** api update ([8cfbec2](https://github.com/brand-dot-dev/python-sdk/commit/8cfbec23d5dc6d20eb1c01950bb1e15d7b5f6558))

## 1.16.0 (2025-09-22)

Full Changelog: [v1.15.0...v1.16.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.15.0...v1.16.0)
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 = "brand.dev"
version = "1.16.0"
version = "1.17.0"
description = "The official Python library for the brand.dev API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/brand/dev/_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__ = "brand.dev"
__version__ = "1.16.0" # x-release-please-version
__version__ = "1.17.0" # x-release-please-version
166 changes: 162 additions & 4 deletions src/brand/dev/resources/brand.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,81 @@ def retrieve(
max_speed: bool | Omit = omit,
name: str | Omit = omit,
ticker: str | Omit = omit,
ticker_exchange: Literal[
"AMEX",
"AMS",
"AQS",
"ASX",
"ATH",
"BER",
"BME",
"BRU",
"BSE",
"BUD",
"BUE",
"BVC",
"CBOE",
"CNQ",
"CPH",
"DFM",
"DOH",
"DUB",
"DUS",
"DXE",
"EGX",
"FSX",
"HAM",
"HEL",
"HKSE",
"HOSE",
"ICE",
"IOB",
"IST",
"JKT",
"JNB",
"JPX",
"KLS",
"KOE",
"KSC",
"KUW",
"LIS",
"LSE",
"MCX",
"MEX",
"MIL",
"MUN",
"NASDAQ",
"NEO",
"NSE",
"NYSE",
"NZE",
"OSL",
"OTC",
"PAR",
"PNK",
"PRA",
"RIS",
"SAO",
"SAU",
"SES",
"SET",
"SGO",
"SHH",
"SHZ",
"SIX",
"STO",
"STU",
"TAI",
"TAL",
"TLV",
"TSX",
"TSXV",
"TWO",
"VIE",
"WSE",
"XETRA",
]
| Omit = omit,
timeout_ms: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -150,8 +225,11 @@ def retrieve(
parameters.

ticker: Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
Must be 1-6 characters, letters/numbers/dots only. Cannot be used with domain or
name parameters.
Must be 1-15 characters, letters/numbers/dots only. Cannot be used with domain
or name parameters.

ticker_exchange: Optional stock exchange for the ticker. Only used when ticker parameter is
provided. Defaults to assume ticker is American if not specified.

timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
than this value, it will be aborted with a 408 status code. Maximum allowed
Expand Down Expand Up @@ -179,6 +257,7 @@ def retrieve(
"max_speed": max_speed,
"name": name,
"ticker": ticker,
"ticker_exchange": ticker_exchange,
"timeout_ms": timeout_ms,
},
brand_retrieve_params.BrandRetrieveParams,
Expand Down Expand Up @@ -647,6 +726,81 @@ async def retrieve(
max_speed: bool | Omit = omit,
name: str | Omit = omit,
ticker: str | Omit = omit,
ticker_exchange: Literal[
"AMEX",
"AMS",
"AQS",
"ASX",
"ATH",
"BER",
"BME",
"BRU",
"BSE",
"BUD",
"BUE",
"BVC",
"CBOE",
"CNQ",
"CPH",
"DFM",
"DOH",
"DUB",
"DUS",
"DXE",
"EGX",
"FSX",
"HAM",
"HEL",
"HKSE",
"HOSE",
"ICE",
"IOB",
"IST",
"JKT",
"JNB",
"JPX",
"KLS",
"KOE",
"KSC",
"KUW",
"LIS",
"LSE",
"MCX",
"MEX",
"MIL",
"MUN",
"NASDAQ",
"NEO",
"NSE",
"NYSE",
"NZE",
"OSL",
"OTC",
"PAR",
"PNK",
"PRA",
"RIS",
"SAO",
"SAU",
"SES",
"SET",
"SGO",
"SHH",
"SHZ",
"SIX",
"STO",
"STU",
"TAI",
"TAL",
"TLV",
"TSX",
"TSXV",
"TWO",
"VIE",
"WSE",
"XETRA",
]
| Omit = omit,
timeout_ms: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -675,8 +829,11 @@ async def retrieve(
parameters.

ticker: Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').
Must be 1-6 characters, letters/numbers/dots only. Cannot be used with domain or
name parameters.
Must be 1-15 characters, letters/numbers/dots only. Cannot be used with domain
or name parameters.

ticker_exchange: Optional stock exchange for the ticker. Only used when ticker parameter is
provided. Defaults to assume ticker is American if not specified.

timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
than this value, it will be aborted with a 408 status code. Maximum allowed
Expand Down Expand Up @@ -704,6 +861,7 @@ async def retrieve(
"max_speed": max_speed,
"name": name,
"ticker": ticker,
"ticker_exchange": ticker_exchange,
"timeout_ms": timeout_ms,
},
brand_retrieve_params.BrandRetrieveParams,
Expand Down
84 changes: 82 additions & 2 deletions src/brand/dev/types/brand_retrieve_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,88 @@ class BrandRetrieveParams(TypedDict, total=False):
ticker: str
"""Stock ticker symbol to retrieve brand data for (e.g., 'AAPL', 'GOOGL', 'BRK.A').

Must be 1-6 characters, letters/numbers/dots only. Cannot be used with domain or
name parameters.
Must be 1-15 characters, letters/numbers/dots only. Cannot be used with domain
or name parameters.
"""

ticker_exchange: Literal[
"AMEX",
"AMS",
"AQS",
"ASX",
"ATH",
"BER",
"BME",
"BRU",
"BSE",
"BUD",
"BUE",
"BVC",
"CBOE",
"CNQ",
"CPH",
"DFM",
"DOH",
"DUB",
"DUS",
"DXE",
"EGX",
"FSX",
"HAM",
"HEL",
"HKSE",
"HOSE",
"ICE",
"IOB",
"IST",
"JKT",
"JNB",
"JPX",
"KLS",
"KOE",
"KSC",
"KUW",
"LIS",
"LSE",
"MCX",
"MEX",
"MIL",
"MUN",
"NASDAQ",
"NEO",
"NSE",
"NYSE",
"NZE",
"OSL",
"OTC",
"PAR",
"PNK",
"PRA",
"RIS",
"SAO",
"SAU",
"SES",
"SET",
"SGO",
"SHH",
"SHZ",
"SIX",
"STO",
"STU",
"TAI",
"TAL",
"TLV",
"TSX",
"TSXV",
"TWO",
"VIE",
"WSE",
"XETRA",
]
"""Optional stock exchange for the ticker.

Only used when ticker parameter is provided. Defaults to assume ticker is
American if not specified.
"""

timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")]
Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_brand.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def test_method_retrieve_with_all_params(self, client: BrandDev) -> None:
max_speed=True,
name="xxx",
ticker="ticker",
ticker_exchange="AMEX",
timeout_ms=1,
)
assert_matches_type(BrandRetrieveResponse, brand, path=["response"])
Expand Down Expand Up @@ -434,6 +435,7 @@ async def test_method_retrieve_with_all_params(self, async_client: AsyncBrandDev
max_speed=True,
name="xxx",
ticker="ticker",
ticker_exchange="AMEX",
timeout_ms=1,
)
assert_matches_type(BrandRetrieveResponse, brand, path=["response"])
Expand Down