Table of Contents

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

apiKey string

The API key used for authenticating requests to the financial data service.

httpClient HttpClient

The HTTP client used for sending requests to the API.

logger ILogger

Optional logger instance for logging diagnostic information. If null, a NullLogger will be used.

Returns

IFinancialDataClient

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

apiKey string

The API key used for authenticating requests to the financial data service.

httpClient HttpClient

The HTTP client used for sending requests to the API.

serializer IFinancialDataSerializer

Optional serializer instance for serializing and deserializing API data. If null, the internal serializer will be used.

logger ILogger

Optional logger instance for logging diagnostic information. If null, a NullLogger will be used.

Returns

IFinancialDataClient

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.