---
title: "Set asset price"
method: POST
path: "/assets/prices/{id}"
tags: ["Blockchains & assets"]
---

# Set asset price

`POST /assets/prices/{id}`

## Request

- Base URL: `https://api.fireblocks.io/v1`
- URL: `https://api.fireblocks.io/v1/assets/prices/{id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/fireblocks/apis/fireblocks-api/docs/assets/prices/:id/post.ts> (a function with typed inputs; its response is checked against the schema)

Set asset price for the given asset id. Returns the asset price response.

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- SetAssetPriceRequest
  - `currency` string, required: Currency (according to ISO 4217 currency codes)
  - `price` number, required: Price in currency

## Response `200`

Asset price has been set successfully.

- AssetPriceResponse
  - `legacyId` string, required: The ID of the asset
  - `lastUpdateAt` number, required: Time of last price update
  - `currency` string, required: Currency (according to ISO 4217 currency codes)
  - `price` number, required: Price in currency
  - `source` 'PUBLIC' | 'PRIVATE', required: Source of the price data

## Other responses

- `403`: - Tenant is not allowed to set rate. Error code: 1002.
- `404`: - Currency not found. Error code 1001
- `default`: Error Response

---

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