Financial contract facing Oracle interface.

Interface used by financial contracts to interact with the Oracle. Voters will use a different interface.

requestPrice(bytes32 identifier, uint256 time) external

Enqueues a request (if a request isn’t already present) for the given identifier, time pair.

hasPrice(bytes32 identifier, uint256 time) → bool external

Whether the price for identifier and time is available.

getPrice(bytes32 identifier, uint256 time) → int256 price external

Gets the price for identifier and time if it has already been requested and resolved.

If the price is not available, the method reverts.

© UMA Project 2018-2019