OpenViSTAI · Agents · Blockchain · Crypto
Menu
Exchanges & Trading

Bitmex Simple Trading Robot

Bitmex Simple Trading Robot is an open-source sample application that uses configurable strategy and execution logic to place trades on BitMEX. Its example strategy uses MACD, with settings for contract amount, leverage and timeframe.

Independent OpenViST project profile, based on linked sources.

Bitmex Simple Trading Robot — OpenViST project profile in Exchanges & Trading.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want a codebase to examine or adapt for BitMEX strategy experiments, particularly when beginning with the documented Testnet configuration.

Who it is for

  • Developers studying or modifying a BitMEX trading bot.
  • Traders who want to experiment with strategy settings and trade rules in code.

Documented uses

  • Configure the example bot to use BitMEX Testnet credentials.
  • Set a contract amount, leverage and strategy timeframe.
  • Adjust MACD parameters or replace prediction and trade-execution logic.
Before you choose

Requirements & limits

The repository is public, lists an MIT license, and describes the code as free to use and modify.

  • Running the code requires Python 3.6 or later, TA-Lib and the BitMEX Python API connector.
  • The README recommends Testnet development before live-market use.
  • The repository does not specify a particular operating system or deployment method.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Configure the bot for BitMEX Testnet

Set the documented configuration values for Testnet and a chosen strategy timeframe.

Before you start

  • Python 3.6 or later
  • TA-Lib
  • BitMEX Python API connector
  • BitMEX Testnet API key and secret

Steps

  1. In configuration.py, set TEST_EXCHANGE to True and enter the Testnet API_KEY and API_SECRET.

  2. Set AMOUNT_MONEY_TO_TRADE and LEVERAGE.

  3. Choose a TIMEFRAME value: 1m, 5m, 1h or 1d.

Expected outcome

The configuration file contains the documented Testnet selection, credentials, contract amount, leverage and timeframe.

Guide limitations

  • The README does not provide a complete deployment procedure.
  • The project warns that users run the code at their own risk.
Source-based practical guide

Adjust the example MACD parameters

Change the MACD periods used by the example strategy.

Before you start

  • The repository code
  • TA-Lib

Steps

  1. Open strategy.py and locate the TA-Lib MACD call.

  2. Change the fastperiod, slowperiod or signalperiod values.

Expected outcome

The example strategy uses the edited MACD parameter values.

Guide limitations

  • Changing parameters does not establish the effectiveness of a strategy.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
17 October 2026
Original website title
IlyaKrotov/BitMEX-simple-trading-robot · Official homepage title · retained in its source language