Get token price in fiat (VET/VTHO/B3TR)
getTokenFiatPriceGet the current price of VET, VTHO, or B3TR tokens in USD, EUR, or GBP using VeChain's on-chain Energy Oracle.
Instructions
Get the current price of VET, VTHO, or B3TR in a given fiat currency using the on-chain VeChain Energy Oracle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fiat | Yes | Fiat currency to return the price in (USD, EUR, GBP), case-insensitive | |
| token | Yes | Token symbol to query (VET, VTHO, or B3TR, case-insensitive) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fiat | Yes | ||
| error | No | Optional error message if the price could not be fetched | |
| price | Yes | Current price of the token in the selected fiat currency; NaN when unavailable | |
| token | Yes | ||
| source | Yes |