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:

  • make it run standalon (now it raises errors about the log format)
  • 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

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.7.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

trade_utils-1.0.7-py3-none-any.whl (17.7 kB view hashes)

Uploaded Python 3

Supported by

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