-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcompose.yaml
224 lines (224 loc) · 8.6 KB
/
compose.yaml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
version: '3.8'
services:
server:
image: ghcr.io/geniusyield/dex-contracts-api:latest
container_name: server
ports:
- "8082:8082"
environment:
CORE_MAESTRO_API_KEY: ${CORE_MAESTRO_API_KEY}
MAESTRO_API_KEY: ${MAESTRO_API_KEY}
SERVER_API_KEY: ${SERVER_API_KEY}
SEED_PHRASE: ${SEED_PHRASE}
SERVER_CONFIG: |
coreProvider:
maestroToken: <<CORE_MAESTRO_API_KEY>>
turboSubmit: false
networkId: "mainnet" # supported: mainnet or preprod
logging:
- type: {tag: stderr}
severity: "Debug" # Options: Debug, Info, Warning or Error
verbosity: V2 # Options: `V0`, `V1`, `V2`, `V3` and `V4` (See katip docs for details)
port: 8082
maestroToken: <<MAESTRO_API_KEY>>
serverApiKey: <<SERVER_API_KEY>>
wallet:
tag: mnemonicWallet
contents:
mnemonic: <<SEED_PHRASE>>
restart: always
strategy_a:
build:
context: .
environment:
BACKEND_URL: http://server:8082
SERVER_API_KEY: ${SERVER_API_KEY}
EXECUTION_DELAY: 90 # Time period in seconds to wait between strategy executions
STARTUP_DELAY: 1 # Time period in seconds to wait for the backend to start
RETRY_DELAY: 20 # Time period in seconds to wait before retrying to reach the backend
CONFIRMATION_DELAY: 90
STRATEGY: strategy_a
CONFIG: |
setting_1: 50 ADA
setting_2: 500 ms
depends_on:
- server
strategy_b:
build:
context: .
environment:
BACKEND_URL: http://server:8082
SERVER_API_KEY: ${SERVER_API_KEY}
EXECUTION_DELAY: 15 # Time period in seconds to wait between strategy executions
STARTUP_DELAY: 1 # Time period in seconds to wait for the backend to start
RETRY_DELAY: 20 # Time period in seconds to wait before retrying to reach the backend
CONFIRMATION_DELAY: 90
STRATEGY: strategy_b
CONFIG: |
setting_1: 123 ADA
setting_2: 567 ms
depends_on:
- server
strategy_c:
build:
context: .
environment:
BACKEND_URL: http://server:8082
SERVER_API_KEY: ${SERVER_API_KEY}
EXECUTION_DELAY: 30 # Time period in seconds to wait between strategy executions
STARTUP_DELAY: 1 # Time period in seconds to wait for the backend to start
RETRY_DELAY: 20 # Time period in seconds to wait before retrying to reach the backend
CONFIRMATION_DELAY: 90
STRATEGY: strategy_c
CONFIG: |
ASSET_PAIR: "asset1266q2ewhgul7jh3xqpvjzqarrepfjuler20akr-asset1xdz4yj4ldwlpsz2yjgjtt9evg9uskm8jrzjwhj"
START_TIME: "2023-06-15T19:19:56.462Z"
END_TIME: "2024-06-15T19:19:56.462Z"
BIN_INTERVAL: "1d"
depends_on:
- server
fear_and_greed_index_strategy:
build:
context: .
environment:
BACKEND_URL: http://server:8082
SERVER_API_KEY: ${SERVER_API_KEY}
EXECUTION_DELAY: 60 # Time period in seconds to wait between strategy executions
STARTUP_DELAY: 1 # Time period in seconds to wait for the backend to start
RETRY_DELAY: 20 # Time period in seconds to wait before retrying to reach the backend
CONFIRMATION_DELAY: 90
STRATEGY: fear_and_greed_index_strategy
CONFIG: |
BASE_ASSET: lovelace
# GENS for MAINNET:
TARGET_ASSET: dda5fdb1002f7389b33e036b6afee82a8189becb6cba852e8b79b4fb.0014df1047454e53
# tGENS for PRERPOD:
# TARGET_ASSET: c6e65ba7878b2f8ea0ad39287d3e2fd256dc5c4160fc19bdf4c4d87e.7447454e53
POSITION_SIZE_LOVELACES: 1000000
STD_DEV_MULTIPLIER: 1.5
PERIOD: 5
FEAR_AND_GREED_INDEX_THRESHOLD: 60
depends_on:
- server
bollinger_bands_strategy:
build:
context: .
environment:
BACKEND_URL: http://server:8082
SERVER_API_KEY: ${SERVER_API_KEY}
EXECUTION_DELAY: 20 # Time period in seconds to wait between strategy executions
STARTUP_DELAY: 1 # Time period in seconds to wait for the backend to start
RETRY_DELAY: 20 # Time period in seconds to wait before retrying to reach the backend
CONFIRMATION_DELAY: 90
STRATEGY: bollinger_bands_strategy
CONFIG: |
BASE_ASSET: lovelace
# GENS for MAINNET:
TARGET_ASSET: dda5fdb1002f7389b33e036b6afee82a8189becb6cba852e8b79b4fb.0014df1047454e53
# tGENS for PRERPOD:
# TARGET_ASSET: c6e65ba7878b2f8ea0ad39287d3e2fd256dc5c4160fc19bdf4c4d87e.7447454e53
POSITION_SIZE_LOVELACES: 1000000
STD_DEV_MULTIPLIER: 1.5
PERIOD: 5
depends_on:
- server
combined_rsi_bollinger_strategy:
build:
context: .
environment:
BACKEND_URL: http://server:8082
SERVER_API_KEY: ${SERVER_API_KEY}
EXECUTION_DELAY: 60 # Time period in seconds to wait between strategy executions
STARTUP_DELAY: 1 # Time period in seconds to wait for the backend to start
RETRY_DELAY: 20 # Time period in seconds to wait before retrying to reach the backend
CONFIRMATION_DELAY: 90
STRATEGY: combined_rsi_bollinger_strategy
CONFIG: |
BASE_ASSET: lovelace
# GENS for MAINNET:
TARGET_ASSET: dda5fdb1002f7389b33e036b6afee82a8189becb6cba852e8b79b4fb.0014df1047454e53
# tGENS for PRERPOD:
# TARGET_ASSET: c6e65ba7878b2f8ea0ad39287d3e2fd256dc5c4160fc19bdf4c4d87e.7447454e53
POSITION_SIZE_LOVELACES: 1000000
RSI_PERIOD: 10 # Shorter period for quicker signals
RSI_OVERBOUGHT: 65 # Lower threshold for overbought
RSI_OVERSOLD: 35 # Higher threshold for oversold
BB_PERIOD: 20 # Standard period
BB_STD_DEV: 1.8 # Tighter bands for volatility
USE_FEAR_AND_GREED: true
FEAR_AND_GREED_INDEX_THRESHOLD: 60
depends_on:
- server
simple_rsi_bollinger_strategy:
build:
context: .
environment:
BACKEND_URL: http://server:8082
SERVER_API_KEY: ${SERVER_API_KEY}
EXECUTION_DELAY: 60 # Time period in seconds to wait between strategy executions
STARTUP_DELAY: 1 # Time period in seconds to wait for the backend to start
RETRY_DELAY: 20 # Time period in seconds to wait before retrying to reach the backend
CONFIRMATION_DELAY: 90
STRATEGY: simple_rsi_bollinger_strategy
CONFIG: |
BASE_ASSET: lovelace
# GENS for MAINNET:
TARGET_ASSET: dda5fdb1002f7389b33e036b6afee82a8189becb6cba852e8b79b4fb.0014df1047454e53
# tGENS for PRERPOD:
# TARGET_ASSET: c6e65ba7878b2f8ea0ad39287d3e2fd256dc5c4160fc19bdf4c4d87e.7447454e53
POSITION_SIZE_LOVELACES: 1000000
RSI_PERIOD: 10 # Shorter period for quicker signals
RSI_OVERBOUGHT: 65 # Lower threshold for overbought
RSI_OVERSOLD: 35 # Higher threshold for oversold
BB_PERIOD: 20 # Standard period
BB_STD_DEV: 1.8 # Tighter bands for volatility
depends_on:
- server
single_order_strategy:
build:
context: .
environment:
BACKEND_URL: http://server:8082
SERVER_API_KEY: ${SERVER_API_KEY}
EXECUTION_DELAY: 15 # Time period in seconds to wait between strategy exeuctions
STARTUP_DELAY: 1 # Time period in seconds to wait for the backend to start
RETRY_DELAY: 20 # Time period in seconds to wait before retrying to reach the backend
CONFIRMATION_DELAY: 90
STRATEGY: single_order_strategy
CONFIG: |
BASE_ASSET: lovelace
# GENS for MAINNET:
TARGET_ASSET: dda5fdb1002f7389b33e036b6afee82a8189becb6cba852e8b79b4fb.0014df1047454e53
# tGENS for PRERPOD:
# TARGET_ASSET: c6e65ba7878b2f8ea0ad39287d3e2fd256dc5c4160fc19bdf4c4d87e.7447454e53
LIMIT: 100
BASE_AMOUNT: 200000000
TARGET_AMOUNT: 1800000000
ORDER_LEVEL: 1
MULTIPLIER: 1
SPREAD: 0.02
ACTUAL_CANCEL_THRESHOLD: 0.1
HEDGE_CANCEL_THRESHOLD: 0.1
STD: 0.02
depends_on:
- server
open_ai_strategy:
build:
context: .
environment:
BACKEND_URL: http://server:8082
SERVER_API_KEY: ${SERVER_API_KEY}
OPENAI_API_KEY: ${OPENAI_API_KEY}
EXECUTION_DELAY: 21600 # Run the strategy every 6 hours.
STARTUP_DELAY: 120 # Wait 2 minutes for the backend to start
RETRY_DELAY: 60 # Wait 1 minutes for the backend to become available in case not yet running.
CONFIRMATION_DELAY: 90 # Wait 1.5 minutes for on-chain confirmations.
STRATEGY: open_ai_strategy
CONFIG: |
# GENS-ADA pair:
BASE_ASSET: lovelace
TARGET_ASSET: dda5fdb1002f7389b33e036b6afee82a8189becb6cba852e8b79b4fb.0014df1047454e53
# Position size: 100 ADA
POSITION_SIZE_LOVELACES: 100000000
depends_on:
- server