cyberosa
commited on
Commit
·
c8b395e
1
Parent(s):
8bcda83
updating files from last run
Browse files- active_traders.parquet +2 -2
- all_trades_profitability.parquet.gz +2 -2
- closed_markets_div.parquet +2 -2
- daily_info.parquet +2 -2
- error_by_markets.parquet +2 -2
- retention_activity.parquet.gz +2 -2
- scripts/cloud_storage.py +5 -3
- scripts/pull_data.py +13 -13
- service_map.pkl +2 -2
- tools_accuracy.csv +12 -12
- unknown_traders.parquet +2 -2
- weekly_mech_calls.parquet +2 -2
- winning_df.parquet +2 -2
active_traders.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:036387c045a6bd145539e73796d79bccc2ab619f0587d0cddf6bc7deead34815
|
3 |
+
size 78560
|
all_trades_profitability.parquet.gz
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e90c0886770162e5c3e5b095a843827e5cbc6a3a98a1925f82b48431d053aacd
|
3 |
+
size 10361618
|
closed_markets_div.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d2d8a819003bfe93839ac150f3cd2f5a75899067783876b5657a051c6ee5cfc3
|
3 |
+
size 80738
|
daily_info.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:15792e0863377bd5f0691e1042555336daa718e77cc2716691a406bcb8b511eb
|
3 |
+
size 2269932
|
error_by_markets.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9b73d12cfa883bb0ad6a1e1a52020cec7be342b402003f8980aa755230ce3cdf
|
3 |
+
size 12514
|
retention_activity.parquet.gz
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ff1fa404faa94e178ffdebf2eb58da43a6953af413f762d5834ba9049f20d0fd
|
3 |
+
size 7437250
|
scripts/cloud_storage.py
CHANGED
@@ -10,7 +10,7 @@ ACCESS_KEY = os.environ.get("CLOUD_ACCESS_KEY", None)
|
|
10 |
SECRET_KEY = os.environ.get("CLOUD_SECRET_KEY", None)
|
11 |
BUCKET_NAME = "weekly-stats"
|
12 |
FOLDER_NAME = "historical_data"
|
13 |
-
|
14 |
|
15 |
|
16 |
def initialize_client():
|
@@ -99,7 +99,9 @@ if __name__ == "__main__":
|
|
99 |
# load_historical_file(client, filename)
|
100 |
# process_historical_files(client)
|
101 |
# checking files at the cloud storage
|
102 |
-
files = ["
|
103 |
for old_file in files:
|
104 |
# download_file(client=client, filename=tools_file)
|
105 |
-
load_historical_file(
|
|
|
|
|
|
10 |
SECRET_KEY = os.environ.get("CLOUD_SECRET_KEY", None)
|
11 |
BUCKET_NAME = "weekly-stats"
|
12 |
FOLDER_NAME = "historical_data"
|
13 |
+
APRIL_FOLDER = "april2024"
|
14 |
|
15 |
|
16 |
def initialize_client():
|
|
|
99 |
# load_historical_file(client, filename)
|
100 |
# process_historical_files(client)
|
101 |
# checking files at the cloud storage
|
102 |
+
files = ["data_delivers_22_04_2024.csv", "data_tools_22_04_2024.csv"]
|
103 |
for old_file in files:
|
104 |
# download_file(client=client, filename=tools_file)
|
105 |
+
load_historical_file(
|
106 |
+
client=client, filename=old_file, extra_folder=APRIL_FOLDER
|
107 |
+
)
|
scripts/pull_data.py
CHANGED
@@ -89,18 +89,18 @@ def save_historical_data():
|
|
89 |
def only_new_weekly_analysis():
|
90 |
"""Run weekly analysis for the FPMMS project."""
|
91 |
# Run markets ETL
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
#
|
97 |
-
|
98 |
-
#
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
|
105 |
# FpmmTrades ETL
|
106 |
trades_timestamp = get_timestamp_two_weeks_ago()
|
@@ -135,7 +135,7 @@ def only_new_weekly_analysis():
|
|
135 |
|
136 |
save_historical_data()
|
137 |
try:
|
138 |
-
clean_old_data_from_parquet_files("2024-12-
|
139 |
except Exception as e:
|
140 |
print("Error cleaning the oldest information from parquet files")
|
141 |
print(f"reason = {e}")
|
|
|
89 |
def only_new_weekly_analysis():
|
90 |
"""Run weekly analysis for the FPMMS project."""
|
91 |
# Run markets ETL
|
92 |
+
logging.info("Running markets ETL")
|
93 |
+
mkt_etl(MARKETS_FILENAME)
|
94 |
+
logging.info("Markets ETL completed")
|
95 |
+
|
96 |
+
# Mech events ETL
|
97 |
+
logging.info("Generating the mech json files")
|
98 |
+
# get only new data
|
99 |
+
latest_timestamp = get_mech_events_since_last_run(logger)
|
100 |
+
if latest_timestamp == None:
|
101 |
+
print("Error while getting the mech events")
|
102 |
+
return
|
103 |
+
logging.info(f"Finished generating the mech json files from {latest_timestamp}")
|
104 |
|
105 |
# FpmmTrades ETL
|
106 |
trades_timestamp = get_timestamp_two_weeks_ago()
|
|
|
135 |
|
136 |
save_historical_data()
|
137 |
try:
|
138 |
+
clean_old_data_from_parquet_files("2024-12-03")
|
139 |
except Exception as e:
|
140 |
print("Error cleaning the oldest information from parquet files")
|
141 |
print(f"reason = {e}")
|
service_map.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1efc26d7b4b4a000d5ec1c7d5bfb971e7ba0bb8bc25b7927052137ea6d5d2b3b
|
3 |
+
size 170676
|
tools_accuracy.csv
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
tool,tool_accuracy,total_requests,min,max
|
2 |
-
claude-prediction-offline,57.
|
3 |
-
claude-prediction-online,57.
|
4 |
-
prediction-offline,57.
|
5 |
-
prediction-offline-sme,51.
|
6 |
-
prediction-online,50.
|
7 |
-
prediction-online-sme,
|
8 |
-
prediction-request-rag,48.
|
9 |
-
prediction-request-rag-claude,
|
10 |
-
prediction-request-reasoning,52.
|
11 |
-
prediction-request-reasoning-claude,61.
|
12 |
-
prediction-url-cot-claude,
|
13 |
-
superforcaster,53.
|
|
|
1 |
tool,tool_accuracy,total_requests,min,max
|
2 |
+
claude-prediction-offline,57.71641990129385,89964,2024-12-03 00:01:50,2025-02-02 23:39:00
|
3 |
+
claude-prediction-online,57.86395599805054,57452,2024-12-03 00:01:20,2025-02-03 00:40:40
|
4 |
+
prediction-offline,57.52640124863117,158894,2024-12-03 00:00:20,2025-02-03 01:24:25
|
5 |
+
prediction-offline-sme,51.14269788182831,28704,2024-12-03 00:31:10,2025-02-03 00:28:55
|
6 |
+
prediction-online,50.80864982736689,5503,2024-12-03 00:07:45,2025-02-02 15:15:45
|
7 |
+
prediction-online-sme,48.971504057369316,5299,2024-12-03 00:42:50,2025-02-02 16:53:10
|
8 |
+
prediction-request-rag,48.028673835125446,1116,2024-12-03 00:27:00,2025-02-01 13:30:55
|
9 |
+
prediction-request-rag-claude,49.815498154981555,1084,2024-12-03 00:26:20,2025-02-02 16:00:40
|
10 |
+
prediction-request-reasoning,52.26027652517422,107332,2024-12-03 00:03:50,2025-02-02 17:19:00
|
11 |
+
prediction-request-reasoning-claude,61.64502164502165,1155,2024-12-03 00:00:20,2025-02-01 17:23:30
|
12 |
+
prediction-url-cot-claude,54.11210057621791,1909,2024-12-03 01:30:20,2025-02-02 21:27:40
|
13 |
+
superforcaster,53.14482912167428,8983,2024-12-03 00:00:45,2025-02-03 01:52:30
|
unknown_traders.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4c41f7cfb920f2f0ce11cfdb271a3419c056b43c90f0a4af1be2d62c7fd6bf62
|
3 |
+
size 428358
|
weekly_mech_calls.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3fe0d5aef5451840e5a9e11d8fe0c8071a771faf0128f63d6a3f321b656b33e5
|
3 |
+
size 54270
|
winning_df.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8669ce02218ccd4a08369263e4d51451cb840fc341c4cc42bd08db9a5288de7e
|
3 |
+
size 11841
|