Skip to content

RNNCCL/BitmexAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%