An oracle is a bridge between blockchain smart contracts and the outside world. Smart contracts cannot read external APIs natively because that would break determinism (every node must produce the same result given the same state). Oracles solve this by having a trusted (or trust-minimized) party post external data on-chain, where contracts can read it. Chainlink is the dominant oracle network; others include Pyth, RedStone, and various per-chain native oracles.
Oracles aggregate data from multiple sources, sign or prove it, and write the result to an on-chain feed contract. Smart contracts read from the feed contract. Chainlink uses a decentralized network of node operators that each fetch data from independent sources, agree on a value, and submit it. Pyth uses a different model: data publishers (exchanges, market makers) submit signed prices that consumers pull on demand.
Oracle quality matters: a manipulated oracle is the second most common DeFi exploit (after bridge hacks). Protocols use multiple oracle providers, time-weighted averages, and circuit breakers to limit oracle-manipulation damage.
DeFi cannot exist without oracles. Lending protocols, derivatives, prediction markets, and stablecoins all depend on accurate price feeds. Oracle design (who reports, how often, with what slashing) is core to protocol security.
The free BTC price endpoint and the premium macro endpoint are off-chain analogs of oracle services: they aggregate multiple sources and serve normalized data.