/bitmex-websocket

Bitmex websocket API wrapper.

Primary LanguagePythonMIT LicenseMIT

bitmex-websocket

image

image

image

Install

Usage

  1. First you should set your BITMEX_API_KEY and BITMEX_API_SECRET. It can be done as follows:
  1. Then in your project you can consume Instrument as follows:

Examples

Run example scripts:

Tests

Testing is set up using pytest <http://pytest.org> and coverage is handled with the pytest-cov plugin.

Run your tests with pytest in the root directory.

Coverage is ran by default and is set in the pytest.ini file. To see an html output of coverage open htmlcov/index.html after running the tests.