Skip to main content

A lightweight Python library for python utilities for holidays, dates, options and other tools

Project description

lightquant

lightquant is a lightweight Python library providing utilities for working with holidays, dates, options, and other trading-related tools. It is designed to simplify common tasks in quantitative finance and trading workflows.


Features

  • Date Utilities: Simplify date and time operations.
  • Options Pricing: Tools for European options calculations.
  • Trading Interactions: functions for assisting web scraping, reading and writing R files
  • Commission Calculations: Retrieve and calculate trading commissions based on dates and configurations.
  • Config Management: Centralized configuration management using YAML files.

Installation

Install the package using pip:

pip install lightquant

Usage

Import the Library

import lightquant

Check the Version

print(lightquant.__version__)

Initialize Configuration

from lightquant import initialize_config, get_config

# Initialize configuration with the default config path
initialize_config("path/to/config.yaml")

# Access configuration values
config = get_config()
timezone = config.get("tz")
print(f"Timezone: {timezone}")

Logging Configuration

from lightquant import configure_logging

# Configure logging
configure_logging(level=logging.INFO, enable_console=True)

License

This project is licensed under the terms of the MIT License.


Links

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

lightquant-0.1.5.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

lightquant-0.1.5-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file lightquant-0.1.5.tar.gz.

File metadata

  • Download URL: lightquant-0.1.5.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for lightquant-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b1208e7b5d778fba01fdf3d9a70a3f0dfcc76fb748124219e023a4b8f6d7db6f
MD5 619d980ef0d114feb9dcfcf0b45c42ce
BLAKE2b-256 56f57de07c22d1d1e401e686e296a3d42830fa7f9aa3bb9625f279cc99e6f9f8

See more details on using hashes here.

File details

Details for the file lightquant-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: lightquant-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for lightquant-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4a3a9c679104c06667a84b39c5ff53e5d12d156369bc80edffa8f4b5d4057fa5
MD5 6ce2634d534bf56d8334ef878b1138e3
BLAKE2b-256 c1f32c5463ffe1bb7f7abfc136ed33757785a64a2626c34a8132fffea9d2c9a6

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