Skip to content

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

License

Notifications You must be signed in to change notification settings

PoLaKoSz/Portfolio.hu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portfolio.hu API

A .NET standard 2.0 library to save data from Portfolio.hu.

Install

via NuGet

dotnet add package Portfolio.hu.API

Quick start

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<Sale> sales = salesDetails.For(new ShareType("OTP"));

IReadOnlyList<ShareType> availableStocks = salesDetails.GetAvailableOptions();