Skip to main content

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.

Metadata

Release files for speculator 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for speculator 1.0.2
File Size Uploaded
speculator-1.0.2.tar.gz 15.1 kB Details

Release files / speculator-1.0.2.tar.gz

Download URL speculator-1.0.2.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
796148483610f26e63cec77492762f44ab0f0d523fcc1674a05bbe7b4874cb13
BLAKE2b-256 checksum
How to use checksums
50a5ed9df81a81f4657a2887572d40cf6e9f8114cf307e2877db36265faf841a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page