Oracle Feeds API

Composite pricing from Pyth + Switchboard + PLX synthetic feed. Includes confidence and variance to tune bots and risk checks.

Endpoints

  • GET /oracle/latest?symbol=SOL/USD

  • GET /oracle/history/{symbol}?from=...&to=...

curl

curl -s "https://api.plx.fi/v1/oracle/latest?symbol=SOL/USD"
{
  "symbol":"SOL/USD",
  "price":187.34,
  "confidence":0.997,
  "variance":0.0021,
  "sources":[
    {"name":"pyth","price":187.31,"weight":0.5},
    {"name":"switchboard","price":187.35,"weight":0.4},
    {"name":"plx-synth","price":187.37,"weight":0.1}
  ],
  "ts":1735698259
}
curl -s "https://api.plx.fi/v1/oracle/history/SOL%2FUSD?from=1735694000&to=1735698200&interval=60"

TypeScript (polling helper)

Last updated