Skip to content

Instantly share code, notes, and snippets.

@patcito
Created January 26, 2026 18:01
Show Gist options
  • Select an option

  • Save patcito/be55946cc48cc300560b320881e87da7 to your computer and use it in GitHub Desktop.

Select an option

Save patcito/be55946cc48cc300560b320881e87da7 to your computer and use it in GitHub Desktop.
PUT Dashboard APY Fields - Frontend Guide
# PUT Dashboard APY Fields
## Endpoint
```
GET https://api.flyingtulip.com/status/put/dashboard
```
## Where to find APY
```
response.chains[0].collaterals[].vaultInfo.strategies[0].monthlyYieldAPY
response.chains[0].collaterals[].vaultInfo.strategies[0].annualizedMonthlyTotalYieldAPY
```
## JavaScript Example
```javascript
const res = await fetch('https://api.flyingtulip.com/status/put/dashboard');
const data = await res.json();
data.chains[0].collaterals.forEach(collateral => {
const strategy = collateral.vaultInfo?.strategies?.[0];
if (strategy) {
console.log({
symbol: collateral.symbol,
deployedUsd: strategy.deployedUsd,
claimedYieldUsd: strategy.monthlyYieldUsd,
claimedAPY: strategy.monthlyYieldAPY, // Claimed yield only
totalAPY: strategy.annualizedMonthlyTotalYieldAPY // Claimed + unclaimed
});
}
});
```
## Fields
| Field | Description |
|-------|-------------|
| `monthlyYieldAPY` | Annualized % based on **claimed yield only** |
| `annualizedMonthlyTotalYieldAPY` | Annualized % based on **claimed + unclaimed yield** |
| `monthlyYieldUsd` | USD value of claimed yield in the period |
| `deployedUsd` | USD value currently deployed in the strategy |
## Formula
```
APY = (yieldUsd / deployedUsd) × (365 / daysSinceFirstClaim) × 100
```
- `daysSinceFirstClaim` is calculated per strategy (not hardcoded 30 days)
- This gives accurate APY even for newly started strategies
## Sample Response (trimmed)
```json
{
"chains": [{
"collaterals": [{
"symbol": "USDT",
"vaultInfo": {
"strategies": [{
"name": "Flying Tulip Aave Tether USD",
"deployedUsd": "27530229.18",
"monthlyYieldUsd": "10524.90",
"monthlyYieldAPY": 2.19,
"annualizedMonthlyTotalYieldAPY": 2.25
}]
}
}]
}]
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment