Skip to main content

Speculator predicts the price trend of cryptocurrencies like Bitcoin and Ethereum with machine learning models and technical analysis.

Project description

logo

travis python license tag status

Speculator predicts the price trend of cryptocurrencies like Bitcoin and Ethereum.

Normal markets will also be added in future updates.

How to get started

With Python:

python main.py

With Web RESTful API:

python api.py
curl http://localhost:5000/api/public/predict -X GET

Example:

example

Use the --help flag for a complete list of optional arguments. Note: A website for a friendly user experience is in development

Dependencies

Make sure these packages are installed before running Speculator:

Or just use a one-liner:

pip3 install delorean requests numpy tensorflow scikit-learn pandas flask flask-cache flask-restful webargs

API

Web RESTful:

First start the Flask API server with python api.py. Then use HTTP methods like GET: curl http://localhost:5000/api/public/predict -X GET

For a list of valid arguments in the URL, please check back tomorrow (12/20/17).

I plan to start a server for anyone to access this without starting their own Flask server, but with only public access. Starting this on your own server with authentication for users (private access) will allow you to PUT/POST/DELETE your own market data and analyze that instead of the default. This is currently in development and will be extended in the future.

Python:

Speculator is available as a package on PyPi.

pip3 install speculator

If you want to use or thoroughly understand Speculator’s API, I recommend checking out the docs, which features a fully documented example.

Project Structure

LICENSE
README.md

docs
    \_ CONTRIBUTING.md
    \_ analysis.md
    \_ example.md
    \_ example.py
    \_ utils.md

speculator
    \_ api.py
    \_ main.py
    \_ market.py
    \_ features
                \_ obv.py
                \_ rsi.py
                \_ sma.py
                \_ so.py
    \_ models
             \_ deep_neural_network.py
             \_ random_forest.py
    \_ tests
            \_ integration
                          \_ test_poloniex.py
            \_ unit
                   \_ test_date.py
                   \_ test_poloniex.py
                   \_ test_obv.py
                   \_ test_rsi.py
                   \_ test_sma.py
                   \_ test_so.py
                   \_ test_stats.py
    \_ utils
            \_ date.py
            \_ poloniex.py
            \_ stats.py

Contact for Feedback, Questions, or Issues

Feel free to send me a message on Reddit at /u/shneap. I am happy to hear any concerns, good or bad, in order to progress the development of this project.

Contributing

Please read the detailed contributing doc.

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

speculator-1.0.2.tar.gz (15.1 kB view details)

Uploaded Source

File details

Details for the file speculator-1.0.2.tar.gz.

File metadata

  • Download URL: speculator-1.0.2.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for speculator-1.0.2.tar.gz
Algorithm Hash digest
SHA256 796148483610f26e63cec77492762f44ab0f0d523fcc1674a05bbe7b4874cb13
MD5 9afa67da518f0e63cb6b5a2ad248fc98
BLAKE2b-256 50a5ed9df81a81f4657a2887572d40cf6e9f8114cf307e2877db36265faf841a

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