A wrapper of kdb and sql for convenient trade data management.
Project description
*** IMPORTANT NOTICE ***This package is not in a usable stage. It is only uploaded for convenience of developing and testing. |
Postgreslq Initialization
CREATE DATABASE trade_data;
CREATE USER tradedbadmin WITH PASSWORD 'trade_password';
GRANT ALL PRIVILEGES ON DATABASE trade_data TO tradedbadmin;
\connect trade_data;
GRANT ALL ON SCHEMA public TO tradedbadmin;
Add the following lines in the pg_hba.conf
file to allow password authentication for the tradedbadmin
role.
# trade database
host all tradedbadmin 0.0.0.0/0 scram-sha-256
host all tradedbadmin ::/0 scram-sha-256
KDB+ Initialization
get license
Request a 64-bit license from Kx Systems. Fill the form then the system will send an email with the license file and a base64 key (Either can be used to license the product).
Server side (Linux system)
- Put the executable
q
and license in desired folder, say/opt/l64
directory. - Create a folder to store the data, say
/opt/data
directory. - Set the environment variable
QLIC
to the directory where the license file is stored. AndQHOME
to the data directory. - Run the
q
executable with the following command:$ q -p 5000 -s 1 -w 100 -t 1000 -T 1000 -U /opt/l64/trade.q
-
-p 5000
: This sets the port number for the kdb+ process. In this case, the port number is 5000. -
-s 1
: This sets the number of secondary threads. In this case, it's set to 1. -
-w 100
: This sets the workspace heap size. In this case, it's set to 100 MB. -
-t 1000
: This sets the timer interval in milliseconds. In this case, it's set to 1000 milliseconds, or 1 second. -
-T 1000
: This sets the timeout in seconds for client queries. In this case, it's set to 1000 seconds. -
-U /opt/l64/trade.q
: This sets the access control list file. In this case, the file is located at/opt/l64/trade.q
. This file contains a list of usernames and passwords for clients that are allowed to connect to the kdb+ process.
-
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file trade_database_manager-0.0.5.tar.gz
.
File metadata
- Download URL: trade_database_manager-0.0.5.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a765f38ebf53c0f4007dbf8bffa9b88ee81baede630c6e018c8843d9fa8a6f3 |
|
MD5 | a5e21593f634fc9d849e49807d921168 |
|
BLAKE2b-256 | 0878e54db85633e0f96134bb78b0ba33bb492b1aaa393e2319636eb7ef17a62d |
File details
Details for the file trade_database_manager-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: trade_database_manager-0.0.5-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09c3e23ec1cca40a9094d10e26784c64caff203b5b7c3807b19431c3174efef5 |
|
MD5 | 8add6d55918c677c1da8e21a722d2fdd |
|
BLAKE2b-256 | 390f260798253eb2b0c9f2dcbba54f6f455208713acc236fa60d241f1dc82f2b |