Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

RNNCCL/BitmexAPI

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

158 Commits
158 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Adapter for BitMEX Realtime Data

This is a reference adapter for receiving realtime data from the BitMEX API. See the source for documentation.

Usage

Run in the interactive shell first. Create an instance and include your credentials. I recommend starting out on the Testnet.

[username@hostname]$ python
Python 2.7.14 (default, Sep 22 2017, 15:49:07) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import logging
>>> from bitmex_api import BitmexAPI
>>>
>>> bitmex = BitmexAPI(endpoint="https://testnet.bitmex.com/api/v1", symbol="XBTUSD",api_key="your_key",api_secret="your_secret")
>>>
>>> logger = logging.getLogger()
>>>
>>> logger.setLevel(logging.INFO)
>>> 
>>> logger.info(dir(bitmex))

About

Sample BitMEX Market Making Bot

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.