Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
femtotrader committed Apr 23, 2024
1 parent bf78369 commit fd32bbd
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "OnlinePortfolioAnalysis"
name = "OnlinePortfolioAnalytics"
uuid = "d39dbdee-9d7b-4a6f-a064-c0eaa0a6e939"
authors = ["FemtoTrader <femto.trader@gmail.com>"]
version = "1.0.0-DEV"
Expand Down
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# OnlinePortfolioAnalysis
# OnlinePortfolioAnalytics

[![Build Status](https://github.com/femtotrader/OnlinePortfolioAnalysis.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/femtotrader/OnlinePortfolioAnalysis.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![Build Status](https://github.com/femtotrader/OnlinePortfolioAnalytics.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/femtotrader/OnlinePortfolioAnalytics.jl/actions/workflows/CI.yml?query=branch%3Amain)

This project implements aims to provide users with functionality for performing quantitative portfolio analytics via [online algorithms](https://en.wikipedia.org/wiki/Online_algorithm).

It depends especially on [OnlineStatsBase.jl](https://joshday.github.io/OnlineStats.jl/)

It's inspired by the following projects:

- Julia
- PortfolioAnalytics.jl https://github.com/doganmehmet/PortfolioAnalytics.jl
- R
- PerformanceAnalytics https://cran.r-project.org/web/packages/PerformanceAnalytics/
- PortfolioAnalytics https://cran.r-project.org/web/packages/PortfolioAnalytics/
- Python
- pyfolio https://github.com/quantopian/pyfolio
- empyrical https://quantopian.github.io/empyrical
2 changes: 1 addition & 1 deletion src/OnlinePortfolioAnalytics.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module OnlinePortfolioAnalysis
module OnlinePortfolioAnalytics

using OnlineStatsBase

Expand Down
2 changes: 0 additions & 2 deletions src/asset_return.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ function OnlineStatsBase._fit!(stat::SimpleAssetReturn, data)
end
end



mutable struct LogAssetReturn{T} <: PortfolioAnalysis{T}
value::Union{Missing,T}
n::Int
Expand Down
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using OnlinePortfolioAnalysis
using OnlinePortfolioAnalytics
using OnlineStatsBase
using Rocket
using Test
Expand Down Expand Up @@ -51,7 +51,7 @@ const MSFT = [
]
const weights = [0.4, 0.4, 0.2]

@testset "OnlinePortfolioAnalysis.jl" begin
@testset "OnlinePortfolioAnalytics.jl" begin
@testset "SimpleAssetReturn" begin
@testset "SimpleAssetReturn with period=1" begin
stat = SimpleAssetReturn{Float64}()
Expand Down

0 comments on commit fd32bbd

Please sign in to comment.