import Tabs from ‘@theme/Tabs’;
import TabItem from ‘@theme/TabItem’;
Oracles are smart contracts that enable you to query the current price of an asset. Since smart contracts cannot connect to
internet and pull information, Oracles rely on having someone constantly updating their prices. Because of that, be mindful
when using an oracle that there might be a delay between the market’s latest information and the Oracles data.
Price Oracle – Promixityfi
- Account: price-oracle.near | price-oracle.testnet
- Creator: Proximity
- Smart contract: https://github.com/NearDeFi/price-oracle
- Bot to fill contract: https://github.com/NearDeFi/near-price-oracle-bot
NEAR_ENV=mainnet near view priceoracle.near get_assets
Get Assets Price
NEAR_ENV=mainnet near view priceoracle.near get_price_data
- Divide the returned
10000to obtain the price in USD.