forked from mechnotech/coinex-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
27 lines (22 loc) · 669 Bytes
/
settings.py
File metadata and controls
27 lines (22 loc) · 669 Bytes
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
import logging
from dotenv import load_dotenv
import os
load_dotenv()
VERBOSITY_LEVELS = {
0: logging.WARNING,
1: logging.INFO,
2: logging.DEBUG
}
LOGGING = True
DEBUG = False
VERBOSITY = int(os.getenv('VERBOSITY', 0))
API_WAIT_TIME = float(os.getenv('API_WAIT_TIME', 0.07))
ACCESS_ID = os.getenv('ACCESS_ID')
SECRET_KEY = os.getenv('SECRET_KEY')
TICKER = os.getenv('TICKER')
BORDER_PRICE = float(os.getenv('BORDER_PRICE', 0.04))
DIRECTION = os.getenv('DIRECTION', 'buy')
TIMEOUT = 10.0
HIDDEN = True if os.getenv('HIDDEN') == 'True' else False
DROP_ORDERS = True if os.getenv('DROP_ORDERS') == 'True' else False
URL_API = 'https://api.coinex.com/v1/'