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

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
Metadata
Release files for hfttools 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hfttools-0.0.2.tar.gz | 10.4 kB | Without provenance | Details for hfttools-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hfttools-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for hfttools-0.0.2-py3-none-any.whl |
Total release size: 23.7 kB
Release files / hfttools-0.0.2.tar.gz
| Download URL | hfttools-0.0.2.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5e050da9448049b4b21206e888ded6f1a2d53ece44945e0477914749f21edc1
|
|
BLAKE2b-256 checksum How to use checksums |
890362e991b1946a0d81d88371386a48c0b9d649fac86d745f87b1c15a5f037f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / hfttools-0.0.2-py3-none-any.whl
| Download URL | hfttools-0.0.2-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9d146e215c4253a4897c3ab7e7297bc4497216633f6eafc87a37bfcd7f9a4d6
|
|
BLAKE2b-256 checksum How to use checksums |
95cb5319e286f609378ad26a7a5bc7add351e9e1c0418354ea547378997dc90e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for hfttools 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.