Skip to main content

BitMEX Liquidation Python Wrapper

Project description

BitMEX Liquidation

Minimal code to show how to receive the liquidations in realtime on Bitmex. It does work and does not hang randomly.

Installation

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt

Run

python liquidate.py               # All instruments.
python liquidate.py XBTUSD        # Only XBTUSD.

Useful links: https://app.rek.to/

Messages

This message corresponds to the first line of the banner:

{ 
   "table":"liquidation",
   "action":"insert",
   "data":[ 
      { 
         "orderID":"8b4a95db-815a-f93a-c9a2-ffbbabeddbac",
         "symbol":"TRXZ19",
         "side":"Buy",
         "price":2.17e-06,
         "leavesQty":5000
      }
   ]
}

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

bitmex-liquidation-1.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

bitmex_liquidation-1.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded 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