Blockchains & assets

Set asset price

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

post/assets/prices/{id}

Request

Path parameters

idstring required

The ID of the asset

Headers

Idempotency-Keystring

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Request body

currencystring required

Currency (according to ISO 4217 currency codes)

pricenumber required

Price in currency

Example request

{
  "currency": "USD",
  "price": 3100
}

Response

Asset price has been set successfully.

legacyIdstring required

The ID of the asset

lastUpdateAtnumber required

Time of last price update

currencystring required

Currency (according to ISO 4217 currency codes)

pricenumber required

Price in currency

source'PUBLIC' | 'PRIVATE' required

Source of the price data

Example response

{
  "legacyId": "ETH",
  "lastUpdateAt": 1716898542,
  "currency": "USD",
  "price": 3500,
  "source": "PRIVATE"
}

Changes

No recorded changes to this operation across all 1 revision of this API.