Skip to content

Commit 5f2d2f4

Browse files
authored
Merge pull request #14 from Polymarket/feat/price-change-event-optimization
Price change event optimization
2 parents 6865260 + d019684 commit 5f2d2f4

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -319,25 +319,25 @@ When the connection is stablished, if a `filter` is used, the server will dump a
319319

320320
#### PriceChanges
321321

322-
| Name | Type | Description |
323-
| --------------- | ------------------ | --------------------------------------------------------- |
324-
| `market` | string | Condition ID |
325-
| `price_changes` | array | Price changes by book |
326-
| `timestamp` | string (timestamp) | Timestamp in milliseconds since epoch (UNIX time \* 1000) |
322+
| Name | Type | Description |
323+
| ------------------- | ------------------ | --------------------------------------------------------- |
324+
| `m` (market) | string | Condition ID |
325+
| `pc` (price change) | array | Price changes by book |
326+
| `t` (timestamp) | string (timestamp) | Timestamp in milliseconds since epoch (UNIX time \* 1000) |
327327

328328
##### PriceChange
329329

330330
NOTE: Filters are mandatory for this topic/type. Example: `["100","200",...]` (collection of token ids)
331331

332-
| Name | Type | Description |
333-
| ---------- | ------ | --------------------------------------------------------------- |
334-
| `asset_id` | string | Asset identifier |
335-
| `hash` | string | Unique hash ID of the book snapshot |
336-
| `price` | string | Price quoted (e.g., `0.5`) |
337-
| `side` | string | Side of the quote: `BUY` or `SELL` |
338-
| `size` | string | Size or volume available at the quoted price (e.g., `0`, `100`) |
339-
| `best_ask` | string | Best ask price |
340-
| `best_bid` | string | Best bid price |
332+
| Name | Type | Description |
333+
| --------------- | ------ | --------------------------------------------------------------- |
334+
| `a` (asset_id) | string | Asset identifier |
335+
| `h` (hash) | string | Unique hash ID of the book snapshot |
336+
| `p` (price) | string | Price quoted (e.g., `0.5`) |
337+
| `s` (side) | string | Side of the quote: `BUY` or `SELL` |
338+
| `si` (size) | string | Size or volume available at the quoted price (e.g., `0`, `100`) |
339+
| `ba` (best_ask) | string | Best ask price |
340+
| `bb` (best_bid) | string | Best bid price |
341341

342342
#### AggOrderbook
343343

0 commit comments

Comments
 (0)