-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
157 lines (141 loc) · 3.91 KB
/
config.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
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
import os
from dataclasses import dataclass
from dotenv import load_dotenv
# Load environment variables from .env file
load_dotenv()
@dataclass
class Config:
BOT_TOKEN: str = os.getenv("BOT_TOKEN")
# Database settings
DB_NAME: str = "alerts.db"
# Price checker settings
CHECK_INTERVAL: int = 30 # seconds
PRICE_CACHE_TIME: int = 30 # seconds
# Alert settings
MAX_ALERTS_PER_USER: int = 1000
MIN_PRICE: float = 0.000001
MAX_PRICE: float = 1000000000
SYMBOL_PRIORITY_MAP = {
# Top Market Cap Coins (Verified December 2023)
"btc": "bitcoin",
"eth": "ethereum",
"usdt": "tether",
"bnb": "binancecoin",
"sol": "solana",
"xrp": "ripple",
"usdc": "usd-coin",
"steth": "staked-ether",
"ada": "cardano",
"avax": "avalanche-2",
"doge": "dogecoin",
"dot": "polkadot",
"trx": "tron",
"matic": "matic-network",
"link": "chainlink",
"wbtc": "wrapped-bitcoin",
"ton": "the-open-network",
"dai": "dai",
"etc": "ethereum-classic",
"ltc": "litecoin",
"bch": "bitcoin-cash",
"icp": "internet-computer",
"atom": "cosmos",
"uni": "uniswap",
"hbar": "hedera-hashgraph",
"fil": "filecoin",
"ldo": "lido-dao",
"near": "near",
"inj": "injective-protocol",
"apt": "aptos",
"arb": "arbitrum",
"stx": "blockstack",
"op": "optimism",
"sui": "sui",
"mkr": "maker",
"aave": "aave",
"egld": "multiversx-egld",
"rpl": "rocket-pool",
"kcs": "kucoin-shares",
"fsn": "fsn",
"comp": "compound-governance-token",
"snx": "synthetix-network-token",
"crv": "curve-dao-token",
"grt": "the-graph",
"imx": "immutable-x",
"mana": "decentraland",
"chz": "chiliz",
"rndr": "render-token",
"kava": "kava",
"blur": "blur",
"cake": "pancakeswap-token",
"sand": "the-sandbox",
"mina": "mina-protocol",
"ftm": "fantom",
"neo": "neo",
"cfx": "conflux-token",
"pepe": "pepe",
"wld": "worldcoin-org",
"gmx": "gmx",
"kas": "kaspa",
"sei": "sei-network",
"pyth": "pyth-network",
# Stablecoins
"busd": "binance-usd",
"tusd": "true-usd",
"usdd": "usdd",
"usdp": "paxos-standard",
"gusd": "gemini-dollar",
"lusd": "liquity-usd",
"cusd": "celo-dollar",
"frax": "frax",
"mai": "mai",
"susd": "nusd",
# DeFi & DEX Tokens
"sushi": "sushi",
"yfi": "yearn-finance",
"1inch": "1inch",
"bal": "balancer",
"dydx": "dydx",
# Exchange Tokens
"mnt": "mantle",
"bgb": "bitget-token",
"okb": "okb",
"gt": "gatetoken",
"ht": "huobi-token",
"ftx": "ftx-token",
# Gaming & Metaverse
"axs": "axie-infinity",
"gala": "gala",
"enj": "enjincoin",
"theta": "theta-token",
"magic": "magic",
# Layer 2 & Scaling
"metis": "metis-token",
"zks": "zksync-io",
# Privacy Focused
"xmr": "monero",
"zec": "zcash",
"scrt": "secret",
# Infrastructure & Oracle
"api3": "api3",
"band": "band-protocol",
"glm": "golem",
"storj": "storj",
"ar": "arweave",
# Misc Notable Projects
"vet": "vechain",
"waves": "waves",
"xem": "nem",
"bat": "basic-attention-token",
"one": "harmony",
"zen": "horizen",
"iota": "iota",
"dash": "dash",
"dcr": "decred",
"zil": "zilliqa",
"qtum": "qtum",
"sc": "siacoin",
"xdc": "xdce-crowd-sale",
"rose": "oasis-network",
}
config = Config()