@0xmonaco/core 1.0.97 → 1.0.98

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.
@@ -1794,17 +1794,17 @@ export function createMonacoWebSocket(baseUrl, options = {}, serverClock = new S
1794
1794
  const subscribeOHLCV = (tradingPairId, tradingMode, interval, handler, priceType, onSnapshot) => {
1795
1795
  // Four-token channel selects the trade-derived candles (back-compat); the
1796
1796
  // optional fifth token selects the price series (`mark` = close-only mark
1797
- // series, `*` = both).
1797
+ // series, `reference` = mark-price OHLC with no volume, `*` = all).
1798
1798
  const channel = priceType === undefined ? `ohlcv:${tradingPairId}:${tradingMode}:${interval}` : `ohlcv:${tradingPairId}:${tradingMode}:${interval}:${priceType}`;
1799
1799
  return subscribe(channel, (rawData) => {
1800
1800
  try {
1801
1801
  const data = rawData;
1802
1802
  const ohlcvData = data.data;
1803
- // Concrete price series of this candle (`trade`/`mark`). Present on
1804
- // every current frame; a wildcard (`*`) subscriber reads it to tell the
1805
- // two streams apart. Omitted when a legacy frame carries no `price_type`.
1803
+ // Concrete price series of this candle (`trade`/`mark`/`reference`).
1804
+ // Present on every current frame; a wildcard (`*`) subscriber reads it
1805
+ // to tell the streams apart. Omitted when a legacy frame carries no `price_type`.
1806
1806
  //
1807
- // Passed through rather than matched against the two known values: a
1807
+ // Passed through rather than matched against the known values: a
1808
1808
  // wildcard subscription accepts any suffix, so a series added
1809
1809
  // server-side after this version reaches this parser, and reporting it
1810
1810
  // as `undefined` would leave a wildcard subscriber unable to do the one
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/core",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "type": "module",
5
5
  "homepage": "https://docs.0xmonaco.com/sdk/typescript",
6
6
  "main": "./dist/index.js",
@@ -19,8 +19,8 @@
19
19
  "viem": "^2.45.2"
20
20
  },
21
21
  "dependencies": {
22
- "@0xmonaco/contracts": "1.0.97",
23
- "@0xmonaco/types": "1.0.97",
22
+ "@0xmonaco/contracts": "1.0.98",
23
+ "@0xmonaco/types": "1.0.98",
24
24
  "@noble/curves": "^2.4.0",
25
25
  "@noble/hashes": "^2.4.0",
26
26
  "http-status-codes": "^2.3.0"