Skip to main content

Algo trading utils package. Zero test-coverage so please cross your fingers prior use.

Project description

algo

Set of tools for algorithmic trading

Contributing

To get started install pipenv

Install dependencies

pipenv install --dev

Active environment

pipenv shell

To use VSCode Pyhton: Select Interpreter and choose suggested PipEnv environment.

At this point version update is manual.

Building And uploading

python -m build
twine upload ./dist/* --verbose

Local run for dev

docker compose up
pipenv shell
export CONFIG_FILE=~/config-container/config.yml
python -m algo

TODO:

  • add tests [important] way to many things are dangling on the expectations of valid functioning ie: caching and valid rehidration
  • make config retry loading config file ie do not assign empty config on fail Now it raises error only once on the first attempt to access config. Then it returns empty/default values

DONE:

  • 11/07/22: make install_requires dynamic based on Pipfile
  • 10/07/22: implement multiprocess caches see :synccache: mark. In order to make only one process to call the data retrieval function. to do so: done
    1. keep the temporary cache value as a global lock aka '{cache_key}-loading' its presense mean that one process is loading the data and cache will be available soon
    2. main: loading process should create this special value and start loading data
    3. others: on this cache availability should sleep before the data will become available
    4. main: after data is loaded set cache value and remove the locking entry
    5. others: should poll until there is no such value in the table then read the cached data or take the role of main process

to run test:

python -m unittest discover -p "*_test*" -v  

Project details


Download files

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

Source Distribution

trade-utils-1.0.31.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

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

trade_utils-1.0.31-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file trade-utils-1.0.31.tar.gz.

File metadata

  • Download URL: trade-utils-1.0.31.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for trade-utils-1.0.31.tar.gz
Algorithm Hash digest
SHA256 09c1982551a7f937cbcfd554c627c3f7ed349d9671630a0a6bb0a12bf8e6e83d
MD5 ac9df13d37acca410e883d13b6077890
BLAKE2b-256 1b2adb17dc579ecd900bd6e32c676d1771f89417946d8c150c088cd6cdee3f6f

See more details on using hashes here.

File details

Details for the file trade_utils-1.0.31-py3-none-any.whl.

File metadata

  • Download URL: trade_utils-1.0.31-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for trade_utils-1.0.31-py3-none-any.whl
Algorithm Hash digest
SHA256 79a56c60a68b27ebf88bf926bbab96dc7232d5839142087082fffdedc290cfe7
MD5 1fca4e3033af1748524f86c190afe538
BLAKE2b-256 7e8eee698fd950eabac814e0813513d97db3d694cf0f3d1e7444de41dce054ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page