cyberosa commited on
Commit
c8b395e
·
1 Parent(s): 8bcda83

updating files from last run

Browse files
active_traders.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:17f8bbf1586d566663fa7547d579f8f679ac7abc9249e71bcb01e0b205bb288b
3
- size 78414
 
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:693d4199ee220e2adac3ea474f7513004cd7786d0510cf12c4ff77f1623967af
3
- size 10385468
 
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:ab8705abf8d0a22589012ab72d31e7f3a53cb5e98a4fa26ec0275db315ceb6ad
3
- size 79341
 
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:b9772ee2493d8fdbe89ec3ba43a15cfa5856e92991c9f3e174f6c128d2a053cf
3
- size 2290925
 
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:bd12409cd7b9dd33ab7dfd18e41442e3ad685f1f5ac81f1de4a2138989ad5bb6
3
- size 12397
 
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:7a5b907c7fe0f87db720b8d3f29ca67fe07b685bfa6299c2e42eb99bcd3bcf56
3
- size 7213628
 
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
- MAY_FOLDER = "may2024"
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 = ["data_delivers_06_05_2024.csv", "data_tools_06_05_2024.csv"]
103
  for old_file in files:
104
  # download_file(client=client, filename=tools_file)
105
- load_historical_file(client=client, filename=old_file, extra_folder=MAY_FOLDER)
 
 
 
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
- # 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,7 +135,7 @@ def only_new_weekly_analysis():
135
 
136
  save_historical_data()
137
  try:
138
- clean_old_data_from_parquet_files("2024-12-02")
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:a00b07411592ce1e05011a604365801a1558771868bdb2c80772a4d1a67b6dab
3
- size 170535
 
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.472294476382004,91498,2024-12-02 00:04:45,2025-02-02 02:10:00
3
- claude-prediction-online,57.80809753931797,58561,2024-12-02 00:04:35,2025-02-02 17:04:55
4
- prediction-offline,57.71920894368719,159129,2024-12-02 00:04:45,2025-02-02 01:59:20
5
- prediction-offline-sme,51.10462692788662,28788,2024-12-02 00:02:20,2025-02-02 01:01:20
6
- prediction-online,50.845346147001244,5619,2024-12-02 00:27:20,2025-02-01 17:43:20
7
- prediction-online-sme,49.12801484230055,5390,2024-12-02 00:10:10,2025-02-01 17:43:30
8
- prediction-request-rag,48.80546075085324,1172,2024-12-02 00:18:00,2025-02-01 10:59:45
9
- prediction-request-rag-claude,50.17513134851138,1142,2024-12-02 04:00:20,2025-02-01 16:49:45
10
- prediction-request-reasoning,52.38675812260929,107447,2024-12-02 00:16:10,2025-02-01 18:02:25
11
- prediction-request-reasoning-claude,61.13902847571189,1194,2024-12-02 00:37:15,2025-02-01 17:23:30
12
- prediction-url-cot-claude,53.905845835488876,1933,2024-12-02 01:06:10,2025-02-01 19:00:15
13
- superforcaster,53.4790811230718,9011,2024-12-02 00:37:00,2025-02-01 23:58:25
 
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:b38e5e6401c7f724e8fd425aa5e36da471d2f649ff7624c4f7410f2924e53b4a
3
- size 419033
 
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:f675b1980af3d10a0e10d284d7ef93ec0496946dc4ba67adf2622ed360a92875
3
- size 54025
 
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:cc6147e64c72f32e90cde223b232a3ea65ee9c7dde97395daeb9aa31a5ef4886
3
- size 11882
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8669ce02218ccd4a08369263e4d51451cb840fc341c4cc42bd08db9a5288de7e
3
+ size 11841