skip to navigation
skip to content

tickvault-python-api 1.2.2

TickVault Python Query API

# TickVault Python Query API

Python API that provides programmatic access to micro and nanosecond-scale trading data on a TickVault platform from TickSmith. Portals with accessible data include [Thomson Reuters Tick History](https://trdata.tickvault.com) and [Nasdaq-CX](https://nasdaq-cx.ticksmith.com).

## Installation

Using pip:
```bash
pip install tickvault-python-api
```

## Example Usage

Get the bid/ask spread of TD on CHIX on May 4th, 2017
```python
from tickvaultpythonapi.nasdaqcxclient import NasdaqCxClient

nasdaq = NasdaqCxClient(user_name=<user_name>, secret_key=<api_key>)

result = nasdaq.query_hits(source="CHIX", tickers="td",
fields="ts,askprice,bidprice",
start_time=20170504093000, end_time=20170504160000,
predicates="ask_size > 10 and bid_size > 10 and line_type like Q",
limit=1000000)

df = nasdaq.as_dataframe(result)

df.plot()
```  
File Type Py Version Uploaded on Size
tickvault_python_api-1.2.2-py3-none-any.whl (md5) Python Wheel py3 2017-06-06 22KB