-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig-example.yml
54 lines (49 loc) · 1.1 KB
/
config-example.yml
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
moonship:
api:
port: 443
ssl_cert: cert.pem
ssl_key: key.pem
user: ms
password: $2b$12$JyIZJl9BZgKXX8fXAQHdVOGiaGwuTf.xglYajD4EJuPuK13RP0dRi
strategies:
test:
algo: moonship.algo.test.LogMarketInfo
markets:
- bitcoin
other:
algo: moonship.algo.other.OtherAlgo
markets:
- bitcoin
- other
markets:
bitcoin:
symbol: BTCUSD
client: moonship.client.test.TestClient
other:
symbol: OTHER
client: moonship.client.other.OtherClient
redis:
url: rediss://:password@localhost:6379
ssl_verify_cert: true
logging:
root:
handlers:
- stdout
- file
loggers:
moonship:
level: INFO
handlers:
stdout:
class: logging.StreamHandler
formatter: log
stream: ext://sys.stdout
file:
class: logging.handlers.RotatingFileHandler
formatter: log
filename: log/moonship.log
maxBytes: 1024
backupCount: 3
formatters:
log:
format: "[%(asctime)s] %(levelname)s - %(name)s: %(message)s"