-
Notifications
You must be signed in to change notification settings - Fork 0
/
alpha.template.toml
executable file
·83 lines (67 loc) · 2.14 KB
/
alpha.template.toml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# ==========================================
# --- PreservingAlpha Configuration File ---
# ==========================================
# -- Ticker Feed --
[websocket]
# :: defaults
url="wss://ws-feed.pro.coinbase.com"
channels=['ticker']
products=['BTC-USD', 'ETH-USD', 'MATIC-USD', 'EOS-USD']
# -- Mongo Auth --
[mongo]
# :: defaults
db='coinbase'
alias='coinbase'
w='majority'
# ---------------
host='<REQUIRED>'
# -- Twilio Auth: Event Notifications --
[twilio]
username='<REQUIRED>'
password='<REQUIRED>'
_from='<REQUIRED>' # string ('+01234567890')
distro=['<REQUIRED>'] # 10-digit integer (xxx-xxx-xxxx); no quotes
# -- Trading Strategies by Portfolio --
[portfolios]
default = 'primary' # default account name if not provided to API
# A Single Coinbase Pro portfolio
[portfolios.primary]
# -- Asset --
asset-id = '' # asset to trade against vs. USD (i.e. 'BTC')
account-allocation = 1 # percentage of account to execute strategy with
# -- API Auth: Portfolio-Specific --
[portfolios.primary.auth]
passphrase='<REQUIRED>'
key='<REQUIRED>'
secret='<REQUIRED>'
# == Sell (example) ==
[portfolios.primary.sell]
# (example)
momentum = [
[
['dema', '15'], # DEMA(15m)
['dema', '30'], # vs DEMA(30m)
['0.95'], # is <= 0.95
],
[
['dema*', '2'], # DEMA(2h)
['dema*', '1'], # vs DEMA(1h)
['0.98'], # is <= 0.98
],
[
['price-last'], # Current Ticker Price
['price'], # vs Price Paid
['1.03*'], # is greater than 1.03
],
]
# (example)
stop-loss = [
[
['price-last'], # price purchased
['price'], # vs current ticker price
['0.98'], # is less than 0.98
]
]
[time-out]
order = 20
ticker = 20