Skip to main content

Minimal library for detecting flash crashes in cryptocurrency prices on Bitfinex

Project description

flashcrashed Documentation Status Updates

Minimal library for detecting flash crashes in cryptocurrency prices on Bitfinex


  • CLI for monitoring cryptocurrency prices for flash crashes

  • CLI for testing performance of a flash crash detector

  • Configurable flash crash detector for custom price monitoring


To install flashcrashed, do:

pip install flashcrashed

Basic Usage

To use flashcrashed, do:


To test the performance of a detector, do:


The default detector used is the detector.SimpleDetector. To use your own:

from flashcrashed.detector import Detector

class CustomDetector(Detector):
    def predict(self, price):
        # Return: 0 - BUY, 1 - HOLD (do nothing), 2 - SELL
        return 1

To test its performance:

flashtest --detector my_detector.CustomDetector

To run flashcrashed with custom detector:

flashcrashed --detector my_detector.CustomDetector


This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.


0.1.0 (2018-05-25)

  • First release on PyPI.

0.1.1 (2018-06-04)

  • Updated README

0.1.2 (2018-06-04)

  • Fix rendering of docs

0.1.2 (2018-06-04)

  • Updated project description

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

flashcrashed-0.1.3.tar.gz (21.9 kB view hashes)

Uploaded Source

Built Distribution

flashcrashed-0.1.3-py2.py3-none-any.whl (13.8 kB view hashes)

Uploaded Python 2 Python 3

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