cyberosa commited on
Commit
18f01db
·
1 Parent(s): 9ad60a9

new daily data

Browse files
active_traders.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6b8f5be5623b50f6d0babb0c27a3e76f7a4ceb32e36768d8cc84426f504777d2
3
- size 90364
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:883230dbce01577c3810c89ed78bd6ed59da58507f24a010bf92a56ddf2f5f16
3
+ size 81100
all_trades_profitability.parquet.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b1778efd3d3c5f5972a031e1a520aab59574786623cdd34173c720df75f47f90
3
- size 11386623
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fff330b98d1bf8697f7d0bdd5b8200a9a0d67cb5f904b63c7b2924078980a4e
3
+ size 9076927
closed_market_metrics.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8830940997f66b6495f5f3b891151c1751c8a516fb93929e9b705027c413e75a
3
- size 124693
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bc63b7ed7a4406e0ed70cd9de33ba570b963284e33915a0eb3375fcc6a9c92b
3
+ size 127103
closed_markets_div.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b489f9c46f2ac9fb1fabf5b1f2060a7476d28b6d35843e10a02675ca617f4ada
3
- size 82354
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b88c12c4e4eca6ca4e246ca61603f3bd2906dff973b757030d991ac8390d6f2a
3
+ size 83628
daily_info.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:daf0b7254f66a5980707aab3070a3f1fa52dc04a16d620f36807c82bdcc7145b
3
- size 2029572
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5da33cf7b294dbfb9311faedecd67cb9671f76192159989f7e6d5ffcaa94cd29
3
+ size 1884410
daily_mech_requests.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6f42f080bde03dcd3384ec550c7f3249c0993b6acba6da98ba703b6604c7d1e3
3
- size 10365
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:396124f78c82714bcdb0971efd8e0e90630d78f5f59688c11846b4896c293eea
3
+ size 10374
error_by_markets.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b04ebd94db6087cecfd4c5824f49ec59eb70a4e03e52ce3c74b52850ff601400
3
- size 12190
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37c60d72f0a130fd41b43e7a6091c02e9dca193fabd82dbe5ff52a5170dbfeca
3
+ size 12384
retention_activity.parquet.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0fedca1f37cb52ed12744e3fa6fcbd0ffe93cc5b6868a76841b4a5f219aac8fe
3
- size 8446871
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12b91e68e6b3947b26ba065647dbfa5d98c5350f555d5ac6152d1ef733b4924f
3
+ size 8464578
scripts/profitability.py CHANGED
@@ -366,40 +366,40 @@ def run_profitability_analysis(
366
  tmp_dir: bool = False,
367
  ):
368
  """Create all trades analysis."""
369
- # print(f"Preparing data with {tools_filename} and {trades_filename}")
370
- # fpmmTrades = prepare_profitalibity_data(
371
- # tools_filename, trades_filename, tmp_dir=tmp_dir
372
- # )
373
 
374
- # if merge:
375
- # update_tools_parquet(tools_filename)
376
 
377
- # tools = pd.read_parquet(TMP_DIR / "tools.parquet")
378
 
379
- # try:
380
- # fpmmTrades["creationTimestamp"] = fpmmTrades["creationTimestamp"].apply(
381
- # lambda x: transform_to_datetime(x)
382
- # )
383
- # except Exception as e:
384
- # print(f"Transformation not needed")
385
 
386
- # print("Computing the estimated mech calls dataset")
387
- # trade_mech_calls = compute_mech_calls_based_on_timestamps(
388
- # fpmmTrades=fpmmTrades, tools=tools
389
- # )
390
- # trade_mech_calls.to_parquet(TMP_DIR / "trade_mech_calls.parquet")
391
 
392
- # print(trade_mech_calls.total_mech_calls.describe())
393
- # print("Analysing trades...")
394
- # all_trades_df = analyse_all_traders(fpmmTrades, trade_mech_calls)
395
 
396
- # # # merge previous files if requested
397
- # if merge:
398
- # all_trades_df = update_all_trades_parquet(all_trades_df)
399
 
400
  # debugging purposes
401
- # all_trades_df.to_parquet(JSON_DATA_DIR / "all_trades_df.parquet", index=False)
402
- all_trades_df = pd.read_parquet(JSON_DATA_DIR / "all_trades_df.parquet")
403
 
404
  # filter invalid markets. Condition: "is_invalid" is True
405
  invalid_trades = all_trades_df.loc[all_trades_df["is_invalid"] == True]
 
366
  tmp_dir: bool = False,
367
  ):
368
  """Create all trades analysis."""
369
+ print(f"Preparing data with {tools_filename} and {trades_filename}")
370
+ fpmmTrades = prepare_profitalibity_data(
371
+ tools_filename, trades_filename, tmp_dir=tmp_dir
372
+ )
373
 
374
+ if merge:
375
+ update_tools_parquet(tools_filename)
376
 
377
+ tools = pd.read_parquet(TMP_DIR / "tools.parquet")
378
 
379
+ try:
380
+ fpmmTrades["creationTimestamp"] = fpmmTrades["creationTimestamp"].apply(
381
+ lambda x: transform_to_datetime(x)
382
+ )
383
+ except Exception as e:
384
+ print(f"Transformation not needed")
385
 
386
+ print("Computing the estimated mech calls dataset")
387
+ trade_mech_calls = compute_mech_calls_based_on_timestamps(
388
+ fpmmTrades=fpmmTrades, tools=tools
389
+ )
390
+ trade_mech_calls.to_parquet(TMP_DIR / "trade_mech_calls.parquet")
391
 
392
+ print(trade_mech_calls.total_mech_calls.describe())
393
+ print("Analysing trades...")
394
+ all_trades_df = analyse_all_traders(fpmmTrades, trade_mech_calls)
395
 
396
+ # # merge previous files if requested
397
+ if merge:
398
+ all_trades_df = update_all_trades_parquet(all_trades_df)
399
 
400
  # debugging purposes
401
+ all_trades_df.to_parquet(JSON_DATA_DIR / "all_trades_df.parquet", index=False)
402
+ # all_trades_df = pd.read_parquet(JSON_DATA_DIR / "all_trades_df.parquet")
403
 
404
  # filter invalid markets. Condition: "is_invalid" is True
405
  invalid_trades = all_trades_df.loc[all_trades_df["is_invalid"] == True]
scripts/pull_data.py CHANGED
@@ -135,7 +135,7 @@ def only_new_weekly_analysis():
135
 
136
  save_historical_data()
137
  try:
138
- clean_old_data_from_parquet_files("2025-01-02")
139
  except Exception as e:
140
  print("Error cleaning the oldest information from parquet files")
141
  print(f"reason = {e}")
 
135
 
136
  save_historical_data()
137
  try:
138
+ clean_old_data_from_parquet_files("2025-01-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:baa2fcfcfc42fee5cae912f41d5fcb2e35e41fe675e508c167af7f45ee300036
3
- size 194482
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b65aebb3bbc3df44f399283a643c19db35c65b98c8b7e9db4ca3feeafe8f1f99
3
+ size 194740
tools_accuracy.csv CHANGED
@@ -1,13 +1,13 @@
1
  tool,tool_accuracy,total_requests,min,max
2
- claude-prediction-offline,58.796756163733676,67451,2025-01-04 13:04:20,2025-03-02 01:01:05
3
- claude-prediction-online,59.77580361782683,40411,2025-01-04 13:00:55,2025-03-02 01:50:15
4
- prediction-offline,53.26921397819853,148889,2025-01-04 13:02:40,2025-03-02 17:03:35
5
- prediction-offline-sme,52.07305552639866,19054,2025-01-04 13:10:55,2025-03-01 23:37:35
6
- prediction-online,51.075268817204304,4278,2025-01-04 15:26:55,2025-03-01 19:28:00
7
- prediction-online-sme,48.84940285464609,3433,2025-01-04 14:16:35,2025-03-01 19:30:30
8
- prediction-request-rag,47.92332268370607,626,2025-01-04 13:24:25,2025-03-01 17:12:05
9
- prediction-request-rag-claude,45.07299270072993,548,2025-01-04 15:25:35,2025-03-01 14:27:40
10
- prediction-request-reasoning,53.56956581902562,93947,2025-01-04 13:02:05,2025-03-01 19:55:25
11
- prediction-request-reasoning-claude,57.825370675453044,607,2025-01-04 15:30:25,2025-03-01 14:21:30
12
- prediction-url-cot-claude,51.881505204163325,1249,2025-01-04 13:40:05,2025-03-01 23:48:45
13
- superforcaster,55.993975903614455,9960,2025-01-04 13:59:55,2025-03-01 23:41:35
 
1
  tool,tool_accuracy,total_requests,min,max
2
+ claude-prediction-offline,58.62190864768526,67891,2025-01-04 13:04:20,2025-03-02 23:53:30
3
+ claude-prediction-online,59.73301209558461,40676,2025-01-04 13:00:55,2025-03-03 02:01:00
4
+ prediction-offline,53.43404309100463,150333,2025-01-04 13:02:40,2025-03-03 01:43:25
5
+ prediction-offline-sme,52.05307042844407,19069,2025-01-04 13:10:55,2025-03-02 23:11:10
6
+ prediction-online,51.341971309578895,4322,2025-01-04 15:26:55,2025-03-02 18:19:20
7
+ prediction-online-sme,49.09038406006353,3463,2025-01-04 14:16:35,2025-03-02 18:19:20
8
+ prediction-request-rag,48.095238095238095,630,2025-01-04 13:24:25,2025-03-02 15:36:15
9
+ prediction-request-rag-claude,45.27272727272727,550,2025-01-04 15:25:35,2025-03-02 15:25:30
10
+ prediction-request-reasoning,53.437662241340945,94381,2025-01-04 13:02:05,2025-03-02 18:40:55
11
+ prediction-request-reasoning-claude,58.032786885245905,610,2025-01-04 15:30:25,2025-03-02 15:29:05
12
+ prediction-url-cot-claude,51.91693290734825,1252,2025-01-04 13:40:05,2025-03-02 20:44:40
13
+ superforcaster,55.90692124105012,10056,2025-01-04 13:59:55,2025-03-02 23:44:25
unknown_traders.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:80e67d6b6298e3784c8bc829d8b0b3ffdfbca8e67295e957d32c863e62d88b86
3
- size 680571
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f19f308288f364a1506a51c0cee6e68907e8ef15026304d2413537667457b8c0
3
+ size 701461
weekly_mech_calls.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4c41c8e421064ab2158da13da4dd8231949ef16e6620d10b13e2def5d71daa2b
3
- size 57869
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be29116e6b75af385b5bec2320972f529443033773f105acbc284f1864a25e3e
3
+ size 58111
winning_df.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9c971fca8b06d7992e2cc49c6efcd81bce89d626a8ab623b23b412ddf0fba712
3
- size 11324
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44d578f2999d741de8a9ae0c35bc14a801d23aa621d811ba05677697875c8029
3
+ size 11390