Skip to main content
GET
/
loopscale
/
loop
/
apy
Loop APY by ID
curl --request GET \
  --url https://api.junkyard.cloud/loopscale/loop/apy \
  --header 'x-api-key: <api-key>'
{
  "loop_id": "shyusd-hyusd",
  "name": "sHYUSD / hyUSD",
  "net_apy": 25.068267,
  "base_apy": 13.622467,
  "borrow_apy": 12,
  "include": {
    "collateral_mint": "HnnGv3HrSqjRpgdFmx7vQGjntNEoex1SU4e9Lxcxuihz",
    "principal_mint": "5YMkXAYccHSGnHn9nob9xEvv6Pvka9DZWH7nTbotTu9E"
  }
}

Note

  • Both the borrow and base APY are sourced real-time from Loopscale.
  • You may obtain the Loop ID (loop_id) from the /loopscale/loop/markets endpoint.
  • Use include_mint_addrs=true to include mint addresses in the include object of the response.
  • Cache (TTL-based): 1 hour
No API key is required by default.
You can make requests without an API key, but with lower rate limits.

For higher rate limits, get your free API key from our team.

Authorizations

x-api-key
string
header
required

Query Parameters

loop_id
string
required

Loopscale loop market ID from /loopscale/loop/markets

leverage
number<float>
default:1

Leverage factor between 1.0 and 9.0

Required range: 1 <= x <= 9
include_mint_addrs
boolean
default:false

Whether to include mint addresses

Response

200 - application/json

Successfully calculated loop APY

loop_id
string
required

Loop market identifier

name
string
required

Display name of the loop strategy

net_apy
number<float>
required

Net APY after accounting for leverage and borrowing costs

base_apy
number<float>
required

Base APY from the collateral asset

borrow_apy
number<float>
required

APY cost of borrowing the principal asset

include
object

Additional data