Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/purkayasta/fixerr
A minimal c# client for FIXER.IO
https://github.com/purkayasta/fixerr
chsarp csharp-code csharp-library dotnet dotnetcore fixer-io fixerio
Last synced: about 1 month ago
JSON representation
A minimal c# client for FIXER.IO
- Host: GitHub
- URL: https://github.com/purkayasta/fixerr
- Owner: purkayasta
- Created: 2022-03-06T17:20:23.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T21:29:01.000Z (12 months ago)
- Last Synced: 2024-01-20T22:29:43.225Z (12 months ago)
- Topics: chsarp, csharp-code, csharp-library, dotnet, dotnetcore, fixer-io, fixerio
- Language: C#
- Homepage: https://www.nuget.org/packages/Fixerr
- Size: 123 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Fixerr - An easy, minimal c# client for [Fixer.io](https://fixer.io/)
## Give it a star if you like the project. 👏 🌠 🌟Fixer is a popular freemium currency conversion site. Fixerr can help you to transform your currency more faster 😋
![Nuget](https://img.shields.io/nuget/v/Fixerr)
![Nuget](https://img.shields.io/nuget/dt/Fixerr?style=plastic)
![Nuget](https://img.shields.io/github/repo-size/purkayasta/Fixerr?style=social)
![Nuget](https://img.shields.io/github/last-commit/purkayasta/fixerr?style=flat-square)[Nuget](https://www.nuget.org/packages/Fixerr/)
## Usage:
### Required Properties:
- ```ApiKey```
- ```IsPaidSubscription``` (If you bought the non free key and want to use https, you may want to set it to true)## With out any dependency injection
``` c#var apiKey = "";
IFixerClient fixer = FixerFactory.CreateFixerClient(new HttpClient(), apiKey);
var latest = await fixer.GetFluctuationAsync("2012-05-01", "2012-05-25");
Console.WriteLine(latest?.Rates);
```## With Microsoft DI
```c#
var apiKey = "";
builder.Services.AddFixer(apiKey);
```## Demo
```c#
private readonly IFixerClient _fixerClient;public YourFunction(IFixerClient fixerClient) => _fixerClient = fixerClient;
public void CallMethod() {
var latest = await _fixerClient.GetFluctuationAsync("2012-05-01", "2012-05-25");
// now do whatever 😋
}```
## F.A.Q:
- There is also a optional apiKey parameter is added to every method if you need to access different method with different api key. 🎉
- If anything happens make sure to *report* using the github issues. Thanks!## Api Cover
- [x] Latest Endpoint
- [x] Symbol Endpoint
- [x] Historic Endpoint
- [x] Convert Endpoint
- [x] TimeSeries Endpoint
- [x] Fluctuation Endpoint