API
Several data endpoints are used internally and by our partners. These have been created incrementally on an as-needed basis and are not intended for widespread use. This documentation has been added for convenience, but please do not rely on this API for mission-critical data. If you need additional data to use in your application, please reach out on Discord.
Our wrapper API can be found on the api.originprotocol.com
endpoint. Most of the endpoints are wrapping access to our indexer origin-squid
. Note that our graphQl api is not public, you should rely on the REST wrapper api for stability.
Some dates are displayed as timestamps or epochs, which can be converted to human-readable dates here.
OUSD/OETH Analytics
Trailing yield
GET
https://api.originprotocol.com/api/v2/{token}/apr/trailing/{days}{?chainId}
The annualized trailing yield for OUSD, OETH, superOETHb over a given number of days
Number of days greater than 100 may produce unexpected results
Path Parameters
Name | Type | Description |
---|---|---|
symbol* | String | ousd, oeth, superoethb |
days | Number | Number of days |
Query Parameters
Name | Type | Description |
---|---|---|
chainId | Number | chain id, defaults to |
200: OK
Stats
GET
https://api.originprotocol.com/api/v2/{token}/stats/{stat}{?chainId}
All available stats for OETH, OUSD and superOETHb
Path Parameters
Name | Type | Description |
---|---|---|
symbol* | String | ousd, oeth, superoethb |
stat | String | available Stat |
Query Parameters
Name | Type | Description |
---|---|---|
chainId | Number | chain id, defaults to |
Available stats
Stat | Description |
---|---|
| total supply (default) |
| average APR |
| average APY |
| trailing apy 14 days |
| trailing apy 30 days |
| trailing apy 7 days |
| latest computed block |
| fee perceived |
| market cap |
| AMO supply |
| WETH dripper |
| total non rebasing supply |
| ETH price |
| USD price |
| total rebasing |
| total wrapped |
| total yield |
200: OK
Ratios
GET
https://api.originprotocol.com/api/v2/{symbol}/ratios{?chainId}
The current credits per token
Path Parameters
Name | Type | Description |
---|---|---|
symbol* | String | ousd, oeth, superoethb |
Query Parameters
Name | Type | Description |
---|---|---|
chainId | Number | chain id, defaults to |
200: OK
Yield history
GET
https://api.originprotocol.com/api/v2/{symbol}/apr/history
The recent annualized historical yield for OUSD or OETH
Path Parameters
Name | Type | Description |
---|---|---|
symbol* | String | ousd or oeth |
200: OK
Collateral
GET
https://api.originprotocol.com/api/v2/{symbol}/collateral
A list of backing assets and their balances held by OUSD
Path Parameters
Name | Type | Description |
---|---|---|
symbol* | String | ousd |
200: OK
Strategies
GET
https://api.originprotocol.com/api/v2/{symbol}/strategies{?structured}
A list of OUSD's yield-earning strategies and its token balances
Path Parameters
Name | Type | Description |
---|---|---|
symbol* | String | ousd |
Query Parameters
Name | Type | Description |
---|---|---|
structured | String |
200: OK structured
OGN circulating supply
GET
https://api.originprotocol.com/circulating-ogn
The number of Origin Tokens (OGN) in circulation
200: OK
OGN total supply
GET
https://api.originprotocol.com/total-ogn
The total number of Origin Tokens (OGN) in existence
200: OK
OETH total supply
GET
https://api.originprotocol.com/total-oeth
The total number of Origin Ether (OETH) tokens in existence
200: OK
superOETHb total supply
GET
https://api.originprotocol.com/total-superoethb
The total number of Origin Dollar (OUSD) tokens in existence
200: OK
OGN protocol revenue
GET
https://api.originprotocol.com/api/v2/protocol-fees
Protocol revenue derived from OETH and OUSD performance fees
200: OK
Last updated