Simple BitMEX trading robot.
This is a sample trading bot for use with BitMEX. It is free to use and modify for your own strategies.
Disclaimer: All persons who using this code do so at their own risk.
Develop on Testnet first!
Testnet trading is completely free and is identical to the live market.
Main information that one have to change is hidden in configuration.py.
macd, signal, hist = talib.MACD(ohlcv_candles.close.values,
fastperiod=8, slowperiod=28, signalperiod=9)
If you want to change work logic of bot, you have to change 2 main things:
This code was written for my publication in Habr - https://habr.com/post/358398/.
Also you can look at publication in Medium - https://medium.com/@ilia.krotov/margin-trading-robot-on-the-bitmex-exchange-d94dd46f82c5.
Here my affiliate link for your registration on BitMEX.
https://www.bitmex.com/register/dduBF7
Users who have signed up with a valid affiliate link will receive a 10% fee discount for 6 months.
Lots of people find this code not easy to run because of some dependencies. Here you can find libraries which are essential for succesful run:
If you have problems, feel free to open new issue.