-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathconfig_test.py
61 lines (56 loc) · 2.21 KB
/
config_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Name of the file (without .py extension!) that contains the bot
bot_name = 'bots.rsi'
# Example settings for backtesting engine
sim_params = {
'capital_base': 10, # Initial capital in BTC
'fee': {
'Long': 0.0015, # Fee settings for Long
'Short': 0.0015, # Fee settings for Short
},
'resample': True, # For binance do not resample
'data_frequency': '4H' # Time frame to use (see /helpers/timeframe_resampler.py for more info)
}
# Datasource is poloniex, cryptocompare or binance
datasource = 'poloniex'
# Example data settings historical data poloniex (use the same base market for all pairs!)
# For more information: https://poloniex.com/
data_settings_list_poloniex = [
{
'pair': 'BTC_ETH', # Use ETH pricing data on the BTC market
'period': 1800, # Use 1800 second candles
'days_history': 100, # Collect 100 days data
},
{
'pair': 'BTC_LTC', # Use LTC pricing data on the BTC market
'period': 1800, # Use 1800 second candles
'days_history': 100, # Collect 100 days data
}
]
# Example data settings historical data cryptocompare (use the same base market for all pairs!)
# For more information: https://www.cryptocompare.com/
data_settings_list_cryptocompare = [
{
'pair': ['ETH', 'BTC'], # Use ETH pricing data on the BTC market
'days_history': 100, # Collect 100 days data
'exchange': 'Bitfinex' # exchange used when datasource is Cryptocompare
},
{
'pair': ['LTC', 'BTC'], # Use ETH pricing data on the BTC market
'days_history': 100, # Collect 100 days data
'exchange': 'Bitfinex' # exchange used when datasource is Cryptocompare
}
]
# Example data settings historical data binance (use the same base market for all pairs!)
# For more information: https://www.binance.com/
data_settings_list_binance = [
{
'pair': 'ETHBTC', # Use ETH pricing data on the BTC market
'period': '4h', # Use 4 hour candles
'limit': 100, # Collect 100 candles
},
{
'pair': 'LTCBTC', # Use ETH pricing data on the BTC market
'period': '4h', # Use 4 hour candles
'limit': 100, # Collect 100 candles
}
]