Skip to main content

Get Oracle Metric Summary

Reads one series from a metric provider's source and returns the market-listing figures the tokenization form prefills from. The source is read on every request; nothing is cached.

  • A figure the source does not publish comes back as null, never as 0, so a published zero stays distinguishable from "no value": leave those inputs as they are.
  • name and description come from the provider's entry for code in its codes list when there is one, otherwise from the provider itself.
  • rental_income carries its currency: it is expressed in the platform's active currency token for the provider's fiat_currency.

Amounts are decimal strings; see Amounts and Percentages.

Required permission: oracle:view

Request​

GET /v2/admin/oracle-metrics/{oracle_metric_id}/summary

Parameters​

NameTypeInDescription
oracle_metric_idstringpathRequired. Metric provider id (24-character hex)
codestringqueryRequired. Series code to read

Headers​

NameDescription
AuthorizationRequired. Bearer <access_token>

Example​

curl --request GET \
--url '{{baseUrl}}/v2/admin/oracle-metrics/6a5d0206379ebd02e53bf1a1/summary?code=TOGG1' \
--header 'Authorization: Bearer <access_token>'

Response​

{
"name": "Togg Şarj İstasyonu 1",
"code": "TOGG1",
"description": "İstanbul Ataşehir hızlı şarj istasyonu",
"term_duration_in_months": 36,
"min_purchase_quantity": 1,
"max_purchase_quantity": null,
"min_tokens_required_for_rental_income": 10,
"rental_payment_period_in_days": 30,
"listed_supply": 5000,
"rental_income": {
"id": "68fe8c129367fd414b227c7a",
"amount": "12500.75",
"decimal": 6,
"symbol": "ISCN",
"address": "0x073c0196e516a0e77b1c804d1825fb1bad23895d"
}
}

Response Fields​

FieldTypeDescription
namestringDisplay name of the series
codestringThe requested code
descriptionstringDescription of the series
term_duration_in_monthsinteger | nullTerm of the asset in months
min_purchase_quantityinteger | nullMinimum tokens per purchase
max_purchase_quantityinteger | nullMaximum tokens per purchase
min_tokens_required_for_rental_incomeinteger | nullTokens a holder needs to receive rental income
rental_payment_period_in_daysinteger | nullRental payment period in days
listed_supplyinteger | nullNumber of tokens listed
rental_incomeobject | nullRental income, in the currency token of the provider's fiat_currency
rental_income.idstringCurrency token id
rental_income.amountstringRental income, decimal string
rental_income.decimalintegerDecimals of the currency token
rental_income.symbolstringCurrency token symbol
rental_income.addressstringCurrency token contract address (empty when it has none)

Errors​

StatusCodeDescription
40010015code is missing — see details
40010000oracle_metric_id is not a valid 24-character hex id
40010001Metric provider not found or deleted (domain 53)
400-1The summary could not be built: the source has no data for the code, a value is not a number, or the source publishes a rental income but no active currency token exists for the provider's fiat_currency. message names which
50010000The source or a store could not be reached

See Errors for the error format and common codes.