sigmaquant 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,34 @@
1
+ from .custom_typing import Frequency
2
+
3
+ from .performance.returns import (
4
+ cum_returns,
5
+ annual_return,
6
+ aggregate_returns,
7
+ )
8
+
9
+ from .performance.risk import (
10
+ drawdown,
11
+ max_drawdown,
12
+ annual_vola,
13
+ downside_risk,
14
+ upside_risk,
15
+ time_underwater,
16
+ drawdown_stats,
17
+ tail_ratio,
18
+ )
19
+
20
+ from .performance.metrics import (
21
+ sharpe_ratio,
22
+ sortino_ratio,
23
+ calmar_ratio,
24
+ omega_ratio,
25
+ hit_rate,
26
+ period_hit_rate,
27
+ skew,
28
+ excess_kurtosis,
29
+ tracking_error,
30
+ information_ratio,
31
+ )
32
+
33
+ from .performance.rolling import rolling_metric
34
+ from .performance.report import ascii_report
@@ -0,0 +1,13 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import Literal, Iterable, Union
4
+ import pandas as pd
5
+ import numpy as np
6
+
7
+ Frequency = Literal["D", "W", "M", "Y"]
8
+
9
+ ArrayLike = Union[
10
+ Iterable[float],
11
+ np.ndarray,
12
+ pd.Series,
13
+ ]
@@ -0,0 +1,32 @@
1
+ from .returns import (
2
+ cum_returns,
3
+ annual_return,
4
+ aggregate_returns,
5
+ )
6
+
7
+ from .risk import (
8
+ drawdown,
9
+ max_drawdown,
10
+ annual_vola,
11
+ downside_risk,
12
+ upside_risk,
13
+ time_underwater,
14
+ drawdown_stats,
15
+ tail_ratio,
16
+ )
17
+
18
+ from .metrics import (
19
+ sharpe_ratio,
20
+ sortino_ratio,
21
+ calmar_ratio,
22
+ omega_ratio,
23
+ hit_rate,
24
+ period_hit_rate,
25
+ skew,
26
+ excess_kurtosis,
27
+ tracking_error,
28
+ information_ratio,
29
+ )
30
+
31
+ from .rolling import rolling_metric
32
+ from .report import ascii_report