Commit
·
2e74f75
1
Parent(s):
ae6325f
updating script for local profitability execution
Browse files- scripts/profitability.py +3 -0
scripts/profitability.py
CHANGED
@@ -27,6 +27,7 @@ from string import Template
|
|
27 |
from enum import Enum
|
28 |
from tqdm import tqdm
|
29 |
import numpy as np
|
|
|
30 |
from pathlib import Path
|
31 |
from get_mech_info import DATETIME_60_DAYS_AGO
|
32 |
from utils import SUBGRAPH_API_KEY, wei_to_unit, convert_hex_to_int
|
@@ -644,4 +645,6 @@ def run_profitability_analysis(
|
|
644 |
|
645 |
if __name__ == "__main__":
|
646 |
rpc = "https://lb.nodies.app/v1/406d8dcc043f4cb3959ed7d6673d311a"
|
|
|
|
|
647 |
run_profitability_analysis(rpc)
|
|
|
27 |
from enum import Enum
|
28 |
from tqdm import tqdm
|
29 |
import numpy as np
|
30 |
+
import os
|
31 |
from pathlib import Path
|
32 |
from get_mech_info import DATETIME_60_DAYS_AGO
|
33 |
from utils import SUBGRAPH_API_KEY, wei_to_unit, convert_hex_to_int
|
|
|
645 |
|
646 |
if __name__ == "__main__":
|
647 |
rpc = "https://lb.nodies.app/v1/406d8dcc043f4cb3959ed7d6673d311a"
|
648 |
+
if os.path.exists(DATA_DIR / "fpmmTrades.parquet"):
|
649 |
+
os.remove(DATA_DIR / "fpmmTrades.parquet")
|
650 |
run_profitability_analysis(rpc)
|