onetick-ext-view
Onetick View is a terminal UI for browsing Onetick databases.
It is based on onetick-py library and can work in two modes: localy-installed mode and WebAPI mode. The mode depends on the set environment variables and installed onetick python api libraries. See onetick-py documentation for details: https://docs.pip.distribution.sol.onetick.com/static/installation/webapi.html.
In order to use WebAPI mode install package with webapi extra:
pip install onetick-ext-view[webapi]
Usage (WebAPI mode):
# set env variables:
OTP_HTTP_ADDRESS='https://rest.cloud.onetick.com'
OTP_ACCESS_TOKEN_URL='https://cloud-auth.parent.onetick.com/realms/OMD/protocol/openid-connect/token'
OTP_CLIENT_ID='?????????????'
OTP_CLIENT_SECRET='?????????'
onetick view # (get remote databases from WebAPI server)
Usage (locally-installed mode):
# set env variables:
MAIN_ONE_TICK_DIR="/opt/one_market_data/one_tick"
onetick view # (scan current working dir)
onetick view /tmp # (i.e. for tests with --keep-generated=always)
onetick view --remote-ts remote.example.com:40001 # (connect to remote server)
onetick view /tmp --remote-ts remote.example.com:40001 # (both scan specific directory and connect to remote server)
Program windows:
-
Databases window: does recursive search in subdirectories and shows available databases
- press Q to quit
-
Dates window: shows available dates for selected database
- press C to show record count (may be slow - scans all DBs)
- press Esc or Backspace to go back
- press Q to quit
-
Tick types window: shows available tick types for a specific day
- press + or - to change scroll speed (1, 10, 100 lines)
- press Esc or Backspace to go back
-
Symbols window: shows available symbols & tick types
- press C to show record count
- press + or - to change scroll speed (1, 10, 100 lines)
- press Esc or Backspace to go back
-
Data window: shows symbol data
- Use arrows to navigate dataframe
- press Space to zoom in top left data cell (i.e. view long alert description string)
- press T to transpose table
- press + or - to change scroll speed (1, 10, 100 lines)
- press C to dump dataframe to CSV file
- press Esc or Backspace to go back
Metadata
Release files for onetick-ext-view 1.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| onetick_ext_view-1.5.3.tar.gz | 32.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| onetick_ext_view-1.5.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.5 kB
Release files / onetick_ext_view-1.5.3.tar.gz
| Download URL | onetick_ext_view-1.5.3.tar.gz |
|---|---|
| Size | 32.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5be9373be1a5a91e017a44b566946a4e02e0cac9fb4f005ea7e515feb40410cb
|
|
BLAKE2b-256 checksum How to use checksums |
1060733ccf43a7dcbb87fd508f5753f2954a9bfef7d2a60d470e83fde166c7b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / onetick_ext_view-1.5.3-py3-none-any.whl
| Download URL | onetick_ext_view-1.5.3-py3-none-any.whl |
|---|---|
| Size | 33.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0b3f482a523616332d3dcc04993da116cc1eec7ff42e4e0c4b3d9e60c654999
|
|
BLAKE2b-256 checksum How to use checksums |
46997db4af941c9f0abe6abf81b16d6faa7984359290e44d88f9d84a4b8f3431
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|