Yam Endpoints

You can send requests to the yam API for accessing data we have on various yam projects. Check the endpoints sections below to know more about what exists and is maintained on the API. In the future we will require an API key for special requests access, check back later for that!

Questions? feel free to send us a message on the telegram channel.

Token Price

Get Yam token price.

GET https://api.yam.finance/price

Example https://api.yam.finance/price

"0.120342"

Token Price Average

Get Yam token average price from a range of dates.

GET https://api.yam.finance/price-avg/{start-date}/{end-date}

Example https://api.yam.finance/price-avg/2022-06-01/2022-07-01

Accessible at https://yam.finance/#/values

Path Parameters

{
  "from": "Wednesday 1, Jun 2022",
  "to": "Friday 1, Jul 2022",
  "price": 0.1453291866022057
}

Yam Treasury

Get treasury assets, assets balances and their values.

GET https://api.yam.finance/treasury

Example https://api.yam.finance/treasury

{
  "assets": {
    ...
    "wbtc": {
        "name": "Wrapped Bitcoin",
        "symbol": "WBTC",
        "value": 42929.35,
        "quantity": 2.06,
        "price": 20784,
        "change": "12.15935"
    },
    "weth": {
        "name": "Wrapped Ether",
        "symbol": "WETH",
        "value": 679084.13,
        "quantity": 559.74,
        "price": 1213.2,
        "change": "12.15935"
    },
    ...
  },
  "total": 722013.45
}

Yam Farm APR

Get Farm LP APR.

GET https://api.yam.finance/apr

Example https://api.yam.finance/apr

{
  "yam": {
    "farm": 13.84
  }
}

Last updated