Pyth Network Price Feeds

Fetch price feed update events for versions 0 to 130000.

curl -s --location --request GET \
 "https://movement.app.pangea.foundation/v1/api/pyth?chains=MOVEMENT&from_block=600000&to_block=610000" \
 --header "Accept: application/jsonstream" \
 --header "Accept-Encoding: gzip" --compressed \
 --header "Authorization: Basic $PANGEA_AUTH" | jq

Response

{
  ...
  {
    "block_number": 609198,
    "transaction_hash": "0x9e31cb7ecdb2fdbc54f14b1c99514792c10310e3d355db0316836dad20ed8b26",
    "log_index": 20,
    "identifier": "0x6bf748c908767baa762a1563d454ebec2d5108f8ee36d806aadacc8f0a075b6d",
    "price": 42662858,
    "price_exponent": -8,
    "price_confidence": 46314,
    "price_timestamp": 1742324575,
    "ema": 42483857,
    "ema_exponent": -8,
    "ema_confidence": 45164,
    "ema_timestamp": 1742324575,
    "timestamp": 1742324586190237
  }
}

Query parameters

https://movement.app.pangea.foundation/v1/api/pyth?chains=MOVEMENT

  • chains: Filters the data by chain.
  • from_block: Filters the data by a starting version. As Move chains use a per-transaction versioned database, we use version interchangably with block_number and omit blocks altogether.
  • to_block: Filters the data by an ending version. As Move chains use a per-transaction versioned database, we use version interchangably with block_number and omit blocks altogether.
  • identifier__in / price_id__in: Filters the data by a list of identifier.