Skip to main content

Magiqa Finance Python Library

Python Version License

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_put helpers 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

Download files

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

Source Distribution

magiqa_finance-0.3.1.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

magiqa_finance-0.3.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file magiqa_finance-0.3.1.tar.gz.

File metadata

  • Download URL: magiqa_finance-0.3.1.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for magiqa_finance-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9955d5e6cab62bcaec67581e3c39807942acaae33a65190347b349be9b937940
MD5 d33c3075e822b1f9942eb15ac0007ebd
BLAKE2b-256 a1ad76126d800898d2f4266568e0fdf66578b765e2a93e84fac7b3840df478f4

See more details on using hashes here.

File details

Details for the file magiqa_finance-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: magiqa_finance-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for magiqa_finance-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82d75b23e28523a64598505ec0ff69ff69e274bf65e3fa845e860a3322f18075
MD5 a065a2b52b098b91b996cfe39793fcff
BLAKE2b-256 108d7592cc554d6afc2caf1b81e89f67a4db655092474d7cc215ef19e7a3df4d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.3.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page