You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/price-feeds/use-real-time-data/solana.mdx
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -243,21 +243,17 @@ The [SDK documentation](https://github.com/pyth-network/pyth-crosschain/tree/mai
243
243
244
244
## Time-Weighted Average Price (TWAP)
245
245
246
-
Pyth also provides Time-Weighted Average Price (TWAP) for Solana applications. TWAP represents the average price over a specified time window, which can be useful for reducing the impact of short-term price volatility.
247
-
248
-
<Callouttype="warning"emoji="⚠️">
249
-
The TWAP window is currently limited to a maximum of 10 minutes (600 seconds).
250
-
</Callout>
246
+
Pyth also provides Time-Weighted Average Price (TWAP) for Solana applications. TWAP represents the average price over a specified time window, which can be useful for reducing the impact of short-term price volatility. The TWAP window is currently limited to a maximum of 10 minutes (600 seconds).
251
247
252
248
### Using TWAP in Solana Programs
253
249
254
-
To use TWAP in your Solana program, import the `TwapUpdate` struct from the Pyth Solana receiver SDK:
250
+
To use TWAP in your Solana program, import the `TwapUpdate` struct from the Pyth Solana receiver SDK. The process for fetching and posting TWAP updates is similar to regular price updates from Hermes.
0 commit comments