Magiqa Finance Python Library
Python library for accessing the Magiqa Finance API - comprehensive stock data, fundamentals, technical indicators, historical data, and options chains.
Installation
pip install magiqa-finance
Quick Start
1. Get Your API Key
Register at https://options.magiqa.us/register and generate an API key.
2. Basic Usage
import magiqa
# Initialize client with your API key
client = magiqa.Client(api_key="your-api-key-here")
# Get fundamental data
data = client.fundamentals("AAPL")
print(f"Price: ${data['price']}")
print(f"Market Cap: ${data.get('market_cap', 'N/A')}")
# Get technical indicators
technical = client.technical("AAPL")
print(f"RSI: {technical.get('rsi', 'N/A')}")
# Get financial statements
financials = client.financials("AAPL")
# Get historical data
hist = client.historical_data("AAPL", start_date="2024-01-01", end_date="2024-01-31")
# Get options chain
options = client.options("AAPL", "2024-02-16")
3. Using Environment Variables
export MAGIQA_API_KEY="your-api-key-here"
import magiqa
client = magiqa.Client() # Uses MAGIQA_API_KEY from environment
data = client.fundamentals("AAPL")
Features
- Fundamental Data: Get comprehensive stock fundamentals including price, market cap, P/E ratio, and more
- Technical Indicators: Access RSI, MACD, moving averages, and trend analysis
- Financial Statements: Retrieve income statements, balance sheets, and cash flow statements
- Historical Data: Fetch historical price data with customizable date ranges
- Options Chains: Get complete options chains with Greeks (delta, gamma, theta, vega)
- Free-tier strategies:
covered_call/naked_puthelpers for flagship symbols (see options.magiqa.us/pricing)
Documentation
For detailed documentation, see magiqa/README.md or visit https://options.magiqa.us.
Internal project docs (marketing, publishing, architecture) live in docs/ locally; see docs/DOCS_INDEX.md.
Requirements
- Python 3.8+
- requests >= 2.28.0
License
MIT License - see LICENSE file for details.
Support
- Documentation: https://options.magiqa.us
- Issues: https://github.com/magiqa/magiqa-finance-python/issues
- Email: info@magiqa.us
Metadata
Release files for magiqa-finance 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| magiqa_finance-0.3.1.tar.gz | 18.8 kB | Without provenance | Details for magiqa_finance-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| magiqa_finance-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for magiqa_finance-0.3.1-py3-none-any.whl |
Total release size: 31.7 kB
Release files / magiqa_finance-0.3.1.tar.gz
| Download URL | magiqa_finance-0.3.1.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9955d5e6cab62bcaec67581e3c39807942acaae33a65190347b349be9b937940
|
|
BLAKE2b-256 checksum How to use checksums |
a1ad76126d800898d2f4266568e0fdf66578b765e2a93e84fac7b3840df478f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|
Release files / magiqa_finance-0.3.1-py3-none-any.whl
| Download URL | magiqa_finance-0.3.1-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82d75b23e28523a64598505ec0ff69ff69e274bf65e3fa845e860a3322f18075
|
|
BLAKE2b-256 checksum How to use checksums |
108d7592cc554d6afc2caf1b81e89f67a4db655092474d7cc215ef19e7a3df4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|
Security for magiqa-finance 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.