📃
Yam API
  • Yam Endpoints
  • Other
    • Gas Stats
    • Projects...
      • Umbrella
      • Synths
    • Assets
Powered by GitBook
On this page
  • Token Price
  • Get Yam token price.
  • Token Price Average
  • Get Yam token average price from a range of dates.
  • Yam Treasury
  • Get treasury assets, assets balances and their values.
  • Yam Farm APR
  • Get Farm LP APR.

Was this helpful?

Yam Endpoints

NextOther

Last updated 2 years ago

Was this helpful?

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 channel.

Token Price

Get Yam token price.

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

Example

"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

Accessible at

Path Parameters

Name
Type
Description

{start-date}*

Range start date

{end-date}*

String

Range end date

{
  "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

{
  "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

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

Example

Example

telegram
https://api.yam.finance/price
https://api.yam.finance/price-avg/2022-06-01/2022-07-01
https://yam.finance/#/values
https://api.yam.finance/treasury
https://api.yam.finance/apr