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
: makeinstall_requires
dynamic based onPipfile
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- 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
- main: loading process should create this special value and start loading data
- others: on this cache availability should sleep before the data will become available
- main: after data is loaded set cache value and remove the locking entry
- 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
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
trade-utils-1.0.7.tar.gz
(14.1 kB
view hashes)
Built Distribution
Close
Hashes for trade_utils-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 255ea71c208997298bb63fe77a99a4b490870bf7b7e4883eefa8e941df000d0e |
|
MD5 | b4089bde8adff4b36e249dc365eafeef |
|
BLAKE2b-256 | 32aa37246bdecb22c599b6aa96e8d6ed43ca89f5499ea089f3183d73188290f6 |