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.

Requirements

  1. Python 3. We recommend installing Anaconda.

Installation

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
    tdt.download_demo_data()
    
  3. Importing data is easy

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