How to fetch and use real-time price feeds for Solayer tokens using Pyth Network
sUSD
, sSOL
, and Layer
using Pyth Network.
It is intended for developers integrating on-chain or off-chain price functionality into applications or smart contracts.
Token | Feed Symbol | Pyth Price Feed URL |
---|---|---|
Layer | Crypto.LAYER/USD | https://www.pyth.network/price-feeds/crypto-layer-usd |
sSOL | Crypto.sSOL/SOL::RR | https://www.pyth.network/price-feeds/crypto-ssol-sol-rr |
sUSD | Crypto.sUSD/USD::RR | https://www.pyth.network/price-feeds/crypto-susd-usd-rr |
price
confidence_interval
expo
status == Trading
hermes-client
or calling the get_price_updates
API for secure off-chain usage.
price-service-sdk
is deprecated and should not be used.api/latest_price
HTTP endpoint is still functional but not recommended for production use:
pythnet
and devnet