---
title: "Get Price"
method: GET
path: "/defi/v1/oracle/getprice"
tags: ["oracle"]
---

# Get Price

`GET /defi/v1/oracle/getprice`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/oracle/getprice`
- Auth: API key in header `X-API-Key`

Fetch the price of a specified token in USDT from supported oracle protocols on both EVM and non-EVM chains. This endpoint allows you to retrieve real-time or historical pricing data for a token by specifying an oracle or querying all available oracles.

> 💡 
**Compute Unit Value:** `25` (Fixed)

## Query parameters

- `asset` string, required: The token name for which the price needs to be fetched (in USDT).
- `oracleId` '1000' | '1001' | '1002' | '1003' | '1004' | '1100' | '1200' | '1300' | '1301' | '1302' | '1303': The unique ID to specify the oracle protocol for queries or transactions.
- `oracleName` string: The name of the oracle protocol to use.
- `timestamp` string: The specific point in time for which the price should be fetched, if required.
- `hours` string: The array of hours for which the price should be fetched, if required.
- `days` string: The array of days for which the price should be fetched, if required.
- `weeks` string: The array of weeks for which the price should be fetched, if required.
- `vsCurrencies` string: A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
