@uniswap/client-data-api 0.0.219 → 0.0.221

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.
@@ -326,6 +326,24 @@ export declare class GetTokenHistoryVolumeRequest extends Message<GetTokenHistor
326
326
  * @generated from field: repeated uint32 chain_ids = 4;
327
327
  */
328
328
  chainIds: number[];
329
+ /**
330
+ * Ranged (TradingView) mode: when resolution is set (non-UNSPECIFIED) the
331
+ * series covers [start_time, end_time || now] at the given bucket width and
332
+ * duration is ignored. start_time is required in this mode; end_time defaults
333
+ * to now. single_chain (EVM) only. Mirrors GetTokenHistoryOHLC's ranged mode
334
+ * so volume buckets align with that endpoint's candles for any window.
335
+ *
336
+ * @generated from field: optional google.protobuf.Timestamp start_time = 5;
337
+ */
338
+ startTime?: Timestamp;
339
+ /**
340
+ * @generated from field: optional google.protobuf.Timestamp end_time = 6;
341
+ */
342
+ endTime?: Timestamp;
343
+ /**
344
+ * @generated from field: optional data.v2.OhlcResolution resolution = 7;
345
+ */
346
+ resolution?: OhlcResolution;
329
347
  constructor(data?: PartialMessage<GetTokenHistoryVolumeRequest>);
330
348
  static readonly runtime: typeof proto3;
331
349
  static readonly typeName = "data.v2.GetTokenHistoryVolumeRequest";
@@ -402,6 +402,9 @@ GetTokenHistoryVolumeRequest.fields = proto3.util.newFieldList(() => [
402
402
  { no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
403
403
  { no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
404
404
  { no: 4, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
405
+ { no: 5, name: "start_time", kind: "message", T: Timestamp, opt: true },
406
+ { no: 6, name: "end_time", kind: "message", T: Timestamp, opt: true },
407
+ { no: 7, name: "resolution", kind: "enum", T: proto3.getEnumType(OhlcResolution), opt: true },
405
408
  ]);
406
409
  /**
407
410
  * @generated from message data.v2.GetTokenHistoryVolumeResponse
@@ -661,6 +661,15 @@ export declare class TokenPriceData extends Message<TokenPriceData> {
661
661
  * @generated from field: optional double percent_change_1h = 3;
662
662
  */
663
663
  percentChange1h?: number;
664
+ /**
665
+ * USD price ~24h ago — the anchor percent_change_1d is measured against.
666
+ * When set, percent_change_1d is computed at serve time from spot_usd
667
+ * against this anchor (live numerator, 1d-cron-refreshed denominator);
668
+ * unset when the stats pipeline has not resolved an anchor yet.
669
+ *
670
+ * @generated from field: optional double price_24h_ago_usd = 4;
671
+ */
672
+ price24hAgoUsd?: number;
664
673
  constructor(data?: PartialMessage<TokenPriceData>);
665
674
  static readonly runtime: typeof proto3;
666
675
  static readonly typeName = "data.v2.TokenPriceData";
@@ -1613,6 +1622,15 @@ export declare class LaunchStats extends Message<LaunchStats> {
1613
1622
  * @generated from field: optional double price_eth = 8;
1614
1623
  */
1615
1624
  priceEth?: number;
1625
+ /**
1626
+ * USD price ~24h ago — the anchor price_change_percent_24h is measured
1627
+ * against. When set, price_change_percent_24h is computed at serve time
1628
+ * from the live current price against this anchor; unset when the stats
1629
+ * pipeline has not resolved an anchor yet.
1630
+ *
1631
+ * @generated from field: optional double price_24h_ago_usd = 9;
1632
+ */
1633
+ price24hAgoUsd?: number;
1616
1634
  constructor(data?: PartialMessage<LaunchStats>);
1617
1635
  static readonly runtime: typeof proto3;
1618
1636
  static readonly typeName = "data.v2.LaunchStats";
@@ -777,6 +777,7 @@ TokenPriceData.fields = proto3.util.newFieldList(() => [
777
777
  { no: 1, name: "spot_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
778
778
  { no: 2, name: "percent_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
779
779
  { no: 3, name: "percent_change_1h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
780
+ { no: 4, name: "price_24h_ago_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
780
781
  ]);
781
782
  /**
782
783
  * Live on-chain market stats for a single token, USD-denominated.
@@ -1746,6 +1747,7 @@ LaunchStats.fields = proto3.util.newFieldList(() => [
1746
1747
  { no: 6, name: "price_change_percent_24h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1747
1748
  { no: 7, name: "sparkline", kind: "message", T: TimestampedValue, repeated: true },
1748
1749
  { no: 8, name: "price_eth", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1750
+ { no: 9, name: "price_24h_ago_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1749
1751
  ]);
1750
1752
  /**
1751
1753
  * One token launch: the earliest pool a (token, launchpad) pair created.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.219",
3
+ "version": "0.0.221",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },