cyberosa commited on
Commit
2b6844e
·
1 Parent(s): d04ebdd

updating files for the dataset

Browse files
.gitignore CHANGED
@@ -54,6 +54,7 @@ coverage.xml
54
  json_data/
55
  historical_data/
56
  tmp/
 
57
  .pytest_cache/
58
  cover/
59
 
 
54
  json_data/
55
  historical_data/
56
  tmp/
57
+ notebooks/
58
  .pytest_cache/
59
  cover/
60
 
active_traders.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4cacadd1709d6c0d42cf99ba293ffe7d50dadee146b6b5d4bf08ac46b6244e79
3
- size 77240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a40a529b880958bd7abd4f60a43d0be0b6541bea28c2e437d1587c6b7337d51c
3
+ size 79528
all_trades_profitability.parquet.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9b312919514d900e240142eac7c832353f1c5fafc62954f13fa48506f034934c
3
- size 9345360
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8407d663989a9ae9b00a93ee63de23523750c7a93002373985deeed06250979f
3
+ size 10040781
closed_markets_div.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:45fa23888736a11e280cddf0dd652d3873e7a13f8bb0f2afb38f242bfb181a35
3
- size 72542
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2281a6ba1ce453b14a0bf1b307372647b9bda9e3177f3360a01e3fe218a7a034
3
+ size 74999
daily_info.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5ff013973cd9530e4eb535ea4f9c3db3cee90f6be70800682eefa7b37f78388b
3
- size 2709198
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e68f54006dbf71cabc71975bb67166a7ee796f0782dd75b9284ef1cb209c1f09
3
+ size 1502516
error_by_markets.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:026835121a261b46a391e397160f878413bd1f337903324bb1cd6ef88bc2d90c
3
- size 12990
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3130e944015fc63063ddbf8a9d526527a942122849abadcc246de0429151ca96
3
+ size 12512
invalid_trades.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8a47b04bfae501edb6051f0089117b51fc96cdb4eeb4ad5ef3ebfbcd7ee19590
3
- size 755966
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:793d6fc3fc2dec6385fadc95c385bef6798fba707d862ea322a28ff2a1b5f144
3
+ size 769642
retention_activity.parquet.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:43fc612f930afbc66624597dadf6bf964e11117fbc1bcb76cf9e738cd6ac4881
3
- size 6494976
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d7de12457418b4d1db7e0d2bb250f109c78b8c2f67e2d6bae4573a25a0499e9
3
+ size 6630005
scripts/profitability.py CHANGED
@@ -523,6 +523,6 @@ if __name__ == "__main__":
523
  run_profitability_analysis(
524
  tools_filename="tools.parquet",
525
  trades_filename="fpmmTrades.parquet",
526
- merge=False,
527
  tmp_dir=True,
528
  )
 
523
  run_profitability_analysis(
524
  tools_filename="tools.parquet",
525
  trades_filename="fpmmTrades.parquet",
526
+ merge=True,
527
  tmp_dir=True,
528
  )
scripts/pull_data.py CHANGED
@@ -27,6 +27,7 @@ from web3_utils import updating_timestamps
27
  from manage_space_files import move_files
28
  from cloud_storage import upload_historical_file
29
  from tools_metrics import compute_tools_based_datasets
 
30
 
31
 
32
  logging.basicConfig(
@@ -72,7 +73,7 @@ def save_historical_data():
72
  print(f"Error saving tools file in the historical folder {e}")
73
 
74
  try:
75
- all_trades = pd.read_parquet(ROOT_DIR / "all_trades_profitability.parquet")
76
  filename = f"all_trades_profitability_{timestamp}.parquet"
77
  all_trades.to_parquet(HIST_DIR / filename, index=False)
78
  # save into cloud storage
@@ -168,4 +169,6 @@ def restoring_trades_data(from_date: str, to_date: str):
168
 
169
  if __name__ == "__main__":
170
  only_new_weekly_analysis()
 
 
171
  # restoring_trades_data("2024-12-28", "2025-01-07")
 
27
  from manage_space_files import move_files
28
  from cloud_storage import upload_historical_file
29
  from tools_metrics import compute_tools_based_datasets
30
+ from get_mech_info import read_all_trades_profitability
31
 
32
 
33
  logging.basicConfig(
 
73
  print(f"Error saving tools file in the historical folder {e}")
74
 
75
  try:
76
+ all_trades = read_all_trades_profitability()
77
  filename = f"all_trades_profitability_{timestamp}.parquet"
78
  all_trades.to_parquet(HIST_DIR / filename, index=False)
79
  # save into cloud storage
 
169
 
170
  if __name__ == "__main__":
171
  only_new_weekly_analysis()
172
+ # save_historical_data()
173
+ # clean_old_data_from_parquet_files("2024-11-30")
174
  # restoring_trades_data("2024-12-28", "2025-01-07")
service_map.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:da35d7c845c32bc90c5f298210458dfa01b8745bf95bd23b62a49c044ca06ac7
3
- size 167913
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f17ea5c4d6ed8fd8547d38aff00c70881631a68edd556cbdff6027551343b86
3
+ size 169107
tools_accuracy.csv CHANGED
@@ -1,13 +1,13 @@
1
  tool,tool_accuracy,total_requests,min,max
2
- claude-prediction-offline,56.39282282658645,95748,2024-11-26 01:46:15,2025-01-26 01:55:05
3
- claude-prediction-online,56.79564924439311,62334,2024-11-26 01:45:35,2025-01-26 02:09:30
4
- prediction-offline,59.01548708542289,153741,2024-11-26 01:45:40,2025-01-26 02:13:40
5
- prediction-offline-sme,50.94253197561749,28381,2024-11-26 01:49:30,2025-01-26 00:53:00
6
- prediction-online,50.51528384279476,5725,2024-11-26 01:54:50,2025-01-25 16:16:15
7
- prediction-online-sme,48.84915014164306,5648,2024-11-26 01:51:40,2025-01-25 15:54:45
8
- prediction-request-rag,47.786259541984734,1310,2024-11-26 02:05:35,2025-01-25 11:32:15
9
- prediction-request-rag-claude,53.266717909300546,1301,2024-11-26 09:55:25,2025-01-25 15:36:35
10
- prediction-request-reasoning,53.09015385235819,99186,2024-11-26 02:19:30,2025-01-25 17:03:50
11
- prediction-request-reasoning-claude,59.71277399848829,1323,2024-11-26 04:53:10,2025-01-25 15:43:45
12
- prediction-url-cot-claude,54.677950164551014,2127,2024-11-26 03:05:30,2025-01-26 01:39:15
13
- superforcaster,53.18978352995075,8731,2024-11-26 02:22:45,2025-01-26 01:17:30
 
1
  tool,tool_accuracy,total_requests,min,max
2
+ claude-prediction-offline,56.51432053625838,90255,2024-11-30 00:59:05,2025-01-27 21:41:20
3
+ claude-prediction-online,56.783485191652694,57839,2024-11-30 00:04:40,2025-01-28 00:21:00
4
+ prediction-offline,58.671392936851774,152340,2024-11-30 01:23:50,2025-01-28 00:15:45
5
+ prediction-offline-sme,49.74132356111231,27834,2024-11-30 04:05:40,2025-01-27 22:56:50
6
+ prediction-online,51.21168923734854,5612,2024-11-30 04:02:25,2025-01-27 17:14:05
7
+ prediction-online-sme,49.80252021816814,5317,2024-11-30 02:22:15,2025-01-27 17:13:05
8
+ prediction-request-rag,49.48805460750853,1172,2024-11-30 11:15:45,2025-01-27 13:10:05
9
+ prediction-request-rag-claude,51.45631067961165,1133,2024-11-30 10:33:25,2025-01-27 10:31:15
10
+ prediction-request-reasoning,52.52582452988616,102422,2024-11-30 00:15:25,2025-01-27 17:25:25
11
+ prediction-request-reasoning-claude,60.16877637130802,1185,2024-11-30 01:27:10,2025-01-27 16:37:40
12
+ prediction-url-cot-claude,52.92607802874743,1948,2024-11-30 07:17:35,2025-01-27 22:55:20
13
+ superforcaster,52.67537270310875,8653,2024-11-30 03:16:35,2025-01-27 23:25:40
unknown_traders.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cd2aa16659f93661ac3e9744f55ba17d921bf5f65c843a60f01232dd587254bf
3
- size 365566
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5e89e6b84b8dd5acdea90a875c8ba1ef35ac19b23bedede89e58bd7554a324e
3
+ size 389594
weekly_mech_calls.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:55254cf21bbcfbc997d35c3878326bf501eb9f57de9068dc12e9ebf2652e912a
3
- size 53527
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbadcb75bcd86c811d0091b44b083f003f27b04b1d79f57c902d833874ab9a63
3
+ size 53126
winning_df.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:10f727eac679040aa5f1dc1856580010c315b3f72810cdbcaa6175f5a8343c0e
3
- size 12528
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:431c05dbfb97469626034fdb63c6dd369c530f425eeeec39a2fe981aeaaf7844
3
+ size 12002