gnomepy 2.2.1__tar.gz → 2.2.3__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.2.1 → gnomepy-2.2.3}/PKG-INFO +1 -1
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/datastore.py +1 -1
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/schemas.py +8 -8
- {gnomepy-2.2.1 → gnomepy-2.2.3}/pyproject.toml +1 -1
- {gnomepy-2.2.1 → gnomepy-2.2.3}/README.md +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/__init__.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/_fs.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/auth.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/cli.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/config.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/explorer/__init__.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/explorer/app.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/explorer/data.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/explorer/panels/__init__.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/explorer/panels/event_log.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/explorer/panels/pnl.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/explorer/panels/price.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/explorer/panels/signals.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/explorer/styles.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/__init__.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/_classpath.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/_jvm.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/backtest/__init__.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/backtest/config.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/backtest/orders.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/backtest/runner.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/backtest/strategy.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/cache.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/enums.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/market_data.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/oms.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/recorder.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/sbe.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/java/statics.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/metadata.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/registry/__init__.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/registry/api.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/registry/types.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/remote.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/reporting/__init__.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/reporting/metrics.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/reporting/plots.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/reporting/report.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/sweep.py +0 -0
- {gnomepy-2.2.1 → gnomepy-2.2.3}/gnomepy/utils.py +0 -0
|
@@ -22,7 +22,7 @@ _ZSTD_MAGIC = b"\x28\xb5\x2f\xfd"
|
|
|
22
22
|
class DataStore:
|
|
23
23
|
def __init__(self, data: bytes, schema_type: SchemaType):
|
|
24
24
|
if data[:4] == _ZSTD_MAGIC:
|
|
25
|
-
data = zstandard.ZstdDecompressor().
|
|
25
|
+
data = zstandard.ZstdDecompressor().stream_reader(io.BytesIO(data)).read()
|
|
26
26
|
self._data: bytes | None = data
|
|
27
27
|
self._schemas: list[Schema] | None = None
|
|
28
28
|
self._schema_type = schema_type
|
|
@@ -87,7 +87,7 @@ class Schema:
|
|
|
87
87
|
return bytes([b & 0xFF for b in byte_array])
|
|
88
88
|
|
|
89
89
|
class MboSchema(Schema):
|
|
90
|
-
_java_class = "group.gnometrading.schemas.
|
|
90
|
+
_java_class = "group.gnometrading.schemas.MboSchema"
|
|
91
91
|
|
|
92
92
|
def __init__(
|
|
93
93
|
self,
|
|
@@ -200,7 +200,7 @@ class MboSchema(Schema):
|
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
class Mbp10Schema(Schema):
|
|
203
|
-
_java_class = "group.gnometrading.schemas.
|
|
203
|
+
_java_class = "group.gnometrading.schemas.Mbp10Schema"
|
|
204
204
|
NUM_LEVELS = 10
|
|
205
205
|
|
|
206
206
|
def __init__(
|
|
@@ -343,7 +343,7 @@ class Mbp10Schema(Schema):
|
|
|
343
343
|
|
|
344
344
|
class Mbp1Schema(Mbp10Schema):
|
|
345
345
|
"""MBP1 has the same decoder layout as MBP10 but with a single level."""
|
|
346
|
-
_java_class = "group.gnometrading.schemas.
|
|
346
|
+
_java_class = "group.gnometrading.schemas.Mbp1Schema"
|
|
347
347
|
NUM_LEVELS = 1
|
|
348
348
|
|
|
349
349
|
def __init__(
|
|
@@ -532,11 +532,11 @@ class BboSchema(Schema):
|
|
|
532
532
|
|
|
533
533
|
|
|
534
534
|
class Bbo1sSchema(BboSchema):
|
|
535
|
-
_java_class = "group.gnometrading.schemas.
|
|
535
|
+
_java_class = "group.gnometrading.schemas.Bbo1sSchema"
|
|
536
536
|
|
|
537
537
|
|
|
538
538
|
class Bbo1mSchema(BboSchema):
|
|
539
|
-
_java_class = "group.gnometrading.schemas.
|
|
539
|
+
_java_class = "group.gnometrading.schemas.Bbo1mSchema"
|
|
540
540
|
|
|
541
541
|
|
|
542
542
|
class TradesSchema(Schema):
|
|
@@ -734,15 +734,15 @@ class OhlcvSchema(Schema):
|
|
|
734
734
|
|
|
735
735
|
|
|
736
736
|
class Ohlcv1sSchema(OhlcvSchema):
|
|
737
|
-
_java_class = "group.gnometrading.schemas.
|
|
737
|
+
_java_class = "group.gnometrading.schemas.Ohlcv1sSchema"
|
|
738
738
|
|
|
739
739
|
|
|
740
740
|
class Ohlcv1mSchema(OhlcvSchema):
|
|
741
|
-
_java_class = "group.gnometrading.schemas.
|
|
741
|
+
_java_class = "group.gnometrading.schemas.Ohlcv1mSchema"
|
|
742
742
|
|
|
743
743
|
|
|
744
744
|
class Ohlcv1hSchema(OhlcvSchema):
|
|
745
|
-
_java_class = "group.gnometrading.schemas.
|
|
745
|
+
_java_class = "group.gnometrading.schemas.Ohlcv1hSchema"
|
|
746
746
|
|
|
747
747
|
|
|
748
748
|
# Schema type name → wrapper class
|
|
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
|