Skip to content

janniksam/ETF.Portfolio.Rebalancing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ETF Portfolio Rebalancing

Build status master Build status dev NuGet version

Description

Collection of portfolio rebalance algorithms.

Basis usage:

Fast and intelligent algorithm

var portfolio = new List<ETFItem>
{
    new ETFItem("ISIN_1", 0, 10.0m, 0.2m),
    new ETFItem("ISIN_2", 0, 20.0m, 0.8m),
};

var input = new RebalanceInput(1000, 2, portfolio);
var algo = new FastButIntelligentAlgo();
var result = algo.Rebalance(input);
foreach(var order in result.Orders)
{
   Console.WriteLine($"You should {order.OrderAmount}x {order.ISIN} for {order.CurrentPrice*order.OrderAmount:C}");
}

About

Collection of portfolio rebalance algorythms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages