All Projects → IlyaKrotov → Bitmex Simple Trading Robot

IlyaKrotov / Bitmex Simple Trading Robot

Licence: mit
Simple BitMEX trading robot.

Projects that are alternatives of or similar to Bitmex Simple Trading Robot

quick trade
convenient script for trading with python.
Stars: ✭ 63 (-37%)
Mutual labels:  trading, strategy, trading-platform, trading-strategies, trading-algorithms
Socktrader
🚀 Websocket based trading bot for 💰cryptocurrencies 📈
Stars: ✭ 152 (+52%)
Mutual labels:  bitcoin, trading, trading-strategies, trading-algorithms, trading-platform
Kelp
Kelp is a free and open-source trading bot for the Stellar DEX and 100+ centralized exchanges
Stars: ✭ 580 (+480%)
Mutual labels:  trading, trading-strategies, trading-algorithms, trading-platform
roq-samples
How to use the Roq C++20 API for Live Cryptocurrency Algorithmic and High-Frequency Trading as well as for Back-Testing and Historical Simulation
Stars: ✭ 119 (+19%)
Mutual labels:  trading, trading-platform, trading-strategies, trading-algorithms
Tradingview Alert Binance Trader
This trading bot listens to the TradingView alert emails on your inbox and executes trades on Binance based on the parameters set on the TD alerts.
Stars: ✭ 100 (+0%)
Mutual labels:  trading, trading-strategies, trading-algorithms, trading-platform
Krypto Trading Bot
Self-hosted crypto trading bot (automated high frequency market making) written in C++
Stars: ✭ 2,589 (+2489%)
Mutual labels:  bitcoin, trading, trading-strategies, trading-platform
tradingview-alert-binance-trader
This trading bot listens to the TradingView alert emails on your inbox and executes trades on Binance based on the parameters set on the TD alerts.
Stars: ✭ 153 (+53%)
Mutual labels:  trading, trading-platform, trading-strategies, trading-algorithms
Gekko Strategies
Strategies to Gekko trading bot with backtests results and some useful tools.
Stars: ✭ 1,022 (+922%)
Mutual labels:  trading, trading-strategies, trading-algorithms, trading-platform
Astibot
Astibot is a simple, visual and automated trading software for Coinbase Pro cryptocurrencies (Bitcoin trading bot)
Stars: ✭ 104 (+4%)
Mutual labels:  bitcoin, trading, trading-algorithms, trading-platform
tvjs-overlays
💴 Collection of overlays made by the TradingVueJs community
Stars: ✭ 65 (-35%)
Mutual labels:  trading, trading-platform, trading-strategies, trading-algorithms
AutoTrader
A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
Stars: ✭ 227 (+127%)
Mutual labels:  trading, trading-platform, trading-strategies, trading-algorithms
Machine Learning And Ai In Trading
Applying Machine Learning and AI Algorithms applied to Trading for better performance and low Std.
Stars: ✭ 258 (+158%)
Mutual labels:  bitcoin, trading, trading-strategies, trading-algorithms
Lean
Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
Stars: ✭ 5,675 (+5575%)
Mutual labels:  trading-strategies, trading-algorithms, trading-platform, trading
Jesse
An advanced crypto trading bot written in Python
Stars: ✭ 1,038 (+938%)
Mutual labels:  bitcoin, trading, trading-strategies, trading-algorithms
Binance grid trader
A grid trading strategy and trading-bot for Binance Exchange. 币安交易所的网格交易
Stars: ✭ 132 (+32%)
Mutual labels:  bitcoin, trading-strategies, trading-algorithms, strategy
TradingView-Machine-Learning-GUI
Let Python optimize the best stop loss and take profits for your TradingView strategy.
Stars: ✭ 396 (+296%)
Mutual labels:  trading, strategy, trading-strategies, trading-algorithms
Roq Api
API for algorithmic and high-frequency trading
Stars: ✭ 132 (+32%)
Mutual labels:  trading, trading-strategies, trading-algorithms, trading-platform
Kupi Terminal
Ccxt based, open source, customized, extendable trading platform that supports 130+ crypto exchanges.
Stars: ✭ 104 (+4%)
Mutual labels:  bitcoin, trading, trading-strategies, trading-platform
Ta4j Origins
A Java library for technical analysis ***Not maintained anymore, kept for archival purposes, see #192***
Stars: ✭ 354 (+254%)
Mutual labels:  bitcoin, trading, trading-strategies, trading-algorithms
Wolfbot
Crypto currency trading bot written in TypeScript for NodeJS
Stars: ✭ 335 (+235%)
Mutual labels:  bitcoin, trading, trading-strategies, trading-algorithms

BitMEX simple trading robot.

Overview

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.


Getting started

Main information that one have to change is hidden in configuration.py.

  1. If you want to start from testnet.bitmex.com, then set TEST_EXCHANGE to True and put your credentials to API_KEY and API_SECRET.
  2. Then put amount of contracts that you want to trade in each trading execution (AMOUNT_MONEY_TO_TRADE) and choose preferred leverage (LEVERAGE).
  3. Then set preferred timeframe for strategy (TIMEFRAME). Available variants are: 1m, 5m, 1h, 1d.
  4. If you want change parameters of the strategy, go to strategy.py and set different parameters in this place:
macd, signal, hist = talib.MACD(ohlcv_candles.close.values,
                                fastperiod=8, slowperiod=28, signalperiod=9)

For advanced users

If you want to change work logic of bot, you have to change 2 main things:

  1. Logic of prediction in strategy.py (look at method predict)
  2. Logic of trade execution in trader.py (look at method execute_trade)

Notes

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.

Issues

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:

  1. talib (https://github.com/mrjbq7/ta-lib)
  2. bitmex (https://github.com/BitMEX/api-connectors/tree/master/official-http/python-swaggerpy) And finally, your python must be at least 3.6 version for using f-strings (ex: f"Last prediction: {prediction}") Then you can successfully run the code.

If you have problems, feel free to open new issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].