Bybit backtest support
This commit is contained in:
parent
35c061cd10
commit
0f5e215d78
2
todo.txt
2
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)
|
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
|
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.
|
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?:
|
Maybe it's a good idea?:
|
||||||
|
|
|
||||||
|
|
@ -281,7 +281,7 @@ if __name__=="__main__":
|
||||||
|
|
||||||
elif command==16:
|
elif command==16:
|
||||||
print("Returns backtests of the pairs available in an exchange")
|
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? ")
|
amount = input("Amount of days to consider? ")
|
||||||
max_rank = input("Maximum CoinMarketCap rank? ")
|
max_rank = input("Maximum CoinMarketCap rank? ")
|
||||||
if not validate_int(amount):
|
if not validate_int(amount):
|
||||||
|
|
|
||||||
|
|
@ -230,7 +230,7 @@ def return_parkinson_backtests(broker, days, max_rank):
|
||||||
'''
|
'''
|
||||||
Returns a dictionary containing backtests with the format {coin: value}
|
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 {}
|
return {}
|
||||||
|
|
||||||
evaluation_dictionary = {}
|
evaluation_dictionary = {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue