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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Tor.NapiArfolyam.Client" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tor.NapiArfolyam.Client" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Tor.NapiArfolyam.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tor.NapiArfolyam.Client --version 1.0.1
                    
#r "nuget: Tor.NapiArfolyam.Client, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Tor.NapiArfolyam.Client&version=1.0.1
                    
Install Tor.NapiArfolyam.Client as a Cake Addin
#tool nuget:?package=Tor.NapiArfolyam.Client&version=1.0.1
                    
Install Tor.NapiArfolyam.Client as a Cake Tool

Tor.NapiArfolyam.Client

alternate text is missing from this package README image alternate text is missing from this package README image

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 273 3/23/2025
1.0.0 263 3/23/2025