Class FinancialDataApiExtensions
- Namespace
- Tudormobile.FinancialData.Extensions
- Assembly
- Tudormobile.FinancialData.dll
Extension methods for the FinancialDataApi class, providing additional functionality and convenience methods for working with financial data clients.
public static class FinancialDataApiExtensions
- Inheritance
-
FinancialDataApiExtensions
- Inherited Members
Methods
CreateClient(string, HttpClient, ILogger)
Creates and initializes a new instance of the IFinancialDataClient class.
public static IFinancialDataClient CreateClient(string apiKey, HttpClient httpClient, ILogger logger)
Parameters
apiKeystringThe API key used for authenticating requests to the financial data service.
httpClientHttpClientThe HTTP client used for sending requests to the API.
loggerILoggerOptional logger instance for logging diagnostic information. If null, a NullLogger will be used.
Returns
CreateClient(string, HttpClient, IFinancialDataSerializer, ILogger)
Creates and initializes a new instance of the IFinancialDataClient class.
public static IFinancialDataClient CreateClient(string apiKey, HttpClient httpClient, IFinancialDataSerializer serializer, ILogger logger)
Parameters
apiKeystringThe API key used for authenticating requests to the financial data service.
httpClientHttpClientThe HTTP client used for sending requests to the API.
serializerIFinancialDataSerializerOptional serializer instance for serializing and deserializing API data. If null, the internal serializer will be used.
loggerILoggerOptional logger instance for logging diagnostic information. If null, a NullLogger will be used.
Returns
GetClientBuilder()
Creates a new builder for configuring and constructing an instance of an Financial Data client.
public static IFinancialDataClientBuilder GetClientBuilder()
Returns
- IFinancialDataClientBuilder
An IFinancialDataClientBuilder that can be used to configure and build an IFinancialDataClient instance.