Python
from pmxt.feed_client import FeedClient
feed = FeedClient("chainlink", pmxt_api_key="YOUR_PMXT_API_KEY")
rounds = feed.fetch_oracle_history("BTC/USD", limit=10)
for r in rounds:
print(f"{r.round_id}: ${r.answer}")import { FeedClient } from "pmxtjs";
const feed = new FeedClient("chainlink", { pmxtApiKey: "YOUR_PMXT_API_KEY" });
const rounds = await feed.fetchOracleHistory("BTC/USD", 10);
for (const r of rounds) {
console.log(`${r.roundId}: $${r.answer}`);
}curl --request GET \
--url https://api.pmxt.dev/api/feeds/{feed}/fetchOracleHistory \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pmxt.dev/api/feeds/{feed}/fetchOracleHistory"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pmxt.dev/api/feeds/{feed}/fetchOracleHistory")
.header("Authorization", "Bearer <token>")
.asString();{
"success": true,
"data": [
{
"feed": "<string>",
"roundId": "<string>",
"answer": 123,
"startedAt": 123,
"updatedAt": 123,
"answeredInRound": "<string>",
"decimals": 123,
"description": "<string>"
}
]
}Data Feeds
Fetch Oracle History
Returns historical Chainlink oracle rounds for a price feed.
GET
/
api
/
feeds
/
{feed}
/
fetchOracleHistory
Python
from pmxt.feed_client import FeedClient
feed = FeedClient("chainlink", pmxt_api_key="YOUR_PMXT_API_KEY")
rounds = feed.fetch_oracle_history("BTC/USD", limit=10)
for r in rounds:
print(f"{r.round_id}: ${r.answer}")import { FeedClient } from "pmxtjs";
const feed = new FeedClient("chainlink", { pmxtApiKey: "YOUR_PMXT_API_KEY" });
const rounds = await feed.fetchOracleHistory("BTC/USD", 10);
for (const r of rounds) {
console.log(`${r.roundId}: $${r.answer}`);
}curl --request GET \
--url https://api.pmxt.dev/api/feeds/{feed}/fetchOracleHistory \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pmxt.dev/api/feeds/{feed}/fetchOracleHistory"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pmxt.dev/api/feeds/{feed}/fetchOracleHistory")
.header("Authorization", "Bearer <token>")
.asString();{
"success": true,
"data": [
{
"feed": "<string>",
"roundId": "<string>",
"answer": 123,
"startedAt": 123,
"updatedAt": 123,
"answeredInRound": "<string>",
"decimals": 123,
"description": "<string>"
}
]
}Authorizations
Required when calling the hosted API directly (curl, requests, fetch). SDK users pass credentials via constructor params instead.
Path Parameters
The data feed provider.
Available options:
binance, chainlink Query Parameters
Price feed pair (e.g. BTC/USD)
Max rounds to return (default 500)
Was this page helpful?

