Tor.NapiArfolyam.Client
1.0.1
dotnet add package Tor.NapiArfolyam.Client --version 1.0.1
NuGet\Install-Package Tor.NapiArfolyam.Client -Version 1.0.1
<PackageReference Include="Tor.NapiArfolyam.Client" Version="1.0.1" />
<PackageVersion Include="Tor.NapiArfolyam.Client" Version="1.0.1" />
<PackageReference Include="Tor.NapiArfolyam.Client" />
paket add Tor.NapiArfolyam.Client --version 1.0.1
#r "nuget: Tor.NapiArfolyam.Client, 1.0.1"
#addin nuget:?package=Tor.NapiArfolyam.Client&version=1.0.1
#tool nuget:?package=Tor.NapiArfolyam.Client&version=1.0.1
Tor.NapiArfolyam.Client
A C# client library for NapiArfolyamm.hu API with dependency injection support.
Installation
Install-Package Tor.Mnb.Client
Usage
NOTE: The base currency is always HUF (Hungarian Forint), but you don't have to hard code this, you can get this information from the INapiArfolyamClient.BaseCurrencyCode property.
Registering to .NET Core service collection
You have to register the NapiArgolyamClient with the dependencies in the Program.cs file.
services.AddNapiArfolyam();
INapiArfolyamClient usage
You can get the INapiArfolyamClient via dependency injection:
public class MyService
{
public MyService(INapiArfolyamClient client)
{
}
}
Response object
Every method call will return with the following NapiArfolyamResponse<TResult> class:
public class NapiArfolyamResponse<TResult>
{
public bool Success { get; set; }
public TResult Result { get; set; }
public string Error { get; set; }
}
- When the request succeed
- Success: true
- Error: null
- Result: object
- When the request failed
- Success: false
- Error: error message string
- Result: null
INapiArfolyamClient.GetExchangesAsync method
Method parameters (you can call the method without any parameters, every parameter is optional):
Property | Description |
---|---|
BankCode | Bank code |
CurrencyCode | The three letter Currency code |
Date | Start date / date |
EndDate | End date |
CurrencyType | Valuta / Deviza |
Response:
Property | Description |
---|---|
BaseCurrencyCode | Three letter base currency code |
ExchangeRates | Exchange rates |
ExchangeRates → BankCode | Bank code |
ExchangeRates → CurrencyType | Valuta / Deviza |
ExchangeRates → DateTime | Date of the exchange rate |
ExchangeRates → CurrencyCode | Three letter currency code |
ExchangeRates → BuyingPrice | Buying price (can be null) |
ExchangeRates → SellingPrice | Selling price (can be null) |
ExchangeRates → MidPrice | Mid price (can be null) |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Extensions.Http (>= 8.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.