-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.py
41 lines (30 loc) · 892 Bytes
/
utils.py
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
import logging
logger = logging.getLogger(__name__)
VALID_INTERVALS = {
"1m": "1", # 1 minute
"5m": "5", # 5 minutes
"15m": "15", # 15 minutes
"30m": "30", # 30 minutes
"1h": "60", # 1 hour
"4h": "240", # 4 hours
"1d": "D", # 1 day
"1w": "W", # 1 week
}
# Store user-selected indicators temporarily
user_selected_indicators = {}
auto_signal_jobs = {}
API_URL = "https://api.bybit.com/v5/market/kline"
def plural_helper(num: int) -> str:
"""
Will help to decide whether we need to use the plural form of the words when communicating with the user
"""
if num != 1:
return "s"
return ""
def create_true_preferences():
preferences = {}
preferences["order_blocks"] = True
preferences["fvgs"] = True
preferences["liquidity_levels"] = True
preferences["breaker_blocks"] = True
return preferences