Stats
Last updated
Was this helpful?
Last updated
Was this helpful?
/
curl -L \
--url 'https://factor-stats-api.fly.dev/'
No body
Returns statistics for all leverage strategy vaults.
/stats/leverage
curl -L \
--url 'https://factor-stats-api.fly.dev/stats/leverage'
[
{
"protocol": "text",
"market": "text",
"vaultAddress": "text",
"totalDepositUsd": "text",
"totalTvlUsd": "text",
"netAPY": "text",
"apyVote": "text",
"apyVoteProjected": "text",
"voteWeight": "text",
"scaleRewardPriceUsd": "text",
"scaleRewardPerSecond": "text",
"pairTvl": "text",
"pairName": "text",
"isRestaking": true,
"isStakable": true,
"stakedVaultAddress": true,
"strategy": "text",
"borrowRate": "text",
"maxLeverage": "text",
"openedPositions": [],
"apyBoost": "text",
"apyBoostProjected": "text",
"isBoosted": true,
"isScaled": true,
"fetched_at": "text",
"identifier": "text",
"boostRewardTokens": [
{
"vaultAddress": "text",
"tokenAddress": "text",
"tokenSymbol": "text",
"minAmount": "text",
"minAmountFmt": "text",
"totalRewardAmount": "text",
"totalRewardAmountFmt": "text",
"lastUpdateTime": "text",
"periodFinish": "text",
"rewardPerTokenStored": "text",
"rewardPerTokenStoredFmt": "text",
"rewardRate": "text",
"rewardRateFmt": "text",
"tokenDecimal": "text",
"priceUsd": "text",
"apy": "text"
}
],
"assetDetails": {
"priceUsd": "text",
"symbol": "text",
"address": "text",
"supplyApy": "text",
"borrowApr": "text",
"totalSupplyApy": "text",
"totalBorrowApy": "text",
"loanToValue": "text",
"threshold": "text",
"maxLeverage": "text",
"minHealthFactor": "text",
"isAsset": true,
"isDebt": true,
"isDisabled": true,
"market": "text",
"protocol": "text",
"vaultAddress": "text",
"ptTokenMetadata": {
"underlyingTokenSymbol": "text",
"expiryTimestamp": 1,
"pendleMarketAddress": "text",
"isExpired": true,
"underlyingTokenAddress": "text"
},
"additionalSupplyApy": [
{
"label": "text",
"apy": "text"
}
],
"additionalBorrowApy": [
{
"label": "text",
"apy": "text"
}
]
},
"debtDetails": {
"priceUsd": "text",
"symbol": "text",
"address": "text",
"supplyApy": "text",
"borrowApr": "text",
"totalSupplyApy": "text",
"totalBorrowApy": "text",
"loanToValue": "text",
"threshold": "text",
"maxLeverage": "text",
"minHealthFactor": "text",
"isAsset": true,
"isDebt": true,
"isDisabled": true,
"market": "text",
"protocol": "text",
"vaultAddress": "text",
"additionalSupplyApy": [
{
"label": "text",
"apy": "text"
}
],
"additionalBorrowApy": [
{
"label": "text",
"apy": "text"
}
]
}
}
]
success
Returns statistics for all yield strategy vaults.
/stats/yield
curl -L \
--url 'https://factor-stats-api.fly.dev/stats/yield'
[
{
"vaultAddress": "text",
"vaultName": "text",
"vaultSymbol": "text",
"isStagging": true,
"isStakable": true,
"tvlUsd": "text",
"apyBase": "text",
"apyVote": "text",
"apyVoteProjected": "text",
"isScaled": true,
"voteWeight": "text",
"scaleRewardPerSecond": "text",
"scaleRewardPriceUsd": "text",
"assetAddress": "text",
"assetName": "text",
"assetSymbol": "text",
"assetDecimals": "text",
"assetPriceUsd": "text",
"sharePriceUsd": "text",
"monthlyVolumeUsd": "text",
"apyBoost": "text",
"apyBoostProjected": "text",
"isBoosted": true,
"isRestaking": true,
"fetched_at": "text",
"identifier": "text",
"boostRewardTokens": [
{
"vaultAddress": "text",
"tokenAddress": "text",
"tokenSymbol": "text",
"minAmount": "text",
"minAmountFmt": "text",
"totalRewardAmount": "text",
"totalRewardAmountFmt": "text",
"lastUpdateTime": "text",
"periodFinish": "text",
"rewardPerTokenStored": "text",
"rewardPerTokenStoredFmt": "text",
"rewardRate": "text",
"rewardRateFmt": "text",
"tokenDecimal": "text",
"priceUsd": "text",
"apy": "text"
}
]
}
]
success
Returns various counts which includes platform TVL, integrations, and strategies.
/stats/counters
curl -L \
--url 'https://factor-stats-api.fly.dev/stats/counters'
{
"totalTvl": "text",
"protocols": "text",
"pairs": "text",
"leverageVaults": "text",
"yieldVaults": "text",
"totalVaults": "text"
}
success
Returns user strategy data.
/stats/user/{address}
The user wallet address that is being queried.
0x2bfc3A4Ef52Fe6cD2c5236dA08005C59EaFB43a7
curl -L \
--url 'https://factor-stats-api.fly.dev/stats/user/{address}'
{
"userYieldVaults": [
{
"vaultAddress": "text",
"vaultName": "text",
"vaultSymbol": "text",
"isStagging": true,
"isStakable": true,
"tvlUsd": "text",
"apyBase": "text",
"apyVote": "text",
"apyVoteProjected": "text",
"isScaled": true,
"voteWeight": "text",
"scaleRewardPerSecond": "text",
"scaleRewardPriceUsd": "text",
"assetAddress": "text",
"assetName": "text",
"assetSymbol": "text",
"assetDecimals": "text",
"assetPriceUsd": "text",
"sharePriceUsd": "text",
"monthlyVolumeUsd": "text",
"apyBoost": "text",
"apyBoostProjected": "text",
"isBoosted": true,
"isRestaking": true,
"fetched_at": "text",
"identifier": "text",
"boostRewardTokens": [
{
"vaultAddress": "text",
"tokenAddress": "text",
"tokenSymbol": "text",
"minAmount": "text",
"minAmountFmt": "text",
"totalRewardAmount": "text",
"totalRewardAmountFmt": "text",
"lastUpdateTime": "text",
"periodFinish": "text",
"rewardPerTokenStored": "text",
"rewardPerTokenStoredFmt": "text",
"rewardRate": "text",
"rewardRateFmt": "text",
"tokenDecimal": "text",
"priceUsd": "text",
"apy": "text"
}
],
"userData": {
"asset": {
"balance": "text",
"balanceFmt": "text",
"balanceUsd": "text"
},
"share": {
"balance": "text",
"balanceFmt": "text",
"balanceUsd": "text"
},
"pnl": {
"assetAddress": "text",
"pnlAsset": "text",
"pnlAssetFmt": "text",
"pnlUsd": "text",
"pnlPercentage": "text"
}
},
"stakedUserData": {
"asset": {
"balance": "text",
"balanceFmt": "text",
"balanceUsd": "text"
},
"share": {
"balance": "text",
"balanceFmt": "text",
"balanceUsd": "text"
},
"pnl": {
"assetAddress": "text",
"pnlAsset": "text",
"pnlAssetFmt": "text",
"pnlUsd": "text",
"pnlPercentage": "text"
}
}
}
],
"userLeverageVaults": [
{
"protocol": "text",
"market": "text",
"vaultAddress": "text",
"totalDepositUsd": "text",
"totalTvlUsd": "text",
"netAPY": "text",
"apyVote": "text",
"apyVoteProjected": "text",
"voteWeight": "text",
"scaleRewardPriceUsd": "text",
"scaleRewardPerSecond": "text",
"pairTvl": "text",
"pairName": "text",
"isRestaking": true,
"isStakable": true,
"stakedVaultAddress": true,
"strategy": "text",
"borrowRate": "text",
"maxLeverage": "text",
"apyBoost": "text",
"apyBoostProjected": "text",
"isBoosted": true,
"isScaled": true,
"fetched_at": "text",
"identifier": "text",
"boostRewardTokens": [
{
"vaultAddress": "text",
"tokenAddress": "text",
"tokenSymbol": "text",
"minAmount": "text",
"minAmountFmt": "text",
"totalRewardAmount": "text",
"totalRewardAmountFmt": "text",
"lastUpdateTime": "text",
"periodFinish": "text",
"rewardPerTokenStored": "text",
"rewardPerTokenStoredFmt": "text",
"rewardRate": "text",
"rewardRateFmt": "text",
"tokenDecimal": "text",
"priceUsd": "text",
"apy": "text"
}
],
"assetDetails": {
"priceUsd": "text",
"symbol": "text",
"address": "text",
"supplyApy": "text",
"borrowApr": "text",
"totalSupplyApy": "text",
"totalBorrowApy": "text",
"loanToValue": "text",
"threshold": "text",
"maxLeverage": "text",
"minHealthFactor": "text",
"isAsset": true,
"isDebt": true,
"isDisabled": true,
"market": "text",
"protocol": "text",
"vaultAddress": "text",
"ptTokenMetadata": {
"underlyingTokenSymbol": "text",
"expiryTimestamp": 1,
"pendleMarketAddress": "text",
"isExpired": true,
"underlyingTokenAddress": "text"
},
"additionalSupplyApy": [
{
"label": "text",
"apy": "text"
}
],
"additionalBorrowApy": [
{
"label": "text",
"apy": "text"
}
]
},
"debtDetails": {
"priceUsd": "text",
"symbol": "text",
"address": "text",
"supplyApy": "text",
"borrowApr": "text",
"totalSupplyApy": "text",
"totalBorrowApy": "text",
"loanToValue": "text",
"threshold": "text",
"maxLeverage": "text",
"minHealthFactor": "text",
"isAsset": true,
"isDebt": true,
"isDisabled": true,
"market": "text",
"protocol": "text",
"vaultAddress": "text",
"additionalSupplyApy": [
{
"label": "text",
"apy": "text"
}
],
"additionalBorrowApy": [
{
"label": "text",
"apy": "text"
}
]
},
"openedPositions": [
{
"id": "text",
"address": "text",
"netValueUsd": "text",
"tvlUsd": "text",
"asset": {
"address": "text",
"amount": "text",
"amountFmt": "text",
"amountUsd": "text"
},
"debt": {
"address": "text",
"amount": "text",
"amountFmt": "text",
"amountUsd": "text"
}
}
]
}
]
}
success
Returns the FactorDAO revenues for the current cycle.
/stats/dao-revenues/current
curl -L \
--url 'https://factor-stats-api.fly.dev/stats/dao-revenues/current'
{
"estimatedAPR": "text",
"actualAPR": "text",
"actualDividendUSD": "text",
"todayIncome": "text",
"veFCTRSupply": "text",
"veFCTRTotalUSD": "text",
"block": "text",
"factorPrice": "text",
"lastDistributionUSD": "text",
"fetchedAt": "text",
"last30": {
"averageAPR": "text",
"totalDividends": "text",
"dailyAverageDividends": "text"
},
"last60": {
"averageAPR": "text",
"totalDividends": "text",
"dailyAverageDividends": "text"
}
}
success
Returns the FactorDAO revenues for the month queried.
/stats/dao-revenues/{year}//{month}
The year which is being queried in YYYY format.
2024
The month which is being queried in MM format with no leading zeroes.
6
curl -L \
--url 'https://factor-stats-api.fly.dev/stats/dao-revenues/{year}/{month}'
[
{
"revenue": "text",
"factorPrice": "text",
"block": "text",
"vetoken_supply": "text",
"last_distribution": "text",
"day": "text",
"month": "text",
"year": "text",
"fetched_At": "text",
"breakdown": {}
}
]
success