Algo trading utils package. Zero test-coverage so use on your own risk.
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
- make
install_requires
dynamic based onPipfile
DONE:
- 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-0.0.6.tar.gz
(11.0 kB
view hashes)
Built Distribution
Close
Hashes for trade_utils-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 207b44fdda16cd4170f3e458b10bc672a1a5287fd7f58a4767208d5f845be712 |
|
MD5 | 5bec042d1f0d94e112c2efe9f2ec6e47 |
|
BLAKE2b-256 | b1b92991f184fcd88e48d498b91efa0e30d2fdd8994510906c23453e2006d3b0 |