Funstrat
This is the strategy preprocessing library. Use to preprocess everything regarding price bar data. We can put other things into it as well.
NOTE!
MOST OF THIS WILL BE SETUP TIME AND READING DOCUMENTATIONS!
Most of this assignment won't be something extremelt new. It'll be a rehash of the code previously written. However, you'll be integrating the previously written code with our code base. It'll simplify everything for us, and perhaps give you new assets to use.
Installation and Setup:
After reviewing some of your code, I've inferred that you use Windows and possibly pycharm. To ensure you have the best experience possible, we're going to have you install Ubuntu on Windows. Prior to following the rest of the document, please read and follow:
https://tutorials.ubuntu.com/tutorial/tutorial-ubuntu-on-windows#0
After you follow that tutorial, please follow this tutorial to install all of python/python3:
http://timmyreilly.azurewebsites.net/python-with-ubuntu-on-windows/
Installing Pip3 and pipenv
I use pipenv to ensure all of this code works properly. Before continuing. Open Ubuntu on Windows and begin with installing the following commands:
This upgrades your system
sudo apt-get update
sudo apt-get -y upgrade
This installs everything necessary
sudo apt-get install -y python3-pip
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
Try testing to see if that worked by running a simple numpy operation
pip3 install numpy
python3
You should enter into a shell and be able to run python code.
Now install pipenv:
pip install --user --upgrade pipenv
Installing MongoDB Ubuntu
We use mongodb to manage timeseries data. Make sure to install. Run these from the site given:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Run it:
sudo service mongod start
sudo service mongod stop # To stop
sudo service mongod restart # To restart
Accessing Your Files In Ubuntu On Windows 10
Please follow the tutorial for accessing your files:
Finishing Setup
Now enter into the folder containing setup.py. Downloaded from the funsuite repo.
To install all of the dependencies: Run:
pipenv install -e .
This installs all of the main dependencies for the project. Follow that with: pipenv shell in the main directory to enter into the project's virtual environment.
Documentation
Here we begin the documentation of the code. If you look through the files, you'll see a lot work done. All of the work for the trading bot is routed through here, as well as some prototype. Funsuite is a testing suite for new additions to the app. Here we create and test new additions to the application. Well separate documentation by objective > libraries/files > functions. That way you'll easily be able to jump into the code and process through everything you need.
Metadata
Release files for funstrat 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| funstrat-0.1.tar.gz | 13.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| funstrat-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.0 kB
Release files / funstrat-0.1.tar.gz
| Download URL | funstrat-0.1.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73a5f4ce32ee45d22a64a748e9f2e4945169b740ddc0343368e64fe2a5b41c66
|
|
BLAKE2b-256 checksum How to use checksums |
50c7f451f0777c1aa90510ef52e8d306b12bf007926deb90a08e9a96a07fa683
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6
|
Release files / funstrat-0.1-py3-none-any.whl
| Download URL | funstrat-0.1-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
377324111256bfd216d62927c96e689731a3ef5da8ace41786ba88e8f7755fe6
|
|
BLAKE2b-256 checksum How to use checksums |
c84e342122a3e003a9f1736089522186c1a809154cfd3c3012386f7310d1d262
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6
|
Security for funstrat 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.