install python 3.4
install virtualenv
create a new virtualenv
go to the project directory
activate env
now for the first time you need to install all the requirements for this write this command
$ pip install -r requirements.txt
when all requirements done please go to testnet.bitmex and create your key and secret and after that open settings.py file and change key secret pairs values
if you want to go in live mode use settings.MODE = LIVE
to run the bot please run main.py file