@nevuamarkets/poly-websockets 0.1.2 → 0.1.3
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 +5 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,10 @@ npm install @nevuamarkets/poly-websockets
|
|
|
22
22
|
## Quick Start
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
|
-
import {
|
|
25
|
+
import {
|
|
26
|
+
WSSubscriptionManager,
|
|
27
|
+
WebSocketHandlers
|
|
28
|
+
} from '@nevuamarkets/poly-websockets';
|
|
26
29
|
|
|
27
30
|
// Create the subscription manager with your own handlers
|
|
28
31
|
const manager = new WSSubscriptionManager({
|
|
@@ -147,10 +150,7 @@ const manager = new WSSubscriptionManager(handlers, {
|
|
|
147
150
|
|
|
148
151
|
## Examples
|
|
149
152
|
|
|
150
|
-
Check the [examples](./examples) folder for complete working examples
|
|
151
|
-
- Basic price monitoring
|
|
152
|
-
- Market data aggregation
|
|
153
|
-
- Real-time trading interfaces
|
|
153
|
+
Check the [examples](./examples) folder for complete working examples
|
|
154
154
|
|
|
155
155
|
## Error Handling
|
|
156
156
|
|
|
@@ -163,7 +163,6 @@ The library includes error handling:
|
|
|
163
163
|
Respects Polymarket's API rate limits:
|
|
164
164
|
- Default: 5 requests per second burst limit
|
|
165
165
|
- Configurable through custom Bottleneck instances
|
|
166
|
-
- Automatic backoff on rate limit hits
|
|
167
166
|
|
|
168
167
|
## License
|
|
169
168
|
|