Skip to main content

Python library for accessing Magiqa Finance API - comprehensive stock data, fundamentals, technical indicators, historical data, and options chains

Project description

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)

Documentation

For detailed documentation, see magiqa/README.md or visit https://options.magiqa.us.

Requirements

  • Python 3.8+
  • requests >= 2.28.0

License

MIT License - see LICENSE file for details.

Support

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

magiqa_finance-0.1.0.tar.gz (282.5 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.1.0-py3-none-any.whl (355.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for magiqa_finance-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5a31b9c664e932ba65d339b5253a1a1f53c3129f44e6c5629c14774d9c9cbeb
MD5 236c1ac05e9729e4579bdbd701f31c48
BLAKE2b-256 3b144608f1643beff0ce6a90111ed285ebf326f03ee940fce7a9f8f6d192590d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for magiqa_finance-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f91a1928ca85f6721c1477b89d7b70f676695fc850c5afffbc830f7825bf3e1a
MD5 995ed86e28d9cc1e7c18b5800b2c6050
BLAKE2b-256 859f6977c109e99461de20ba5311efda51caa964d5680da5e11aac70e833e553

See more details on using hashes here.

Supported by

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