From 0f5e215d78d644ff04a2c7d043fe0d3cc29c5b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Wed, 4 Dec 2024 19:08:47 -0300 Subject: [PATCH] Bybit backtest support --- todo.txt | 2 ++ utils/commander.py | 2 +- utils/statistics_server_v3.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/todo.txt b/todo.txt index cf9eb0f..ad3d951 100755 --- a/todo.txt +++ b/todo.txt @@ -24,6 +24,8 @@ Would be nice to have: from a pre-populated list (the trading pairs can be selected by using Yang-Zhang, Parkinson or another volatility indicator) This could be very benefitial, since it limits the long time commitment to a small list of trading pairs, enabling the instance to react to market trends very rapidly. +4. Put n% of the available funds in the exchange's earn program if the available funds are more than a certain threshold. This could also be done with an external script, + not necessarily in the instance. Maybe it's a good idea?: diff --git a/utils/commander.py b/utils/commander.py index a20fde1..6c8e13c 100644 --- a/utils/commander.py +++ b/utils/commander.py @@ -281,7 +281,7 @@ if __name__=="__main__": elif command==16: print("Returns backtests of the pairs available in an exchange") - broker = input("Exchange? (binance, gateio, kucoin or okx): ") + broker = input("Exchange? (binance, gateio, kucoin, okx or bybit): ") amount = input("Amount of days to consider? ") max_rank = input("Maximum CoinMarketCap rank? ") if not validate_int(amount): diff --git a/utils/statistics_server_v3.py b/utils/statistics_server_v3.py index 5a0aac3..8b0cdd4 100644 --- a/utils/statistics_server_v3.py +++ b/utils/statistics_server_v3.py @@ -230,7 +230,7 @@ def return_parkinson_backtests(broker, days, max_rank): ''' Returns a dictionary containing backtests with the format {coin: value} ''' - if broker not in ["binance", "gateio", "kucoin", "okx"]: + if broker not in ["binance", "gateio", "kucoin", "okx", "bybit"]: return {} evaluation_dictionary = {}