endpoint URL to the price service. Example: https://website/example/
Optional config: HermesClientConfigOptional HermesClientConfig for custom configurations.
Private appendPrivate baseURLPrivate headersPrivate httpPrivate httpPrivate timeoutFetch the latest price updates for a set of price feed IDs. This endpoint can be customized by specifying the encoding type and whether the results should also return the parsed price update using the options object. This will throw an error if there is a network problem or the price service returns a non-ok response.
Array of hex-encoded price feed IDs for which updates are requested.
Optional options: { Optional parameters: - encoding: Encoding type. If specified, return the price update in the encoding specified by the encoding parameter. Default is hex. - parsed: Boolean to specify if the parsed price update should be included in the response. Default is false.
Optional encoding?: "hex" | "base64"Optional parsed?: booleanPriceUpdate object containing the latest updates.
Fetch the set of available price feeds. This endpoint can be filtered by asset type and query string. This will throw an error if there is a network problem or the price service returns a non-ok response.
Optional options: { Optional parameters: - query: String to filter the price feeds. If provided, the results will be filtered to all price feeds whose symbol contains the query string. Query string is case insensitive. Example: "bitcoin". - filter: String to filter the price feeds by asset type. Possible values are "crypto", "equity", "fx", "metal", "rates". Filter string is case insensitive.
Optional filter?: stringOptional query?: stringArray of PriceFeedMetadata objects.
Fetch the price updates for a set of price feed IDs at a given timestamp. This endpoint can be customized by specifying the encoding type and whether the results should also return the parsed price update. This will throw an error if there is a network problem or the price service returns a non-ok response.
Unix timestamp in seconds.
Array of hex-encoded price feed IDs for which updates are requested.
Optional options: { Optional parameters: - encoding: Encoding type. If specified, return the price update in the encoding specified by the encoding parameter. Default is hex. - parsed: Boolean to specify if the parsed price update should be included in the response. Default is false.
Optional encoding?: "hex" | "base64"Optional parsed?: booleanPriceUpdate object containing the updates at the specified timestamp.
Fetch streaming price updates for a set of price feed IDs. This endpoint can be customized by specifying the encoding type, whether the results should include parsed updates, and if unordered updates or only benchmark updates are allowed. This will return an EventSource that can be used to listen to streaming updates. If an invalid hex-encoded ID is passed, it will throw an error.
Array of hex-encoded price feed IDs for which streaming updates are requested.
Optional options: { Optional allowOptional benchmarksOptional encoding?: "hex" | "base64"Optional parsed?: booleanAn EventSource instance for receiving streaming updates.
Constructs a new Connection.