prosperity3bt 0.4.0__tar.gz → 0.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/PKG-INFO +6 -2
  2. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/README.md +5 -1
  3. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/data.py +7 -2
  4. prosperity3bt-0.6.0/prosperity3bt/resources/round1/__init__.py +0 -0
  5. prosperity3bt-0.6.0/prosperity3bt/resources/round1/prices_round_1_day_-1.csv +30001 -0
  6. prosperity3bt-0.6.0/prosperity3bt/resources/round1/prices_round_1_day_-2.csv +30001 -0
  7. prosperity3bt-0.6.0/prosperity3bt/resources/round1/prices_round_1_day_0.csv +30001 -0
  8. prosperity3bt-0.6.0/prosperity3bt/resources/round1/trades_round_1_day_-1_nn.csv +8307 -0
  9. prosperity3bt-0.6.0/prosperity3bt/resources/round1/trades_round_1_day_-2_nn.csv +8399 -0
  10. prosperity3bt-0.6.0/prosperity3bt/resources/round1/trades_round_1_day_0_nn.csv +8183 -0
  11. prosperity3bt-0.6.0/prosperity3bt/resources/round2/__init__.py +0 -0
  12. prosperity3bt-0.6.0/prosperity3bt/resources/round2/prices_round_2_day_-1.csv +80001 -0
  13. prosperity3bt-0.6.0/prosperity3bt/resources/round2/prices_round_2_day_0.csv +80001 -0
  14. prosperity3bt-0.6.0/prosperity3bt/resources/round2/prices_round_2_day_1.csv +80001 -0
  15. prosperity3bt-0.6.0/prosperity3bt/resources/round2/trades_round_2_day_-1_nn.csv +12621 -0
  16. prosperity3bt-0.6.0/prosperity3bt/resources/round2/trades_round_2_day_0_nn.csv +12577 -0
  17. prosperity3bt-0.6.0/prosperity3bt/resources/round2/trades_round_2_day_1_nn.csv +12683 -0
  18. prosperity3bt-0.6.0/prosperity3bt/resources/round6/__init__.py +0 -0
  19. prosperity3bt-0.6.0/prosperity3bt/resources/round6/prices_round_6_day_0.csv +4001 -0
  20. prosperity3bt-0.6.0/prosperity3bt/resources/round6/prices_round_6_day_1.csv +3001 -0
  21. prosperity3bt-0.6.0/prosperity3bt/resources/round6/prices_round_6_day_2.csv +8001 -0
  22. prosperity3bt-0.6.0/prosperity3bt/resources/round6/trades_round_6_day_0_nn.csv +1089 -0
  23. prosperity3bt-0.6.0/prosperity3bt/resources/round6/trades_round_6_day_1_nn.csv +845 -0
  24. prosperity3bt-0.6.0/prosperity3bt/resources/round6/trades_round_6_day_2_nn.csv +1248 -0
  25. prosperity3bt-0.6.0/prosperity3bt/resources/round7/__init__.py +0 -0
  26. prosperity3bt-0.6.0/prosperity3bt/resources/round7/prices_round_7_day_0.csv +30001 -0
  27. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt.egg-info/PKG-INFO +6 -2
  28. prosperity3bt-0.6.0/prosperity3bt.egg-info/SOURCES.txt +46 -0
  29. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/pyproject.toml +1 -1
  30. prosperity3bt-0.4.0/prosperity3bt.egg-info/SOURCES.txt +0 -23
  31. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/LICENSE +0 -0
  32. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/__init__.py +0 -0
  33. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/__main__.py +0 -0
  34. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/datamodel.py +0 -0
  35. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/file_reader.py +0 -0
  36. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/models.py +0 -0
  37. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/open.py +0 -0
  38. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/parse_submission_logs.py +0 -0
  39. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/py.typed +0 -0
  40. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/resources/__init__.py +0 -0
  41. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/resources/round0/__init__.py +0 -0
  42. /prosperity3bt-0.4.0/prosperity3bt/resources/round0/prices_round_0_day_-2.csv → /prosperity3bt-0.6.0/prosperity3bt/resources/round0/prices_round_0_day_-1.csv +0 -0
  43. /prosperity3bt-0.4.0/prosperity3bt/resources/round0/trades_round_0_day_-2_nn.csv → /prosperity3bt-0.6.0/prosperity3bt/resources/round0/trades_round_0_day_-1_nn.csv +0 -0
  44. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt/runner.py +0 -0
  45. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt.egg-info/dependency_links.txt +0 -0
  46. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt.egg-info/entry_points.txt +0 -0
  47. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt.egg-info/requires.txt +0 -0
  48. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/prosperity3bt.egg-info/top_level.txt +0 -0
  49. {prosperity3bt-0.4.0 → prosperity3bt-0.6.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prosperity3bt
3
- Version: 0.4.0
3
+ Version: 0.6.0
4
4
  Summary: Backtester for IMC Prosperity 3 algorithms
5
5
  Author-email: Jasper van Merle <jaspervmerle@gmail.com>
6
6
  License: MIT License
@@ -116,7 +116,11 @@ Limits are enforced before orders are matched to order depths. If for a product
116
116
  ## Data Files
117
117
 
118
118
  Data for the following rounds is included:
119
- - Round 0: prices and anonymized trades data on RAINFOREST_RESIN and KELP that was used during tutorial submission runs.
119
+ - Round 0: prices and anonymized trades data on RAINFOREST_RESIN and KELP that was used during tutorial submission runs. The anonymized trades data is derived from the submission of an algorithm that places no orders.
120
+ - Round 1: prices and anonymized trades data on RAINFOREST_RESIN, KELP, and SQUID_INK.
121
+ - Round 2: prices and anonymized trades data on RAINFOREST_RESIN, KELP, SQUID_INK, CROISSANTS, JAMS, DJEMBES, PICNIC_BASKET1, and PICNIC_BASKET2.
122
+ - Round 6: prices and anonymized trades data that was used during submission runs. Round 6 day X represents the submission data of round X, where X = 0 means the tutorial round. The anonymized trades data is derived from the submission of an algorithm that places no orders.
123
+ - Round 7: prices data that was used during end-of-round runs. Round 7 day X represents the submission data of round X. The exception to the rule is round 1, its old end-of-round data can be found in round 7 day 0 while its new data will be made available at round 7 day 1 once its made available.
120
124
 
121
125
  ## Environment Variables
122
126
 
@@ -70,7 +70,11 @@ Limits are enforced before orders are matched to order depths. If for a product
70
70
  ## Data Files
71
71
 
72
72
  Data for the following rounds is included:
73
- - Round 0: prices and anonymized trades data on RAINFOREST_RESIN and KELP that was used during tutorial submission runs.
73
+ - Round 0: prices and anonymized trades data on RAINFOREST_RESIN and KELP that was used during tutorial submission runs. The anonymized trades data is derived from the submission of an algorithm that places no orders.
74
+ - Round 1: prices and anonymized trades data on RAINFOREST_RESIN, KELP, and SQUID_INK.
75
+ - Round 2: prices and anonymized trades data on RAINFOREST_RESIN, KELP, SQUID_INK, CROISSANTS, JAMS, DJEMBES, PICNIC_BASKET1, and PICNIC_BASKET2.
76
+ - Round 6: prices and anonymized trades data that was used during submission runs. Round 6 day X represents the submission data of round X, where X = 0 means the tutorial round. The anonymized trades data is derived from the submission of an algorithm that places no orders.
77
+ - Round 7: prices data that was used during end-of-round runs. Round 7 day X represents the submission data of round X. The exception to the rule is round 1, its old end-of-round data can be found in round 7 day 0 while its new data will be made available at round 7 day 1 once its made available.
74
78
 
75
79
  ## Environment Variables
76
80
 
@@ -7,6 +7,12 @@ from prosperity3bt.file_reader import FileReader
7
7
  LIMITS = {
8
8
  "RAINFOREST_RESIN": 50,
9
9
  "KELP": 50,
10
+ "SQUID_INK": 50,
11
+ "CROISSANTS": 250,
12
+ "JAMS": 350,
13
+ "DJEMBES": 60,
14
+ "PICNIC_BASKET1": 60,
15
+ "PICNIC_BASKET2": 100,
10
16
  }
11
17
 
12
18
 
@@ -103,8 +109,7 @@ def read_day_data(file_reader: FileReader, round_num: int, day_num: int, no_name
103
109
  for suffix in trades_suffixes:
104
110
  with file_reader.file([f"round{round_num}", f"trades_round_{round_num}_day_{day_num}_{suffix}.csv"]) as file:
105
111
  if file is None:
106
- trades_data_type = "Anonymized" if suffix == "nn" else "De-anonymized"
107
- raise ValueError(f"{trades_data_type} trades data is not available for round {round_num} day {day_num}")
112
+ continue
108
113
 
109
114
  for line in file.read_text(encoding="utf-8").splitlines()[1:]:
110
115
  columns = line.split(";")