Pyth Network Price Feeds
Fetch Aptos price feed update events for versions 2382400000
to 2382410000
for identifier 0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43
.
curl -s --location --request GET \
"https://aptos.app.pangea.foundation/v1/api/pyth?chains=APTOS&from_block=2382400000&to_block=2382410000&identifier__in=0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43" \
--header "Accept: application/jsonstream" \
--header "Accept-Encoding: gzip" --compressed \
--header "Authorization: Basic $PANGEA_AUTH" | jq
Response
{
...
{
"block_number": 2382409732,
"transaction_hash": "0x9af325a2c45ec46fab8ba9a3682ed4341ba48be1c2e720b713bdbef0dd273da1",
"log_index": 20,
"timestamp": 1739913181365474,
"identifier": "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43",
"price": 9490383937348,
"price_exponent": -8,
"price_confidence": 5639062651,
"price_timestamp": 1739913179,
"ema": 9416997400000,
"ema_exponent": -8,
"ema_confidence": 4929064600,
"ema_timestamp": 1739913179,
"pyth_timestamp": 1739913181365474
}
}
Fetch Movement price feed update events for versions 600000
to 610000
.
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,
"timestamp": 1742324586190237,
"identifier": "0x6bf748c908767baa762a1563d454ebec2d5108f8ee36d806aadacc8f0a075b6d",
"price": 42662858,
"price_exponent": -8,
"price_confidence": 46314,
"price_timestamp": 1742324575,
"ema": 42483857,
"ema_exponent": -8,
"ema_confidence": 45164,
"ema_timestamp": 1742324575,
"pyth_timestamp": 1742324586190237
}
}
Query parameters
aptos.app.pangea.foundation/v1/api/pyth?chains=APTOS
movement.app.pangea.foundation/v1/api/pyth?chains=MOVEMENT
chains
: Filters the data bychain
.from_block
: Filters the data by a startingversion
. As Move chains use a per-transaction versioned database, we useversion
interchangably withblock_number
and omit blocks altogether.to_block
: Filters the data by an endingversion
. As Move chains use a per-transaction versioned database, we useversion
interchangably withblock_number
and omit blocks altogether.identifier__in
/price_id__in
: Filters the data by a list ofidentifier
.