Skip to main content

Find Oracle Summary by ID

Retrieves summary information about an oracle with the specified ID and integration code.

Request

GET /v2/admin/oracles/{oracleID}/summary

Parameters

NameTypeInDescription
oracleIDstringpathRequired. The ID of the oracle to retrieve summary for
codestringqueryRequired. The integration code identifier

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication

Example

curl --location '{{baseUrl}}/v2/admin/oracles/677ed6e3cc111aea14a3dfc3/summary?code=IOG' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'

Response

{
"name": "İŞ PORTFÖY GÜMÜŞ SERBEST FON",
"code": "IOG",
"description": "TEFAS Gümüş Fonu",
"total_value": {
"id": "68fe8c129367fd414b227c7a",
"amount": 9724632629.88,
"decimal": 6,
"symbol": "ISCN",
"address": "0x073c0196e516a0e77b1c804d1825fb1bad23895d"
},
"per_price": {
"id": "68fe8c129367fd414b227c7a",
"amount": 9.951079,
"decimal": 6,
"symbol": "ISCN",
"address": "0x073c0196e516a0e77b1c804d1825fb1bad23895d"
},
"total_supply": 977244083
}

Response Fields

FieldTypeDescription
namestringName of the oracle
codestringIntegration code identifier
descriptionstringDescription of the oracle
total_valueobjectTotal value information
total_value.idstringCurrency token ID
total_value.amountnumberTotal value amount
total_value.decimalintegerNumber of decimal places
total_value.symbolstringCurrency symbol (e.g., "ISCN")
total_value.addressstringContract address of the currency token
per_priceobjectPrice per unit information
per_price.idstringCurrency token ID
per_price.amountnumberPrice per unit amount
per_price.decimalintegerNumber of decimal places
per_price.symbolstringCurrency symbol (e.g., "ISCN")
per_price.addressstringContract address of the currency token
total_supplynumberTotal supply amount

Status Codes

Status CodeDescription
200Success - Oracle summary retrieved successfully
400Bad Request - Invalid oracle ID or code parameter
401Unauthorized - Invalid or missing authentication token
404Not Found - Oracle does not exist
500Internal Server Error