forked from trevtravtrev/CoinSense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
43 lines (32 loc) · 2.36 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
"""
Crypto Portfolio Tracker Settings Configuration File
bsc_portfolio: a binance smart chain coin dictionary {contract:quantity} where "contract" is the token's contract address string and "quantity" is an int for the quantity you own
eth_portfolio: a ethereum blockchain coin dictionary {contract:quantity} where "contract" is the token's contract address string and "quantity" is an int for the quantity you own
headless: a bool parameter that sets whether the selenium background coin tracking firefox processes will be visible to user or not (suggested: True)
firefox_profile_path: a raw string parameter for the filepath of your firefox profile (set to None if you don't want to use profile, suggested to visit dextools and bogged manually in firefox browser before using)
use_random_user_agent: a bool parameter that sets whether a random user agent will be used for each coin tracking browser
use_proxies: a bool parameter that sets whether or not a unique proxy will be used for each coin tracking browser to get around DDOS protection. Buggy (suggested: False)
ddos_bypass: a bool parameter that bypasses coin tracking website ddos protectors with the trade off of longer initial load time upon launch (suggested: True)
ddos_sleep: an int parameter that sets the sleep time in between opening browsers to circumvent ddos protection (Suggested: 7+)
refresh_time: an int number that sets the refresh time for updating prices. Higher time uses less CPU (suggested: 1-5 seconds)
"""
# tracked by bogged.finance charts (make sure the contract addresses are trackable on the website)
bsc_portfolio = {
"0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3": 100000000,
"0xd27d3f7f329d93d897612e413f207a4dbe8bf799": 100000000,
"0x2170Ed0880ac9A755fd29B2688956BD959F933F8": 1,
"0x87ffc48c9f89fc5dfa05836e083406d684fd6331": 100000000,
"0xfaFf5251EA98f90540D6BacDf7A458f61b456C06": 100000000
}
# tracked by dex.guru charts (search address on website and get address string from url that includes "-bsc" or "-eth", make sure the contract addresses are trackable on the website)
eth_portfolio = {
"0xba2ae424d960c26247dd6c32edc70b295c744c43-bsc": 20000,
"0xfad45e47083e4607302aa43c65fb3106f1cd7607-eth": 3000000
}
headless = True
firefox_profile_path = r"path\to\your\firefox\profile"
use_random_user_agent = False
use_proxies = False
ddos_bypass = True
ddos_sleep = 7
refresh_time = 5