Skip to content

Commit d823333

Browse files
committed
add exponent in the properties
1 parent bbfc05b commit d823333

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

pages/lazer/payload-reference.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ Main aggregate price calculated from all contributing publishers
114114
- **Availability**: Only included if requested in subscription properties
115115
- **Algorithm**: Robust statistical aggregation using median-based methods with outlier detection
116116
- **Invariants**: Non-zero when present (null values filtered out)
117-
- **Usage**: Primary price for trading decisions and portfolio valuation
118117

119118
#### Data Publisher Count - `publisher_count`
120119

@@ -126,6 +125,17 @@ Number of data publishers contributing to this price feed
126125
- **Invariants**: Always positive for valid price feeds
127126
- **Business Value**: Higher count indicates more robust price discovery and reduced manipulation risk
128127

128+
#### Decimal Exponent - `exponent`
129+
130+
Power of 10 to apply for decimal representation
131+
132+
- **Type**: `i16`
133+
- **Availability**: Always included when price properties are present
134+
- **Algorithm**: Determines decimal placement for all price values in the feed
135+
- **Invariants**: Typically negative (e.g., -8 for USD prices, -18 for token prices)
136+
- **Usage**: Convert mantissa to actual price: `actual_price = mantissa × 10^exponent`
137+
- **Example**: With exponent `-8`, mantissa `1006900000000` becomes `$10,069.00`
138+
129139
#### Price Confidence Interval - `confidence`
130140

131141
Confidence interval representing price uncertainty
@@ -296,7 +306,7 @@ Lazer provides multiple cryptographic formats to support different blockchain ec
296306

297307
</Callout>
298308

299-
</div>
309+
</div>
300310

301311
</div>
302312

0 commit comments

Comments
 (0)