Python
from pmxt.feed_client import FeedClient
feed = FeedClient("chainlink", pmxt_api_key="YOUR_PMXT_API_KEY")
round = feed.fetch_oracle_round("BTC/USD")
print(f"Round {round.round_id}: ${round.answer} (decimals: {round.decimals})")import { FeedClient } from "pmxtjs";
const feed = new FeedClient("chainlink", { pmxtApiKey: "YOUR_PMXT_API_KEY" });
const round = await feed.fetchOracleRound("BTC/USD");
console.log(`Round ${round.roundId}: $${round.answer}`);curl --request GET \
--url https://api.pmxt.dev/api/feeds/{feed}/fetchOracleRound \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pmxt.dev/api/feeds/{feed}/fetchOracleRound"
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}/fetchOracleRound")
.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 Round
Returns the latest Chainlink oracle round for a price feed.
GET
/
api
/
feeds
/
{feed}
/
fetchOracleRound
Python
from pmxt.feed_client import FeedClient
feed = FeedClient("chainlink", pmxt_api_key="YOUR_PMXT_API_KEY")
round = feed.fetch_oracle_round("BTC/USD")
print(f"Round {round.round_id}: ${round.answer} (decimals: {round.decimals})")import { FeedClient } from "pmxtjs";
const feed = new FeedClient("chainlink", { pmxtApiKey: "YOUR_PMXT_API_KEY" });
const round = await feed.fetchOracleRound("BTC/USD");
console.log(`Round ${round.roundId}: $${round.answer}`);curl --request GET \
--url https://api.pmxt.dev/api/feeds/{feed}/fetchOracleRound \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pmxt.dev/api/feeds/{feed}/fetchOracleRound"
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}/fetchOracleRound")
.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)
Was this page helpful?

