polynode 0.6.2__tar.gz → 0.6.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.
- {polynode-0.6.2 → polynode-0.6.3}/PKG-INFO +1 -1
- {polynode-0.6.2 → polynode-0.6.3}/polynode/types/events.py +2 -2
- {polynode-0.6.2 → polynode-0.6.3}/polynode/ws.py +5 -0
- {polynode-0.6.2 → polynode-0.6.3}/pyproject.toml +1 -1
- {polynode-0.6.2 → polynode-0.6.3}/.gitignore +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/README.md +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/__init__.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/_version.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/cache/__init__.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/client.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/engine.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/errors.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/orderbook.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/orderbook_state.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/redemption_watcher.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/short_form.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/subscription.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/testing.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/__init__.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/clob_api.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/constants.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/cosigner.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/eip712.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/onboarding.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/position_management.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/privy.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/signer.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/sqlite_backend.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/trader.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/trading/types.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/types/__init__.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/types/enums.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/types/orderbook.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/types/rest.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/types/short_form.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/polynode/types/ws.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/tests/__init__.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/tests/conftest.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/tests/test_client.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/tests/test_orderbook.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/tests/test_trading.py +0 -0
- {polynode-0.6.2 → polynode-0.6.3}/tests/test_types.py +0 -0
|
@@ -245,12 +245,12 @@ class OracleEvent(BaseModel):
|
|
|
245
245
|
class PriceFeedEvent(BaseModel):
|
|
246
246
|
event_type: Literal["price_feed"]
|
|
247
247
|
feed: str
|
|
248
|
-
feed_id: str
|
|
248
|
+
feed_id: str = ""
|
|
249
249
|
price: float
|
|
250
250
|
bid: float
|
|
251
251
|
ask: float
|
|
252
252
|
timestamp: float
|
|
253
|
-
source: str
|
|
253
|
+
source: str = "chainlink"
|
|
254
254
|
|
|
255
255
|
|
|
256
256
|
PolyNodeEvent = Annotated[
|
|
@@ -235,6 +235,11 @@ class PolyNodeWS:
|
|
|
235
235
|
elif msg_type == "unsubscribed":
|
|
236
236
|
pass
|
|
237
237
|
|
|
238
|
+
elif msg_type == "price_feed":
|
|
239
|
+
event = _parse_event({"event_type": "price_feed", **msg.get("data", {})})
|
|
240
|
+
if event:
|
|
241
|
+
self._route_event(event)
|
|
242
|
+
|
|
238
243
|
else:
|
|
239
244
|
data = msg.get("data")
|
|
240
245
|
if data and data.get("event_type"):
|
|
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
|