get_oracle_price
Retrieve the current on-chain price for any supported iAsset from Indigo Protocol's price oracle, including delisted assets and Pyth-sourced prices.
Instructions
Get the on-chain price for an iAsset from its price oracle. Handles OracleNft (reads the oracle UTxO datum), Delisted (returns the delisted price), and Pyth/DeferredValidation (delegates to get_pyth_price).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"asset": "<asset>"
},
"name": "get_oracle_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes |