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.3.0.tar.gz (313.4 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.0-py3-none-any.whl (393.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magiqa_finance-0.3.0.tar.gz
  • Upload date:
  • Size: 313.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 1598adf9a246836808dced13f32556d2219c7073784fe8fcf59a358e44415cad
MD5 bed567cc7867cb48e7959699753dd038
BLAKE2b-256 d5ebba845c93a6ab3a8b11d072560760634170699ee44bad5182f4c2010f683f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magiqa_finance-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 393.4 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d51339cf04b31a2f3eb3ffc53bddc47b5f5d6e0db7c1305ee6064f4944669493
MD5 d31dcb9427a79f3a3eb4c2ed0448fc04
BLAKE2b-256 04851ba83ee0443acd63c9facf84f671f33c1533b806bc61019f04eb7d2158e6

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