Skip to content

Commit 45ddfa8

Browse files
committed
update algorithm
1 parent b73d175 commit 45ddfa8

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

pages/lazer/payload-reference.mdx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Main aggregate price calculated from all contributing publishers
9393

9494
- **Type**: `optional non-zero i64` (mantissa representation)
9595
- **Availability**: Only included if requested in subscription properties
96-
- **Algorithm**: Robust statistical aggregation using median-based methods with outlier detection
96+
- **Algorithm**: Refer to [price aggregation](../../price-feeds/how-pyth-works/price-aggregation) for the current algorithm
9797
- **Invariants**: Non-zero when present (null values filtered out)
9898

9999
#### Data Publisher Count - `publisher_count`
@@ -102,7 +102,6 @@ Number of data publishers contributing to this price feed
102102

103103
- **Type**: `u16`
104104
- **Availability**: Always included when any price properties are present
105-
- **Algorithm**: Count of publishers whose data passed validation and quality checks
106105
- **Invariants**: Always positive for valid price feeds
107106

108107
#### Decimal Exponent - `exponent`
@@ -111,7 +110,6 @@ Decimal exponent for price conversion
111110

112111
- **Type**: `i16`
113112
- **Availability**: Always included when price properties are present
114-
- **Algorithm**: Determines decimal placement for all price values in the feed
115113
- **Invariants**: Typically negative (e.g., -8 for USD prices, -18 for token prices)
116114
- **Usage**: Convert mantissa to actual price: `actual_price = mantissa × 10^exponent`
117115
- **Example**: With exponent `-8`, mantissa `1006900000000` becomes `$10,069.00`
@@ -122,7 +120,7 @@ Confidence interval representing price uncertainty
122120

123121
- **Type**: `optional i64` (mantissa representation)
124122
- **Availability**: Only included if requested in subscription properties
125-
- **Algorithm**: Statistical measure derived from publisher price variance and market volatility
123+
- **Algorithm**: Refer to [price aggregation](../../price-feeds/how-pyth-works/price-aggregation) for the current algorithm
126124
- **Invariants**: Positive when present
127125
- **Usage**: Risk management and price quality assessment
128126

@@ -134,7 +132,7 @@ Highest bid price across all contributing publishers
134132

135133
- **Type**: `optional non-zero i64` (mantissa representation)
136134
- **Availability**: Only included if requested in subscription properties
137-
- **Algorithm**: Maximum bid price from all publishers with active order book data
135+
- **Algorithm**: Refer to [price aggregation](../../price-feeds/how-pyth-works/price-aggregation) for the current algorithm
138136
- **Invariants**: Non-zero when present, typically ≤ current price
139137

140138
#### Lowest Market Ask - `best_ask_price`
@@ -143,7 +141,7 @@ Lowest ask price across all contributing publishers
143141

144142
- **Type**: `optional non-zero i64` (mantissa representation)
145143
- **Availability**: Only included if requested in subscription properties
146-
- **Algorithm**: Minimum ask price from all publishers with active order book data
144+
- **Algorithm**: Refer to [price aggregation](../../price-feeds/how-pyth-works/price-aggregation) for the current algorithm
147145
- **Invariants**: Non-zero when present, typically ≥ current price
148146

149147
### Derivatives Properties (FundingRate Feed Type Only)
@@ -154,7 +152,6 @@ Current funding rate for perpetual futures contracts
154152

155153
- **Type**: `optional i64` (mantissa representation)
156154
- **Availability**: Only for FeedKind::FundingRate feeds, only if requested in subscription
157-
- **Algorithm**: Interest rate differential: `(PerpetualsPrice - IndexPrice) / IndexPrice`
158155
- **Invariants**: Can be positive (longs pay shorts) or negative (shorts pay longs)
159156

160157
#### Funding Payment Timestamp - `funding_timestamp`

0 commit comments

Comments
 (0)