gnomepy 2.3.0__tar.gz → 2.3.2__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.
- {gnomepy-2.3.0 → gnomepy-2.3.2}/PKG-INFO +1 -1
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/registry/api.py +18 -6
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/registry/types.py +0 -2
- {gnomepy-2.3.0 → gnomepy-2.3.2}/pyproject.toml +1 -1
- {gnomepy-2.3.0 → gnomepy-2.3.2}/README.md +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/__init__.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/_fs.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/auth.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/cli.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/config.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/explorer/__init__.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/explorer/app.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/explorer/data.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/explorer/panels/__init__.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/explorer/panels/event_log.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/explorer/panels/pnl.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/explorer/panels/price.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/explorer/panels/signals.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/explorer/styles.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/__init__.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/chunker.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/encoder.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/import_job.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/mapping.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/scaling.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/tardis/__init__.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/tardis/book.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/tardis/client.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/tardis/importer.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/tardis/mappings.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/uploader.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/importer/validators.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/__init__.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/_classpath.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/_jvm.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/backtest/__init__.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/backtest/config.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/backtest/orders.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/backtest/runner.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/backtest/strategy.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/cache.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/datastore.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/enums.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/market_data.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/oms.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/recorder.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/sbe.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/schemas.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/java/statics.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/metadata.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/registry/__init__.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/remote.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/reporting/__init__.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/reporting/metrics.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/reporting/plots.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/reporting/report.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/sweep.py +0 -0
- {gnomepy-2.3.0 → gnomepy-2.3.2}/gnomepy/utils.py +0 -0
|
@@ -148,13 +148,25 @@ class RegistryClient:
|
|
|
148
148
|
body = {_to_camel_case(k): v for k, v in kwargs.items()}
|
|
149
149
|
return self._patch("/event-contracts", {"eventContractId": str(event_contract_id)}, body)
|
|
150
150
|
|
|
151
|
+
_PAGE_SIZE = 5000
|
|
152
|
+
|
|
151
153
|
def _get(self, path: str, params: dict, output_type) -> list:
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
all_items = []
|
|
155
|
+
offset = 0
|
|
156
|
+
while True:
|
|
157
|
+
page_params = {**params, "limit": self._PAGE_SIZE, "offset": offset}
|
|
158
|
+
res = requests.get(self.base_url + path, params=page_params, headers={"x-api-key": self.api_key})
|
|
159
|
+
res.raise_for_status()
|
|
160
|
+
page = res.json()
|
|
161
|
+
if dataclasses.is_dataclass(output_type):
|
|
162
|
+
known = {f.name for f in dataclasses.fields(output_type)}
|
|
163
|
+
all_items.extend(output_type(**{k: v for k, v in item.items() if k in known}) for item in page)
|
|
164
|
+
else:
|
|
165
|
+
all_items.extend(output_type(**item) for item in page)
|
|
166
|
+
if len(page) < self._PAGE_SIZE:
|
|
167
|
+
break
|
|
168
|
+
offset += self._PAGE_SIZE
|
|
169
|
+
return all_items
|
|
158
170
|
|
|
159
171
|
def _post_bulk(self, path: str, items: list[dict], batch_size: int = 500) -> list[dict]:
|
|
160
172
|
results: list[dict] = []
|
|
@@ -105,7 +105,6 @@ class Event:
|
|
|
105
105
|
category: str | None
|
|
106
106
|
resolution_source: str | None
|
|
107
107
|
tags: list[str] | None
|
|
108
|
-
embedding: list[float] | None
|
|
109
108
|
resolved: bool
|
|
110
109
|
resolved_at: str | None
|
|
111
110
|
expiry: str | None
|
|
@@ -119,7 +118,6 @@ class EventContract:
|
|
|
119
118
|
event_id: int
|
|
120
119
|
security_id: int
|
|
121
120
|
outcome_label: str
|
|
122
|
-
complement_security_id: int | None
|
|
123
121
|
date_created: str
|
|
124
122
|
|
|
125
123
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|