Skip to content

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.


  1. Python 3. We recommend installing Anaconda.


Just follow these three steps to get started:

  1. Install the TDT Python package from pypi. From the Anaconda Prompt, type:

    pip install tdt

  2. In Python, you can download the example data to the current directory with this:

    import tdt
  3. Importing data is easy

    data = tdt.read_block('path/to/block')