Skip to main content

No project description provided

Project description

Finalytics

pypi License Homepage

This is a python binding for Finalytics Rust Library designed for retrieving financial data and performing security analysis and portfolio optimization.

Installation

Windows and MacOS

pip install finalytics

Linux

Still in development

Documentation

Symbol Search

from finalytics import get_symbols

print(get_symbols("Apple", "Equity"))
print(get_symbols("Bitcoin", "Crypto"))
print(get_symbols("S&P 500", "Index"))
print(get_symbols("EURUSD", "Currency"))
print(get_symbols("SPY", "ETF"))

Security Analysis

from finalytics import Ticker

ticker = Ticker("AAPL")
print(ticker.get_current_price())
print(ticker.get_summary_stats())
print(ticker.get_price_history("2023-01-01", "2023-10-31", "1d"))
print(ticker.get_options_chain())
print(ticker.get_news("2023-11-01", "2023-11-10", False))
print(ticker.get_income_statement())
print(ticker.get_balance_sheet())
print(ticker.get_cashflow_statement())
print(ticker.get_financial_ratios())
print(ticker.compute_performance_stats("2023-01-01", "2023-10-31", "1d", "^GSPC", 0.95, 0.02))
ticker.display_performance_chart("2023-01-01", "2023-10-31", "1d", "^GSPC", 0.95, 0.02, "html")
ticker.display_candlestick_chart("2023-01-01", "2023-10-31", "1d", "html")
ticker.display_options_chart(0.02, "png")

Portfolio Optimization

from finalytics import Portfolio

portfolio = Portfolio(["AAPL", "GOOG", "MSFT", "BTC-USD"], "^GSPC", "2020-01-01", "2022-01-01", "1d", 0.95, 0.02, 1000, "max_sharpe")
print(portfolio.get_optimization_results())
portfolio.display_portfolio_charts("html")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

finalytics-0.1.2.tar.gz (33.6 kB view hashes)

Uploaded Source

Built Distributions

finalytics-0.1.2-cp312-none-win_amd64.whl (18.4 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

finalytics-0.1.2-cp312-none-win32.whl (17.1 MB view hashes)

Uploaded CPython 3.12 Windows x86

finalytics-0.1.2-cp311-none-win_amd64.whl (18.4 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

finalytics-0.1.2-cp311-none-win32.whl (17.1 MB view hashes)

Uploaded CPython 3.11 Windows x86

finalytics-0.1.2-cp311-cp311-macosx_11_0_arm64.whl (19.1 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

finalytics-0.1.2-cp311-cp311-macosx_10_7_x86_64.whl (19.8 MB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

finalytics-0.1.2-cp310-none-win_amd64.whl (18.4 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

finalytics-0.1.2-cp310-none-win32.whl (17.1 MB view hashes)

Uploaded CPython 3.10 Windows x86

finalytics-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (19.1 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

finalytics-0.1.2-cp310-cp310-macosx_10_7_x86_64.whl (19.8 MB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

finalytics-0.1.2-cp39-none-win_amd64.whl (18.4 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

finalytics-0.1.2-cp39-none-win32.whl (17.1 MB view hashes)

Uploaded CPython 3.9 Windows x86

finalytics-0.1.2-cp38-none-win_amd64.whl (18.4 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

finalytics-0.1.2-cp38-none-win32.whl (17.1 MB view hashes)

Uploaded CPython 3.8 Windows x86

finalytics-0.1.2-cp37-none-win_amd64.whl (18.4 MB view hashes)

Uploaded CPython 3.7 Windows x86-64

finalytics-0.1.2-cp37-none-win32.whl (17.1 MB view hashes)

Uploaded CPython 3.7 Windows x86

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page