-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.py.default
76 lines (67 loc) · 1.5 KB
/
config.py.default
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
# Coinbase Pro keys
api_passphrase = ''
api_key = ''
api_secret = ''
# Coinbase Pro URLs
rest_api_url = 'https://api.pro.coinbase.com/'
socket = 'wss://ws-feed.pro.coinbase.com/'
# Coinbaise Pro test keys
test_api_passphrase = ''
test_api_key = ''
test_api_secret = ''
# Coinbase Pro test URLs
test_rest_api_url = 'https://api-public.sandbox.pro.coinbase.com/'
# Coinbase Pro test websocket
test_socket = 'wss://ws-feed-public.sandbox.pro.coinbase.com/'
CB_FEE = 0.003
# Mysql Database credentials
db = {
'user': '',
'password': '',
'host': '',
'name': ''
}
# sqlalchemy engine configs
POOL_SIZE = 10
MAX_OVERFLOW = 10
# This needs to be lower then mysql's thread_pool_idle_timeout
POOL_RECYCLE = 45
log_config = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'standard': {
'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s',
},
},
'handlers': {
'console': {
'level': 'INFO',
'formatter': 'standard',
'class': 'logging.StreamHandler',
},
'error': {
'level': 'ERROR',
'formatter': 'standard',
'class': 'logging.FileHandler',
'filename': 'logs/error.log',
},
'debug': {
'level': 'DEBUG',
'formatter': 'standard',
'class': 'logging.StreamHandler',
},
},
'loggers': {
'': {
'handlers': ['console', 'error'],
'level': 'INFO',
'propagate': True,
},
'debug': {
'handlers': ['debug'],
'level': 'DEBUG',
'propagate': True,
},
},
}