Financial Data Feeds (Mainnet)
This dataset provides near real-time update financial data across multiple asset classes. You can utilize financial data feeds to power your DeFi appplications. Below is the addresses of smart contrats associated with Financial Data Feeds.
Similar to other datasets on Band Protocol, data consumers query for financial data by providing an input key in return for an output value. We cover the specification in this subsection.
An input key consists of two parts, concatnated with
/ as the delimiter.
- The first part, Query Type, is a unique identifier that identifies query type.
- The second part is a variable length parameter as required from corresponding query type.
Examples are provided as follows.
|Key (hex)||Key (ascii)||Explanation|
| || ||Spot price of BTC/USD pair|
| || ||Spot price of ETH/USD pair|
An output value is a 256-bit unsigned integer that represents the output result. Depending on query type, output value may be multiplied by 1018 to maintain arithmetic precision.
Below is the list of query types currently supported in Financial Data Feeds. Each query type comes with its unique keyword to use as the first part of query keys.
Asset Spot Price -
This query returns the current fair price of the given asset. Different providers may have different interpretation of what a fair price is (mid price between spread, last traded price, etc).
parameter: As of the current release, two parameters are supported:
BTC-USDfor BTC/USD price, and
ETH-USDfor ETH/USD price.
output: The final result of this dataset is the median value across all data providers. The final result is multiplied by 1018.