Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Get the list of supported chain ids
title: "/v1/chains"
description: Get the list of supported chain ids
full: true
_openapi:
Expand All @@ -14,9 +14,4 @@ _openapi:

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage
document={"https://fortuna-staging.dourolabs.app/docs/openapi.json"}
operations={[{ path: "/v1/chains", method: "get" }]}
webhooks={[]}
hasHead={false}
/>
<APIPage document={"https://fortuna-staging.dourolabs.app/docs/openapi.json"} operations={[{"path":"/v1/chains","method":"get"}]} webhooks={[]} hasHead={false} />
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Returns the logs of all requests captured by the keeper.
title: "/v1/logs"
description: >-
Returns the logs of all requests captured by the keeper.

Expand Down Expand Up @@ -32,9 +32,4 @@ _openapi:

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage
document={"https://fortuna-staging.dourolabs.app/docs/openapi.json"}
operations={[{ path: "/v1/logs", method: "get" }]}
webhooks={[]}
hasHead={false}
/>
<APIPage document={"https://fortuna-staging.dourolabs.app/docs/openapi.json"} operations={[{"path":"/v1/logs","method":"get"}]} webhooks={[]} hasHead={false} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Overview
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APICards>
<APICard href="/api-reference/entropy/fortuna/chain_ids" title="/v1/chains" method="GET" description="Get the list of supported chain ids" />
<APICard href="/api-reference/entropy/fortuna/revelation" title="/v1/chains/{chain_id}/revelations/{sequence}" method="GET" description="Reveal the random value for a given sequence number and blockchain." />
<APICard href="/api-reference/entropy/fortuna/explorer" title="/v1/logs" method="GET" description="Returns the logs of all requests captured by the keeper." />
</APICards>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"title": "Fortuna",
"pages": [
"index",
"chain_ids",
"revelation",
"explorer"
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Reveal the random value for a given sequence number and blockchain.
title: "/v1/chains/{chain_id}/revelations/{sequence}"
description: >-
Reveal the random value for a given sequence number and blockchain.

Expand Down Expand Up @@ -44,11 +44,4 @@ _openapi:

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage
document={"https://fortuna-staging.dourolabs.app/docs/openapi.json"}
operations={[
{ path: "/v1/chains/{chain_id}/revelations/{sequence}", method: "get" },
]}
webhooks={[]}
hasHead={false}
/>
<APIPage document={"https://fortuna-staging.dourolabs.app/docs/openapi.json"} operations={[{"path":"/v1/chains/{chain_id}/revelations/{sequence}","method":"get"}]} webhooks={[]} hasHead={false} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"title": "Entropy",
"pages": [
"fortuna"
]
}
9 changes: 9 additions & 0 deletions apps/developer-hub/content/docs/api-reference/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"root": true,
"title": "API Reference",
"icon": "Code",
"pages": [
"entropy",
"pyth-core"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: "/api/get_price_feed"
description: >-
**Deprecated: use /v2/updates/price/{publish_time} instead**


Get a price update for a price feed with a specific timestamp


Given a price feed id and timestamp, retrieve the Pyth price update closest to
that timestamp.
full: true
_openapi:
method: GET
route: /api/get_price_feed
toc: []
structuredData:
headings: []
contents:
- content: >-
**Deprecated: use /v2/updates/price/{publish_time} instead**


Get a price update for a price feed with a specific timestamp


Given a price feed id and timestamp, retrieve the Pyth price update
closest to that timestamp.
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document={"https://hermes.pyth.network/docs/openapi.json"} operations={[{"path":"/api/get_price_feed","method":"get"}]} webhooks={[]} hasHead={false} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: "/api/get_vaa"
description: >-
**Deprecated: use /v2/updates/price/{publish_time} instead**


Get a VAA for a price feed with a specific timestamp


Given a price feed id and timestamp, retrieve the Pyth price update closest to
that timestamp.
full: true
_openapi:
method: GET
route: /api/get_vaa
toc: []
structuredData:
headings: []
contents:
- content: >-
**Deprecated: use /v2/updates/price/{publish_time} instead**


Get a VAA for a price feed with a specific timestamp


Given a price feed id and timestamp, retrieve the Pyth price update
closest to that timestamp.
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document={"https://hermes.pyth.network/docs/openapi.json"} operations={[{"path":"/api/get_vaa","method":"get"}]} webhooks={[]} hasHead={false} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: "/api/get_vaa_ccip"
description: >-
**Deprecated: use /v2/updates/price/{publish_time} instead**


Get a VAA for a price feed using CCIP


This endpoint accepts a single argument which is a hex-encoded byte string of
the following form:

`<price feed id (32 bytes> <publish time as unix timestamp (8 bytes, big
endian)>`
full: true
_openapi:
method: GET
route: /api/get_vaa_ccip
toc: []
structuredData:
headings: []
contents:
- content: >-
**Deprecated: use /v2/updates/price/{publish_time} instead**


Get a VAA for a price feed using CCIP


This endpoint accepts a single argument which is a hex-encoded byte
string of the following form:

`<price feed id (32 bytes> <publish time as unix timestamp (8 bytes,
big endian)>`
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document={"https://hermes.pyth.network/docs/openapi.json"} operations={[{"path":"/api/get_vaa_ccip","method":"get"}]} webhooks={[]} hasHead={false} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Overview
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APICards>
<APICard href="/api-reference/pyth-core/hermes/get_price_feed" title="/api/get_price_feed" method="GET" description="Get a price update for a price feed with a specific timestamp Given a price feed id and timestamp, retrieve the Pyth price update closest to that timestamp." />
<APICard href="/api-reference/pyth-core/hermes/get_vaa" title="/api/get_vaa" method="GET" description="Get a VAA for a price feed with a specific timestamp Given a price feed id and timestamp, retrieve the Pyth price update closest to that timestamp." />
<APICard href="/api-reference/pyth-core/hermes/get_vaa_ccip" title="/api/get_vaa_ccip" method="GET" description="Get a VAA for a price feed using CCIP This endpoint accepts a single argument which is a hex-encoded byte string of the following form: `<price feed id (32 bytes> <publish time as unix timestamp (8 bytes, big endian)>`" />
<APICard href="/api-reference/pyth-core/hermes/latest_price_feeds" title="/api/latest_price_feeds" method="GET" description="Get the latest price updates by price feed id." />
<APICard href="/api-reference/pyth-core/hermes/latest_vaas" title="/api/latest_vaas" method="GET" description="Get VAAs for a set of price feed ids." />
<APICard href="/api-reference/pyth-core/hermes/price_feed_ids" title="/api/price_feed_ids" method="GET" description="Get the set of price feed IDs." />
<APICard href="/api-reference/pyth-core/hermes/price_feeds_metadata" title="/v2/price_feeds" method="GET" description="Get the set of price feeds." />
<APICard href="/api-reference/pyth-core/hermes/latest_price_updates" title="/v2/updates/price/latest" method="GET" description="Get the latest price updates by price feed id." />
<APICard href="/api-reference/pyth-core/hermes/price_stream_sse_handler" title="/v2/updates/price/stream" method="GET" description="SSE route handler for streaming price updates." />
<APICard href="/api-reference/pyth-core/hermes/timestamp_price_updates" title="/v2/updates/price/{publish_time}" method="GET" description="Get the latest price updates by price feed id." />
<APICard href="/api-reference/pyth-core/hermes/latest_publisher_stake_caps" title="/v2/updates/publisher_stake_caps/latest" method="GET" description="Get the most recent publisher stake caps update data." />
<APICard href="/api-reference/pyth-core/hermes/latest_twaps" title="/v2/updates/twap/{window_seconds}/latest" method="GET" description="Get the latest TWAP by price feed id with a custom time window." />
</APICards>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: "/api/latest_price_feeds"
description: >-
**Deprecated: use /v2/updates/price/latest instead**


Get the latest price updates by price feed id.


Given a collection of price feed ids, retrieve the latest Pyth price for each
price feed.
full: true
_openapi:
method: GET
route: /api/latest_price_feeds
toc: []
structuredData:
headings: []
contents:
- content: >-
**Deprecated: use /v2/updates/price/latest instead**


Get the latest price updates by price feed id.


Given a collection of price feed ids, retrieve the latest Pyth price
for each price feed.
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document={"https://hermes.pyth.network/docs/openapi.json"} operations={[{"path":"/api/latest_price_feeds","method":"get"}]} webhooks={[]} hasHead={false} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: "/v2/updates/price/latest"
description: >-
Get the latest price updates by price feed id.


Given a collection of price feed ids, retrieve the latest Pyth price for each
price feed.
full: true
_openapi:
method: GET
route: /v2/updates/price/latest
toc: []
structuredData:
headings: []
contents:
- content: >-
Get the latest price updates by price feed id.


Given a collection of price feed ids, retrieve the latest Pyth price
for each price feed.
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document={"https://hermes.pyth.network/docs/openapi.json"} operations={[{"path":"/v2/updates/price/latest","method":"get"}]} webhooks={[]} hasHead={false} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: "/v2/updates/publisher_stake_caps/latest"
description: Get the most recent publisher stake caps update data.
full: true
_openapi:
method: GET
route: /v2/updates/publisher_stake_caps/latest
toc: []
structuredData:
headings: []
contents:
- content: Get the most recent publisher stake caps update data.
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document={"https://hermes.pyth.network/docs/openapi.json"} operations={[{"path":"/v2/updates/publisher_stake_caps/latest","method":"get"}]} webhooks={[]} hasHead={false} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: "/v2/updates/twap/{window_seconds}/latest"
description: >-
Get the latest TWAP by price feed id with a custom time window.


Given a collection of price feed ids, retrieve the latest Pyth TWAP price for
each price feed.
full: true
_openapi:
method: GET
route: /v2/updates/twap/{window_seconds}/latest
toc: []
structuredData:
headings: []
contents:
- content: >-
Get the latest TWAP by price feed id with a custom time window.


Given a collection of price feed ids, retrieve the latest Pyth TWAP
price for each price feed.
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document={"https://hermes.pyth.network/docs/openapi.json"} operations={[{"path":"/v2/updates/twap/{window_seconds}/latest","method":"get"}]} webhooks={[]} hasHead={false} />
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: "/api/latest_vaas"
description: >-
**Deprecated: use /v2/updates/price/latest instead**


Get VAAs for a set of price feed ids.


Given a collection of price feed ids, retrieve the latest VAA for each. The
returned VAA(s) can

be submitted to the Pyth contract to update the on-chain price. If VAAs are
not found for every

provided price ID the call will fail.
full: true
_openapi:
method: GET
route: /api/latest_vaas
toc: []
structuredData:
headings: []
contents:
- content: >-
**Deprecated: use /v2/updates/price/latest instead**


Get VAAs for a set of price feed ids.


Given a collection of price feed ids, retrieve the latest VAA for
each. The returned VAA(s) can

be submitted to the Pyth contract to update the on-chain price. If
VAAs are not found for every

provided price ID the call will fail.
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document={"https://hermes.pyth.network/docs/openapi.json"} operations={[{"path":"/api/latest_vaas","method":"get"}]} webhooks={[]} hasHead={false} />
Loading
Loading