coding-kitties /
investing-algorithm-framework
Framework for quantitative trading. Complete framework for development, backtesting, and deploying automated trading algorithms and trading bots.
87/100 healthLoading repository data…
TheFourGreatErrors / repository
A trading bot for automated algorithmic trading on Binance Futures, Bybit, BitMEX and FTX written in python.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
The Github repository features a trading system designed for automated algorithmic trading on Binance Futures, Bybit, BitMEX and FTX.
This trading system aims to offer an easy-to-use platform for users to test their trading strategies through backtesting and paper trading, as well as execute trades in live environments. With the goal of minimizing discrepancies between simulated and live trading results, the system allows for seamless transitions from backtesting to paper trading and finally to live trading. Additionally, users can expect minimal changes to their strategy code when transitioning from simulated to live trading.
While developing strategies, users are expected to have a basic understanding of trading and are not subject to many limitations. The system is designed around pre-defined events, such as market data updates, order updates, and trade executions, and provides various technical features, including advanced order types, and real-time position and order monitoring, to support the development and execution of trading strategies.
Please note that the author of this software is not liable for any losses, damages or other adverse consequences resulting from the use of this software. It is highly recommended that you exercise caution and thoroughly test your trading strategy using small sizes over an extended period of time to ensure that it performs as expected before deploying it with larger sums of money.
Please note that the implemented reference strategies are provided as examples for educational and reference purposes only. They are not intended to be used as a fully functional trading strategy for live trading without further modifications and proper testing. The strategies may not be suitable for all market conditions and may result in losses. We highly recommend that you thoroughly understand the strategy and test it extensively before using it for live trading. Always use caution and do your own research before making any trading decisions.
Note: Although TradingView Strategy is not currently supported in this implementation, you can use the following project for TradingView Webhooks trading: https://github.com/CryptoMF/frostybot.
$ brew install ta-lib
$ git clone https://github.com/TheFourGreatErrors/alpha-rptr.git
$ cd alpha-rptr/
$ pip install -r requirements.txt
$ wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
$ tar xvzf ta-lib-0.4.0-src.tar.gz
$ cd ta-lib/
$ ./configure --prefix=/usr
$ make
$ sudo make install
$ git clone https://github.com/TheFourGreatErrors/alpha-rptr.git
$ cd alpha-rptr/
$ pip install -r requirements.txt
Note: We are using a Python wrapper for the TA-Lib library, which provides a wide range of technical analysis functions for financial markets. It is important to note that the underlying TA-Lib library is written in C language. Therefore, in order to install and use this library, it needs to be properly compiled on your system. The Python wrapper allows these functions to be used from within Python code, but the installation process may require some technical knowledge. It is important to ensure that the C library is properly compiled prior to installation in order to avoid errors and ensure that the library functions correctly.
The src/config.py file is where you can set your API keys and other configuration settings for the trading bot. Here's how to do it:
In addition to API keys, you can also set other configuration settings, such as webhook URLs for Discord and LINE, and health check parameters for monitoring the status of your accounts.
Note that you can also set up different trading profiles using the args_profile field, which allows you to specify different settings for different trading sessions. To use a specific profile, you can run the program with the --profile flag.
When setting up your API keys, make sure to keep them secure and not share them with anyone.
config = {
"binance_keys": {
"binanceaccount1": {"API_KEY": "", "SECRET_KEY": ""},
"binanceaccount2": {"API_KEY": "", "SECRET_KEY": ""},
# Examaple using environment variable
"binanceaccount3": {"API_KEY": os.environ.get("BINANCE_API_KEY_3"),
"SECRET_KEY": os.environ.get("BINANCE_SECRET_KEY_3")}
},
"line_apikey": {"API_KEY": ""},
"discord_webhooks": {
"binanceaccount1": ""
},
"healthchecks.io": {
"binanceaccount1": {
"websocket_heartbeat": "",
"listenkey_heartbeat": ""
}
},
# To use Args profiles, add them here and run by using the flag --profile <your profile string>
"args_profile": {"binanceaccount1_Sample_ethusdt": {"--test": False,
"--stub": False,
"--demo": False,
"--hyperopt": False,
"--spot": False,
"--account": "binanceaccount1",
"--exchange": "binance",
"--pair": "ETHUSDT",
"--strategy": "Sample",
"--session": None}}
}
If you want to send notifications to LINE or Discord, set LINE's API key and/or Discord webhooks - discord will be sending notifications based on the account you choose to trade with. #todo telegram
This is the configuration dictionary (found in src/exchange_config.py) for various exchanges including Binance, Bybit, Bitmex, and FTX. It contains the following parameters:
"binance_f":{"qty_in_usdt": False,
"minute_granularity": False,
"timeframes_sorted": True, # True for higher first, False for lower first and None when off
"enable_trade_log": True,
"order_update_log": True,
"ohlcv_len": 100,
# Call the strategy function on start. This can be useful if you don't want to wait for the candle to close
# to trigger the strategy function. However, this can also be problematic for certain operations such as
# sending orders or duplicates of orders that have already been sent, which were calculated based on closed
# candle data that is no longer relevant. Be aware of these potential issues and make sure to handle them
# appropriately in your strategy implementation.
"call_strat_on_start": False,
# ==== Papertrading And Backtest Class Config ====
"balance": 1000,
"leverage": 1,
"update_data": True,
"check_candles_flag": True,
"days": 1200,
"search_oldest": 10, # Search for the oldest historical data, integer for increments in days, False or 0 to turn it off
# Warmup timeframe - used for loading warmup candles for indicators when minute granularity is need
# highest tf, if None its going to find it automatically based on highest tf and ohlcv_len
"warmup_tf": None}
To use the trading bot, you need to run the main.py script with the appropriate parameters. Here's a breakdown of the available options:
--account: Specifies the account to use for trading. This should match the name of a configuration file located in the config directory. For example, if you have a file called binanceaccount1 in the config directory, you would use --account binanceaccount1.Selected from shared topics, language and repository description—not editorial ratings.
coding-kitties /
Framework for quantitative trading. Complete framework for development, backtesting, and deploying automated trading algorithms and trading bots.
87/100 healthidanya /
Trading bot with support for realtime trading, backtesting, custom strategies and much more.
87/100 healthPacktPublishing /
No description provided.
78/100 healthPlaceNL2026 /
algorithmic trading curated list quant finance trading bots backtesting technical analysis crypto open-source freqtrade hummingbot fintech Python TypeScript resources MCP quantopian-style rankings
89/100 healthjimtin /
Python Trading Bot for Algorithmic Trading. Integrates with MetaTrader 5, Binance
76/100 healthe49nana /
Open-source trading tools (MQL5 & NinjaTrader) + DeFi crypto bot + AlgoSphere Quant showcase
80/100 health