Skip to main content

Preprocess the bars for the trading bot.

Project description

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:

https://www.howtogeek.com/261383/how-to-access-your-ubuntu-bash-files-in-windows-and-your-windows-system-drive-in-bash/

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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

funstrat-0.1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

funstrat-0.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file funstrat-0.1.tar.gz.

File metadata

  • Download URL: funstrat-0.1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for funstrat-0.1.tar.gz
Algorithm Hash digest
SHA256 73a5f4ce32ee45d22a64a748e9f2e4945169b740ddc0343368e64fe2a5b41c66
MD5 9e5a55204e48b5f0cad4c68cc6b91b84
BLAKE2b-256 50c7f451f0777c1aa90510ef52e8d306b12bf007926deb90a08e9a96a07fa683

See more details on using hashes here.

File details

Details for the file funstrat-0.1-py3-none-any.whl.

File metadata

  • Download URL: funstrat-0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for funstrat-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 377324111256bfd216d62927c96e689731a3ef5da8ace41786ba88e8f7755fe6
MD5 6d8832803049bb4302405bac3dd24c95
BLAKE2b-256 c84e342122a3e003a9f1736089522186c1a809154cfd3c3012386f7310d1d262

See more details on using hashes here.

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