-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevaluate_own_buy_speed.py
More file actions
32 lines (25 loc) · 884 Bytes
/
evaluate_own_buy_speed.py
File metadata and controls
32 lines (25 loc) · 884 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
28
29
30
31
32
import get_pair_created_transactions, get_swaps, get_pair_info, get_info_on_swaps, get_times, get_pairs
import logging
from time import time
chain = "harmony_testnet"
config = f"configs/config_{chain}.json"
logging.basicConfig(filename=f'main_{chain}.log', level=logging.INFO)
logging.info(f"starting main for {config}")
start = time()
get_pair_created_transactions.run(config, test=True)
logging.info(f"took {time()- start}")
start = time()
get_pairs.run(config)#, only_selected={"0xbf5b2b30ef89b3bf6e931601a3c498aa11f7eee1"})
logging.info(f"took {time()- start}")
start = time()
get_pair_info.run(config)
logging.info(f"took {time()- start}")
start = time()
get_times.run(config)
logging.info(f"took {time()- start}")
start = time()
get_swaps.run(config)
logging.info(f"took {time()- start}")
start = time()
get_info_on_swaps.run(config)
logging.info(f"took {time()- start}")