Skip to main content

Provide VIX Cash and Futures Term Structure as Pandas dataframes

Project description

VIX Utils

Overview

vix_utils provides some tools for preparing data for analysing the VIX Futures and Cash Term structures.

The futures can also contain a 30 day continuous maturity weighting of front two months of vix futures.

VIX Futures Data downloaded from CBOE Futures Historical Data.

Vix Cash Data are downloaded from CBOE Historical Volatility Indexes.

There is an API for Python to load the data into Pandas DataFrames. If you do your analysis in Python, use the API.

Since there is no documentation yet, look at the examples in the src/vix_utils/examples folder.

Important note for Juypter notebooks.
You must use async_get_vix_index_histories and async_load_vix_term_structure rather than get_vix_index_histories and load_vix_term_structure. There is an example Jupyter notebook "vix_utils use in Jupyter.ipynb" in the src/vix_utils/examples folder.

If you do your analysis in other tools such as R or excel, you can use the command line tool vixutil.

vixutil -h will give the help. The data are availble in record and wide formats. Just run it and look at the excel or csv output to see what they look like.

Installation

You will need a Python 3.11 or later instalation.

Install from the Python Packaging Index

Install using pip from The Python Package Index :

pip install vix_utils

If you want to run the samples, install like this: pip install vix_utils[examples]

The sample to load all the various data frames can be run as: 'vix_sample_load_data'

The sample to plot the history of futures and cash term structures: vix_sample_plots

To load the sample Jupyter notebook, run vix_sample_load_data to figure out where the examples folder is. Browse there with Jupyter and open a notebook.

Development

Clone from github repository.

pip install -e .[test,examples] will:

  • install vix_utils into your python environment, including any command line scripts.
  • install the necessary prequisites for running any tests in the test folder, and for running the programs in the src/vixutils/examples folder.

Testing

The tests directory contains a few tests. This project wasn't developed with Test Driven Development, unit tests have been added to isolate and fix defects.

However, new features and bug fixes should be developed with Test Driven Development practices when practical.

Examples

Source is in src/vix_utils/examples

## Developing
https://numpydoc.readthedocs.io/en/latest/format.html

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

vix_utils-0.1.4.tar.gz (6.2 MB view details)

Uploaded Source

Built Distribution

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

vix_utils-0.1.4-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file vix_utils-0.1.4.tar.gz.

File metadata

  • Download URL: vix_utils-0.1.4.tar.gz
  • Upload date:
  • Size: 6.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for vix_utils-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2d6514d2183ba477b7f3aeaf16ad23c539906f052aa6ee44598c65540f6fafb0
MD5 f55c0c19b09ec2c43012729f5dff76c0
BLAKE2b-256 d9778f68b9c90062bfd7975bf02c9a3055032ebfeb8d80fb0baa72a8feb464f4

See more details on using hashes here.

File details

Details for the file vix_utils-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: vix_utils-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for vix_utils-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 51644dc24c95df3b248278fb88f4482abdf2ad20f8c6a8075c6909534edb1a94
MD5 a6cca816e8ef6f9d2ffaad44bdba8054
BLAKE2b-256 bc580adabcd20fc21c43a7c70098176c7f62038ad62d5382f06d8dc5b530d90d

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