Price at a time (v1)
The first update of one feed at or after publish_time.
Query Parameters
A 32-byte feed ID in hex.
^(0[xX])?[0-9a-fA-F]{64}$Unix time in seconds.
0 <= value <= 4294967295Encoding named in binary.encoding on the v2 routes. The data array is always empty. Validated and ignored on the v1 routes.
"hex"Value in
- "hex"
- "base64"
Include the parsed prices on the v2 routes. Validated and ignored on the v1 routes.
trueDrop unknown IDs instead of answering 404, on the v2 routes. Validated and ignored on the v1 routes.
falseUpdate cadence of the SSE stream and the WebSocket. A fixed-rate channel sends a feed at most once per tick, only when it changed. fixed_rate@50ms is refused. Validated and ignored on the other routes.
"fixed_rate@1000ms"Value in
- "real_time"
- "fixed_rate@200ms"
- "fixed_rate@1000ms"
On the SSE stream, send only the first update of each second. Validated and ignored elsewhere.
falseInclude metadata, on the v1 routes. Validated and ignored on the v2 routes.
falseInclude vaa, which is always the empty string, on the v1 routes. Validated and ignored on the v2 routes.
falseOn the interval route, keep only the first update of each feed in each second. Validated and ignored elsewhere.
trueAccepted for Hermes compatibility. Updates are always ordered, so it changes nothing.
falseResponse Body
application/json
text/plain
text/plain
text/plain
text/plain
application/problem+json
curl -X GET "https://example.com/api/get_price_feed?id=string&publish_time=0"{ "id": "string", "price": { "price": "string", "conf": "string", "expo": 0, "publish_time": 0 }, "ema_price": { "price": "string", "conf": "string", "expo": 0, "publish_time": 0 }, "metadata": { "slot": 0, "emitter_chain": 0, "price_service_receive_time": 0, "prev_publish_time": 0 }, "vaa": "string"}