Skip to main content

*** 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

MetaData Initialization

Allowed instruments types are given in "Instrument Types" section of meta_enumerations.md.

Data Initialization for Instrument Type(s)

from trade_database_manager.manager import MetadataSql

metadatalib = MetadataSql()
metadatalib.initialize(for_inst_types="CB")

This will try to create two tables, instruments and instruments_cb in the database if not yet exists. The instruments table will store the common information of all instruments, and the instruments_cb table will store the type-specific information of the instruments of type CB.

The table fields are listed in the data_organization.md file.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trade_database_manager-0.2.6.tar.gz (70.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trade_database_manager-0.2.6-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

Details for the file trade_database_manager-0.2.6.tar.gz.

File metadata

  • Download URL: trade_database_manager-0.2.6.tar.gz
  • Upload date:
  • Size: 70.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for trade_database_manager-0.2.6.tar.gz
Algorithm Hash digest
SHA256 f47697bd2f74e239e9ed27910909bafa2b8c451e3876be29e60fae44e2f7cde9
MD5 5bc733aec71c9cf451a16b9828cff7ad
BLAKE2b-256 983db08febc7de6b8e1d4c43fd14342f52321777b6651d57c4e9b0194fd8a458

See more details on using hashes here.

File details

Details for the file trade_database_manager-0.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for trade_database_manager-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d69957a73fda71be6243da9ccc1291169b9a00c0610e8faa9f4f30d7c8c9fb8d
MD5 42b56a0c67c2a74e2a9da0f70cea9cda
BLAKE2b-256 2efaf23d875f9c074b4eba75e768cdaaf018f357eeca8506d10d5c9035af68cb

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.1

2 files

0.3.0

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

2 files

0.2.7

2 files

This release

0.2.6 This release

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.6

2 files

0.0.5

2 files

0.0.3

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page