### Fetch Stock Logo using Python Source: https://logostream.dev/documentation This Python snippet demonstrates how to fetch a stock logo using the http.client library. Ensure you have a valid API key and the correct stock identifier. ```python import http.client conn = http.client.HTTPSConnection("api.logostream.dev") conn.request("GET", "/stocks/isin/US89X4X18105") res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` -------------------------------- ### Retrieve Stock Logo Source: https://logostream.dev/documentation Fetches a stock logo based on the provided identifier type and value. Supports various query parameters for customization. ```APIDOC ## GET /stocks/:idType/:identifier ### Description Retrieves a stock logo using an identifier type and value. ### Method GET ### Endpoint `/stocks/:idType/:identifier` ### Parameters #### Path Parameters - **idType** (string) - Required - Options: `isin`, `symbol`, `wkn`, `crypto` - **identifier** (string) - Required - e.g., US0378331005 (ISIN) or AAPL (symbol) #### Query Parameters - **key** (string) - Required - Your personal API key (contact sales@logostream.dev to obtain one) - **variant** (string) - Optional - Options: `xs` (small icons), `logo` (logo variant), `default` (normal icons) - **format** (string) - Optional - Options: `svg`, `png`, `jpg`, `webp`, `gif` - **size** (string) - Optional - e.g., `100x100` for resize ### Request Example `GET /stocks/symbol/AAPL?key=YOUR_API_KEY&variant=logo&format=svg` ### Response #### Success Response (200) The API returns the image file directly. The Content-Type header reflects the file type (image/svg+xml, image/png, etc.). #### Response Codes - 200: The logo image - 400: Invalid category or missing parameters - 404: Logo not found - 500: Internal error (e.g., Supabase or Worker issue) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.