Skip to main content

flashcrashed

https://img.shields.io/pypi/v/flashcrashed.svg https://img.shields.io/travis/sentrip/flashcrashed.svg Documentation Status https://codecov.io/gh/sentrip/flashcrashed/branch/master/graph/badge.svg Updates

Minimal library for detecting flash crashes in cryptocurrency prices on Bitfinex

Features

  • 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

Installation

To install flashcrashed, do:

pip install flashcrashed

Basic Usage

To use flashcrashed, do:

flashcrashed <BITFINEX_KEY> <BITFINEX_SECRET>

To test the performance of a detector, do:

flashtest

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

# my_detector.py
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

Credits

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

History

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

Release files for flashcrashed 0.1.3

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

Source distribution (sdist)

Source distribution for flashcrashed 0.1.3
File Size Uploaded
flashcrashed-0.1.3.tar.gz 21.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flashcrashed 0.1.3
File Interpreter ABI Platform
flashcrashed-0.1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 35.7 kB

Release files / flashcrashed-0.1.3.tar.gz

Download URL flashcrashed-0.1.3.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4ffd09b43cfa62f1cf7290e634d6eda16557937c7e7edcd309e94694f24845ac
BLAKE2b-256 checksum
How to use checksums
026d47ab702753a338107260387536e0c718bb1d2b0e4621888ba8f9c9345dc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / flashcrashed-0.1.3-py2.py3-none-any.whl

Download URL flashcrashed-0.1.3-py2.py3-none-any.whl
Size 13.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
48cc18c0d37fe2889f9664fe0c20bd46bad6cb70783faf10b53dab4a237ffb0f
BLAKE2b-256 checksum
How to use checksums
65e3acc8f2595f55f70b37b9cbc1650d7a4f95cab59bdf608e2b0380e6b668b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

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