Installation#

Prerequisites#

  • You installed OneTick and have an active license or you are using hosted OneTick.

  • You installed python3.9 (with dynamic libraries such as libpython3.9.so.1.0).

  • You installed pip.

Environment variables#

Please extend your environment variables to include the OneTick installation path and the paths to its python libraries. You don’t need to do this if you already use onetick.query.

Warning

The values below are just an example, you should update them according to your OneTick installation path and version of the Python interpreter you use.

  • for Linux

    Please modify the PYTHONPATH variable, e.g, by adding the following to your .bashrc file

export PYTHONPATH="/opt/one_market_data/one_tick/bin:$PYTHONPATH"
export PYTHONPATH="/opt/one_market_data/one_tick/bin/python:$PYTHONPATH"
export PYTHONPATH="/opt/one_market_data/one_tick/bin/numpy/python39:$PYTHONPATH"
  • for Windows

    Please add the following values to your PYTHONPATH variable:

    C:\omd\one_market_data\one_tick\bin
    C:\omd\one_market_data\one_tick\bin\python
    C:\omd\one_market_data\one_tick\bin\numpy\python39

Installation with pip#

Ask your OneMarketData rep for a username and password and run the command below

pip install -U --index-url https://USERNAME:PASSWORD@pip.distribution.sol.onetick.com/simple/ onetick-py

Requirements#

The onetick.py package has the following requirements

# distributes with the `onetick.py` package
locator_parser==1.0.6
onetick-lib==1.0.5

# open source packages
pandas==1.1.5; python_version == '3.6'
pandas==1.3.4; python_version == '3.7'
pandas==1.3.4; python_version == '3.8'
pandas==1.3.4; python_version == '3.9'
pandas==1.5.1; python_version >= '3.11'

numpy==1.19.5; python_version <= '3.7'
numpy==1.21.6; python_version == '3.8'
numpy==1.23.0; python_version >= '3.9'

coolname
python-dateutil
tzlocal
tzdata

# backports
backports.zoneinfo; python_version < '3.9'
typing_extensions; python_version < '3.8'
singledispatchmethod; python_version < '3.8'
backports.cached-property; python_version <= '3.8'
astunparse; python_version <= '3.8'

These requriements are taken from the requirements.txt file and could be used as is for pip.

pip install -r requirements.txt