Socket
Socket
Sign inDemoInstall

speculator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

speculator

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


Maintainers
1

|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:

- `Delorean <http://delorean.readthedocs.io/en/latest/install.html>`__, ``pip3 install delorean``

- `requests <http://docs.python-requests.org/en/latest/user/install/#install>`__, ``pip3 install requests``

- `NumPy <https://www.scipy.org/install.html>`__, ``pip3 install numpy``

- `TensorFlow <https://www.tensorflow.org/install/>`__, ``pip3 install tensorflow``

- `scikit-learn <http://scikit-learn.org/stable/install.html>`__, ``pip3 install scikit-learn``

- `pandas <https://pandas.pydata.org/pandas-docs/stable/install.html>`__, ``pip3 install pandas``
- `flask <http://flask.pocoo.org>`__, ``pip3 install flask``
- `flask-cache <https://pythonhosted.org/Flask-Cache/>`__, ``pip3 install flask-cache``
- `flask-restful <https://flask-restful.readthedocs.io/en/latest/installation.html>`__, ``pip3 install flask-restful``
- `webargs <https://github.com/sloria/webargs>`__, ``pip3 install webargs``

Or just use a one-liner:

.. code:: bash

    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 <https://github.com/amicks/Speculator/tree/master/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 <https://www.reddit.com/message/compose?to=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 <https://github.com/amicks/Speculator/blob/master/docs/CONTRIBUTING.md>`__.

.. |logo| image:: https://i.imgur.com/klemIi5.png
.. |travis| image:: https://img.shields.io/travis/amicks/Speculator.svg
   :target: https://travis-ci.org/amicks/Speculator
.. |python| image:: https://img.shields.io/pypi/pyversions/Speculator.svg
.. |license| image:: https://img.shields.io/pypi/l/Speculator.svg
   :target: https://github.com/amicks/Speculator/blob/master/LICENSE
.. |tag| image:: https://img.shields.io/github/tag/amicks/speculator.svg
   :target: https://github.com/amicks/Speculator/archive/0.1.tar.gz
.. |status| image:: https://img.shields.io/pypi/status/Speculator.svg
.. |example| image:: https://i.imgur.com/5tB8zvJ.png

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc