@uniswap/client-data-api 0.0.219 → 0.0.220
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.
|
@@ -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";
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -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.
|