finalytics 0.1.1__cp312-none-win32.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.

Potentially problematic release.


This version of finalytics might be problematic. Click here for more details.

finalytics/__init__.py ADDED
@@ -0,0 +1,5 @@
1
+ from .finalytics import *
2
+
3
+ __doc__ = finalytics.__doc__
4
+ if hasattr(finalytics, "__all__"):
5
+ __all__ = finalytics.__all__
Binary file
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.1
2
+ Name: finalytics
3
+ Version: 0.1.1
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Programming Language :: Python :: Implementation :: CPython
6
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
7
+ Requires-Dist: polars ==0.19.12
8
+ Requires-Dist: pyarrow ==14.0.0
9
+ License-File: LICENSE
10
+ Requires-Python: >=3.7
11
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
12
+
13
+ ## Finalytics
14
+
15
+ [![pypi](https://img.shields.io/pypi/v/finalytics)](https://pypi.org/project/finalytics/)
16
+ ![License](https://img.shields.io/crates/l/finalytics)
17
+ [![Homepage](https://img.shields.io/badge/homepage-finalytics.rs-blue)](https://finalytics.rs/)
18
+
19
+ 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.
20
+
21
+ ## Installation
22
+
23
+ ```bash
24
+ pip install finalytics
25
+ ```
26
+
27
+ ## Documentation
28
+
29
+ ### Symbol Search
30
+
31
+ ```python
32
+ from finalytics import get_symbols
33
+
34
+ print(get_symbols("Apple", "Equity"))
35
+ print(get_symbols("Bitcoin", "Crypto"))
36
+ print(get_symbols("S&P 500", "Index"))
37
+ print(get_symbols("EURUSD", "Currency"))
38
+ print(get_symbols("SPY", "ETF"))
39
+ ```
40
+
41
+ ### Security Analysis
42
+
43
+ ```python
44
+ from finalytics import Ticker
45
+
46
+ ticker = Ticker("AAPL")
47
+ print(ticker.get_current_price())
48
+ print(ticker.get_summary_stats())
49
+ print(ticker.get_price_history("2020-01-01", "2020-12-31", "1d"))
50
+ print(ticker.get_options_chain())
51
+ print(ticker.get_news("2020-01-01", "2020-12-31", False))
52
+ print(ticker.get_income_statement())
53
+ print(ticker.get_balance_sheet())
54
+ print(ticker.get_cashflow_statement())
55
+ print(ticker.get_financial_ratios())
56
+ print(ticker.compute_performance_stats("2020-01-01", "2020-12-31", "1d", "^GSPC", 0.95, 0.02))
57
+ ticker.display_performance_chart("2020-01-01", "2020-12-31", "1d", "^GSPC", 0.95, 0.02, "html")
58
+ ticker.display_candlestick_chart("2020-01-01", "2020-12-31", "1d", "png")
59
+ ticker.display_options_chart(0.02, "jupyter_notebook")
60
+ ```
61
+
62
+ ### Portfolio Optimization
63
+
64
+ ```python
65
+ from finalytics import Portfolio
66
+
67
+ portfolio = Portfolio(["AAPL", "GOOG", "MSFT", "BTC-USD"], "^GSPC", "2020-01-01", "2022-01-01", "1d", 0.95, 0.02, 1000, "max_sharpe")
68
+ print(portfolio.get_optimization_results())
69
+ portfolio.display_portfolio_charts("html")
70
+ ```
71
+
72
+
@@ -0,0 +1,6 @@
1
+ finalytics-0.1.1.dist-info/METADATA,sha256=xdy6SzO2KZOD4oXdowFXly1TWVQQ_qH9gK5K-XHFzJo,2345
2
+ finalytics-0.1.1.dist-info/WHEEL,sha256=wcSqLc6NpJFIyfNPx37SdHIDx2RrCRaoIrjcvJUHteQ,91
3
+ finalytics-0.1.1.dist-info/license_files/LICENSE,sha256=7e5enLpv9UdPEdPFHIJt8wX5CULYN0MlKRPMKNUjuMo,1093
4
+ finalytics/__init__.py,sha256=a86PDNlJoIYLdGDM1O4wYzfMjcDg3pJQf4Z2zVGWkQo,123
5
+ finalytics/finalytics.cp312-win32.pyd,sha256=xFaYjdIDJ_RavziYgzjgsg3W5v0GLVZ0xL38iDqwGNQ,49932288
6
+ finalytics-0.1.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.3.1)
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-none-win32
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Nnamdi Olisaeloka
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.