Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/PoLaKoSz/Portfolio.hu

With this small tool You can get any information from https://portfolio.hu/
https://github.com/PoLaKoSz/Portfolio.hu

api articles async csharp netstandard portfolio scrape stock-market

Last synced: about 1 month ago
JSON representation

With this small tool You can get any information from https://portfolio.hu/

Awesome Lists containing this project

README

        

# Portfolio.hu API

A .NET standard 2.0 library to save data from [Portfolio.hu](https://portfolio.hu/).

## Install

via [NuGet](https://www.nuget.org/packages/Portfolio.hu.API)

``` sh
dotnet add package Portfolio.hu.API
```

### Quick start

``` c#
using PoLaKoSz.hu.Portfolio_hu_API.DataAccessLayer;
using PoLaKoSz.hu.Portfolio_hu_API.EndPoints;
using PoLaKoSz.hu.Portfolio_hu_API.Models;

// ...

var client = new WebClient();
var stockMarket = new StockMarketEndPoint(client);
Share ticker = stockMarket.Get(new ShareType("OTP"));

var salesDetails = new SalesEndPoint(client);
IReadOnlyList sales = salesDetails.For(new ShareType("OTP"));

IReadOnlyList availableStocks = salesDetails.GetAvailableOptions();
```