@nevuamarkets/poly-websockets 0.0.3 → 0.0.4
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.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Poly-WebSockets
|
|
2
2
|
|
|
3
|
-
A TypeScript library for real-time Polymarket
|
|
3
|
+
A TypeScript library for **real-time Polymarket market price alerts** over **Websocket** with **automatic reconnections** and **easy subscription management**.
|
|
4
4
|
|
|
5
5
|
Powering [Nevua Markets](https://nevua.markets)
|
|
6
6
|
|
|
@@ -12,11 +12,11 @@ npm install poly-websockets
|
|
|
12
12
|
|
|
13
13
|
## Features
|
|
14
14
|
|
|
15
|
-
- 🔄 **Automatic Connection Management**: Handles WebSocket connections, reconnections, and cleanup for grouped assetId (i.e. clobTokenId) subscriptions
|
|
16
15
|
- 📊 **Real-time Market Updates**: Get `book` , `price_change`, `tick_size_change` and `last_trade_price` real-time market events from Polymarket WSS
|
|
17
16
|
- 🎯 **Derived Future Price Event**: Implements Polymarket's [price calculation logic](https://docs.polymarket.com/polymarket-learn/trading/how-are-prices-calculated#future-price) (midpoint vs last trade price based on spread)
|
|
18
|
-
- 🚦 **Rate Limiting**: Built-in rate limiting to respect Polymarket API limits
|
|
19
17
|
- 🔗 **Group Management**: Efficiently manages multiple asset subscriptions across connection groups **without losing events** when subscribing / unsubscribing assets.
|
|
18
|
+
- 🔄 **Automatic Connection Management**: Handles WebSocket connections, reconnections, and cleanup for grouped assetId (i.e. clobTokenId) subscriptions
|
|
19
|
+
- 🚦 **Rate Limiting**: Built-in rate limiting to respect Polymarket API limits
|
|
20
20
|
- 💪 **TypeScript Support**: Full TypeScript definitions for all events and handlers
|
|
21
21
|
|
|
22
22
|
## Quick Start
|