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

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
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
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
hfttools-0.0.2-py3-none-any.whl
(13.3 kB
view hashes)