-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
49 lines (49 loc) · 1.4 KB
/
config.json
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
{
"common": {
"database": "tickers.sql",
"trading_pair": "btcusd"
},
"strategy": {
"basic": {
"trend_definition": {
"long": 6,
"mid": 3,
"short": 1
},
"weights_partial": {
"ask": 1,
"bid": 1,
"high": 0.5,
"last_price": 1,
"low": 0.5,
"mid": 0.5,
"volume": 0
},
"weights_total": {
"long_trend": 0.2,
"mid_trend": 0.31,
"short_trend": 0.49
}
}
},
"ticker": {
"table_definition": "timestamp REAL, high REAL, bid REAL, last_price REAL, mid REAL, volume REAL, low REAL, ask REAL"
},
"trading": {
"ledger": {
"init": 1,
"table_definition": "timestamp REAL, btc REAL, btc_current REAL, usd REAL, usd_current REAL, btc_usd REAL, position TEXT, current_value REAL",
"table_init": {
"btc": 0,
"btc_current": 0,
"btc_usd": 1000000,
"current_value": 500,
"position": "wait_buy",
"timestamp": 0,
"usd": 0,
"usd_current": 500
},
"table_name": "ledger_btcusd"
}
}
}