Skip to main content

A package for high-frequency trade research.

Project description

Copyright (c) 2016 Colin Swaney

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Description: # hfttools
A Python toolkit for high-frequency trade research.

Website: [https://cswaney.github.io/hfttools/](https://cswaney.github.io/hfttools/)

## What?
HFT Tools is a Python toolkit for financial researchers. "But I don't use Python!" No worries--all will be explained (keep reading).

## Why?
The goal of this project is to provide a common, open-source tool for market microstucture research using NASDAQ HistoricalView-ITCH data. Don't pay for data!

## Sure. But what does is actually do?
HFT Tools creates scalable, research-ready databases from NASDAQ HistoricalView-ITCH data files. These data files are provided "as is" in a compressed, binary format that is not particularlyl useful. HFT Tools decodes these files and creates tables containing the time series of messages as well as the time series of reconstructed order books.

## Installation
![alt text](https://img.shields.io/pypi/v/hfttools.svg "pypi")

If you're a Python user, simply install using the Python package manager:

```
pip install hfttools
```

## Basic Usage

To create a new HDF5 database from an ITCH data file `itch_010113`:

```python
import hfttools as hft

hft.unpack(fin='itch_010113.bin',
ver=4.1,
date='2013-01-01',
fout='itch.hdf5'
nlevels=10,
names=['GOOG', 'AAPL'],
method='hdf5')
```

This will create a file `itch.hdf5` containing message and order book data for Google and Apple. To read the order book data back into your Python session, use `hft.read`:

```python
hft.read(db='itch.hdf5',
date='2013-01-01',
names='GOOG')
```

For more information, see our tutorial at the projects [webpage](https://www.google.com).

## Tips

Create massive datasets quickly by running multiple jobs. All databases generated by HFT Tools support simultaneous read/write.

Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3.5

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

hfttools-0.0.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

hfttools-0.0.2-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file hfttools-0.0.2.tar.gz.

File metadata

  • Download URL: hfttools-0.0.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hfttools-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d5e050da9448049b4b21206e888ded6f1a2d53ece44945e0477914749f21edc1
MD5 9dc985823447aff3390584f5d490266f
BLAKE2b-256 890362e991b1946a0d81d88371386a48c0b9d649fac86d745f87b1c15a5f037f

See more details on using hashes here.

File details

Details for the file hfttools-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hfttools-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f9d146e215c4253a4897c3ab7e7297bc4497216633f6eafc87a37bfcd7f9a4d6
MD5 ec7b75fcf99e791c50fa9b70dea5eb2c
BLAKE2b-256 95cb5319e286f609378ad26a7a5bc7add351e9e1c0418354ea547378997dc90e

See more details on using hashes here.

Supported by

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