> ## Documentation Index
> Fetch the complete documentation index at: https://pmxt.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch Oracle Round

> Returns the latest Chainlink oracle round for a price feed.



## OpenAPI

````yaml /api-reference/openapi.json get /api/feeds/{feed}/fetchOracleRound
openapi: 3.0.0
info:
  title: PMXT Hosted API
  description: >-
    One API for supported prediction markets. Hosted catalog search in under
    10ms, a unified schema for supported venues, and venue-native trading where
    venues expose writes.
  version: 2.54.0
servers:
  - url: https://api.pmxt.dev
    description: Hosted PMXT (production)
security: []
tags:
  - name: Hosted
    description: >-
      Requires a PMXT API key. These endpoints use the cross-venue catalog and
      have no local equivalent.
  - name: Local Only
    description: >-
      Executed locally by the SDK against the venue. Never proxied through PMXT
      servers.
  - name: Data Feeds
    description: >-
      Auxiliary price and oracle data feeds (Binance, Chainlink).
      CCXT-compatible method names and response shapes.
paths:
  /api/feeds/{feed}/fetchOracleRound:
    get:
      tags:
        - Data Feeds
      summary: Fetch Oracle Round
      description: Returns the latest Chainlink oracle round for a price feed.
      operationId: feedFetchOracleRound
      parameters:
        - in: path
          name: feed
          schema:
            type: string
            enum:
              - binance
              - chainlink
          required: true
          description: The data feed provider.
        - in: query
          name: feed
          required: true
          schema:
            type: string
          description: Price feed pair (e.g. BTC/USD)
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/FeedOracleRound'
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: python
          label: Python
          source: >-
            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})")
        - lang: javascript
          label: TypeScript
          source: >-
            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}`);
components:
  schemas:
    FeedOracleRound:
      type: object
      description: Chainlink oracle price round.
      properties:
        feed:
          type: string
          description: Price feed pair (e.g. BTC/USD)
        roundId:
          type: string
        answer:
          type: number
          description: Oracle price
        startedAt:
          type: integer
        updatedAt:
          type: integer
        answeredInRound:
          type: string
        decimals:
          type: integer
        description:
          type: string
      required:
        - feed
        - roundId
        - answer
        - startedAt
        - updatedAt
        - answeredInRound
        - decimals
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Required when calling the hosted API directly (curl, requests, fetch).
        SDK users pass credentials via constructor params instead.

````