finalytics 0.8.0__cp313-cp313-win_amd64.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.
finalytics/__init__.py
ADDED
|
Binary file
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: finalytics
|
|
3
|
+
Version: 0.8.0
|
|
4
|
+
Classifier: Programming Language :: Rust
|
|
5
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
|
+
Requires-Dist: polars==1.1.0
|
|
8
|
+
Requires-Dist: pyarrow==14.0.0
|
|
9
|
+
Requires-Dist: plotly==5.22.0
|
|
10
|
+
Requires-Dist: notebook>=5.3
|
|
11
|
+
Requires-Dist: ipywidgets>=7.5
|
|
12
|
+
Requires-Dist: numpy<2
|
|
13
|
+
Requires-Python: >=3.7
|
|
14
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
[](https://pypi.org/project/finalytics/)
|
|
19
|
+

|
|
20
|
+
[](https://finalytics.rs/)
|
|
21
|
+
[](https://nnamdi.quarto.pub/finalytics/)
|
|
22
|
+

|
|
23
|
+

|
|
24
|
+
[](https://pepy.tech/projects/finalytics)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
This is a python binding for [Finalytics Rust Library](https://github.com/Nnamdi-sys/finalytics) designed for retrieving financial data and performing security analysis and portfolio optimization.
|
|
29
|
+
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pip install finalytics
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Example
|
|
37
|
+
|
|
38
|
+
View the [documentation](https://nnamdi.quarto.pub/finalytics/) for more information.
|
|
39
|
+
|
|
40
|
+
```python
|
|
41
|
+
from finalytics import Screener, Tickers
|
|
42
|
+
|
|
43
|
+
# Screen for Large Cap NASDAQ Stocks
|
|
44
|
+
screener = Screener(
|
|
45
|
+
quote_type="EQUITY",
|
|
46
|
+
filters=[
|
|
47
|
+
'{"operator": "eq", "operands": ["exchange", "NMS"]}'
|
|
48
|
+
],
|
|
49
|
+
sort_field="intradaymarketcap",
|
|
50
|
+
sort_descending=True,
|
|
51
|
+
offset=0,
|
|
52
|
+
size=10
|
|
53
|
+
)
|
|
54
|
+
screener.display()
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# Instantiate a Multiple Ticker Object
|
|
58
|
+
symbols = screener.symbols()
|
|
59
|
+
tickers = Tickers(symbols=symbols,
|
|
60
|
+
start_date="2023-01-01",
|
|
61
|
+
end_date="2024-12-31",
|
|
62
|
+
interval="1d",
|
|
63
|
+
confidence_level=0.95,
|
|
64
|
+
risk_free_rate=0.02)
|
|
65
|
+
|
|
66
|
+
# Generate a Single Ticker Report
|
|
67
|
+
ticker = tickers.get_ticker(symbols[0])
|
|
68
|
+
ticker.report("performance")
|
|
69
|
+
ticker.report("financials")
|
|
70
|
+
ticker.report("options")
|
|
71
|
+
ticker.report("news")
|
|
72
|
+
|
|
73
|
+
# Generate a Multiple Ticker Report
|
|
74
|
+
tickers.report("performance")
|
|
75
|
+
|
|
76
|
+
# Perform a Portfolio Optimization
|
|
77
|
+
portfolio = tickers.optimize(objective_function="max_sharpe")
|
|
78
|
+
|
|
79
|
+
# Generate a Portfolio Report
|
|
80
|
+
portfolio.report("performance")
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
finalytics-0.8.0.dist-info/METADATA,sha256=Z3qPb3L-rt6Ck-yzFaJuD6yKOktwWK63_zWdZ5fvvXQ,2733
|
|
2
|
+
finalytics-0.8.0.dist-info/WHEEL,sha256=oXe_QNnB5QbkkMcbfZh2d88Kje6edNs5JzpWke0-klE,96
|
|
3
|
+
finalytics/__init__.py,sha256=a86PDNlJoIYLdGDM1O4wYzfMjcDg3pJQf4Z2zVGWkQo,123
|
|
4
|
+
finalytics/finalytics.cp313-win_amd64.pyd,sha256=T0xlQXnvWZKUosQ4k_yXywrAUo0Jrt4VDp60dctsgB4,44461056
|
|
5
|
+
finalytics-0.8.0.dist-info/RECORD,,
|