forked from reednaa/AMMroi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.py
56 lines (38 loc) · 1 KB
/
data.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
from Gathers import uniswapv2
from Gathers import sushiswap
import logging
logfile = "log.log"
formatter = "%(asctime)s : %(levelname)s : %(message)s"
logging.basicConfig(
format=formatter,
level=logging.INFO, handlers=[logging.FileHandler(logfile)]
)
logger = logging.getLogger(__name__)
UPDATE_TOKEN_LIST = False
FORCE_RESTART = False
if __name__ == "__main__":
# UPDATE TOKEN LIST
# uniswapv2.get_tokens(num=200)
# sushiswap.get_tokens(num=100)
# UNISWAP
try:
uniswapv2.get_roi()
uniswapv2.filesjson()
except Exception as E:
print(E)
# SUSHISWAP
try:
sushiswap.get_roi()
sushiswap.filesjson()
except Exception as E:
print(E)
# BANCOR
try:
print("bancor_init")
from Gathers import bancor_init
print("bancor gather")
from Gathers import bancor
print("bancor parser")
from Gathers import bancor_parser
except Exception as E:
raise E