Importing TDT Data into Python for Offline Analysis
TDT provides a set of cross-platform tools for reading TDT data files directly into Python offline. It is compatible with Python 3.
Requirements
- Python 3. We recommend installing Anaconda.
Installation
Just follow these three steps to get started:
-
Install the TDT Python package from pypi. From the Anaconda Prompt, type:
pip install tdt
-
In Python, you can download the example data to the current directory with this:
import tdt tdt.download_demo_data()
-
Importing data is easy
data = tdt.read_block('path/to/block')