# To gather a list of all Yield Platforms Supported (e.g. AAVEV2, COMPOUND, etc.) https://api.tiingo.com/tiingo/crypto-yield/platforms # To request meta data for all yield pools, use the following REST endpoint https://api.tiingo.com/tiingo/crypto-yield/pools # Yield Pool Tick Metrics https://api.tiingo.com/tiingo/crypto-yield/ticks # Yield Pool Historical OHLC Metrics https://api.tiingo.com/tiingo/crypto-yield/<poolCode>/metrics
Just remember, you will need your token in order to connect. Keep it safe.
Tiingo reads yield data directly on chain from various Cryptocurrency lending platforms such as AAVE, Compound, BenQi, Solend, and MakerDAO.
The Benefits of Tiingo Crypto Yield
To understand the relationship between Yield Lending Platforms and Yield Pools on the Tiingo API, think of the relationship of Exchanges and Cryptocurrencies.
Yield Platforms are similar to exchanges, and Yield Pools are similar to Cryptocurrencies in that they are mapped to specific Yield Platforms. E.g. "aavev2_usdc" Yield Pool is listed on the AAVE Yield Platform.
You can use the Yield Platform and Yield Pool meta endpoints to determine which pools belong on which platforms, then use the poolCode to query specific lending information from each Yield Pool via the metrics and ticks endpoints.
This endpoint returns the various Platforms supported by Tiingo. The platformCode acts as a unique identifier you can use to map Pools to.
# To gather a list of all Yield Platforms Supported (e.g. AAVEV2, COMPOUND, etc.) https://api.tiingo.com/tiingo/crypto-yield/platforms
name
platformCode
network
Yield pools are pools that belong to a specific Platform. You can treat poolCode similarly as cryptocurrency tickers.
Pool codes will be unique identifiers that you can query tick and metric data from.
# To request meta data for all yield pools, use the following REST endpoint
https://api.tiingo.com/tiingo/crypto-yield/pools
# To request meta data for a specific yield pools, use the following REST endpoint
https://api.tiingo.com/tiingo/crypto-yield/pools?poolCodes=<poolCodes>
# To request meta data for a specific yield platforms, use the following REST endpoint
https://api.tiingo.com/tiingo/crypto-yield/pools?platformCodes=<platformCodes>
name
poolCode
yieldPlatform
borrowRateDenomination
totalBorrowDenomination
supplyRateDenomination
totalSupplyDenomination
This endpoint allows you to query the latest metrics for the various yield pools in real-time as our processor reads changes from chain.
If you need historical values, please see the metrics ohlc endpoint below (Section 2.4.5).
# Yield Pool Metric Ticks https://api.tiingo.com/tiingo/crypto-yield/ticks # Yield Pool Metric Ticks filtered by Pool Code https://api.tiingo.com/tiingo/crypto-yield/ticks?poolCodes=<poolCode>
date
poolCode
variableBorrowRate
totalStableBorrowAmount
totalVariableBorrowAmount
totalBorrowAmount
supplyRate
totalSupplyAmount
availableLiquidityAmount
This endpoint allows you to query metrics for the various yield pools, and resample the data into OHLC values. Data can be resampled to as low as 1 minute bars, and the latest bar will constantly update throughout the minute.
If you need ticks, please see the ticks endpoint below (Section 2.4.5).
# Yield Pool Metrics https://api.tiingo.com/tiingo/crypto-yield/<poolCode>/metrics # Yield Pool Metrics reasmpled to 1 minute bars historically https://api.tiingo.com/tiingo/crypto-yield/<poolCode>/metrics?startDate=2022-09-04&endDate=2022-09-05&resampleFreq=1min
date
openVariableBorrowRate
highVariableBorrowRate
lowVariableBorrowRate
closeVariableBorrowRate
openStableBorrowRate
highStableBorrowRate
lowStableBorrowRate
closeStableBorrowRate
openTotalVariableBorrowAmount
highTotalVariableBorrowAmount
lowTotalVariableBorrowAmount
closeTotalVariableBorrowAmount
openTotalStableBorrowAmount
highTotalStableBorrowAmount
lowTotalStableBorrowAmount
closeTotalStableBorrowAmount
openTotalBorrowAmount
highTotalBorrowAmount
lowTotalBorrowAmount
closeTotalBorrowAmount
openSupplyRate
highSupplyRate
lowSupplyRate
closeSupplyRate
openTotalSupplyAmount
highTotalSupplyAmount
lowTotalSupplyAmount
closeTotalSupplyAmount
openAvailableLiquidityAmount
highAvailableLiquidityAmount
lowAvailableLiquidityAmount
closeAvailableLiquidityAmount
changesDetected