Async Quotes Module API
API reference for asynchronous quote workflows.
BriteCore v2 Async Quotes API endpoint wrappers.
Asynchronous (cached) counterparts to the synchronous wrappers in quotes.py. Uses AsyncBritecoreAPIClient for non-blocking, TTL-cached HTTP requests.
- Provides:
acreate_full_quote – Async create a full quote from a JSON payload. aget_quote – Async retrieve a quote by ID (cached by default).
- async britecore_sdk.api.api_calls.v2.async_quotes.acreate_full_quote(quote_json, **kwargs)[source]
Create a full quote asynchronously.
Use
quote_jsonfor the complete quote payload expected by the quote-create workflow exposed by this SDK. Returns the asyncaprocess_result(...)payload together with the extracted quote ID, invalidates cached quote reads on success, and acceptsRequestParametersoverrides via**kwargs.- Parameters:
quote_json (dict[str, Any])
kwargs (Unpack[RequestParameters])
- Return type:
tuple[dict[str, Any] | None, str | None]
- async britecore_sdk.api.api_calls.v2.async_quotes.aget_quote(quote_id, **kwargs)[source]
Retrieve a quote by ID with short-lived async caching enabled by default.
The request uses
quote_idto fetch the quote through the async quote client and enables the default quote read cache unless the caller overrides it. Returns the asyncaprocess_result(...)payload, and**kwargsacceptsRequestParametersplus cache override settings.- Parameters:
quote_id (str)
kwargs (Unpack[RequestParameters])
- Return type:
Any
- async britecore_sdk.api.api_calls.v2.async_quotes.alist_quotes(page=1, limit=100, client=None, **kwargs)[source]
Return a paginated list of quotes (async).
Pagination helper for
aiter_quotes. The BriteCore v2 API does not expose a generic quote-list endpoint, so this returns an empty result, signalling no pages to iterate.- Parameters:
page (int) – Page number (1-based).
limit (int) – Results per page.
client (AsyncBritecoreAPIClient | None) – Optional explicit async client; defaults to module-level client.
**kwargs (Any) – Additional request parameters.
- Returns:
Empty result dict (
{"data": []}) — no list endpoint available.- Return type:
Any